From 49d2c6da45c6a55109d5adf6ef5c892caf2265a4 Mon Sep 17 00:00:00 2001 From: github-actions-bot Date: Sun, 10 Dec 2023 05:33:15 +0000 Subject: [PATCH] Updates --- assets/CodeBlock-HVMt2b3q.js | 7 +++++++ assets/CodeBlock-uS2A-zOt.js | 7 ------- assets/{Collapse-gGRmuqb3.js => Collapse-JZfrBou4.js} | 2 +- assets/CommentRoot-Sjs_Ns2-.js | 1 - assets/CommentRoot-wSPVoFqK.js | 1 + assets/{Comments-o-HIrYe0.js => Comments-g86CJBuN.js} | 2 +- assets/{Divider-ZvsSiSkZ.js => Divider-sIhvLlX0.js} | 2 +- .../{EmojiPicker-Z2csmeIh.js => EmojiPicker-Nt7QcEYg.js} | 2 +- assets/{FlexText-AbEHEN8T.js => FlexText-0MKUXZWJ.js} | 2 +- assets/{Gallery-lvvI9ksR.js => Gallery-32-V3LXo.js} | 4 ++-- assets/{LinkCard-aLl-jjA_.js => LinkCard-gCgkDO82.js} | 6 +++--- assets/{Markdown-xk31dQ-T.js => Markdown-tpcPSstc.js} | 6 +++--- assets/{Mermaid-gARWX2fD.js => Mermaid-HArpnZmx.js} | 4 ++-- .../{NotePreview-yCCpXwBc.js => NotePreview-CSBxvseK.js} | 2 +- ...inIconToggle-vlWhC9Tj.js => PinIconToggle-EjPj0VvX.js} | 2 +- .../{PostPreview-kGe_h9w-.js => PostPreview-Ufc-M9kZ.js} | 2 +- assets/{RichLink-sK7aRcsj.js => RichLink-6jHOm4uG.js} | 2 +- assets/{Root-lR48gj-U.js => Root-_xDfetAB.js} | 4 ++-- assets/{Tweet-jnYP4Kiq.js => Tweet-lNU6kk5E.js} | 4 ++-- assets/{arc-suLvkwOy.js => arc-l0axwUh0.js} | 2 +- ...17c8e44-umsou0DR.js => c4Diagram-817c8e44-5EmuvcU7.js} | 2 +- ...76fb-hx-EVz8F.js => classDiagram-48ab76fb-3Hn8dqdv.js} | 2 +- ...c-SWmKP9NA.js => classDiagram-v2-8ecb0bfc--VaB5bI_.js} | 2 +- ...bacdfe-SYhAe-WO.js => createText-aebacdfe-H6z3pXul.js} | 2 +- ...seFormat-q3ZbyGZe.js => customParseFormat-ePfR8DqR.js} | 2 +- ...es-80f1ebb6-FlrRuN4S.js => edges-80f1ebb6-rGuwxB-z.js} | 2 +- ...cfc3649-M5W9FlY_.js => erDiagram-9cfc3649-JOF84bEc.js} | 2 +- ...b-170db09d-7If00yRB.js => flowDb-170db09d-yEiXM5xZ.js} | 2 +- ...b444c-wBFqk1LD.js => flowDiagram-61eb444c-5tOIE6Jg.js} | 2 +- assets/flowDiagram-v2-2f8f667a-2ERX0VqJ.js | 1 + assets/flowDiagram-v2-2f8f667a-k9Nn7Pzb.js | 1 - ...7.js => flowchart-elk-definition-e097735e-l4fCEAHS.js} | 2 +- ...31fb-fG9d8qhp.js => ganttDiagram-db6931fb-zKHq32tk.js} | 2 +- ...3-Gmbmx2Ie.js => gitGraphDiagram-6b463803-qFlY7Hxy.js} | 2 +- ...ex-67a42d7d-g0Z27jYt.js => index-67a42d7d-z0cWI9_8.js} | 2 +- assets/{index-_qoN1KWb.js => index-GZJTCUEG.js} | 2 +- assets/{index-Qg-bAq5J.js => index-HRfeE_7B.js} | 4 ++-- assets/index-gtcHzGbV.js | 1 - assets/index-h07iLZP_.js | 1 + assets/{index-ZzDqB3uo.js => index-nkXcnT3N.js} | 2 +- ...{index.client-MRAendKS.js => index.client-ZMZX_aB9.js} | 2 +- assets/{index.demo-m9tNHPa7.js => index.demo-DOj37Sa0.js} | 2 +- assets/{index.demo-pf7SmPXF.js => index.demo-R6tE8TvC.js} | 2 +- assets/{index.demo-CZ-Kdw_N.js => index.demo-eFalS46m.js} | 2 +- assets/{index.demo-tXBcLHr3.js => index.demo-ey_EOA6v.js} | 2 +- assets/{index.demo-2NV1Cuwz.js => index.demo-iQQXqAe0.js} | 2 +- ...vior-7TM6yZv8.js => infiniteQueryBehavior-Ju3wkMyP.js} | 2 +- ...6098b-PQlAVZVr.js => infoDiagram-a336098b-A5eiqr5L.js} | 2 +- ...13-dyWWXkRg.js => journeyDiagram-deae3313-NAwzEuks.js} | 2 +- assets/{layout-TzcvurS1.js => layout-or5_ZLqg.js} | 2 +- assets/{line-MxgoxcWE.js => line-aMz7DiQ_.js} | 2 +- assets/{linear-4Asi7RTq.js => linear-iUXoRcso.js} | 2 +- ...{mermaid.core-uOCfdc17.js => mermaid.core-YsxFu0Y0.js} | 8 ++++---- ...VrwEOcC.js => mindmap-definition-617cf8dd-9Nq7YxOd.js} | 2 +- assets/{mutation-P8-Et3_d.js => mutation-qwHfn3Jw.js} | 2 +- ...166659-zPl0InYJ.js => pieDiagram-a5166659-Au0nzvDN.js} | 2 +- ...c-xjEI3qTN.js => quadrantDiagram-6c355bbc-dFNqbfav.js} | 2 +- ...7JmCgki.js => requirementDiagram-4038b16c-j4H1o8Rq.js} | 2 +- ...513-LjKBNQ64.js => sankeyDiagram-6db3d513-NZxhM55r.js} | 2 +- ...a-ZZ8C71kZ.js => sequenceDiagram-465a088a-3kpBpEJM.js} | 2 +- assets/{spring-hZ91AlwC.js => spring-0AHu48BV.js} | 2 +- ...d43f-y0IcZQu2.js => stateDiagram-b620d43f-Ae8zvNyx.js} | 2 +- ...1-IJSNIfX0.js => stateDiagram-v2-2671c3d1-ivzK-thD.js} | 2 +- ...s-4ba6ed67-4o_0kKs1.js => styles-4ba6ed67-iT2JB7rU.js} | 2 +- ...s-b966c4ae-YImdFhsJ.js => styles-b966c4ae-isWPc7ie.js} | 2 +- ...s-bbc3fe3b-gfxx_Tsk.js => styles-bbc3fe3b-IoBkQh0A.js} | 2 +- ...572-ZpVsMh3H.js => svgDrawCommon-ad5ef572-6JSuLc9B.js} | 2 +- ...BH9ibF.js => timeline-definition-732a2638-Duw5fbqt.js} | 2 +- assets/{utils-C0Upvd9p.js => utils-DGmE6P1M.js} | 4 ++-- ...4c-MI7kdoOm.js => xychartDiagram-f746c04c-TcMXd8nC.js} | 2 +- index.html | 2 +- 71 files changed, 86 insertions(+), 86 deletions(-) create mode 100644 assets/CodeBlock-HVMt2b3q.js delete mode 100644 assets/CodeBlock-uS2A-zOt.js rename assets/{Collapse-gGRmuqb3.js => Collapse-JZfrBou4.js} (96%) delete mode 100644 assets/CommentRoot-Sjs_Ns2-.js create mode 100644 assets/CommentRoot-wSPVoFqK.js rename assets/{Comments-o-HIrYe0.js => Comments-g86CJBuN.js} (95%) rename assets/{Divider-ZvsSiSkZ.js => Divider-sIhvLlX0.js} (99%) rename assets/{EmojiPicker-Z2csmeIh.js => EmojiPicker-Nt7QcEYg.js} (99%) rename assets/{FlexText-AbEHEN8T.js => FlexText-0MKUXZWJ.js} (88%) rename assets/{Gallery-lvvI9ksR.js => Gallery-32-V3LXo.js} (69%) rename assets/{LinkCard-aLl-jjA_.js => LinkCard-gCgkDO82.js} (99%) rename assets/{Markdown-xk31dQ-T.js => Markdown-tpcPSstc.js} (98%) rename assets/{Mermaid-gARWX2fD.js => Mermaid-HArpnZmx.js} (66%) rename assets/{NotePreview-yCCpXwBc.js => NotePreview-CSBxvseK.js} (97%) rename assets/{PinIconToggle-vlWhC9Tj.js => PinIconToggle-EjPj0VvX.js} (91%) rename assets/{PostPreview-kGe_h9w-.js => PostPreview-Ufc-M9kZ.js} (94%) rename assets/{RichLink-sK7aRcsj.js => RichLink-6jHOm4uG.js} (99%) rename assets/{Root-lR48gj-U.js => Root-_xDfetAB.js} (96%) rename assets/{Tweet-jnYP4Kiq.js => Tweet-lNU6kk5E.js} (58%) rename assets/{arc-suLvkwOy.js => arc-l0axwUh0.js} (98%) rename assets/{c4Diagram-817c8e44-umsou0DR.js => c4Diagram-817c8e44-5EmuvcU7.js} (99%) rename assets/{classDiagram-48ab76fb-hx-EVz8F.js => classDiagram-48ab76fb-3Hn8dqdv.js} (96%) rename assets/{classDiagram-v2-8ecb0bfc-SWmKP9NA.js => classDiagram-v2-8ecb0bfc--VaB5bI_.js} (90%) rename assets/{createText-aebacdfe-SYhAe-WO.js => createText-aebacdfe-H6z3pXul.js} (99%) rename assets/{customParseFormat-q3ZbyGZe.js => customParseFormat-ePfR8DqR.js} (98%) rename assets/{edges-80f1ebb6-FlrRuN4S.js => edges-80f1ebb6-rGuwxB-z.js} (99%) rename assets/{erDiagram-9cfc3649-M5W9FlY_.js => erDiagram-9cfc3649-JOF84bEc.js} (99%) rename assets/{flowDb-170db09d-7If00yRB.js => flowDb-170db09d-yEiXM5xZ.js} (99%) rename assets/{flowDiagram-61eb444c-wBFqk1LD.js => flowDiagram-61eb444c-5tOIE6Jg.js} (97%) create mode 100644 assets/flowDiagram-v2-2f8f667a-2ERX0VqJ.js delete mode 100644 assets/flowDiagram-v2-2f8f667a-k9Nn7Pzb.js rename assets/{flowchart-elk-definition-e097735e-RPHEm9d7.js => flowchart-elk-definition-e097735e-l4fCEAHS.js} (99%) rename assets/{ganttDiagram-db6931fb-fG9d8qhp.js => ganttDiagram-db6931fb-zKHq32tk.js} (99%) rename assets/{gitGraphDiagram-6b463803-Gmbmx2Ie.js => gitGraphDiagram-6b463803-qFlY7Hxy.js} (99%) rename assets/{index-67a42d7d-g0Z27jYt.js => index-67a42d7d-z0cWI9_8.js} (97%) rename assets/{index-_qoN1KWb.js => index-GZJTCUEG.js} (94%) rename assets/{index-Qg-bAq5J.js => index-HRfeE_7B.js} (99%) delete mode 100644 assets/index-gtcHzGbV.js create mode 100644 assets/index-h07iLZP_.js rename assets/{index-ZzDqB3uo.js => index-nkXcnT3N.js} (99%) rename assets/{index.client-MRAendKS.js => index.client-ZMZX_aB9.js} (99%) rename assets/{index.demo-m9tNHPa7.js => index.demo-DOj37Sa0.js} (84%) rename assets/{index.demo-pf7SmPXF.js => index.demo-R6tE8TvC.js} (99%) rename assets/{index.demo-CZ-Kdw_N.js => index.demo-eFalS46m.js} (81%) rename assets/{index.demo-tXBcLHr3.js => index.demo-ey_EOA6v.js} (97%) rename assets/{index.demo-2NV1Cuwz.js => index.demo-iQQXqAe0.js} (81%) rename assets/{infiniteQueryBehavior-7TM6yZv8.js => infiniteQueryBehavior-Ju3wkMyP.js} (96%) rename assets/{infoDiagram-a336098b-PQlAVZVr.js => infoDiagram-a336098b-A5eiqr5L.js} (97%) rename assets/{journeyDiagram-deae3313-dyWWXkRg.js => journeyDiagram-deae3313-NAwzEuks.js} (98%) rename assets/{layout-TzcvurS1.js => layout-or5_ZLqg.js} (99%) rename assets/{line-MxgoxcWE.js => line-aMz7DiQ_.js} (93%) rename assets/{linear-4Asi7RTq.js => linear-iUXoRcso.js} (99%) rename assets/{mermaid.core-uOCfdc17.js => mermaid.core-YsxFu0Y0.js} (98%) rename assets/{mindmap-definition-617cf8dd-kVrwEOcC.js => mindmap-definition-617cf8dd-9Nq7YxOd.js} (99%) rename assets/{mutation-P8-Et3_d.js => mutation-qwHfn3Jw.js} (97%) rename assets/{pieDiagram-a5166659-zPl0InYJ.js => pieDiagram-a5166659-Au0nzvDN.js} (97%) rename assets/{quadrantDiagram-6c355bbc-xjEI3qTN.js => quadrantDiagram-6c355bbc-dFNqbfav.js} (99%) rename assets/{requirementDiagram-4038b16c-S7JmCgki.js => requirementDiagram-4038b16c-j4H1o8Rq.js} (98%) rename assets/{sankeyDiagram-6db3d513-LjKBNQ64.js => sankeyDiagram-6db3d513-NZxhM55r.js} (98%) rename assets/{sequenceDiagram-465a088a-ZZ8C71kZ.js => sequenceDiagram-465a088a-3kpBpEJM.js} (99%) rename assets/{spring-hZ91AlwC.js => spring-0AHu48BV.js} (99%) rename assets/{stateDiagram-b620d43f-y0IcZQu2.js => stateDiagram-b620d43f-Ae8zvNyx.js} (96%) rename assets/{stateDiagram-v2-2671c3d1-IJSNIfX0.js => stateDiagram-v2-2671c3d1-ivzK-thD.js} (89%) rename assets/{styles-4ba6ed67-4o_0kKs1.js => styles-4ba6ed67-iT2JB7rU.js} (99%) rename assets/{styles-b966c4ae-YImdFhsJ.js => styles-b966c4ae-isWPc7ie.js} (98%) rename assets/{styles-bbc3fe3b-gfxx_Tsk.js => styles-bbc3fe3b-IoBkQh0A.js} (99%) rename assets/{svgDrawCommon-ad5ef572-ZpVsMh3H.js => svgDrawCommon-ad5ef572-6JSuLc9B.js} (95%) rename assets/{timeline-definition-732a2638-5RBH9ibF.js => timeline-definition-732a2638-Duw5fbqt.js} (98%) rename assets/{utils-C0Upvd9p.js => utils-DGmE6P1M.js} (93%) rename assets/{xychartDiagram-f746c04c-MI7kdoOm.js => xychartDiagram-f746c04c-TcMXd8nC.js} (98%) diff --git a/assets/CodeBlock-HVMt2b3q.js b/assets/CodeBlock-HVMt2b3q.js new file mode 100644 index 0000000000..0a3c049057 --- /dev/null +++ b/assets/CodeBlock-HVMt2b3q.js @@ -0,0 +1,7 @@ +import{_ as i,j as r}from"./index-HRfeE_7B.js";import{d as m}from"./Markdown-tpcPSstc.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./env-jTYMx4r5.js";import"./Collapse-JZfrBou4.js";import"./Gallery-32-V3LXo.js";import"./RichLink-6jHOm4uG.js";const o=m(()=>i(()=>import("./Mermaid-HArpnZmx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(t=>t.Mermaid)),e=m(()=>i(()=>import("./Markdown-tpcPSstc.js").then(t=>t.C),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(t=>t.HighLighter)),x=t=>t.lang==="mermaid"?r.jsx(o,{...t}):r.jsx(e,{...t});export{x as CodeBlock,x as default}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./Mermaid-HArpnZmx.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./Markdown-tpcPSstc.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./LinkCard-gCgkDO82.js","./Divider-sIhvLlX0.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Collapse-JZfrBou4.js","./Gallery-32-V3LXo.js","./Gallery-cCMf-PmV.css","./RichLink-6jHOm4uG.js","./Markdown-nufn1r_q.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} \ No newline at end of file diff --git a/assets/CodeBlock-uS2A-zOt.js b/assets/CodeBlock-uS2A-zOt.js deleted file mode 100644 index fa49c96e43..0000000000 --- a/assets/CodeBlock-uS2A-zOt.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as i,j as r}from"./index-Qg-bAq5J.js";import{d as m}from"./Markdown-xk31dQ-T.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./env-jTYMx4r5.js";import"./Collapse-gGRmuqb3.js";import"./Gallery-lvvI9ksR.js";import"./RichLink-sK7aRcsj.js";const o=m(()=>i(()=>import("./Mermaid-gARWX2fD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(t=>t.Mermaid)),e=m(()=>i(()=>import("./Markdown-xk31dQ-T.js").then(t=>t.C),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(t=>t.HighLighter)),x=t=>t.lang==="mermaid"?r.jsx(o,{...t}):r.jsx(e,{...t});export{x as CodeBlock,x as default}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./Mermaid-gARWX2fD.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./Markdown-xk31dQ-T.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./LinkCard-aLl-jjA_.js","./Divider-ZvsSiSkZ.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Collapse-gGRmuqb3.js","./Gallery-lvvI9ksR.js","./Gallery-cCMf-PmV.css","./RichLink-sK7aRcsj.js","./Markdown-nufn1r_q.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} \ No newline at end of file diff --git a/assets/Collapse-gGRmuqb3.js b/assets/Collapse-JZfrBou4.js similarity index 96% rename from assets/Collapse-gGRmuqb3.js rename to assets/Collapse-JZfrBou4.js index 4401de9021..c22f6ffd09 100644 --- a/assets/Collapse-gGRmuqb3.js +++ b/assets/Collapse-JZfrBou4.js @@ -1,4 +1,4 @@ -import{r as e,j as E}from"./index-Qg-bAq5J.js";import{u as F,f as $,a as L,P as O,L as U,m as N,b as S}from"./spring-hZ91AlwC.js";import{c as T}from"./helper-Oi49T1hx.js";function I(){const r=e.useRef(!1);return F(()=>(r.current=!0,()=>{r.current=!1}),[]),r}function A(){const r=I(),[s,t]=e.useState(0),n=e.useCallback(()=>{r.current&&t(s+1)},[s]);return[e.useCallback(()=>$.postRender(n),[n]),s]}class D extends e.Component{getSnapshotBeforeUpdate(s){const t=this.props.childRef.current;if(t&&s.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function G({children:r,isPresent:s}){const t=e.useId(),n=e.useRef(null),p=e.useRef({width:0,height:0,top:0,left:0});return e.useInsertionEffect(()=>{const{width:a,height:d,top:l,left:h}=p.current;if(s||!n.current||!a||!d)return;n.current.dataset.motionPopId=t;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` +import{r as e,j as E}from"./index-HRfeE_7B.js";import{u as F,f as $,a as L,P as O,L as U,m as N,b as S}from"./spring-0AHu48BV.js";import{c as T}from"./helper-Oi49T1hx.js";function I(){const r=e.useRef(!1);return F(()=>(r.current=!0,()=>{r.current=!1}),[]),r}function A(){const r=I(),[s,t]=e.useState(0),n=e.useCallback(()=>{r.current&&t(s+1)},[s]);return[e.useCallback(()=>$.postRender(n),[n]),s]}class D extends e.Component{getSnapshotBeforeUpdate(s){const t=this.props.childRef.current;if(t&&s.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function G({children:r,isPresent:s}){const t=e.useId(),n=e.useRef(null),p=e.useRef({width:0,height:0,top:0,left:0});return e.useInsertionEffect(()=>{const{width:a,height:d,top:l,left:h}=p.current;if(s||!n.current||!a||!d)return;n.current.dataset.motionPopId=t;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` [data-motion-pop-id="${t}"] { position: absolute !important; width: ${a}px !important; diff --git a/assets/CommentRoot-Sjs_Ns2-.js b/assets/CommentRoot-Sjs_Ns2-.js deleted file mode 100644 index 1d216193b3..0000000000 --- a/assets/CommentRoot-Sjs_Ns2-.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./index-Qg-bAq5J.js";import{C as i}from"./Root-lR48gj-U.js";import{C as e}from"./Comments-o-HIrYe0.js";import"./index-_qoN1KWb.js";import"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./utils-C0Upvd9p.js";import"./Gallery-lvvI9ksR.js";import"./Collapse-gGRmuqb3.js";import"./Markdown-xk31dQ-T.js";import"./RichLink-sK7aRcsj.js";import"./customParseFormat-q3ZbyGZe.js";import"./mutation-P8-Et3_d.js";import"./infiniteQueryBehavior-7TM6yZv8.js";import"./FlexText-AbEHEN8T.js";import"./PinIconToggle-vlWhC9Tj.js";const E=r=>{const{allowComment:m,refId:o}=r;return!m&&typeof m<"u"?t.jsx("p",{className:"mt-[7.1rem] text-center text-xl font-medium",children:"评论已关闭"}):t.jsxs("div",{className:"relative mt-12",children:[t.jsx(i,{refId:o}),t.jsx("div",{className:"h-12"}),t.jsx(e,{refId:o})]})};export{E as CommentAreaRoot}; diff --git a/assets/CommentRoot-wSPVoFqK.js b/assets/CommentRoot-wSPVoFqK.js new file mode 100644 index 0000000000..9d03a46b0f --- /dev/null +++ b/assets/CommentRoot-wSPVoFqK.js @@ -0,0 +1 @@ +import{j as t}from"./index-HRfeE_7B.js";import{C as i}from"./Root-_xDfetAB.js";import{C as e}from"./Comments-g86CJBuN.js";import"./index-GZJTCUEG.js";import"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./utils-DGmE6P1M.js";import"./Gallery-32-V3LXo.js";import"./Collapse-JZfrBou4.js";import"./Markdown-tpcPSstc.js";import"./RichLink-6jHOm4uG.js";import"./customParseFormat-ePfR8DqR.js";import"./mutation-qwHfn3Jw.js";import"./infiniteQueryBehavior-Ju3wkMyP.js";import"./FlexText-0MKUXZWJ.js";import"./PinIconToggle-EjPj0VvX.js";const E=r=>{const{allowComment:m,refId:o}=r;return!m&&typeof m<"u"?t.jsx("p",{className:"mt-[7.1rem] text-center text-xl font-medium",children:"评论已关闭"}):t.jsxs("div",{className:"relative mt-12",children:[t.jsx(i,{refId:o}),t.jsx("div",{className:"h-12"}),t.jsx(e,{refId:o})]})};export{E as CommentAreaRoot}; diff --git a/assets/Comments-o-HIrYe0.js b/assets/Comments-g86CJBuN.js similarity index 95% rename from assets/Comments-o-HIrYe0.js rename to assets/Comments-g86CJBuN.js index ff214e23a7..31eb6b1452 100644 --- a/assets/Comments-o-HIrYe0.js +++ b/assets/Comments-g86CJBuN.js @@ -1 +1 @@ -import{r as n,j as e,a as U}from"./index-Qg-bAq5J.js";import{h as G,j as W,k as X,s as J,u as Y,L as Z,l as ee,m as te}from"./Markdown-xk31dQ-T.js";import{i as M,h as se,a as re}from"./infiniteQueryBehavior-7TM6yZv8.js";import{S as ne,s as A,m as ae}from"./spring-hZ91AlwC.js";import{c as oe,p as le,A as ie,C as ce,a as me}from"./utils-C0Upvd9p.js";import{c as O}from"./LinkCard-aLl-jjA_.js";import{c as de,a as x,j as v,d as y,u as h,s as F}from"./Divider-ZvsSiSkZ.js";import{c as E,a as b}from"./helper-Oi49T1hx.js";import{F as ue,u as xe}from"./FlexText-AbEHEN8T.js";import{P as he}from"./PinIconToggle-vlWhC9Tj.js";import{s as fe,g as pe}from"./Gallery-lvvI9ksR.js";var ge=class extends G{constructor(t,s){super(t,s)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,s){super.setOptions({...t,behavior:M()},s)}getOptimisticResult(t){return t.behavior=M(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,s){var m,d,u,p;const{state:r}=t,a=super.createResult(t,s),{isFetching:o,isRefetching:i}=a,l=o&&((d=(m=r.fetchMeta)==null?void 0:m.fetchMore)==null?void 0:d.direction)==="forward",c=o&&((p=(u=r.fetchMeta)==null?void 0:u.fetchMore)==null?void 0:p.direction)==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:se(s,r.data),hasPreviousPage:re(s,r.data),isFetchingNextPage:l,isFetchingPreviousPage:c,isRefetching:i&&!l&&!c}}};function ye(t,s){return W(t,ge,s)}const ve=n.createContext(null),R={didCatch:!1,error:null};let Ce=class extends n.Component{constructor(s){super(s),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=R}static getDerivedStateFromError(s){return{didCatch:!0,error:s}}resetErrorBoundary(){const{error:s}=this.state;if(s!==null){for(var r,a,o=arguments.length,i=new Array(o),l=0;l0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==s.length||t.some((r,a)=>!Object.is(r,s[a]))}const be=()=>e.jsxs("div",{className:"flex w-full flex-col py-6 center",children:["Something went wrong. Please contract to"," ",e.jsx("a",{href:"mailto:i@innei.ren",className:"shiro-link--underline",children:"i@innei.ren"}),".",e.jsx(ne,{onClick:()=>{window.location.reload()},children:"Reload Page"})]}),we=({children:t})=>e.jsx(Ce,{FallbackComponent:be,onError:s=>{console.error(s)},children:t}),Ne=t=>{const{shadow:s=!0,lazy:r=!0,wrapperProps:a={},size:o,imageUrl:i,text:l,url:c,randomColor:m,radius:d,...u}=t,p=n.useRef(null),[w,k]=n.useState(!r),[B,N]=n.useState(!1),{className:C,...K}=a,g=n.useMemo(()=>(l||i)&&m&&X(J(l||i)),[l,i,m]),I=Y()?g==null?void 0:g.dark.background:g==null?void 0:g.light.background;return e.jsx("div",{className:E("box-border backface-hidden",s&&"shadow-sm",C),ref:p,style:{...o?{height:`${o||80}px`,width:`${o||80}px`}:void 0,...I?{backgroundColor:I}:void 0,...d?{borderRadius:`${d}px`}:void 0},...K,children:n.createElement(c?"a":"div",{className:"relative inline-block h-full w-full",...c?{href:c,target:"_blank",rel:"noreferrer"}:{}},i&&!B?e.jsx("div",{className:E("h-full w-full bg-cover bg-center bg-no-repeat transition-opacity duration-300",C),children:e.jsx("img",{src:i,style:{opacity:w?1:0,...d?{borderRadius:`${d}px`}:void 0},height:o,width:o,onLoad:()=>k(!0),onError:()=>N(!0),loading:r?"lazy":"eager",...u,className:E("aspect-square rounded-full duration-200",u.className)})}):l?e.jsx("div",{className:"relative flex h-full w-full flex-grow select-none items-center justify-center",children:e.jsx(ue,{scale:.5,text:l})}):null)})},Pe=({text:t})=>e.jsx("div",{className:"flex h-[100px] items-center justify-center text-lg font-medium",children:t||"您当前所在地区暂不支持此功能"}),ke=oe({from:{opacity:1e-5,scale:.96,y:10},to:{y:0,scale:1,opacity:1},preset:A}),Be=({onLoading:t,children:s,className:r})=>{const{ref:a}=de({rootMargin:"1px",onChange(o){o&&t()}});return e.jsx("div",{className:r,ref:a,children:s??e.jsx(Z,{})})},Ee="_comment__message_1lfmp_1",Re={comment__message:Ee},Se=["在这里说点什么呢。","小可爱,你想说点什么呢?","或许此地可以留下足迹","你的留言是我前进的动力!","说点什么吧,我会好好听的。","来一发评论,送你一个小星星!","你的评论会让我更加努力哦!","留下你的足迹,让我知道你来过。","我在这里等你的留言呢!","你的评论是我最大的动力!","来一发评论,让我知道你的想法吧!"],lt=()=>fe(Se),Le=500,j="comment-",Ie=()=>({refId:x(""),text:x(""),author:y(`${j}author`,""),mail:y(`${j}mail`,""),url:y(`${j}url`,""),avatar:x(""),source:x(""),isWhisper:y(`${j}is-whisper`,!1),syncToRecently:y(`${j}sync-to-recently`,!0)}),f=n.createContext(null),V=n.createContext(null),Me=t=>{const{refId:s,children:r,afterSubmit:a,initialValue:o}=t,i=pe(()=>({...Ie(),refId:x(s)}));return xe(()=>{o&&v.set(i.text,o)}),e.jsx(f.Provider,{value:i,children:e.jsx(V.Provider,{value:n.useMemo(()=>({afterSubmit:a}),[a]),children:r})},s)},H=n.createContext(!1),_=n.createContext(""),D=n.createContext(null),ze=t=>{const{isReply:s,originalRefId:r,onCompleted:a,children:o}=t;return e.jsx(_.Provider,{value:r,children:e.jsx(H.Provider,{value:s,children:e.jsx(D.Provider,{value:a||null,children:o})})})},Te=n.memo(t=>{const{children:s}=t;return n.useEffect(()=>(z(s),()=>{z(null)}),[s]),null}),Ae=n.memo(()=>Oe());Ae.displayName="CommentBoxSlotProvider";Te.displayName="CommentBoxSlotPortal";const it=()=>n.useContext(H),ct=()=>{const t=h(n.useContext(f).refId);return n.useContext(_)||t},mt=()=>n.useContext(D),dt=()=>h(n.useContext(f).text),Q=()=>h(n.useContext(f).refId),ut=()=>n.useContext(f),xt=()=>n.useContext(V),$=x(null),Oe=()=>h($),z=t=>v.set($,t),ht=()=>h(F(n.useContext(f).text,n.useCallback(t=>t.length>0,[]))),ft=()=>h(F(n.useContext(f).text,n.useCallback(t=>t.length>Le,[]))),pt=()=>{const t=n.useContext(f);return(s,r)=>{const a=t[s];if(!a)throw new Error(`atom ${s} not found`);v.set(a,r)}};var Fe=(t=>(t[t.legacy=0]="legacy",t[t["with-auth"]=1]="with-auth",t))(Fe||{});const q=y("comment-mode",1),gt=()=>h(q),yt=t=>v.set(q,t),Ve=({comment:t})=>{const s=ee(),r=Q();return e.jsx(he,{pin:!!t.pin,onPinChange:async a=>{s.setQueryData(L(r),o=>le(o,i=>{if(!i)return i;let l=null;return i.pages.forEach(c=>c.data.forEach(m=>{t.id===m.id&&(l=m)})),l&&(l.pin=a),i})),await O.comment.proxy(t.id).patch({data:{pin:a}})}})};function He(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0.88em",height:"1em",viewBox:"0 0 14 16",...t,children:e.jsx("path",{fillRule:"evenodd",d:"M8 10.5L9 14H5l1-3.5L5.25 9h3.5L8 10.5zM10 6H4L2 7h10l-2-1zM9 2L7 3L5 2L4 5h6L9 2zm4.03 7.75L10 9l1 2l-2 3h3.22c.45 0 .86-.31.97-.75l.56-2.28c.14-.53-.19-1.08-.72-1.22zM4 9l-3.03.75c-.53.14-.86.69-.72 1.22l.56 2.28c.11.44.52.75.97.75H5l-2-3l1-2z",fill:"currentColor"})})}const _e=({commentId:t})=>{const[s,r]=n.useState(!1),a=Q(),o=n.useCallback(()=>{r(!1)},[]);return e.jsxs(e.Fragment,{children:[e.jsx("button",{"aria-label":"回复",className:b("absolute bottom-0 right-0 translate-x-2/3 translate-y-1/4 text-xs opacity-90","aspect-square rounded-full","box-content flex h-6 w-6 p-[2px] center","border border-slate-200 bg-zinc-100 dark:border-neutral-700 dark:bg-gray-800","invisible cursor-pointer opacity-0","group-[:hover]:visible group-[:hover]:opacity-70"),onClick:()=>{r(i=>!i)},children:e.jsx("i",{className:"icon-[mingcute--comment-line]"})}),e.jsx($e,{children:e.jsx(ze,{isReply:!0,originalRefId:a,onCompleted:o,children:e.jsx(ie,{duration:.2,children:s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-6"}),e.jsx(ce,{refId:t}),e.jsx("div",{className:"h-6"})]})})})})]})},De=n.memo(function t(s){var N;const{comment:r,className:a}=s,o=n.useMemo(()=>x(null),[]);if(typeof r=="string")return null;const{id:i,avatar:l,author:c,text:m,key:d,location:u,isWhispers:p,url:w}=r,k=typeof r.parent=="string"?r.parent:(N=r.parent)==null?void 0:N.id,B=w?e.jsx("a",{href:w,className:"ml-2 max-w-full flex-shrink-0 break-all",target:"_blank",rel:"noreferrer",children:c}):e.jsx("span",{className:"ml-2 max-w-full flex-shrink-0 break-all",children:c});return e.jsxs(e.Fragment,{children:[e.jsxs(S.Provider,{value:o,children:[e.jsx(ae.li,{initial:r.new?{opacity:0,scale:.93,y:20}:!0,transition:A,animate:r.new?{opacity:1,y:0,scale:1}:void 0,"data-comment-id":i,"data-parent-id":k,className:b("relative my-2",a),children:e.jsxs("div",{className:"group flex w-full items-stretch gap-2",children:[e.jsx("div",{className:"relative flex w-9 shrink-0 self-end",children:e.jsx(Ne,{shadow:!1,imageUrl:l,alt:`${c}'s avatar`,className:"h-9 w-9 select-none rounded-full bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800 dark:ring-zinc-800",width:24,height:24})}),e.jsxs("div",{className:b("flex flex-1 flex-col","w-full min-w-0 items-start"),children:[e.jsxs("span",{className:b("flex items-center gap-2 font-semibold text-zinc-800 dark:text-zinc-200","relative mb-2 w-full min-w-0 justify-center"),children:[e.jsxs("span",{className:"flex flex-grow flex-wrap items-center gap-2",children:[B,e.jsxs("span",{className:"flex min-w-0 flex-shrink select-none flex-wrap items-center space-x-2 self-end",children:[e.jsx("span",{className:"inline-flex flex-shrink-0 text-[0.71rem] font-medium opacity-40",children:e.jsx(me,{date:r.created})}),e.jsx("span",{className:"break-all text-[0.71rem] opacity-30",children:d}),!!u&&e.jsxs("span",{className:"min-w-0 max-w-full truncate break-all text-[0.71rem] opacity-[0.35]",children:["来自:",u]}),!!p&&e.jsx(He,{})]})]}),e.jsx("span",{className:"flex-shrink-0",children:e.jsx(Ve,{comment:r})})]}),e.jsxs("div",{className:b(Re.comment__message,"relative inline-block rounded-xl px-2 py-1 text-zinc-800 dark:text-zinc-200","rounded-bl-sm bg-zinc-600/5 dark:bg-zinc-500/20","max-w-[calc(100%-3rem)]"),children:[e.jsx(te,{options:{disabledTypes:qe,disableParsingRawHTML:!0,forceBlock:!0},children:m}),e.jsx(_e,{commentId:r.id})]})]})]})}),e.jsx(Qe,{})]}),r.children&&r.children.length>0&&e.jsx("ul",{className:"my-2 space-y-2",children:r.children.map(C=>e.jsx(t,{comment:C,className:"ml-9"},C.id))})]})}),S=n.createContext(x(null)),Qe=()=>{const t=n.useRef(null),s=n.useContext(S);return n.useLayoutEffect(()=>(v.set(s,t.current),()=>{v.set(s,null)}),[s]),e.jsx("div",{ref:t})},$e=t=>{const s=h(n.useContext(S));return s?U.createPortal(t.children,s):null},qe=["footnote","footnoteReference","image","htmlComment","htmlSelfClosing","htmlBlock"],P=()=>e.jsxs("li",{className:"relative animate-pulse list-none",children:[e.jsxs("div",{className:"group flex w-full items-stretch gap-2",children:[e.jsx("div",{className:"flex w-9 shrink-0 items-end",children:e.jsx("div",{className:"h-9 w-9 rounded-full bg-gray-300 dark:bg-neutral-600"})}),e.jsxs("div",{className:"flex w-full min-w-0 flex-1 flex-col items-start",children:[e.jsx("span",{className:"relative mb-2 flex w-full min-w-0 items-center justify-center gap-2",children:e.jsxs("span",{className:"flex flex-grow items-center gap-2",children:[e.jsx("span",{className:"ml-2 h-4 w-20 bg-gray-300 dark:bg-neutral-600"}),e.jsxs("span",{className:"flex select-none items-center space-x-2",children:[e.jsx("span",{className:"inline-flex h-4 w-20 bg-gray-300 text-[0.71rem] font-medium opacity-40 dark:bg-neutral-600"}),e.jsx("span",{className:"h-4 w-20 bg-gray-300 text-[0.71rem] opacity-30 dark:bg-neutral-600"})]})]})}),e.jsxs("div",{className:"relative flex w-full flex-col gap-2",children:[e.jsx("div",{className:"relative ml-2 inline-block h-4 w-[calc(100%-3rem)] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600"}),e.jsx("div",{className:"relative ml-2 inline-block h-4 w-[120px] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600"})]})]})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]}),T=()=>e.jsxs("div",{className:"flex min-h-[400px] flex-col space-y-4",children:[e.jsx(P,{}),e.jsx(P,{}),e.jsx(P,{}),e.jsx(P,{})]}),L=t=>["comments",t],Ke=({refId:t})=>{const s=n.useMemo(()=>L(t),[t]),{data:r,isLoading:a,fetchNextPage:o,hasNextPage:i}=ye({queryKey:s,queryFn:async({queryKey:l,pageParam:c})=>{const m=c,[,d]=l;return(await O.comment.getByRefId(d,{page:m})).$serialized},meta:{persist:!1},getNextPageParam:l=>l.pagination.hasNextPage?l.pagination.currentPage+1:void 0,getPreviousPageParam:l=>l.pagination.currentPage-1,initialPageParam:1});return a?e.jsx(T,{}):!r||!r.pages.length||!r.pages[0].data.length?e.jsx("div",{className:"flex min-h-[400px] center",children:e.jsx(Pe,{text:"这里还没有评论呢"})}):e.jsxs(we,{children:[e.jsx("ul",{className:"min-h-[400px] list-none space-y-4",children:r==null?void 0:r.pages.map((l,c)=>e.jsx(ke,{children:l.data.map(m=>e.jsx(Ue,{comment:m,refId:t},m.id))},c))}),i&&e.jsx(Be,{onLoading:o,children:e.jsx(T,{})})]})},Ue=n.memo(function({comment:s,refId:r}){return e.jsx(Me,{refId:r,children:e.jsx(De,{comment:s})})}),vt=Object.freeze(Object.defineProperty({__proto__:null,Comments:Ke,buildQueryKey:L},Symbol.toStringTag,{value:"Module"}));export{Ke as C,we as E,Le as M,Ae as a,Q as b,ut as c,xt as d,it as e,ct as f,mt as g,ft as h,dt as i,pt as j,L as k,lt as l,Te as m,Fe as n,gt as o,Me as p,vt as q,yt as s,ht as u}; +import{r as n,j as e,a as U}from"./index-HRfeE_7B.js";import{h as G,j as W,k as X,s as J,u as Y,L as Z,l as ee,m as te}from"./Markdown-tpcPSstc.js";import{i as M,h as se,a as re}from"./infiniteQueryBehavior-Ju3wkMyP.js";import{S as ne,s as A,m as ae}from"./spring-0AHu48BV.js";import{c as oe,p as le,A as ie,C as ce,a as me}from"./utils-DGmE6P1M.js";import{c as O}from"./LinkCard-gCgkDO82.js";import{c as de,a as x,j as v,d as y,u as h,s as F}from"./Divider-sIhvLlX0.js";import{c as E,a as b}from"./helper-Oi49T1hx.js";import{F as ue,u as xe}from"./FlexText-0MKUXZWJ.js";import{P as he}from"./PinIconToggle-EjPj0VvX.js";import{s as fe,g as pe}from"./Gallery-32-V3LXo.js";var ge=class extends G{constructor(t,s){super(t,s)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,s){super.setOptions({...t,behavior:M()},s)}getOptimisticResult(t){return t.behavior=M(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,s){var m,d,u,p;const{state:r}=t,a=super.createResult(t,s),{isFetching:o,isRefetching:i}=a,l=o&&((d=(m=r.fetchMeta)==null?void 0:m.fetchMore)==null?void 0:d.direction)==="forward",c=o&&((p=(u=r.fetchMeta)==null?void 0:u.fetchMore)==null?void 0:p.direction)==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:se(s,r.data),hasPreviousPage:re(s,r.data),isFetchingNextPage:l,isFetchingPreviousPage:c,isRefetching:i&&!l&&!c}}};function ye(t,s){return W(t,ge,s)}const ve=n.createContext(null),R={didCatch:!1,error:null};let Ce=class extends n.Component{constructor(s){super(s),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=R}static getDerivedStateFromError(s){return{didCatch:!0,error:s}}resetErrorBoundary(){const{error:s}=this.state;if(s!==null){for(var r,a,o=arguments.length,i=new Array(o),l=0;l0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==s.length||t.some((r,a)=>!Object.is(r,s[a]))}const be=()=>e.jsxs("div",{className:"flex w-full flex-col py-6 center",children:["Something went wrong. Please contract to"," ",e.jsx("a",{href:"mailto:i@innei.ren",className:"shiro-link--underline",children:"i@innei.ren"}),".",e.jsx(ne,{onClick:()=>{window.location.reload()},children:"Reload Page"})]}),we=({children:t})=>e.jsx(Ce,{FallbackComponent:be,onError:s=>{console.error(s)},children:t}),Ne=t=>{const{shadow:s=!0,lazy:r=!0,wrapperProps:a={},size:o,imageUrl:i,text:l,url:c,randomColor:m,radius:d,...u}=t,p=n.useRef(null),[w,k]=n.useState(!r),[B,N]=n.useState(!1),{className:C,...K}=a,g=n.useMemo(()=>(l||i)&&m&&X(J(l||i)),[l,i,m]),I=Y()?g==null?void 0:g.dark.background:g==null?void 0:g.light.background;return e.jsx("div",{className:E("box-border backface-hidden",s&&"shadow-sm",C),ref:p,style:{...o?{height:`${o||80}px`,width:`${o||80}px`}:void 0,...I?{backgroundColor:I}:void 0,...d?{borderRadius:`${d}px`}:void 0},...K,children:n.createElement(c?"a":"div",{className:"relative inline-block h-full w-full",...c?{href:c,target:"_blank",rel:"noreferrer"}:{}},i&&!B?e.jsx("div",{className:E("h-full w-full bg-cover bg-center bg-no-repeat transition-opacity duration-300",C),children:e.jsx("img",{src:i,style:{opacity:w?1:0,...d?{borderRadius:`${d}px`}:void 0},height:o,width:o,onLoad:()=>k(!0),onError:()=>N(!0),loading:r?"lazy":"eager",...u,className:E("aspect-square rounded-full duration-200",u.className)})}):l?e.jsx("div",{className:"relative flex h-full w-full flex-grow select-none items-center justify-center",children:e.jsx(ue,{scale:.5,text:l})}):null)})},Pe=({text:t})=>e.jsx("div",{className:"flex h-[100px] items-center justify-center text-lg font-medium",children:t||"您当前所在地区暂不支持此功能"}),ke=oe({from:{opacity:1e-5,scale:.96,y:10},to:{y:0,scale:1,opacity:1},preset:A}),Be=({onLoading:t,children:s,className:r})=>{const{ref:a}=de({rootMargin:"1px",onChange(o){o&&t()}});return e.jsx("div",{className:r,ref:a,children:s??e.jsx(Z,{})})},Ee="_comment__message_1lfmp_1",Re={comment__message:Ee},Se=["在这里说点什么呢。","小可爱,你想说点什么呢?","或许此地可以留下足迹","你的留言是我前进的动力!","说点什么吧,我会好好听的。","来一发评论,送你一个小星星!","你的评论会让我更加努力哦!","留下你的足迹,让我知道你来过。","我在这里等你的留言呢!","你的评论是我最大的动力!","来一发评论,让我知道你的想法吧!"],lt=()=>fe(Se),Le=500,j="comment-",Ie=()=>({refId:x(""),text:x(""),author:y(`${j}author`,""),mail:y(`${j}mail`,""),url:y(`${j}url`,""),avatar:x(""),source:x(""),isWhisper:y(`${j}is-whisper`,!1),syncToRecently:y(`${j}sync-to-recently`,!0)}),f=n.createContext(null),V=n.createContext(null),Me=t=>{const{refId:s,children:r,afterSubmit:a,initialValue:o}=t,i=pe(()=>({...Ie(),refId:x(s)}));return xe(()=>{o&&v.set(i.text,o)}),e.jsx(f.Provider,{value:i,children:e.jsx(V.Provider,{value:n.useMemo(()=>({afterSubmit:a}),[a]),children:r})},s)},H=n.createContext(!1),_=n.createContext(""),D=n.createContext(null),ze=t=>{const{isReply:s,originalRefId:r,onCompleted:a,children:o}=t;return e.jsx(_.Provider,{value:r,children:e.jsx(H.Provider,{value:s,children:e.jsx(D.Provider,{value:a||null,children:o})})})},Te=n.memo(t=>{const{children:s}=t;return n.useEffect(()=>(z(s),()=>{z(null)}),[s]),null}),Ae=n.memo(()=>Oe());Ae.displayName="CommentBoxSlotProvider";Te.displayName="CommentBoxSlotPortal";const it=()=>n.useContext(H),ct=()=>{const t=h(n.useContext(f).refId);return n.useContext(_)||t},mt=()=>n.useContext(D),dt=()=>h(n.useContext(f).text),Q=()=>h(n.useContext(f).refId),ut=()=>n.useContext(f),xt=()=>n.useContext(V),$=x(null),Oe=()=>h($),z=t=>v.set($,t),ht=()=>h(F(n.useContext(f).text,n.useCallback(t=>t.length>0,[]))),ft=()=>h(F(n.useContext(f).text,n.useCallback(t=>t.length>Le,[]))),pt=()=>{const t=n.useContext(f);return(s,r)=>{const a=t[s];if(!a)throw new Error(`atom ${s} not found`);v.set(a,r)}};var Fe=(t=>(t[t.legacy=0]="legacy",t[t["with-auth"]=1]="with-auth",t))(Fe||{});const q=y("comment-mode",1),gt=()=>h(q),yt=t=>v.set(q,t),Ve=({comment:t})=>{const s=ee(),r=Q();return e.jsx(he,{pin:!!t.pin,onPinChange:async a=>{s.setQueryData(L(r),o=>le(o,i=>{if(!i)return i;let l=null;return i.pages.forEach(c=>c.data.forEach(m=>{t.id===m.id&&(l=m)})),l&&(l.pin=a),i})),await O.comment.proxy(t.id).patch({data:{pin:a}})}})};function He(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0.88em",height:"1em",viewBox:"0 0 14 16",...t,children:e.jsx("path",{fillRule:"evenodd",d:"M8 10.5L9 14H5l1-3.5L5.25 9h3.5L8 10.5zM10 6H4L2 7h10l-2-1zM9 2L7 3L5 2L4 5h6L9 2zm4.03 7.75L10 9l1 2l-2 3h3.22c.45 0 .86-.31.97-.75l.56-2.28c.14-.53-.19-1.08-.72-1.22zM4 9l-3.03.75c-.53.14-.86.69-.72 1.22l.56 2.28c.11.44.52.75.97.75H5l-2-3l1-2z",fill:"currentColor"})})}const _e=({commentId:t})=>{const[s,r]=n.useState(!1),a=Q(),o=n.useCallback(()=>{r(!1)},[]);return e.jsxs(e.Fragment,{children:[e.jsx("button",{"aria-label":"回复",className:b("absolute bottom-0 right-0 translate-x-2/3 translate-y-1/4 text-xs opacity-90","aspect-square rounded-full","box-content flex h-6 w-6 p-[2px] center","border border-slate-200 bg-zinc-100 dark:border-neutral-700 dark:bg-gray-800","invisible cursor-pointer opacity-0","group-[:hover]:visible group-[:hover]:opacity-70"),onClick:()=>{r(i=>!i)},children:e.jsx("i",{className:"icon-[mingcute--comment-line]"})}),e.jsx($e,{children:e.jsx(ze,{isReply:!0,originalRefId:a,onCompleted:o,children:e.jsx(ie,{duration:.2,children:s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-6"}),e.jsx(ce,{refId:t}),e.jsx("div",{className:"h-6"})]})})})})]})},De=n.memo(function t(s){var N;const{comment:r,className:a}=s,o=n.useMemo(()=>x(null),[]);if(typeof r=="string")return null;const{id:i,avatar:l,author:c,text:m,key:d,location:u,isWhispers:p,url:w}=r,k=typeof r.parent=="string"?r.parent:(N=r.parent)==null?void 0:N.id,B=w?e.jsx("a",{href:w,className:"ml-2 max-w-full flex-shrink-0 break-all",target:"_blank",rel:"noreferrer",children:c}):e.jsx("span",{className:"ml-2 max-w-full flex-shrink-0 break-all",children:c});return e.jsxs(e.Fragment,{children:[e.jsxs(S.Provider,{value:o,children:[e.jsx(ae.li,{initial:r.new?{opacity:0,scale:.93,y:20}:!0,transition:A,animate:r.new?{opacity:1,y:0,scale:1}:void 0,"data-comment-id":i,"data-parent-id":k,className:b("relative my-2",a),children:e.jsxs("div",{className:"group flex w-full items-stretch gap-2",children:[e.jsx("div",{className:"relative flex w-9 shrink-0 self-end",children:e.jsx(Ne,{shadow:!1,imageUrl:l,alt:`${c}'s avatar`,className:"h-9 w-9 select-none rounded-full bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800 dark:ring-zinc-800",width:24,height:24})}),e.jsxs("div",{className:b("flex flex-1 flex-col","w-full min-w-0 items-start"),children:[e.jsxs("span",{className:b("flex items-center gap-2 font-semibold text-zinc-800 dark:text-zinc-200","relative mb-2 w-full min-w-0 justify-center"),children:[e.jsxs("span",{className:"flex flex-grow flex-wrap items-center gap-2",children:[B,e.jsxs("span",{className:"flex min-w-0 flex-shrink select-none flex-wrap items-center space-x-2 self-end",children:[e.jsx("span",{className:"inline-flex flex-shrink-0 text-[0.71rem] font-medium opacity-40",children:e.jsx(me,{date:r.created})}),e.jsx("span",{className:"break-all text-[0.71rem] opacity-30",children:d}),!!u&&e.jsxs("span",{className:"min-w-0 max-w-full truncate break-all text-[0.71rem] opacity-[0.35]",children:["来自:",u]}),!!p&&e.jsx(He,{})]})]}),e.jsx("span",{className:"flex-shrink-0",children:e.jsx(Ve,{comment:r})})]}),e.jsxs("div",{className:b(Re.comment__message,"relative inline-block rounded-xl px-2 py-1 text-zinc-800 dark:text-zinc-200","rounded-bl-sm bg-zinc-600/5 dark:bg-zinc-500/20","max-w-[calc(100%-3rem)]"),children:[e.jsx(te,{options:{disabledTypes:qe,disableParsingRawHTML:!0,forceBlock:!0},children:m}),e.jsx(_e,{commentId:r.id})]})]})]})}),e.jsx(Qe,{})]}),r.children&&r.children.length>0&&e.jsx("ul",{className:"my-2 space-y-2",children:r.children.map(C=>e.jsx(t,{comment:C,className:"ml-9"},C.id))})]})}),S=n.createContext(x(null)),Qe=()=>{const t=n.useRef(null),s=n.useContext(S);return n.useLayoutEffect(()=>(v.set(s,t.current),()=>{v.set(s,null)}),[s]),e.jsx("div",{ref:t})},$e=t=>{const s=h(n.useContext(S));return s?U.createPortal(t.children,s):null},qe=["footnote","footnoteReference","image","htmlComment","htmlSelfClosing","htmlBlock"],P=()=>e.jsxs("li",{className:"relative animate-pulse list-none",children:[e.jsxs("div",{className:"group flex w-full items-stretch gap-2",children:[e.jsx("div",{className:"flex w-9 shrink-0 items-end",children:e.jsx("div",{className:"h-9 w-9 rounded-full bg-gray-300 dark:bg-neutral-600"})}),e.jsxs("div",{className:"flex w-full min-w-0 flex-1 flex-col items-start",children:[e.jsx("span",{className:"relative mb-2 flex w-full min-w-0 items-center justify-center gap-2",children:e.jsxs("span",{className:"flex flex-grow items-center gap-2",children:[e.jsx("span",{className:"ml-2 h-4 w-20 bg-gray-300 dark:bg-neutral-600"}),e.jsxs("span",{className:"flex select-none items-center space-x-2",children:[e.jsx("span",{className:"inline-flex h-4 w-20 bg-gray-300 text-[0.71rem] font-medium opacity-40 dark:bg-neutral-600"}),e.jsx("span",{className:"h-4 w-20 bg-gray-300 text-[0.71rem] opacity-30 dark:bg-neutral-600"})]})]})}),e.jsxs("div",{className:"relative flex w-full flex-col gap-2",children:[e.jsx("div",{className:"relative ml-2 inline-block h-4 w-[calc(100%-3rem)] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600"}),e.jsx("div",{className:"relative ml-2 inline-block h-4 w-[120px] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600"})]})]})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]}),T=()=>e.jsxs("div",{className:"flex min-h-[400px] flex-col space-y-4",children:[e.jsx(P,{}),e.jsx(P,{}),e.jsx(P,{}),e.jsx(P,{})]}),L=t=>["comments",t],Ke=({refId:t})=>{const s=n.useMemo(()=>L(t),[t]),{data:r,isLoading:a,fetchNextPage:o,hasNextPage:i}=ye({queryKey:s,queryFn:async({queryKey:l,pageParam:c})=>{const m=c,[,d]=l;return(await O.comment.getByRefId(d,{page:m})).$serialized},meta:{persist:!1},getNextPageParam:l=>l.pagination.hasNextPage?l.pagination.currentPage+1:void 0,getPreviousPageParam:l=>l.pagination.currentPage-1,initialPageParam:1});return a?e.jsx(T,{}):!r||!r.pages.length||!r.pages[0].data.length?e.jsx("div",{className:"flex min-h-[400px] center",children:e.jsx(Pe,{text:"这里还没有评论呢"})}):e.jsxs(we,{children:[e.jsx("ul",{className:"min-h-[400px] list-none space-y-4",children:r==null?void 0:r.pages.map((l,c)=>e.jsx(ke,{children:l.data.map(m=>e.jsx(Ue,{comment:m,refId:t},m.id))},c))}),i&&e.jsx(Be,{onLoading:o,children:e.jsx(T,{})})]})},Ue=n.memo(function({comment:s,refId:r}){return e.jsx(Me,{refId:r,children:e.jsx(De,{comment:s})})}),vt=Object.freeze(Object.defineProperty({__proto__:null,Comments:Ke,buildQueryKey:L},Symbol.toStringTag,{value:"Module"}));export{Ke as C,we as E,Le as M,Ae as a,Q as b,ut as c,xt as d,it as e,ct as f,mt as g,ft as h,dt as i,pt as j,L as k,lt as l,Te as m,Fe as n,gt as o,Me as p,vt as q,yt as s,ht as u}; diff --git a/assets/Divider-ZvsSiSkZ.js b/assets/Divider-sIhvLlX0.js similarity index 99% rename from assets/Divider-ZvsSiSkZ.js rename to assets/Divider-sIhvLlX0.js index 69c2bcb773..ac98c68c8a 100644 --- a/assets/Divider-ZvsSiSkZ.js +++ b/assets/Divider-sIhvLlX0.js @@ -1 +1 @@ -import{r as M,R as te,j as L}from"./index-Qg-bAq5J.js";import{c as ne}from"./helper-Oi49T1hx.js";var m={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let ie=0;function Y(e,n){const r=`atom${++ie}`,a={toString:()=>r};return typeof e=="function"?a.read=e:(a.init=e,a.read=function(g){return g(this)},a.write=function(g,c,h){return c(this,typeof h=="function"?h(g(this)):h)}),n&&(a.write=n),a}const k=e=>"init"in e,J=e=>!!e.write,$=new WeakMap,ce=(e,n)=>{$.set(e,n),e.catch(()=>{}).finally(()=>$.delete(e))},K=(e,n)=>{const r=$.get(e);r&&($.delete(e),r(n))},X=(e,n)=>{e.status="fulfilled",e.value=n},Z=(e,n)=>{e.status="rejected",e.reason=n},ue=e=>typeof(e==null?void 0:e.then)=="function",x=(e,n)=>!!e&&"v"in e&&"v"in n&&Object.is(e.v,n.v),Q=(e,n)=>!!e&&"e"in e&&"e"in n&&Object.is(e.e,n.e),T=e=>!!e&&"v"in e&&e.v instanceof Promise,de=(e,n)=>"v"in e&&"v"in n&&e.v.orig&&e.v.orig===n.v.orig,U=e=>{if("e"in e)throw e.e;return e.v},fe=()=>{const e=new WeakMap,n=new WeakMap,r=new Map;let a,g;(m?"production":void 0)!=="production"&&(a=new Set,g=new Set);const c=t=>e.get(t),h=(t,s)=>{(m?"production":void 0)!=="production"&&Object.freeze(s);const u=e.get(t);if(e.set(t,s),r.has(t)||r.set(t,u),T(u)){const o="v"in s?s.v instanceof Promise?s.v:Promise.resolve(s.v):Promise.reject(s.e);u.v!==o&&K(u.v,o)}},f=(t,s,u)=>{const o=new Map;let d=!1;u.forEach((v,i)=>{!v&&i===t&&(v=s),v?(o.set(i,v),s.d.get(i)!==v&&(d=!0)):(m?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(d||s.d.size!==o.size)&&(s.d=o)},w=(t,s,u)=>{const o=c(t),d={d:(o==null?void 0:o.d)||new Map,v:s};if(u&&f(t,d,u),x(o,d)&&o.d===d.d)return o;if(T(o)&&T(d)&&de(o,d)){if(o.d===d.d)return o;d.v=o.v}return h(t,d),d},_=(t,s,u,o)=>{if(ue(s)){let d;const v=()=>{const l=c(t);if(!T(l)||l.v!==i)return;const S=w(t,i,u);n.has(t)&&l.d!==S.d&&N(t,S,l.d)},i=new Promise((l,S)=>{let p=!1;s.then(b=>{p||(p=!0,X(i,b),l(b),v())},b=>{p||(p=!0,Z(i,b),S(b),v())}),d=b=>{p||(p=!0,b.then(y=>X(i,y),y=>Z(i,y)),l(b))}});return i.orig=s,i.status="pending",ce(i,l=>{l&&d(l),o==null||o()}),w(t,i,u)}return w(t,s,u)},E=(t,s,u)=>{const o=c(t),d={d:(o==null?void 0:o.d)||new Map,e:s};return u&&f(t,d,u),Q(o,d)&&o.d===d.d?o:(h(t,d),d)},A=(t,s)=>{const u=c(t);if(!s&&u&&(n.has(t)||Array.from(u.d).every(([p,b])=>{if(p===t)return!0;const y=A(p);return y===b||x(y,b)})))return u;const o=new Map;let d=!0;const v=p=>{if(p===t){const y=c(p);if(y)return o.set(p,y),U(y);if(k(p))return o.set(p,void 0),p.init;throw new Error("no atom init")}const b=A(p);return o.set(p,b),U(b)};let i,l;const S={get signal(){return i||(i=new AbortController),i.signal},get setSelf(){return(m?"production":void 0)!=="production"&&!J(t)&&console.warn("setSelf function cannot be used with read-only atom"),!l&&J(t)&&(l=(...p)=>{if((m?"production":void 0)!=="production"&&d&&console.warn("setSelf function cannot be called in sync"),!d)return R(t,...p)}),l}};try{const p=t.read(v,S);return _(t,p,o,()=>i==null?void 0:i.abort())}catch(p){return E(t,p,o)}finally{d=!1}},D=t=>U(A(t)),V=t=>{let s=n.get(t);return s||(s=I(t)),s},O=(t,s)=>!s.l.size&&(!s.t.size||s.t.size===1&&s.t.has(t)),B=t=>{const s=n.get(t);s&&O(t,s)&&j(t)},P=t=>{const s=new Map,u=new WeakMap,o=i=>{var l;const S=new Set((l=n.get(i))==null?void 0:l.t);return r.forEach((p,b)=>{var y;(y=c(b))!=null&&y.d.has(i)&&S.add(b)}),S},d=i=>{o(i).forEach(l=>{l!==i&&(s.set(l,(s.get(l)||new Set).add(i)),u.set(l,(u.get(l)||0)+1),d(l))})};d(t);const v=i=>{o(i).forEach(l=>{var S;if(l!==i){let p=u.get(l);if(p&&u.set(l,--p),!p){let b=!!((S=s.get(l))!=null&&S.size);if(b){const y=c(l),se=A(l,!0);b=!x(y,se)}b||s.forEach(y=>y.delete(l))}v(l)}})};v(t)},C=(t,...s)=>{let u=!0;const o=i=>U(A(i)),d=(i,...l)=>{let S;if(i===t){if(!k(i))throw new Error("atom not writable");const p=c(i),b=_(i,l[0]);x(p,b)||P(i)}else S=C(i,...l);if(!u){const p=z();(m?"production":void 0)!=="production"&&a.forEach(b=>b({type:"async-write",flushed:p}))}return S},v=t.write(o,d,...s);return u=!1,v},R=(t,...s)=>{const u=C(t,...s),o=z();return(m?"production":void 0)!=="production"&&a.forEach(d=>d({type:"write",flushed:o})),u},I=(t,s,u)=>{var o;const d=u||[];(o=c(t))==null||o.d.forEach((i,l)=>{const S=n.get(l);S?S.t.add(t):l!==t&&I(l,t,d)}),A(t);const v={t:new Set(s&&[s]),l:new Set};if(n.set(t,v),(m?"production":void 0)!=="production"&&g.add(t),J(t)&&t.onMount){const{onMount:i}=t;d.push(()=>{const l=i((...S)=>R(t,...S));l&&(v.u=l)})}return u||d.forEach(i=>i()),v},j=t=>{var s;const u=(s=n.get(t))==null?void 0:s.u;u&&u(),n.delete(t),(m?"production":void 0)!=="production"&&g.delete(t);const o=c(t);o?(T(o)&&K(o.v),o.d.forEach((d,v)=>{if(v!==t){const i=n.get(v);i&&(i.t.delete(t),O(v,i)&&j(v))}})):(m?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",t)},N=(t,s,u)=>{const o=new Set(s.d.keys());u==null||u.forEach((d,v)=>{if(o.has(v)){o.delete(v);return}const i=n.get(v);i&&(i.t.delete(t),O(v,i)&&j(v))}),o.forEach(d=>{const v=n.get(d);v?v.t.add(t):n.has(t)&&I(d,t)})},z=()=>{let t;for((m?"production":void 0)!=="production"&&(t=new Set);r.size;){const s=Array.from(r);r.clear(),s.forEach(([u,o])=>{const d=c(u);if(d){const v=n.get(u);v&&d.d!==(o==null?void 0:o.d)&&N(u,d,o==null?void 0:o.d),v&&!(!T(o)&&(x(o,d)||Q(o,d)))&&(v.l.forEach(i=>i()),(m?"production":void 0)!=="production"&&t.add(u))}else(m?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((m?"production":void 0)!=="production")return t},H=(t,s)=>{const u=V(t),o=z(),d=u.l;return d.add(s),(m?"production":void 0)!=="production"&&a.forEach(v=>v({type:"sub",flushed:o})),()=>{d.delete(s),B(t),(m?"production":void 0)!=="production"&&a.forEach(v=>v({type:"unsub"}))}};return(m?"production":void 0)!=="production"?{get:D,set:R,sub:H,dev_subscribe_store:(t,s)=>{if(s!==2)throw new Error("The current StoreListener revision is 2.");return a.add(t),()=>{a.delete(t)}},dev_get_mounted_atoms:()=>g.values(),dev_get_atom_state:t=>e.get(t),dev_get_mounted:t=>n.get(t),dev_restore_atoms:t=>{for(const[u,o]of t)k(u)&&(_(u,o),P(u));const s=z();a.forEach(u=>u({type:"restore",flushed:s}))}}:{get:D,set:R,sub:H}};let F;(m?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const oe=()=>(F||((m?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),F=fe()),F);var le={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ae=M.createContext(void 0),re=e=>{const n=M.useContext(ae);return(e==null?void 0:e.store)||n||oe()},ve=e=>typeof(e==null?void 0:e.then)=="function",he=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)});function we(e,n){const r=re(n),[[a,g,c],h]=M.useReducer(_=>{const E=r.get(e);return Object.is(_[0],E)&&_[1]===r&&_[2]===e?_:[E,r,e]},void 0,()=>[r.get(e),r,e]);let f=a;(g!==r||c!==e)&&(h(),f=r.get(e));const w=n==null?void 0:n.delay;return M.useEffect(()=>{const _=r.sub(e,()=>{if(typeof w=="number"){setTimeout(h,w);return}h()});return h(),_},[r,e,w]),M.useDebugValue(f),ve(f)?he(f):f}function ge(e,n){const r=re(n);return M.useCallback((...g)=>{if((le?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return r.set(e,...g)},[r,e])}function Te(e,n){return[we(e,n),ge(e,n)]}var pe={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _e=Symbol(),q=(e,n,r)=>(n.has(r)?n:n.set(r,e())).get(r),be=new WeakMap,Ee=(e,n,r,a)=>{const g=q(()=>new WeakMap,be,n),c=q(()=>new WeakMap,g,r);return q(e,c,a)};function Ve(e,n,r=Object.is){return Ee(()=>{const a=Symbol(),g=([h,f])=>{if(f===a)return n(h);const w=n(h,f);return r(f,w)?f:w},c=Y(h=>{const f=h(c),w=h(e);return w instanceof Promise||f instanceof Promise?Promise.all([w,f]).then(g):g([w,f])});return c.init=a,c},e,n,r)}const Se=e=>typeof(e==null?void 0:e.then)=="function";function me(e){let n,r;const a={getItem:(g,c)=>{var h,f;const w=E=>{if(E=E||"",n!==E){try{r=JSON.parse(E)}catch{return c}n=E}return r},_=(f=(h=e())==null?void 0:h.getItem(g))!=null?f:null;return Se(_)?_.then(w):w(_)},setItem:(g,c)=>{var h;return(h=e())==null?void 0:h.setItem(g,JSON.stringify(c))},removeItem:g=>{var c;return(c=e())==null?void 0:c.removeItem(g)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(a.subscribe=(g,c,h)=>{if(!(e()instanceof window.Storage))return()=>{};const f=w=>{if(w.storageArea===e()&&w.key===g){let _;try{_=JSON.parse(w.newValue||"")}catch{_=h}c(_)}};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}}),a}const ye=me(()=>typeof window<"u"?window.localStorage:void 0);function Ce(e,n,r=ye,a){const g=a==null?void 0:a.getOnInit,c=Y(g?r.getItem(e,n):n);return(pe?"production":void 0)!=="production"&&(c.debugPrivate=!0),c.onMount=f=>{g||f(r.getItem(e,n));let w;return r.subscribe&&(w=r.subscribe(e,f,n)),w},Y(f=>f(c),(f,w,_)=>{const E=typeof _=="function"?_(f(c)):_;return E===_e?(w(c,n),r.removeItem(e)):E instanceof Promise?E.then(A=>(w(c,A),r.setItem(e,A))):(w(c,E),r.setItem(e,E))})}const xe=oe();var G=new Map,W=new WeakMap,ee=0,Ae=void 0;function Me(e){return e?(W.has(e)||(ee+=1,W.set(e,ee.toString())),W.get(e)):"0"}function Re(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?Me(e.root):e[n]}`).toString()}function Ie(e){let n=Re(e),r=G.get(n);if(!r){const a=new Map;let g;const c=new IntersectionObserver(h=>{h.forEach(f=>{var w;const _=f.isIntersecting&&g.some(E=>f.intersectionRatio>=E);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=_),(w=a.get(f.target))==null||w.forEach(E=>{E(_,f)})})},e);g=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:n,observer:c,elements:a},G.set(n,r)}return r}function Oe(e,n,r={},a=Ae){if(typeof window.IntersectionObserver>"u"&&a!==void 0){const w=e.getBoundingClientRect();return n(a,{isIntersecting:a,target:e,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:w,intersectionRect:w,rootBounds:w}),()=>{}}const{id:g,observer:c,elements:h}=Ie(r);let f=h.get(e)||[];return h.has(e)||h.set(e,f),f.push(n),c.observe(e),function(){f.splice(f.indexOf(n),1),f.length===0&&(h.delete(e),c.unobserve(e)),h.size===0&&(c.disconnect(),G.delete(g))}}function Pe({threshold:e,delay:n,trackVisibility:r,rootMargin:a,root:g,triggerOnce:c,skip:h,initialInView:f,fallbackInView:w,onChange:_}={}){var E;const[A,D]=M.useState(null),V=M.useRef(),[O,B]=M.useState({inView:!!f,entry:void 0});V.current=_,M.useEffect(()=>{if(h||!A)return;let I;return I=Oe(A,(j,N)=>{B({inView:j,entry:N}),V.current&&V.current(j,N),N.isIntersecting&&c&&I&&(I(),I=void 0)},{root:g,rootMargin:a,threshold:e,trackVisibility:r,delay:n},w),()=>{I&&I()}},[Array.isArray(e)?e.toString():e,A,g,a,c,h,r,w,n]);const P=(E=O.entry)==null?void 0:E.target,C=M.useRef();!A&&P&&!c&&!h&&C.current!==P&&(C.current=P,B({inView:!!f,entry:void 0}));const R=[D,O.inView,O.entry];return R.ref=R[0],R.inView=R[1],R.entry=R[2],R}const Le=e=>{const{placeholder:n=null,offset:r=0,...a}=e,{ref:g,inView:c}=Pe({triggerOnce:!0,rootMargin:`${r||0}px`,...a}),[h,f]=te.useState(!1);return M.useEffect(()=>{c&&f(!0)},[c]),L.jsxs(L.Fragment,{children:[!h&&L.jsx("span",{"data-hide-print":!0,"data-testid":"lazyload-indicator",ref:g}),c?e.children:n]})},De=()=>{const e=M.useRef(!1);return M.useEffect(()=>()=>{e.current=!0},[]),e},Be=e=>{const{className:n,...r}=e;return L.jsx("hr",{className:ne("my-4 h-[0.5px] border-0 bg-always-black !bg-opacity-30 dark:bg-always-white",n),...r})},ze=e=>{const{className:n,...r}=e;return L.jsx("span",{className:ne("mx-4 inline-block h-full w-[0.5px] select-none bg-always-black !bg-opacity-30 text-transparent dark:bg-always-white",n),...r,children:"w"})};export{Be as D,Le as L,Y as a,De as b,Pe as c,Ce as d,ge as e,ze as f,re as g,Te as h,oe as i,xe as j,Ve as s,we as u}; +import{r as M,R as te,j as L}from"./index-HRfeE_7B.js";import{c as ne}from"./helper-Oi49T1hx.js";var m={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let ie=0;function Y(e,n){const r=`atom${++ie}`,a={toString:()=>r};return typeof e=="function"?a.read=e:(a.init=e,a.read=function(g){return g(this)},a.write=function(g,c,h){return c(this,typeof h=="function"?h(g(this)):h)}),n&&(a.write=n),a}const k=e=>"init"in e,J=e=>!!e.write,$=new WeakMap,ce=(e,n)=>{$.set(e,n),e.catch(()=>{}).finally(()=>$.delete(e))},K=(e,n)=>{const r=$.get(e);r&&($.delete(e),r(n))},X=(e,n)=>{e.status="fulfilled",e.value=n},Z=(e,n)=>{e.status="rejected",e.reason=n},ue=e=>typeof(e==null?void 0:e.then)=="function",x=(e,n)=>!!e&&"v"in e&&"v"in n&&Object.is(e.v,n.v),Q=(e,n)=>!!e&&"e"in e&&"e"in n&&Object.is(e.e,n.e),T=e=>!!e&&"v"in e&&e.v instanceof Promise,de=(e,n)=>"v"in e&&"v"in n&&e.v.orig&&e.v.orig===n.v.orig,U=e=>{if("e"in e)throw e.e;return e.v},fe=()=>{const e=new WeakMap,n=new WeakMap,r=new Map;let a,g;(m?"production":void 0)!=="production"&&(a=new Set,g=new Set);const c=t=>e.get(t),h=(t,s)=>{(m?"production":void 0)!=="production"&&Object.freeze(s);const u=e.get(t);if(e.set(t,s),r.has(t)||r.set(t,u),T(u)){const o="v"in s?s.v instanceof Promise?s.v:Promise.resolve(s.v):Promise.reject(s.e);u.v!==o&&K(u.v,o)}},f=(t,s,u)=>{const o=new Map;let d=!1;u.forEach((v,i)=>{!v&&i===t&&(v=s),v?(o.set(i,v),s.d.get(i)!==v&&(d=!0)):(m?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(d||s.d.size!==o.size)&&(s.d=o)},w=(t,s,u)=>{const o=c(t),d={d:(o==null?void 0:o.d)||new Map,v:s};if(u&&f(t,d,u),x(o,d)&&o.d===d.d)return o;if(T(o)&&T(d)&&de(o,d)){if(o.d===d.d)return o;d.v=o.v}return h(t,d),d},_=(t,s,u,o)=>{if(ue(s)){let d;const v=()=>{const l=c(t);if(!T(l)||l.v!==i)return;const S=w(t,i,u);n.has(t)&&l.d!==S.d&&N(t,S,l.d)},i=new Promise((l,S)=>{let p=!1;s.then(b=>{p||(p=!0,X(i,b),l(b),v())},b=>{p||(p=!0,Z(i,b),S(b),v())}),d=b=>{p||(p=!0,b.then(y=>X(i,y),y=>Z(i,y)),l(b))}});return i.orig=s,i.status="pending",ce(i,l=>{l&&d(l),o==null||o()}),w(t,i,u)}return w(t,s,u)},E=(t,s,u)=>{const o=c(t),d={d:(o==null?void 0:o.d)||new Map,e:s};return u&&f(t,d,u),Q(o,d)&&o.d===d.d?o:(h(t,d),d)},A=(t,s)=>{const u=c(t);if(!s&&u&&(n.has(t)||Array.from(u.d).every(([p,b])=>{if(p===t)return!0;const y=A(p);return y===b||x(y,b)})))return u;const o=new Map;let d=!0;const v=p=>{if(p===t){const y=c(p);if(y)return o.set(p,y),U(y);if(k(p))return o.set(p,void 0),p.init;throw new Error("no atom init")}const b=A(p);return o.set(p,b),U(b)};let i,l;const S={get signal(){return i||(i=new AbortController),i.signal},get setSelf(){return(m?"production":void 0)!=="production"&&!J(t)&&console.warn("setSelf function cannot be used with read-only atom"),!l&&J(t)&&(l=(...p)=>{if((m?"production":void 0)!=="production"&&d&&console.warn("setSelf function cannot be called in sync"),!d)return R(t,...p)}),l}};try{const p=t.read(v,S);return _(t,p,o,()=>i==null?void 0:i.abort())}catch(p){return E(t,p,o)}finally{d=!1}},D=t=>U(A(t)),V=t=>{let s=n.get(t);return s||(s=I(t)),s},O=(t,s)=>!s.l.size&&(!s.t.size||s.t.size===1&&s.t.has(t)),B=t=>{const s=n.get(t);s&&O(t,s)&&j(t)},P=t=>{const s=new Map,u=new WeakMap,o=i=>{var l;const S=new Set((l=n.get(i))==null?void 0:l.t);return r.forEach((p,b)=>{var y;(y=c(b))!=null&&y.d.has(i)&&S.add(b)}),S},d=i=>{o(i).forEach(l=>{l!==i&&(s.set(l,(s.get(l)||new Set).add(i)),u.set(l,(u.get(l)||0)+1),d(l))})};d(t);const v=i=>{o(i).forEach(l=>{var S;if(l!==i){let p=u.get(l);if(p&&u.set(l,--p),!p){let b=!!((S=s.get(l))!=null&&S.size);if(b){const y=c(l),se=A(l,!0);b=!x(y,se)}b||s.forEach(y=>y.delete(l))}v(l)}})};v(t)},C=(t,...s)=>{let u=!0;const o=i=>U(A(i)),d=(i,...l)=>{let S;if(i===t){if(!k(i))throw new Error("atom not writable");const p=c(i),b=_(i,l[0]);x(p,b)||P(i)}else S=C(i,...l);if(!u){const p=z();(m?"production":void 0)!=="production"&&a.forEach(b=>b({type:"async-write",flushed:p}))}return S},v=t.write(o,d,...s);return u=!1,v},R=(t,...s)=>{const u=C(t,...s),o=z();return(m?"production":void 0)!=="production"&&a.forEach(d=>d({type:"write",flushed:o})),u},I=(t,s,u)=>{var o;const d=u||[];(o=c(t))==null||o.d.forEach((i,l)=>{const S=n.get(l);S?S.t.add(t):l!==t&&I(l,t,d)}),A(t);const v={t:new Set(s&&[s]),l:new Set};if(n.set(t,v),(m?"production":void 0)!=="production"&&g.add(t),J(t)&&t.onMount){const{onMount:i}=t;d.push(()=>{const l=i((...S)=>R(t,...S));l&&(v.u=l)})}return u||d.forEach(i=>i()),v},j=t=>{var s;const u=(s=n.get(t))==null?void 0:s.u;u&&u(),n.delete(t),(m?"production":void 0)!=="production"&&g.delete(t);const o=c(t);o?(T(o)&&K(o.v),o.d.forEach((d,v)=>{if(v!==t){const i=n.get(v);i&&(i.t.delete(t),O(v,i)&&j(v))}})):(m?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",t)},N=(t,s,u)=>{const o=new Set(s.d.keys());u==null||u.forEach((d,v)=>{if(o.has(v)){o.delete(v);return}const i=n.get(v);i&&(i.t.delete(t),O(v,i)&&j(v))}),o.forEach(d=>{const v=n.get(d);v?v.t.add(t):n.has(t)&&I(d,t)})},z=()=>{let t;for((m?"production":void 0)!=="production"&&(t=new Set);r.size;){const s=Array.from(r);r.clear(),s.forEach(([u,o])=>{const d=c(u);if(d){const v=n.get(u);v&&d.d!==(o==null?void 0:o.d)&&N(u,d,o==null?void 0:o.d),v&&!(!T(o)&&(x(o,d)||Q(o,d)))&&(v.l.forEach(i=>i()),(m?"production":void 0)!=="production"&&t.add(u))}else(m?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((m?"production":void 0)!=="production")return t},H=(t,s)=>{const u=V(t),o=z(),d=u.l;return d.add(s),(m?"production":void 0)!=="production"&&a.forEach(v=>v({type:"sub",flushed:o})),()=>{d.delete(s),B(t),(m?"production":void 0)!=="production"&&a.forEach(v=>v({type:"unsub"}))}};return(m?"production":void 0)!=="production"?{get:D,set:R,sub:H,dev_subscribe_store:(t,s)=>{if(s!==2)throw new Error("The current StoreListener revision is 2.");return a.add(t),()=>{a.delete(t)}},dev_get_mounted_atoms:()=>g.values(),dev_get_atom_state:t=>e.get(t),dev_get_mounted:t=>n.get(t),dev_restore_atoms:t=>{for(const[u,o]of t)k(u)&&(_(u,o),P(u));const s=z();a.forEach(u=>u({type:"restore",flushed:s}))}}:{get:D,set:R,sub:H}};let F;(m?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const oe=()=>(F||((m?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),F=fe()),F);var le={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ae=M.createContext(void 0),re=e=>{const n=M.useContext(ae);return(e==null?void 0:e.store)||n||oe()},ve=e=>typeof(e==null?void 0:e.then)=="function",he=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)});function we(e,n){const r=re(n),[[a,g,c],h]=M.useReducer(_=>{const E=r.get(e);return Object.is(_[0],E)&&_[1]===r&&_[2]===e?_:[E,r,e]},void 0,()=>[r.get(e),r,e]);let f=a;(g!==r||c!==e)&&(h(),f=r.get(e));const w=n==null?void 0:n.delay;return M.useEffect(()=>{const _=r.sub(e,()=>{if(typeof w=="number"){setTimeout(h,w);return}h()});return h(),_},[r,e,w]),M.useDebugValue(f),ve(f)?he(f):f}function ge(e,n){const r=re(n);return M.useCallback((...g)=>{if((le?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return r.set(e,...g)},[r,e])}function Te(e,n){return[we(e,n),ge(e,n)]}var pe={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _e=Symbol(),q=(e,n,r)=>(n.has(r)?n:n.set(r,e())).get(r),be=new WeakMap,Ee=(e,n,r,a)=>{const g=q(()=>new WeakMap,be,n),c=q(()=>new WeakMap,g,r);return q(e,c,a)};function Ve(e,n,r=Object.is){return Ee(()=>{const a=Symbol(),g=([h,f])=>{if(f===a)return n(h);const w=n(h,f);return r(f,w)?f:w},c=Y(h=>{const f=h(c),w=h(e);return w instanceof Promise||f instanceof Promise?Promise.all([w,f]).then(g):g([w,f])});return c.init=a,c},e,n,r)}const Se=e=>typeof(e==null?void 0:e.then)=="function";function me(e){let n,r;const a={getItem:(g,c)=>{var h,f;const w=E=>{if(E=E||"",n!==E){try{r=JSON.parse(E)}catch{return c}n=E}return r},_=(f=(h=e())==null?void 0:h.getItem(g))!=null?f:null;return Se(_)?_.then(w):w(_)},setItem:(g,c)=>{var h;return(h=e())==null?void 0:h.setItem(g,JSON.stringify(c))},removeItem:g=>{var c;return(c=e())==null?void 0:c.removeItem(g)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(a.subscribe=(g,c,h)=>{if(!(e()instanceof window.Storage))return()=>{};const f=w=>{if(w.storageArea===e()&&w.key===g){let _;try{_=JSON.parse(w.newValue||"")}catch{_=h}c(_)}};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}}),a}const ye=me(()=>typeof window<"u"?window.localStorage:void 0);function Ce(e,n,r=ye,a){const g=a==null?void 0:a.getOnInit,c=Y(g?r.getItem(e,n):n);return(pe?"production":void 0)!=="production"&&(c.debugPrivate=!0),c.onMount=f=>{g||f(r.getItem(e,n));let w;return r.subscribe&&(w=r.subscribe(e,f,n)),w},Y(f=>f(c),(f,w,_)=>{const E=typeof _=="function"?_(f(c)):_;return E===_e?(w(c,n),r.removeItem(e)):E instanceof Promise?E.then(A=>(w(c,A),r.setItem(e,A))):(w(c,E),r.setItem(e,E))})}const xe=oe();var G=new Map,W=new WeakMap,ee=0,Ae=void 0;function Me(e){return e?(W.has(e)||(ee+=1,W.set(e,ee.toString())),W.get(e)):"0"}function Re(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?Me(e.root):e[n]}`).toString()}function Ie(e){let n=Re(e),r=G.get(n);if(!r){const a=new Map;let g;const c=new IntersectionObserver(h=>{h.forEach(f=>{var w;const _=f.isIntersecting&&g.some(E=>f.intersectionRatio>=E);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=_),(w=a.get(f.target))==null||w.forEach(E=>{E(_,f)})})},e);g=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:n,observer:c,elements:a},G.set(n,r)}return r}function Oe(e,n,r={},a=Ae){if(typeof window.IntersectionObserver>"u"&&a!==void 0){const w=e.getBoundingClientRect();return n(a,{isIntersecting:a,target:e,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:w,intersectionRect:w,rootBounds:w}),()=>{}}const{id:g,observer:c,elements:h}=Ie(r);let f=h.get(e)||[];return h.has(e)||h.set(e,f),f.push(n),c.observe(e),function(){f.splice(f.indexOf(n),1),f.length===0&&(h.delete(e),c.unobserve(e)),h.size===0&&(c.disconnect(),G.delete(g))}}function Pe({threshold:e,delay:n,trackVisibility:r,rootMargin:a,root:g,triggerOnce:c,skip:h,initialInView:f,fallbackInView:w,onChange:_}={}){var E;const[A,D]=M.useState(null),V=M.useRef(),[O,B]=M.useState({inView:!!f,entry:void 0});V.current=_,M.useEffect(()=>{if(h||!A)return;let I;return I=Oe(A,(j,N)=>{B({inView:j,entry:N}),V.current&&V.current(j,N),N.isIntersecting&&c&&I&&(I(),I=void 0)},{root:g,rootMargin:a,threshold:e,trackVisibility:r,delay:n},w),()=>{I&&I()}},[Array.isArray(e)?e.toString():e,A,g,a,c,h,r,w,n]);const P=(E=O.entry)==null?void 0:E.target,C=M.useRef();!A&&P&&!c&&!h&&C.current!==P&&(C.current=P,B({inView:!!f,entry:void 0}));const R=[D,O.inView,O.entry];return R.ref=R[0],R.inView=R[1],R.entry=R[2],R}const Le=e=>{const{placeholder:n=null,offset:r=0,...a}=e,{ref:g,inView:c}=Pe({triggerOnce:!0,rootMargin:`${r||0}px`,...a}),[h,f]=te.useState(!1);return M.useEffect(()=>{c&&f(!0)},[c]),L.jsxs(L.Fragment,{children:[!h&&L.jsx("span",{"data-hide-print":!0,"data-testid":"lazyload-indicator",ref:g}),c?e.children:n]})},De=()=>{const e=M.useRef(!1);return M.useEffect(()=>()=>{e.current=!0},[]),e},Be=e=>{const{className:n,...r}=e;return L.jsx("hr",{className:ne("my-4 h-[0.5px] border-0 bg-always-black !bg-opacity-30 dark:bg-always-white",n),...r})},ze=e=>{const{className:n,...r}=e;return L.jsx("span",{className:ne("mx-4 inline-block h-full w-[0.5px] select-none bg-always-black !bg-opacity-30 text-transparent dark:bg-always-white",n),...r,children:"w"})};export{Be as D,Le as L,Y as a,De as b,Pe as c,Ce as d,ge as e,ze as f,re as g,Te as h,oe as i,xe as j,Ve as s,we as u}; diff --git a/assets/EmojiPicker-Z2csmeIh.js b/assets/EmojiPicker-Nt7QcEYg.js similarity index 99% rename from assets/EmojiPicker-Z2csmeIh.js rename to assets/EmojiPicker-Nt7QcEYg.js index 9d56ac0ddb..7168697b5d 100644 --- a/assets/EmojiPicker-Z2csmeIh.js +++ b/assets/EmojiPicker-Nt7QcEYg.js @@ -1,4 +1,4 @@ -import{r as o,R as gf,j as c1}from"./index-Qg-bAq5J.js";import{u as u1}from"./Markdown-xk31dQ-T.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./env-jTYMx4r5.js";import"./Collapse-gGRmuqb3.js";import"./Gallery-lvvI9ksR.js";import"./RichLink-sK7aRcsj.js";var b;(function(f){f.hiddenOnSearch="epr-hidden-on-search",f.searchActive="epr-search-active",f.hidden="epr-hidden",f.visible="epr-visible",f.active="epr-active",f.emoji="epr-emoji",f.category="epr-emoji-category",f.label="epr-emoji-category-label",f.categoryContent="epr-emoji-category-content",f.emojiHasVariations="epr-emoji-has-variations",f.scrollBody="epr-body",f.emojiList="epr-emoji-list",f.external="__EmojiPicker__",f.emojiPicker="EmojiPickerReact",f.open="epr-open",f.vertical="epr-vertical",f.horizontal="epr-horizontal",f.variationPicker="epr-emoji-variation-picker",f.darkTheme="epr-dark-theme",f.autoTheme="epr-auto-theme"})(b||(b={}));function x(){for(var f=arguments.length,e=new Array(f),a=0;a=0)&&(a[r]=f[r]);return a}function m1(f,e){if(f){if(typeof f=="string")return Zf(f,e);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Zf(f,e)}}function Zf(f,e){(e==null||e>f.length)&&(e=f.length);for(var a=0,n=new Array(e);a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{r as o,R as gf,j as c1}from"./index-HRfeE_7B.js";import{u as u1}from"./Markdown-tpcPSstc.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./env-jTYMx4r5.js";import"./Collapse-JZfrBou4.js";import"./Gallery-32-V3LXo.js";import"./RichLink-6jHOm4uG.js";var b;(function(f){f.hiddenOnSearch="epr-hidden-on-search",f.searchActive="epr-search-active",f.hidden="epr-hidden",f.visible="epr-visible",f.active="epr-active",f.emoji="epr-emoji",f.category="epr-emoji-category",f.label="epr-emoji-category-label",f.categoryContent="epr-emoji-category-content",f.emojiHasVariations="epr-emoji-has-variations",f.scrollBody="epr-body",f.emojiList="epr-emoji-list",f.external="__EmojiPicker__",f.emojiPicker="EmojiPickerReact",f.open="epr-open",f.vertical="epr-vertical",f.horizontal="epr-horizontal",f.variationPicker="epr-emoji-variation-picker",f.darkTheme="epr-dark-theme",f.autoTheme="epr-auto-theme"})(b||(b={}));function x(){for(var f=arguments.length,e=new Array(f),a=0;a=0)&&(a[r]=f[r]);return a}function m1(f,e){if(f){if(typeof f=="string")return Zf(f,e);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Zf(f,e)}}function Zf(f,e){(e==null||e>f.length)&&(e=f.length);for(var a=0,n=new Array(e);a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var nf;(function(f){f.RECENT="recent",f.FREQUENT="frequent"})(nf||(nf={}));var S;(function(f){f.NATIVE="native",f.APPLE="apple",f.TWITTER="twitter",f.GOOGLE="google",f.FACEBOOK="facebook"})(S||(S={}));var V;(function(f){f.DARK="dark",f.LIGHT="light",f.AUTO="auto"})(V||(V={}));var _;(function(f){f.NEUTRAL="neutral",f.LIGHT="1f3fb",f.MEDIUM_LIGHT="1f3fc",f.MEDIUM="1f3fd",f.MEDIUM_DARK="1f3fe",f.DARK="1f3ff"})(_||(_={}));var m;(function(f){f.SUGGESTED="suggested",f.CUSTOM="custom",f.SMILEYS_PEOPLE="smileys_people",f.ANIMALS_NATURE="animals_nature",f.FOOD_DRINK="food_drink",f.TRAVEL_PLACES="travel_places",f.ACTIVITIES="activities",f.OBJECTS="objects",f.SYMBOLS="symbols",f.FLAGS="flags"})(m||(m={}));var W;(function(f){f.SEARCH="SEARCH",f.PREVIEW="PREVIEW"})(W||(W={}));var T,h1=[m.SUGGESTED,m.CUSTOM,m.SMILEYS_PEOPLE,m.ANIMALS_NATURE,m.FOOD_DRINK,m.TRAVEL_PLACES,m.ACTIVITIES,m.OBJECTS,m.SYMBOLS,m.FLAGS],v1={name:"Recently Used",category:m.SUGGESTED},pe=(T={},T[m.SUGGESTED]={category:m.SUGGESTED,name:"Frequently Used"},T[m.CUSTOM]={category:m.CUSTOM,name:"Custom Emojis"},T[m.SMILEYS_PEOPLE]={category:m.SMILEYS_PEOPLE,name:"Smileys & People"},T[m.ANIMALS_NATURE]={category:m.ANIMALS_NATURE,name:"Animals & Nature"},T[m.FOOD_DRINK]={category:m.FOOD_DRINK,name:"Food & Drink"},T[m.TRAVEL_PLACES]={category:m.TRAVEL_PLACES,name:"Travel & Places"},T[m.ACTIVITIES]={category:m.ACTIVITIES,name:"Activities"},T[m.OBJECTS]={category:m.OBJECTS,name:"Objects"},T[m.SYMBOLS]={category:m.SYMBOLS,name:"Symbols"},T[m.FLAGS]={category:m.FLAGS,name:"Flags"},T);function he(f){return h1.map(function(e){return B({},pe[e],f&&f[e]&&f[e])})}function _f(f){return f.category}function ve(f){return f.name}function k1(f,e){var a;f===void 0&&(f=[]),e===void 0&&(e={});var n={};e.suggestionMode===nf.RECENT&&(n[m.SUGGESTED]=v1);var r=he(n);return(a=f)!=null&&a.length?f.map(function(i){return typeof i=="string"?Qf(i,n[i]):B({},Qf(i.category,n[i.category]),i)}):r}function Qf(f,e){return e===void 0&&(e={}),Object.assign(pe[f],e)}var w1="https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/",y1="https://cdn.jsdelivr.net/npm/emoji-datasource-facebook/img/facebook/64/",E1="https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/",j1="https://cdn.jsdelivr.net/npm/emoji-datasource-google/img/google/64/";function C1(f){switch(f){case S.TWITTER:return E1;case S.GOOGLE:return j1;case S.FACEBOOK:return y1;case S.APPLE:default:return w1}}var x1=[],S1=[{n:["grinning","grinning face"],u:"1f600",a:"1.0"},{n:["smiley","smiling face with open mouth"],u:"1f603",a:"0.6"},{n:["smile","smiling face with open mouth and smiling eyes"],u:"1f604",a:"0.6"},{n:["grin","grinning face with smiling eyes"],u:"1f601",a:"0.6"},{n:["laughing","satisfied","smiling face with open mouth and tightly-closed eyes"],u:"1f606",a:"0.6"},{n:["sweat smile","smiling face with open mouth and cold sweat"],u:"1f605",a:"0.6"},{n:["rolling on the floor laughing"],u:"1f923",a:"3.0"},{n:["joy","face with tears of joy"],u:"1f602",a:"0.6"},{n:["slightly smiling face"],u:"1f642",a:"1.0"},{n:["upside-down face","upside down face"],u:"1f643",a:"1.0"},{n:["melting face"],u:"1fae0",a:"14.0"},{n:["wink","winking face"],u:"1f609",a:"0.6"},{n:["blush","smiling face with smiling eyes"],u:"1f60a",a:"0.6"},{n:["innocent","smiling face with halo"],u:"1f607",a:"1.0"},{n:["smiling face with 3 hearts","smiling face with smiling eyes and three hearts"],u:"1f970",a:"11.0"},{n:["heart eyes","smiling face with heart-shaped eyes"],u:"1f60d",a:"0.6"},{n:["star-struck","grinning face with star eyes"],u:"1f929",a:"5.0"},{n:["kissing heart","face throwing a kiss"],u:"1f618",a:"0.6"},{n:["kissing","kissing face"],u:"1f617",a:"1.0"},{n:["relaxed","white smiling face"],u:"263a-fe0f",a:"0.6"},{n:["kissing closed eyes","kissing face with closed eyes"],u:"1f61a",a:"0.6"},{n:["kissing smiling eyes","kissing face with smiling eyes"],u:"1f619",a:"1.0"},{n:["smiling face with tear"],u:"1f972",a:"13.0"},{n:["yum","face savouring delicious food"],u:"1f60b",a:"0.6"},{n:["stuck out tongue","face with stuck-out tongue"],u:"1f61b",a:"1.0"},{n:["stuck out tongue winking eye","face with stuck-out tongue and winking eye"],u:"1f61c",a:"0.6"},{n:["zany face","grinning face with one large and one small eye"],u:"1f92a",a:"5.0"},{n:["stuck out tongue closed eyes","face with stuck-out tongue and tightly-closed eyes"],u:"1f61d",a:"0.6"},{n:["money-mouth face","money mouth face"],u:"1f911",a:"1.0"},{n:["hugging face"],u:"1f917",a:"1.0"},{n:["face with hand over mouth","smiling face with smiling eyes and hand covering mouth"],u:"1f92d",a:"5.0"},{n:["face with open eyes and hand over mouth"],u:"1fae2",a:"14.0"},{n:["face with peeking eye"],u:"1fae3",a:"14.0"},{n:["shushing face","face with finger covering closed lips"],u:"1f92b",a:"5.0"},{n:["thinking face"],u:"1f914",a:"1.0"},{n:["saluting face"],u:"1fae1",a:"14.0"},{n:["zipper-mouth face","zipper mouth face"],u:"1f910",a:"1.0"},{n:["face with raised eyebrow","face with one eyebrow raised"],u:"1f928",a:"5.0"},{n:["neutral face"],u:"1f610",a:"0.7"},{n:["expressionless","expressionless face"],u:"1f611",a:"1.0"},{n:["no mouth","face without mouth"],u:"1f636",a:"1.0"},{n:["dotted line face"],u:"1fae5",a:"14.0"},{n:["face in clouds"],u:"1f636-200d-1f32b-fe0f",a:"13.1"},{n:["smirk","smirking face"],u:"1f60f",a:"0.6"},{n:["unamused","unamused face"],u:"1f612",a:"0.6"},{n:["face with rolling eyes"],u:"1f644",a:"1.0"},{n:["grimacing","grimacing face"],u:"1f62c",a:"1.0"},{n:["face exhaling"],u:"1f62e-200d-1f4a8",a:"13.1"},{n:["lying face"],u:"1f925",a:"3.0"},{n:["relieved","relieved face"],u:"1f60c",a:"0.6"},{n:["pensive","pensive face"],u:"1f614",a:"0.6"},{n:["sleepy","sleepy face"],u:"1f62a",a:"0.6"},{n:["drooling face"],u:"1f924",a:"3.0"},{n:["sleeping","sleeping face"],u:"1f634",a:"1.0"},{n:["mask","face with medical mask"],u:"1f637",a:"0.6"},{n:["face with thermometer"],u:"1f912",a:"1.0"},{n:["face with head-bandage","face with head bandage"],u:"1f915",a:"1.0"},{n:["nauseated face"],u:"1f922",a:"3.0"},{n:["face vomiting","face with open mouth vomiting"],u:"1f92e",a:"5.0"},{n:["sneezing face"],u:"1f927",a:"3.0"},{n:["hot face","overheated face"],u:"1f975",a:"11.0"},{n:["cold face","freezing face"],u:"1f976",a:"11.0"},{n:["woozy face","face with uneven eyes and wavy mouth"],u:"1f974",a:"11.0"},{n:["dizzy face"],u:"1f635",a:"0.6"},{n:["face with spiral eyes"],u:"1f635-200d-1f4ab",a:"13.1"},{n:["exploding head","shocked face with exploding head"],u:"1f92f",a:"5.0"},{n:["face with cowboy hat"],u:"1f920",a:"3.0"},{n:["partying face","face with party horn and party hat"],u:"1f973",a:"11.0"},{n:["disguised face"],u:"1f978",a:"13.0"},{n:["sunglasses","smiling face with sunglasses"],u:"1f60e",a:"1.0"},{n:["nerd face"],u:"1f913",a:"1.0"},{n:["face with monocle"],u:"1f9d0",a:"5.0"},{n:["confused","confused face"],u:"1f615",a:"1.0"},{n:["face with diagonal mouth"],u:"1fae4",a:"14.0"},{n:["worried","worried face"],u:"1f61f",a:"1.0"},{n:["slightly frowning face"],u:"1f641",a:"1.0"},{n:["frowning face","white frowning face"],u:"2639-fe0f",a:"0.7"},{n:["open mouth","face with open mouth"],u:"1f62e",a:"1.0"},{n:["hushed","hushed face"],u:"1f62f",a:"1.0"},{n:["astonished","astonished face"],u:"1f632",a:"0.6"},{n:["flushed","flushed face"],u:"1f633",a:"0.6"},{n:["pleading face","face with pleading eyes"],u:"1f97a",a:"11.0"},{n:["face holding back tears"],u:"1f979",a:"14.0"},{n:["frowning","frowning face with open mouth"],u:"1f626",a:"1.0"},{n:["anguished","anguished face"],u:"1f627",a:"1.0"},{n:["fearful","fearful face"],u:"1f628",a:"0.6"},{n:["cold sweat","face with open mouth and cold sweat"],u:"1f630",a:"0.6"},{n:["disappointed relieved","disappointed but relieved face"],u:"1f625",a:"0.6"},{n:["cry","crying face"],u:"1f622",a:"0.6"},{n:["sob","loudly crying face"],u:"1f62d",a:"0.6"},{n:["scream","face screaming in fear"],u:"1f631",a:"0.6"},{n:["confounded","confounded face"],u:"1f616",a:"0.6"},{n:["persevere","persevering face"],u:"1f623",a:"0.6"},{n:["disappointed","disappointed face"],u:"1f61e",a:"0.6"},{n:["sweat","face with cold sweat"],u:"1f613",a:"0.6"},{n:["weary","weary face"],u:"1f629",a:"0.6"},{n:["tired face"],u:"1f62b",a:"0.6"},{n:["yawning face"],u:"1f971",a:"12.0"},{n:["triumph","face with look of triumph"],u:"1f624",a:"0.6"},{n:["rage","pouting face"],u:"1f621",a:"0.6"},{n:["angry","angry face"],u:"1f620",a:"0.6"},{n:["face with symbols on mouth","serious face with symbols covering mouth"],u:"1f92c",a:"5.0"},{n:["smiling imp","smiling face with horns"],u:"1f608",a:"1.0"},{n:["imp"],u:"1f47f",a:"0.6"},{n:["skull"],u:"1f480",a:"0.6"},{n:["skull and crossbones"],u:"2620-fe0f",a:"1.0"},{n:["poop","shit","hankey","pile of poo"],u:"1f4a9",a:"0.6"},{n:["clown face"],u:"1f921",a:"3.0"},{n:["japanese ogre"],u:"1f479",a:"0.6"},{n:["japanese goblin"],u:"1f47a",a:"0.6"},{n:["ghost"],u:"1f47b",a:"0.6"},{n:["alien","extraterrestrial alien"],u:"1f47d",a:"0.6"},{n:["alien monster","space invader"],u:"1f47e",a:"0.6"},{n:["robot face"],u:"1f916",a:"1.0"},{n:["smiley cat","smiling cat face with open mouth"],u:"1f63a",a:"0.6"},{n:["smile cat","grinning cat face with smiling eyes"],u:"1f638",a:"0.6"},{n:["joy cat","cat face with tears of joy"],u:"1f639",a:"0.6"},{n:["heart eyes cat","smiling cat face with heart-shaped eyes"],u:"1f63b",a:"0.6"},{n:["smirk cat","cat face with wry smile"],u:"1f63c",a:"0.6"},{n:["kissing cat","kissing cat face with closed eyes"],u:"1f63d",a:"0.6"},{n:["scream cat","weary cat face"],u:"1f640",a:"0.6"},{n:["crying cat face"],u:"1f63f",a:"0.6"},{n:["pouting cat","pouting cat face"],u:"1f63e",a:"0.6"},{n:["see no evil","see-no-evil monkey"],u:"1f648",a:"0.6"},{n:["hear no evil","hear-no-evil monkey"],u:"1f649",a:"0.6"},{n:["speak no evil","speak-no-evil monkey"],u:"1f64a",a:"0.6"},{n:["kiss","kiss mark"],u:"1f48b",a:"0.6"},{n:["love letter"],u:"1f48c",a:"0.6"},{n:["cupid","heart with arrow"],u:"1f498",a:"0.6"},{n:["gift heart","heart with ribbon"],u:"1f49d",a:"0.6"},{n:["sparkling heart"],u:"1f496",a:"0.6"},{n:["heartpulse","growing heart"],u:"1f497",a:"0.6"},{n:["heartbeat","beating heart"],u:"1f493",a:"0.6"},{n:["revolving hearts"],u:"1f49e",a:"0.6"},{n:["two hearts"],u:"1f495",a:"0.6"},{n:["heart decoration"],u:"1f49f",a:"0.6"},{n:["heart exclamation","heavy heart exclamation mark ornament"],u:"2763-fe0f",a:"1.0"},{n:["broken heart"],u:"1f494",a:"0.6"},{n:["heart on fire"],u:"2764-fe0f-200d-1f525",a:"13.1"},{n:["mending heart"],u:"2764-fe0f-200d-1fa79",a:"13.1"},{n:["heart","heavy black heart"],u:"2764-fe0f",a:"0.6"},{n:["orange heart"],u:"1f9e1",a:"5.0"},{n:["yellow heart"],u:"1f49b",a:"0.6"},{n:["green heart"],u:"1f49a",a:"0.6"},{n:["blue heart"],u:"1f499",a:"0.6"},{n:["purple heart"],u:"1f49c",a:"0.6"},{n:["brown heart"],u:"1f90e",a:"12.0"},{n:["black heart"],u:"1f5a4",a:"3.0"},{n:["white heart"],u:"1f90d",a:"12.0"},{n:["100","hundred points symbol"],u:"1f4af",a:"0.6"},{n:["anger","anger symbol"],u:"1f4a2",a:"0.6"},{n:["boom","collision","collision symbol"],u:"1f4a5",a:"0.6"},{n:["dizzy","dizzy symbol"],u:"1f4ab",a:"0.6"},{n:["sweat drops","splashing sweat symbol"],u:"1f4a6",a:"0.6"},{n:["dash","dash symbol"],u:"1f4a8",a:"0.6"},{n:["hole"],u:"1f573-fe0f",a:"0.7"},{n:["bomb"],u:"1f4a3",a:"0.6"},{n:["speech balloon"],u:"1f4ac",a:"0.6"},{n:["eye in speech bubble","eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f",a:"2.0"},{n:["left speech bubble"],u:"1f5e8-fe0f",a:"2.0"},{n:["right anger bubble"],u:"1f5ef-fe0f",a:"0.7"},{n:["thought balloon"],u:"1f4ad",a:"1.0"},{n:["zzz","sleeping symbol"],u:"1f4a4",a:"0.6"},{n:["wave","waving hand sign"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"],a:"0.6"},{n:["raised back of hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"],a:"3.0"},{n:["hand with fingers splayed","raised hand with fingers splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"],a:"0.7"},{n:["hand","raised hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"],a:"0.6"},{n:["spock-hand","raised hand with part between middle and ring fingers"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"],a:"1.0"},{n:["rightwards hand"],u:"1faf1",v:["1faf1-1f3fb","1faf1-1f3fc","1faf1-1f3fd","1faf1-1f3fe","1faf1-1f3ff"],a:"14.0"},{n:["leftwards hand"],u:"1faf2",v:["1faf2-1f3fb","1faf2-1f3fc","1faf2-1f3fd","1faf2-1f3fe","1faf2-1f3ff"],a:"14.0"},{n:["palm down hand"],u:"1faf3",v:["1faf3-1f3fb","1faf3-1f3fc","1faf3-1f3fd","1faf3-1f3fe","1faf3-1f3ff"],a:"14.0"},{n:["palm up hand"],u:"1faf4",v:["1faf4-1f3fb","1faf4-1f3fc","1faf4-1f3fd","1faf4-1f3fe","1faf4-1f3ff"],a:"14.0"},{n:["ok hand","ok hand sign"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"],a:"0.6"},{n:["pinched fingers"],u:"1f90c",v:["1f90c-1f3fb","1f90c-1f3fc","1f90c-1f3fd","1f90c-1f3fe","1f90c-1f3ff"],a:"13.0"},{n:["pinching hand"],u:"1f90f",v:["1f90f-1f3fb","1f90f-1f3fc","1f90f-1f3fd","1f90f-1f3fe","1f90f-1f3ff"],a:"12.0"},{n:["v","victory hand"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"],a:"0.6"},{n:["crossed fingers","hand with index and middle fingers crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"],a:"3.0"},{n:["hand with index finger and thumb crossed"],u:"1faf0",v:["1faf0-1f3fb","1faf0-1f3fc","1faf0-1f3fd","1faf0-1f3fe","1faf0-1f3ff"],a:"14.0"},{n:["i love you hand sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"],a:"5.0"},{n:["the horns","sign of the horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"],a:"1.0"},{n:["call me hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"],a:"3.0"},{n:["point left","white left pointing backhand index"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"],a:"0.6"},{n:["point right","white right pointing backhand index"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"],a:"0.6"},{n:["point up 2","white up pointing backhand index"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"],a:"0.6"},{n:["middle finger","reversed hand with middle finger extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"],a:"1.0"},{n:["point down","white down pointing backhand index"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"],a:"0.6"},{n:["point up","white up pointing index"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"],a:"0.6"},{n:["index pointing at the viewer"],u:"1faf5",v:["1faf5-1f3fb","1faf5-1f3fc","1faf5-1f3fd","1faf5-1f3fe","1faf5-1f3ff"],a:"14.0"},{n:["+1","thumbsup","thumbs up sign"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"],a:"0.6"},{n:["-1","thumbsdown","thumbs down sign"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"],a:"0.6"},{n:["fist","raised fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"],a:"0.6"},{n:["punch","facepunch","fisted hand sign"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"],a:"0.6"},{n:["left-facing fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"],a:"3.0"},{n:["right-facing fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"],a:"3.0"},{n:["clap","clapping hands sign"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"],a:"0.6"},{n:["raised hands","person raising both hands in celebration"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"],a:"0.6"},{n:["heart hands"],u:"1faf6",v:["1faf6-1f3fb","1faf6-1f3fc","1faf6-1f3fd","1faf6-1f3fe","1faf6-1f3ff"],a:"14.0"},{n:["open hands","open hands sign"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"],a:"0.6"},{n:["palms up together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"],a:"5.0"},{n:["handshake"],u:"1f91d",v:["1f91d-1f3fb","1f91d-1f3fc","1f91d-1f3fd","1f91d-1f3fe","1f91d-1f3ff","1faf1-1f3fb-200d-1faf2-1f3fc","1faf1-1f3fb-200d-1faf2-1f3fd","1faf1-1f3fb-200d-1faf2-1f3fe","1faf1-1f3fb-200d-1faf2-1f3ff","1faf1-1f3fc-200d-1faf2-1f3fb","1faf1-1f3fc-200d-1faf2-1f3fd","1faf1-1f3fc-200d-1faf2-1f3fe","1faf1-1f3fc-200d-1faf2-1f3ff","1faf1-1f3fd-200d-1faf2-1f3fb","1faf1-1f3fd-200d-1faf2-1f3fc","1faf1-1f3fd-200d-1faf2-1f3fe","1faf1-1f3fd-200d-1faf2-1f3ff","1faf1-1f3fe-200d-1faf2-1f3fb","1faf1-1f3fe-200d-1faf2-1f3fc","1faf1-1f3fe-200d-1faf2-1f3fd","1faf1-1f3fe-200d-1faf2-1f3ff","1faf1-1f3ff-200d-1faf2-1f3fb","1faf1-1f3ff-200d-1faf2-1f3fc","1faf1-1f3ff-200d-1faf2-1f3fd","1faf1-1f3ff-200d-1faf2-1f3fe"],a:"3.0"},{n:["pray","person with folded hands"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"],a:"0.6"},{n:["writing hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"],a:"0.7"},{n:["nail care","nail polish"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"],a:"0.6"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"],a:"3.0"},{n:["muscle","flexed biceps"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"],a:"0.6"},{n:["mechanical arm"],u:"1f9be",a:"12.0"},{n:["mechanical leg"],u:"1f9bf",a:"12.0"},{n:["leg"],u:"1f9b5",v:["1f9b5-1f3fb","1f9b5-1f3fc","1f9b5-1f3fd","1f9b5-1f3fe","1f9b5-1f3ff"],a:"11.0"},{n:["foot"],u:"1f9b6",v:["1f9b6-1f3fb","1f9b6-1f3fc","1f9b6-1f3fd","1f9b6-1f3fe","1f9b6-1f3ff"],a:"11.0"},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"],a:"0.6"},{n:["ear with hearing aid"],u:"1f9bb",v:["1f9bb-1f3fb","1f9bb-1f3fc","1f9bb-1f3fd","1f9bb-1f3fe","1f9bb-1f3ff"],a:"12.0"},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"],a:"0.6"},{n:["brain"],u:"1f9e0",a:"5.0"},{n:["anatomical heart"],u:"1fac0",a:"13.0"},{n:["lungs"],u:"1fac1",a:"13.0"},{n:["tooth"],u:"1f9b7",a:"11.0"},{n:["bone"],u:"1f9b4",a:"11.0"},{n:["eyes"],u:"1f440",a:"0.6"},{n:["eye"],u:"1f441-fe0f",a:"0.7"},{n:["tongue"],u:"1f445",a:"0.6"},{n:["lips","mouth"],u:"1f444",a:"0.6"},{n:["biting lip"],u:"1fae6",a:"14.0"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"],a:"0.6"},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"],a:"5.0"},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"],a:"0.6"},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"],a:"0.6"},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"],a:"5.0"},{n:["person with blond hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"],a:"0.6"},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"],a:"0.6"},{n:["bearded person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"],a:"5.0"},{n:["man: beard","man with beard"],u:"1f9d4-200d-2642-fe0f",v:["1f9d4-1f3fb-200d-2642-fe0f","1f9d4-1f3fc-200d-2642-fe0f","1f9d4-1f3fd-200d-2642-fe0f","1f9d4-1f3fe-200d-2642-fe0f","1f9d4-1f3ff-200d-2642-fe0f"],a:"13.1"},{n:["woman: beard","woman with beard"],u:"1f9d4-200d-2640-fe0f",v:["1f9d4-1f3fb-200d-2640-fe0f","1f9d4-1f3fc-200d-2640-fe0f","1f9d4-1f3fd-200d-2640-fe0f","1f9d4-1f3fe-200d-2640-fe0f","1f9d4-1f3ff-200d-2640-fe0f"],a:"13.1"},{n:["man: red hair","red haired man"],u:"1f468-200d-1f9b0",v:["1f468-1f3fb-200d-1f9b0","1f468-1f3fc-200d-1f9b0","1f468-1f3fd-200d-1f9b0","1f468-1f3fe-200d-1f9b0","1f468-1f3ff-200d-1f9b0"],a:"11.0"},{n:["man: curly hair","curly haired man"],u:"1f468-200d-1f9b1",v:["1f468-1f3fb-200d-1f9b1","1f468-1f3fc-200d-1f9b1","1f468-1f3fd-200d-1f9b1","1f468-1f3fe-200d-1f9b1","1f468-1f3ff-200d-1f9b1"],a:"11.0"},{n:["man: white hair","white haired man"],u:"1f468-200d-1f9b3",v:["1f468-1f3fb-200d-1f9b3","1f468-1f3fc-200d-1f9b3","1f468-1f3fd-200d-1f9b3","1f468-1f3fe-200d-1f9b3","1f468-1f3ff-200d-1f9b3"],a:"11.0"},{n:["bald man","man: bald"],u:"1f468-200d-1f9b2",v:["1f468-1f3fb-200d-1f9b2","1f468-1f3fc-200d-1f9b2","1f468-1f3fd-200d-1f9b2","1f468-1f3fe-200d-1f9b2","1f468-1f3ff-200d-1f9b2"],a:"11.0"},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"],a:"0.6"},{n:["woman: red hair","red haired woman"],u:"1f469-200d-1f9b0",v:["1f469-1f3fb-200d-1f9b0","1f469-1f3fc-200d-1f9b0","1f469-1f3fd-200d-1f9b0","1f469-1f3fe-200d-1f9b0","1f469-1f3ff-200d-1f9b0"],a:"11.0"},{n:["person: red hair","red haired person"],u:"1f9d1-200d-1f9b0",v:["1f9d1-1f3fb-200d-1f9b0","1f9d1-1f3fc-200d-1f9b0","1f9d1-1f3fd-200d-1f9b0","1f9d1-1f3fe-200d-1f9b0","1f9d1-1f3ff-200d-1f9b0"],a:"12.1"},{n:["woman: curly hair","curly haired woman"],u:"1f469-200d-1f9b1",v:["1f469-1f3fb-200d-1f9b1","1f469-1f3fc-200d-1f9b1","1f469-1f3fd-200d-1f9b1","1f469-1f3fe-200d-1f9b1","1f469-1f3ff-200d-1f9b1"],a:"11.0"},{n:["person: curly hair","curly haired person"],u:"1f9d1-200d-1f9b1",v:["1f9d1-1f3fb-200d-1f9b1","1f9d1-1f3fc-200d-1f9b1","1f9d1-1f3fd-200d-1f9b1","1f9d1-1f3fe-200d-1f9b1","1f9d1-1f3ff-200d-1f9b1"],a:"12.1"},{n:["woman: white hair","white haired woman"],u:"1f469-200d-1f9b3",v:["1f469-1f3fb-200d-1f9b3","1f469-1f3fc-200d-1f9b3","1f469-1f3fd-200d-1f9b3","1f469-1f3fe-200d-1f9b3","1f469-1f3ff-200d-1f9b3"],a:"11.0"},{n:["person: white hair","white haired person"],u:"1f9d1-200d-1f9b3",v:["1f9d1-1f3fb-200d-1f9b3","1f9d1-1f3fc-200d-1f9b3","1f9d1-1f3fd-200d-1f9b3","1f9d1-1f3fe-200d-1f9b3","1f9d1-1f3ff-200d-1f9b3"],a:"12.1"},{n:["bald woman","woman: bald"],u:"1f469-200d-1f9b2",v:["1f469-1f3fb-200d-1f9b2","1f469-1f3fc-200d-1f9b2","1f469-1f3fd-200d-1f9b2","1f469-1f3fe-200d-1f9b2","1f469-1f3ff-200d-1f9b2"],a:"11.0"},{n:["bald person","person: bald"],u:"1f9d1-200d-1f9b2",v:["1f9d1-1f3fb-200d-1f9b2","1f9d1-1f3fc-200d-1f9b2","1f9d1-1f3fd-200d-1f9b2","1f9d1-1f3fe-200d-1f9b2","1f9d1-1f3ff-200d-1f9b2"],a:"12.1"},{n:["woman: blond hair","blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man: blond hair","blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["older adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"],a:"5.0"},{n:["older man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"],a:"0.6"},{n:["older woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"],a:"0.6"},{n:["person frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"],a:"0.6"},{n:["man frowning","man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman frowning","woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with pouting face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"],a:"0.6"},{n:["man pouting","man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman pouting","woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["no good","face with no good gesture"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"],a:"0.6"},{n:["man gesturing no","man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing no","woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ok woman","face with ok gesture"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"],a:"0.6"},{n:["man gesturing ok","man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing ok","woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["information desk person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"],a:"0.6"},{n:["man tipping hand","man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman tipping hand","woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["raising hand","happy person raising one hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"],a:"0.6"},{n:["man raising hand","man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman raising hand","woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["deaf person"],u:"1f9cf",v:["1f9cf-1f3fb","1f9cf-1f3fc","1f9cf-1f3fd","1f9cf-1f3fe","1f9cf-1f3ff"],a:"12.0"},{n:["deaf man"],u:"1f9cf-200d-2642-fe0f",v:["1f9cf-1f3fb-200d-2642-fe0f","1f9cf-1f3fc-200d-2642-fe0f","1f9cf-1f3fd-200d-2642-fe0f","1f9cf-1f3fe-200d-2642-fe0f","1f9cf-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["deaf woman"],u:"1f9cf-200d-2640-fe0f",v:["1f9cf-1f3fb-200d-2640-fe0f","1f9cf-1f3fc-200d-2640-fe0f","1f9cf-1f3fd-200d-2640-fe0f","1f9cf-1f3fe-200d-2640-fe0f","1f9cf-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["bow","person bowing deeply"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"],a:"0.6"},{n:["man bowing","man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bowing","woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["face palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"],a:"3.0"},{n:["man facepalming","man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman facepalming","woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"],a:"3.0"},{n:["man shrugging","man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman shrugging","woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["health worker"],u:"1f9d1-200d-2695-fe0f",v:["1f9d1-1f3fb-200d-2695-fe0f","1f9d1-1f3fc-200d-2695-fe0f","1f9d1-1f3fd-200d-2695-fe0f","1f9d1-1f3fe-200d-2695-fe0f","1f9d1-1f3ff-200d-2695-fe0f"],a:"12.1"},{n:["male-doctor","man health worker"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["female-doctor","woman health worker"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["student"],u:"1f9d1-200d-1f393",v:["1f9d1-1f3fb-200d-1f393","1f9d1-1f3fc-200d-1f393","1f9d1-1f3fd-200d-1f393","1f9d1-1f3fe-200d-1f393","1f9d1-1f3ff-200d-1f393"],a:"12.1"},{n:["man student","male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"],a:"4.0"},{n:["woman student","female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"],a:"4.0"},{n:["teacher"],u:"1f9d1-200d-1f3eb",v:["1f9d1-1f3fb-200d-1f3eb","1f9d1-1f3fc-200d-1f3eb","1f9d1-1f3fd-200d-1f3eb","1f9d1-1f3fe-200d-1f3eb","1f9d1-1f3ff-200d-1f3eb"],a:"12.1"},{n:["man teacher","male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"],a:"4.0"},{n:["woman teacher","female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"],a:"4.0"},{n:["judge"],u:"1f9d1-200d-2696-fe0f",v:["1f9d1-1f3fb-200d-2696-fe0f","1f9d1-1f3fc-200d-2696-fe0f","1f9d1-1f3fd-200d-2696-fe0f","1f9d1-1f3fe-200d-2696-fe0f","1f9d1-1f3ff-200d-2696-fe0f"],a:"12.1"},{n:["man judge","male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["woman judge","female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["farmer"],u:"1f9d1-200d-1f33e",v:["1f9d1-1f3fb-200d-1f33e","1f9d1-1f3fc-200d-1f33e","1f9d1-1f3fd-200d-1f33e","1f9d1-1f3fe-200d-1f33e","1f9d1-1f3ff-200d-1f33e"],a:"12.1"},{n:["man farmer","male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"],a:"4.0"},{n:["woman farmer","female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"],a:"4.0"},{n:["cook"],u:"1f9d1-200d-1f373",v:["1f9d1-1f3fb-200d-1f373","1f9d1-1f3fc-200d-1f373","1f9d1-1f3fd-200d-1f373","1f9d1-1f3fe-200d-1f373","1f9d1-1f3ff-200d-1f373"],a:"12.1"},{n:["man cook","male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"],a:"4.0"},{n:["woman cook","female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"],a:"4.0"},{n:["mechanic"],u:"1f9d1-200d-1f527",v:["1f9d1-1f3fb-200d-1f527","1f9d1-1f3fc-200d-1f527","1f9d1-1f3fd-200d-1f527","1f9d1-1f3fe-200d-1f527","1f9d1-1f3ff-200d-1f527"],a:"12.1"},{n:["man mechanic","male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"],a:"4.0"},{n:["woman mechanic","female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"],a:"4.0"},{n:["factory worker"],u:"1f9d1-200d-1f3ed",v:["1f9d1-1f3fb-200d-1f3ed","1f9d1-1f3fc-200d-1f3ed","1f9d1-1f3fd-200d-1f3ed","1f9d1-1f3fe-200d-1f3ed","1f9d1-1f3ff-200d-1f3ed"],a:"12.1"},{n:["man factory worker","male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"],a:"4.0"},{n:["woman factory worker","female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"],a:"4.0"},{n:["office worker"],u:"1f9d1-200d-1f4bc",v:["1f9d1-1f3fb-200d-1f4bc","1f9d1-1f3fc-200d-1f4bc","1f9d1-1f3fd-200d-1f4bc","1f9d1-1f3fe-200d-1f4bc","1f9d1-1f3ff-200d-1f4bc"],a:"12.1"},{n:["man office worker","male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"],a:"4.0"},{n:["woman office worker","female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"],a:"4.0"},{n:["scientist"],u:"1f9d1-200d-1f52c",v:["1f9d1-1f3fb-200d-1f52c","1f9d1-1f3fc-200d-1f52c","1f9d1-1f3fd-200d-1f52c","1f9d1-1f3fe-200d-1f52c","1f9d1-1f3ff-200d-1f52c"],a:"12.1"},{n:["man scientist","male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"],a:"4.0"},{n:["woman scientist","female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"],a:"4.0"},{n:["technologist"],u:"1f9d1-200d-1f4bb",v:["1f9d1-1f3fb-200d-1f4bb","1f9d1-1f3fc-200d-1f4bb","1f9d1-1f3fd-200d-1f4bb","1f9d1-1f3fe-200d-1f4bb","1f9d1-1f3ff-200d-1f4bb"],a:"12.1"},{n:["man technologist","male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"],a:"4.0"},{n:["woman technologist","female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"],a:"4.0"},{n:["singer"],u:"1f9d1-200d-1f3a4",v:["1f9d1-1f3fb-200d-1f3a4","1f9d1-1f3fc-200d-1f3a4","1f9d1-1f3fd-200d-1f3a4","1f9d1-1f3fe-200d-1f3a4","1f9d1-1f3ff-200d-1f3a4"],a:"12.1"},{n:["man singer","male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"],a:"4.0"},{n:["woman singer","female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"],a:"4.0"},{n:["artist"],u:"1f9d1-200d-1f3a8",v:["1f9d1-1f3fb-200d-1f3a8","1f9d1-1f3fc-200d-1f3a8","1f9d1-1f3fd-200d-1f3a8","1f9d1-1f3fe-200d-1f3a8","1f9d1-1f3ff-200d-1f3a8"],a:"12.1"},{n:["man artist","male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"],a:"4.0"},{n:["woman artist","female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"],a:"4.0"},{n:["pilot"],u:"1f9d1-200d-2708-fe0f",v:["1f9d1-1f3fb-200d-2708-fe0f","1f9d1-1f3fc-200d-2708-fe0f","1f9d1-1f3fd-200d-2708-fe0f","1f9d1-1f3fe-200d-2708-fe0f","1f9d1-1f3ff-200d-2708-fe0f"],a:"12.1"},{n:["man pilot","male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["woman pilot","female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["astronaut"],u:"1f9d1-200d-1f680",v:["1f9d1-1f3fb-200d-1f680","1f9d1-1f3fc-200d-1f680","1f9d1-1f3fd-200d-1f680","1f9d1-1f3fe-200d-1f680","1f9d1-1f3ff-200d-1f680"],a:"12.1"},{n:["man astronaut","male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"],a:"4.0"},{n:["woman astronaut","female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"],a:"4.0"},{n:["firefighter"],u:"1f9d1-200d-1f692",v:["1f9d1-1f3fb-200d-1f692","1f9d1-1f3fc-200d-1f692","1f9d1-1f3fd-200d-1f692","1f9d1-1f3fe-200d-1f692","1f9d1-1f3ff-200d-1f692"],a:"12.1"},{n:["man firefighter","male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"],a:"4.0"},{n:["woman firefighter","female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"],a:"4.0"},{n:["cop","police officer"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"],a:"0.6"},{n:["man police officer","male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman police officer","female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["detective","sleuth or spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"],a:"0.7"},{n:["man detective","male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman detective","female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"],a:"0.6"},{n:["man guard","male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman guard","female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ninja"],u:"1f977",v:["1f977-1f3fb","1f977-1f3fc","1f977-1f3fd","1f977-1f3fe","1f977-1f3ff"],a:"13.0"},{n:["construction worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"],a:"0.6"},{n:["man construction worker","male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman construction worker","female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with crown"],u:"1fac5",v:["1fac5-1f3fb","1fac5-1f3fc","1fac5-1f3fd","1fac5-1f3fe","1fac5-1f3ff"],a:"14.0"},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"],a:"3.0"},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"],a:"0.6"},{n:["man with turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"],a:"0.6"},{n:["man wearing turban","man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman wearing turban","woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man with gua pi mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"],a:"0.6"},{n:["person with headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"],a:"5.0"},{n:["man in tuxedo","person in tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"],a:"3.0"},{n:["man in tuxedo"],u:"1f935-200d-2642-fe0f",v:["1f935-1f3fb-200d-2642-fe0f","1f935-1f3fc-200d-2642-fe0f","1f935-1f3fd-200d-2642-fe0f","1f935-1f3fe-200d-2642-fe0f","1f935-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman in tuxedo"],u:"1f935-200d-2640-fe0f",v:["1f935-1f3fb-200d-2640-fe0f","1f935-1f3fc-200d-2640-fe0f","1f935-1f3fd-200d-2640-fe0f","1f935-1f3fe-200d-2640-fe0f","1f935-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["bride with veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"],a:"0.6"},{n:["man with veil"],u:"1f470-200d-2642-fe0f",v:["1f470-1f3fb-200d-2642-fe0f","1f470-1f3fc-200d-2642-fe0f","1f470-1f3fd-200d-2642-fe0f","1f470-1f3fe-200d-2642-fe0f","1f470-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman with veil"],u:"1f470-200d-2640-fe0f",v:["1f470-1f3fb-200d-2640-fe0f","1f470-1f3fc-200d-2640-fe0f","1f470-1f3fd-200d-2640-fe0f","1f470-1f3fe-200d-2640-fe0f","1f470-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["pregnant woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"],a:"3.0"},{n:["pregnant man"],u:"1fac3",v:["1fac3-1f3fb","1fac3-1f3fc","1fac3-1f3fd","1fac3-1f3fe","1fac3-1f3ff"],a:"14.0"},{n:["pregnant person"],u:"1fac4",v:["1fac4-1f3fb","1fac4-1f3fc","1fac4-1f3fd","1fac4-1f3fe","1fac4-1f3ff"],a:"14.0"},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"],a:"5.0"},{n:["woman feeding baby"],u:"1f469-200d-1f37c",v:["1f469-1f3fb-200d-1f37c","1f469-1f3fc-200d-1f37c","1f469-1f3fd-200d-1f37c","1f469-1f3fe-200d-1f37c","1f469-1f3ff-200d-1f37c"],a:"13.0"},{n:["man feeding baby"],u:"1f468-200d-1f37c",v:["1f468-1f3fb-200d-1f37c","1f468-1f3fc-200d-1f37c","1f468-1f3fd-200d-1f37c","1f468-1f3fe-200d-1f37c","1f468-1f3ff-200d-1f37c"],a:"13.0"},{n:["person feeding baby"],u:"1f9d1-200d-1f37c",v:["1f9d1-1f3fb-200d-1f37c","1f9d1-1f3fc-200d-1f37c","1f9d1-1f3fd-200d-1f37c","1f9d1-1f3fe-200d-1f37c","1f9d1-1f3ff-200d-1f37c"],a:"13.0"},{n:["angel","baby angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"],a:"0.6"},{n:["santa","father christmas"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"],a:"0.6"},{n:["mrs claus","mother christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"],a:"3.0"},{n:["mx claus"],u:"1f9d1-200d-1f384",v:["1f9d1-1f3fb-200d-1f384","1f9d1-1f3fc-200d-1f384","1f9d1-1f3fd-200d-1f384","1f9d1-1f3fe-200d-1f384","1f9d1-1f3ff-200d-1f384"],a:"13.0"},{n:["superhero"],u:"1f9b8",v:["1f9b8-1f3fb","1f9b8-1f3fc","1f9b8-1f3fd","1f9b8-1f3fe","1f9b8-1f3ff"],a:"11.0"},{n:["man superhero","male superhero"],u:"1f9b8-200d-2642-fe0f",v:["1f9b8-1f3fb-200d-2642-fe0f","1f9b8-1f3fc-200d-2642-fe0f","1f9b8-1f3fd-200d-2642-fe0f","1f9b8-1f3fe-200d-2642-fe0f","1f9b8-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman superhero","female superhero"],u:"1f9b8-200d-2640-fe0f",v:["1f9b8-1f3fb-200d-2640-fe0f","1f9b8-1f3fc-200d-2640-fe0f","1f9b8-1f3fd-200d-2640-fe0f","1f9b8-1f3fe-200d-2640-fe0f","1f9b8-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["supervillain"],u:"1f9b9",v:["1f9b9-1f3fb","1f9b9-1f3fc","1f9b9-1f3fd","1f9b9-1f3fe","1f9b9-1f3ff"],a:"11.0"},{n:["man supervillain","male supervillain"],u:"1f9b9-200d-2642-fe0f",v:["1f9b9-1f3fb-200d-2642-fe0f","1f9b9-1f3fc-200d-2642-fe0f","1f9b9-1f3fd-200d-2642-fe0f","1f9b9-1f3fe-200d-2642-fe0f","1f9b9-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman supervillain","female supervillain"],u:"1f9b9-200d-2640-fe0f",v:["1f9b9-1f3fb-200d-2640-fe0f","1f9b9-1f3fc-200d-2640-fe0f","1f9b9-1f3fd-200d-2640-fe0f","1f9b9-1f3fe-200d-2640-fe0f","1f9b9-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"],a:"5.0"},{n:["man mage","male mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman mage","female mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"],a:"5.0"},{n:["man fairy","male fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman fairy","female fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"],a:"5.0"},{n:["man vampire","male vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman vampire","female vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"],a:"5.0"},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"],a:"5.0"},{n:["man elf","male elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman elf","female elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["genie"],u:"1f9de",a:"5.0"},{n:["man genie","male genie"],u:"1f9de-200d-2642-fe0f",a:"5.0"},{n:["woman genie","female genie"],u:"1f9de-200d-2640-fe0f",a:"5.0"},{n:["zombie"],u:"1f9df",a:"5.0"},{n:["man zombie","male zombie"],u:"1f9df-200d-2642-fe0f",a:"5.0"},{n:["woman zombie","female zombie"],u:"1f9df-200d-2640-fe0f",a:"5.0"},{n:["troll"],u:"1f9cc",a:"14.0"},{n:["massage","face massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"],a:"0.6"},{n:["man getting massage","man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting massage","woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"],a:"0.6"},{n:["man getting haircut","man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting haircut","woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["walking","pedestrian"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"],a:"0.6"},{n:["man walking","man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman walking","woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["standing person"],u:"1f9cd",v:["1f9cd-1f3fb","1f9cd-1f3fc","1f9cd-1f3fd","1f9cd-1f3fe","1f9cd-1f3ff"],a:"12.0"},{n:["man standing"],u:"1f9cd-200d-2642-fe0f",v:["1f9cd-1f3fb-200d-2642-fe0f","1f9cd-1f3fc-200d-2642-fe0f","1f9cd-1f3fd-200d-2642-fe0f","1f9cd-1f3fe-200d-2642-fe0f","1f9cd-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman standing"],u:"1f9cd-200d-2640-fe0f",v:["1f9cd-1f3fb-200d-2640-fe0f","1f9cd-1f3fc-200d-2640-fe0f","1f9cd-1f3fd-200d-2640-fe0f","1f9cd-1f3fe-200d-2640-fe0f","1f9cd-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["kneeling person"],u:"1f9ce",v:["1f9ce-1f3fb","1f9ce-1f3fc","1f9ce-1f3fd","1f9ce-1f3fe","1f9ce-1f3ff"],a:"12.0"},{n:["man kneeling"],u:"1f9ce-200d-2642-fe0f",v:["1f9ce-1f3fb-200d-2642-fe0f","1f9ce-1f3fc-200d-2642-fe0f","1f9ce-1f3fd-200d-2642-fe0f","1f9ce-1f3fe-200d-2642-fe0f","1f9ce-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman kneeling"],u:"1f9ce-200d-2640-fe0f",v:["1f9ce-1f3fb-200d-2640-fe0f","1f9ce-1f3fc-200d-2640-fe0f","1f9ce-1f3fd-200d-2640-fe0f","1f9ce-1f3fe-200d-2640-fe0f","1f9ce-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["person with white cane","person with probing cane"],u:"1f9d1-200d-1f9af",v:["1f9d1-1f3fb-200d-1f9af","1f9d1-1f3fc-200d-1f9af","1f9d1-1f3fd-200d-1f9af","1f9d1-1f3fe-200d-1f9af","1f9d1-1f3ff-200d-1f9af"],a:"12.1"},{n:["man with white cane","man with probing cane"],u:"1f468-200d-1f9af",v:["1f468-1f3fb-200d-1f9af","1f468-1f3fc-200d-1f9af","1f468-1f3fd-200d-1f9af","1f468-1f3fe-200d-1f9af","1f468-1f3ff-200d-1f9af"],a:"12.0"},{n:["woman with white cane","woman with probing cane"],u:"1f469-200d-1f9af",v:["1f469-1f3fb-200d-1f9af","1f469-1f3fc-200d-1f9af","1f469-1f3fd-200d-1f9af","1f469-1f3fe-200d-1f9af","1f469-1f3ff-200d-1f9af"],a:"12.0"},{n:["person in motorized wheelchair"],u:"1f9d1-200d-1f9bc",v:["1f9d1-1f3fb-200d-1f9bc","1f9d1-1f3fc-200d-1f9bc","1f9d1-1f3fd-200d-1f9bc","1f9d1-1f3fe-200d-1f9bc","1f9d1-1f3ff-200d-1f9bc"],a:"12.1"},{n:["man in motorized wheelchair"],u:"1f468-200d-1f9bc",v:["1f468-1f3fb-200d-1f9bc","1f468-1f3fc-200d-1f9bc","1f468-1f3fd-200d-1f9bc","1f468-1f3fe-200d-1f9bc","1f468-1f3ff-200d-1f9bc"],a:"12.0"},{n:["woman in motorized wheelchair"],u:"1f469-200d-1f9bc",v:["1f469-1f3fb-200d-1f9bc","1f469-1f3fc-200d-1f9bc","1f469-1f3fd-200d-1f9bc","1f469-1f3fe-200d-1f9bc","1f469-1f3ff-200d-1f9bc"],a:"12.0"},{n:["person in manual wheelchair"],u:"1f9d1-200d-1f9bd",v:["1f9d1-1f3fb-200d-1f9bd","1f9d1-1f3fc-200d-1f9bd","1f9d1-1f3fd-200d-1f9bd","1f9d1-1f3fe-200d-1f9bd","1f9d1-1f3ff-200d-1f9bd"],a:"12.1"},{n:["man in manual wheelchair"],u:"1f468-200d-1f9bd",v:["1f468-1f3fb-200d-1f9bd","1f468-1f3fc-200d-1f9bd","1f468-1f3fd-200d-1f9bd","1f468-1f3fe-200d-1f9bd","1f468-1f3ff-200d-1f9bd"],a:"12.0"},{n:["woman in manual wheelchair"],u:"1f469-200d-1f9bd",v:["1f469-1f3fb-200d-1f9bd","1f469-1f3fc-200d-1f9bd","1f469-1f3fd-200d-1f9bd","1f469-1f3fe-200d-1f9bd","1f469-1f3ff-200d-1f9bd"],a:"12.0"},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"],a:"0.6"},{n:["man running","man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman running","woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"],a:"0.6"},{n:["man dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"],a:"3.0"},{n:["person in suit levitating","man in business suit levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"],a:"0.7"},{n:["dancers","woman with bunny ears"],u:"1f46f",a:"0.6"},{n:["men with bunny ears","men-with-bunny-ears-partying","man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f",a:"4.0"},{n:["women with bunny ears","women-with-bunny-ears-partying","woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f",a:"4.0"},{n:["person in steamy room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"],a:"5.0"},{n:["man in steamy room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in steamy room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["person climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"],a:"5.0"},{n:["man climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fencer"],u:"1f93a",a:"3.0"},{n:["horse racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"],a:"1.0"},{n:["skier"],u:"26f7-fe0f",a:"0.7"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"],a:"0.6"},{n:["golfer","person golfing"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"],a:"0.7"},{n:["man golfing","man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman golfing","woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"],a:"0.6"},{n:["man surfing","man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman surfing","woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"],a:"1.0"},{n:["man rowing boat","man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman rowing boat","woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"],a:"0.6"},{n:["man swimming","man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman swimming","woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with ball","person bouncing ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"],a:"0.7"},{n:["man bouncing ball","man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bouncing ball","woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["weight lifter","person lifting weights"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"],a:"0.7"},{n:["man lifting weights","man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman lifting weights","woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"],a:"1.0"},{n:["man biking","man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman biking","woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["mountain bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"],a:"1.0"},{n:["man mountain biking","man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman mountain biking","woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person doing cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"],a:"3.0"},{n:["man cartwheeling","man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman cartwheeling","woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["wrestlers"],u:"1f93c",a:"3.0"},{n:["men wrestling","man-wrestling"],u:"1f93c-200d-2642-fe0f",a:"4.0"},{n:["women wrestling","woman-wrestling"],u:"1f93c-200d-2640-fe0f",a:"4.0"},{n:["water polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"],a:"3.0"},{n:["man playing water polo","man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing water polo","woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"],a:"3.0"},{n:["man playing handball","man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing handball","woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"],a:"3.0"},{n:["man juggling","man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman juggling","woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person in lotus position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"],a:"5.0"},{n:["man in lotus position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in lotus position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"],a:"0.6"},{n:["sleeping accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"],a:"1.0"},{n:["people holding hands"],u:"1f9d1-200d-1f91d-200d-1f9d1",v:["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff"],a:"12.0"},{n:["women holding hands","two women holding hands"],u:"1f46d",v:["1f46d-1f3fb","1f46d-1f3fc","1f46d-1f3fd","1f46d-1f3fe","1f46d-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe"],a:"1.0"},{n:["couple","man and woman holding hands","woman and man holding hands"],u:"1f46b",v:["1f46b-1f3fb","1f46b-1f3fc","1f46b-1f3fd","1f46b-1f3fe","1f46b-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"0.6"},{n:["men holding hands","two men holding hands"],u:"1f46c",v:["1f46c-1f3fb","1f46c-1f3fc","1f46c-1f3fd","1f46c-1f3fe","1f46c-1f3ff","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"1.0"},{n:["kiss","couplekiss"],u:"1f48f",v:["1f48f-1f3fb","1f48f-1f3fc","1f48f-1f3fd","1f48f-1f3fe","1f48f-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-kiss-man","kiss: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["man-kiss-man","kiss: man, man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-kiss-woman","kiss: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff"],a:"2.0"},{n:["couple with heart"],u:"1f491",v:["1f491-1f3fb","1f491-1f3fc","1f491-1f3fd","1f491-1f3fe","1f491-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-heart-man","couple with heart: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["man-heart-man","couple with heart: man, man"],u:"1f468-200d-2764-fe0f-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-heart-woman","couple with heart: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff"],a:"2.0"},{n:["family"],u:"1f46a",a:"0.6"},{n:["man-woman-boy","family: man, woman, boy"],u:"1f468-200d-1f469-200d-1f466",a:"2.0"},{n:["man-woman-girl","family: man, woman, girl"],u:"1f468-200d-1f469-200d-1f467",a:"2.0"},{n:["man-woman-girl-boy","family: man, woman, girl, boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["man-woman-boy-boy","family: man, woman, boy, boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["man-woman-girl-girl","family: man, woman, girl, girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-man-boy","family: man, man, boy"],u:"1f468-200d-1f468-200d-1f466",a:"2.0"},{n:["man-man-girl","family: man, man, girl"],u:"1f468-200d-1f468-200d-1f467",a:"2.0"},{n:["man-man-girl-boy","family: man, man, girl, boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466",a:"2.0"},{n:["man-man-boy-boy","family: man, man, boy, boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466",a:"2.0"},{n:["man-man-girl-girl","family: man, man, girl, girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467",a:"2.0"},{n:["woman-woman-boy","family: woman, woman, boy"],u:"1f469-200d-1f469-200d-1f466",a:"2.0"},{n:["woman-woman-girl","family: woman, woman, girl"],u:"1f469-200d-1f469-200d-1f467",a:"2.0"},{n:["woman-woman-girl-boy","family: woman, woman, girl, boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["woman-woman-boy-boy","family: woman, woman, boy, boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["woman-woman-girl-girl","family: woman, woman, girl, girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-boy","family: man, boy"],u:"1f468-200d-1f466",a:"4.0"},{n:["man-boy-boy","family: man, boy, boy"],u:"1f468-200d-1f466-200d-1f466",a:"4.0"},{n:["man-girl","family: man, girl"],u:"1f468-200d-1f467",a:"4.0"},{n:["man-girl-boy","family: man, girl, boy"],u:"1f468-200d-1f467-200d-1f466",a:"4.0"},{n:["man-girl-girl","family: man, girl, girl"],u:"1f468-200d-1f467-200d-1f467",a:"4.0"},{n:["woman-boy","family: woman, boy"],u:"1f469-200d-1f466",a:"4.0"},{n:["woman-boy-boy","family: woman, boy, boy"],u:"1f469-200d-1f466-200d-1f466",a:"4.0"},{n:["woman-girl","family: woman, girl"],u:"1f469-200d-1f467",a:"4.0"},{n:["woman-girl-boy","family: woman, girl, boy"],u:"1f469-200d-1f467-200d-1f466",a:"4.0"},{n:["woman-girl-girl","family: woman, girl, girl"],u:"1f469-200d-1f467-200d-1f467",a:"4.0"},{n:["speaking head","speaking head in silhouette"],u:"1f5e3-fe0f",a:"0.7"},{n:["bust in silhouette"],u:"1f464",a:"0.6"},{n:["busts in silhouette"],u:"1f465",a:"1.0"},{n:["people hugging"],u:"1fac2",a:"13.0"},{n:["footprints"],u:"1f463",a:"0.6"}],R1=[{n:["monkey face"],u:"1f435",a:"0.6"},{n:["monkey"],u:"1f412",a:"0.6"},{n:["gorilla"],u:"1f98d",a:"3.0"},{n:["orangutan"],u:"1f9a7",a:"12.0"},{n:["dog","dog face"],u:"1f436",a:"0.6"},{n:["dog","dog2"],u:"1f415",a:"0.7"},{n:["guide dog"],u:"1f9ae",a:"12.0"},{n:["service dog"],u:"1f415-200d-1f9ba",a:"12.0"},{n:["poodle"],u:"1f429",a:"0.6"},{n:["wolf","wolf face"],u:"1f43a",a:"0.6"},{n:["fox face"],u:"1f98a",a:"3.0"},{n:["raccoon"],u:"1f99d",a:"11.0"},{n:["cat","cat face"],u:"1f431",a:"0.6"},{n:["cat","cat2"],u:"1f408",a:"0.7"},{n:["black cat"],u:"1f408-200d-2b1b",a:"13.0"},{n:["lion face"],u:"1f981",a:"1.0"},{n:["tiger","tiger face"],u:"1f42f",a:"0.6"},{n:["tiger","tiger2"],u:"1f405",a:"1.0"},{n:["leopard"],u:"1f406",a:"1.0"},{n:["horse","horse face"],u:"1f434",a:"0.6"},{n:["horse","racehorse"],u:"1f40e",a:"0.6"},{n:["unicorn face"],u:"1f984",a:"1.0"},{n:["zebra face"],u:"1f993",a:"5.0"},{n:["deer"],u:"1f98c",a:"3.0"},{n:["bison"],u:"1f9ac",a:"13.0"},{n:["cow","cow face"],u:"1f42e",a:"0.6"},{n:["ox"],u:"1f402",a:"1.0"},{n:["water buffalo"],u:"1f403",a:"1.0"},{n:["cow","cow2"],u:"1f404",a:"1.0"},{n:["pig","pig face"],u:"1f437",a:"0.6"},{n:["pig","pig2"],u:"1f416",a:"1.0"},{n:["boar"],u:"1f417",a:"0.6"},{n:["pig nose"],u:"1f43d",a:"0.6"},{n:["ram"],u:"1f40f",a:"1.0"},{n:["sheep"],u:"1f411",a:"0.6"},{n:["goat"],u:"1f410",a:"1.0"},{n:["dromedary camel"],u:"1f42a",a:"1.0"},{n:["camel","bactrian camel"],u:"1f42b",a:"0.6"},{n:["llama"],u:"1f999",a:"11.0"},{n:["giraffe face"],u:"1f992",a:"5.0"},{n:["elephant"],u:"1f418",a:"0.6"},{n:["mammoth"],u:"1f9a3",a:"13.0"},{n:["rhinoceros"],u:"1f98f",a:"3.0"},{n:["hippopotamus"],u:"1f99b",a:"11.0"},{n:["mouse","mouse face"],u:"1f42d",a:"0.6"},{n:["mouse","mouse2"],u:"1f401",a:"1.0"},{n:["rat"],u:"1f400",a:"1.0"},{n:["hamster","hamster face"],u:"1f439",a:"0.6"},{n:["rabbit","rabbit face"],u:"1f430",a:"0.6"},{n:["rabbit","rabbit2"],u:"1f407",a:"1.0"},{n:["chipmunk"],u:"1f43f-fe0f",a:"0.7"},{n:["beaver"],u:"1f9ab",a:"13.0"},{n:["hedgehog"],u:"1f994",a:"5.0"},{n:["bat"],u:"1f987",a:"3.0"},{n:["bear","bear face"],u:"1f43b",a:"0.6"},{n:["polar bear"],u:"1f43b-200d-2744-fe0f",a:"13.0"},{n:["koala"],u:"1f428",a:"0.6"},{n:["panda face"],u:"1f43c",a:"0.6"},{n:["sloth"],u:"1f9a5",a:"12.0"},{n:["otter"],u:"1f9a6",a:"12.0"},{n:["skunk"],u:"1f9a8",a:"12.0"},{n:["kangaroo"],u:"1f998",a:"11.0"},{n:["badger"],u:"1f9a1",a:"11.0"},{n:["feet","paw prints"],u:"1f43e",a:"0.6"},{n:["turkey"],u:"1f983",a:"1.0"},{n:["chicken"],u:"1f414",a:"0.6"},{n:["rooster"],u:"1f413",a:"1.0"},{n:["hatching chick"],u:"1f423",a:"0.6"},{n:["baby chick"],u:"1f424",a:"0.6"},{n:["hatched chick","front-facing baby chick"],u:"1f425",a:"0.6"},{n:["bird"],u:"1f426",a:"0.6"},{n:["penguin"],u:"1f427",a:"0.6"},{n:["dove","dove of peace"],u:"1f54a-fe0f",a:"0.7"},{n:["eagle"],u:"1f985",a:"3.0"},{n:["duck"],u:"1f986",a:"3.0"},{n:["swan"],u:"1f9a2",a:"11.0"},{n:["owl"],u:"1f989",a:"3.0"},{n:["dodo"],u:"1f9a4",a:"13.0"},{n:["feather"],u:"1fab6",a:"13.0"},{n:["flamingo"],u:"1f9a9",a:"12.0"},{n:["peacock"],u:"1f99a",a:"11.0"},{n:["parrot"],u:"1f99c",a:"11.0"},{n:["frog","frog face"],u:"1f438",a:"0.6"},{n:["crocodile"],u:"1f40a",a:"1.0"},{n:["turtle"],u:"1f422",a:"0.6"},{n:["lizard"],u:"1f98e",a:"3.0"},{n:["snake"],u:"1f40d",a:"0.6"},{n:["dragon face"],u:"1f432",a:"0.6"},{n:["dragon"],u:"1f409",a:"1.0"},{n:["sauropod"],u:"1f995",a:"5.0"},{n:["t-rex"],u:"1f996",a:"5.0"},{n:["whale","spouting whale"],u:"1f433",a:"0.6"},{n:["whale","whale2"],u:"1f40b",a:"1.0"},{n:["dolphin","flipper"],u:"1f42c",a:"0.6"},{n:["seal"],u:"1f9ad",a:"13.0"},{n:["fish"],u:"1f41f",a:"0.6"},{n:["tropical fish"],u:"1f420",a:"0.6"},{n:["blowfish"],u:"1f421",a:"0.6"},{n:["shark"],u:"1f988",a:"3.0"},{n:["octopus"],u:"1f419",a:"0.6"},{n:["shell","spiral shell"],u:"1f41a",a:"0.6"},{n:["coral"],u:"1fab8",a:"14.0"},{n:["snail"],u:"1f40c",a:"0.6"},{n:["butterfly"],u:"1f98b",a:"3.0"},{n:["bug"],u:"1f41b",a:"0.6"},{n:["ant"],u:"1f41c",a:"0.6"},{n:["bee","honeybee"],u:"1f41d",a:"0.6"},{n:["beetle"],u:"1fab2",a:"13.0"},{n:["ladybug","lady beetle"],u:"1f41e",a:"0.6"},{n:["cricket"],u:"1f997",a:"5.0"},{n:["cockroach"],u:"1fab3",a:"13.0"},{n:["spider"],u:"1f577-fe0f",a:"0.7"},{n:["spider web"],u:"1f578-fe0f",a:"0.7"},{n:["scorpion"],u:"1f982",a:"1.0"},{n:["mosquito"],u:"1f99f",a:"11.0"},{n:["fly"],u:"1fab0",a:"13.0"},{n:["worm"],u:"1fab1",a:"13.0"},{n:["microbe"],u:"1f9a0",a:"11.0"},{n:["bouquet"],u:"1f490",a:"0.6"},{n:["cherry blossom"],u:"1f338",a:"0.6"},{n:["white flower"],u:"1f4ae",a:"0.6"},{n:["lotus"],u:"1fab7",a:"14.0"},{n:["rosette"],u:"1f3f5-fe0f",a:"0.7"},{n:["rose"],u:"1f339",a:"0.6"},{n:["wilted flower"],u:"1f940",a:"3.0"},{n:["hibiscus"],u:"1f33a",a:"0.6"},{n:["sunflower"],u:"1f33b",a:"0.6"},{n:["blossom"],u:"1f33c",a:"0.6"},{n:["tulip"],u:"1f337",a:"0.6"},{n:["seedling"],u:"1f331",a:"0.6"},{n:["potted plant"],u:"1fab4",a:"13.0"},{n:["evergreen tree"],u:"1f332",a:"1.0"},{n:["deciduous tree"],u:"1f333",a:"1.0"},{n:["palm tree"],u:"1f334",a:"0.6"},{n:["cactus"],u:"1f335",a:"0.6"},{n:["ear of rice"],u:"1f33e",a:"0.6"},{n:["herb"],u:"1f33f",a:"0.6"},{n:["shamrock"],u:"2618-fe0f",a:"1.0"},{n:["four leaf clover"],u:"1f340",a:"0.6"},{n:["maple leaf"],u:"1f341",a:"0.6"},{n:["fallen leaf"],u:"1f342",a:"0.6"},{n:["leaves","leaf fluttering in wind"],u:"1f343",a:"0.6"},{n:["empty nest"],u:"1fab9",a:"14.0"},{n:["nest with eggs"],u:"1faba",a:"14.0"}],z1=[{n:["grapes"],u:"1f347",a:"0.6"},{n:["melon"],u:"1f348",a:"0.6"},{n:["watermelon"],u:"1f349",a:"0.6"},{n:["tangerine"],u:"1f34a",a:"0.6"},{n:["lemon"],u:"1f34b",a:"1.0"},{n:["banana"],u:"1f34c",a:"0.6"},{n:["pineapple"],u:"1f34d",a:"0.6"},{n:["mango"],u:"1f96d",a:"11.0"},{n:["apple","red apple"],u:"1f34e",a:"0.6"},{n:["green apple"],u:"1f34f",a:"0.6"},{n:["pear"],u:"1f350",a:"1.0"},{n:["peach"],u:"1f351",a:"0.6"},{n:["cherries"],u:"1f352",a:"0.6"},{n:["strawberry"],u:"1f353",a:"0.6"},{n:["blueberries"],u:"1fad0",a:"13.0"},{n:["kiwifruit"],u:"1f95d",a:"3.0"},{n:["tomato"],u:"1f345",a:"0.6"},{n:["olive"],u:"1fad2",a:"13.0"},{n:["coconut"],u:"1f965",a:"5.0"},{n:["avocado"],u:"1f951",a:"3.0"},{n:["eggplant","aubergine"],u:"1f346",a:"0.6"},{n:["potato"],u:"1f954",a:"3.0"},{n:["carrot"],u:"1f955",a:"3.0"},{n:["corn","ear of maize"],u:"1f33d",a:"0.6"},{n:["hot pepper"],u:"1f336-fe0f",a:"0.7"},{n:["bell pepper"],u:"1fad1",a:"13.0"},{n:["cucumber"],u:"1f952",a:"3.0"},{n:["leafy green"],u:"1f96c",a:"11.0"},{n:["broccoli"],u:"1f966",a:"5.0"},{n:["garlic"],u:"1f9c4",a:"12.0"},{n:["onion"],u:"1f9c5",a:"12.0"},{n:["mushroom"],u:"1f344",a:"0.6"},{n:["peanuts"],u:"1f95c",a:"3.0"},{n:["beans"],u:"1fad8",a:"14.0"},{n:["chestnut"],u:"1f330",a:"0.6"},{n:["bread"],u:"1f35e",a:"0.6"},{n:["croissant"],u:"1f950",a:"3.0"},{n:["baguette bread"],u:"1f956",a:"3.0"},{n:["flatbread"],u:"1fad3",a:"13.0"},{n:["pretzel"],u:"1f968",a:"5.0"},{n:["bagel"],u:"1f96f",a:"11.0"},{n:["pancakes"],u:"1f95e",a:"3.0"},{n:["waffle"],u:"1f9c7",a:"12.0"},{n:["cheese wedge"],u:"1f9c0",a:"1.0"},{n:["meat on bone"],u:"1f356",a:"0.6"},{n:["poultry leg"],u:"1f357",a:"0.6"},{n:["cut of meat"],u:"1f969",a:"5.0"},{n:["bacon"],u:"1f953",a:"3.0"},{n:["hamburger"],u:"1f354",a:"0.6"},{n:["fries","french fries"],u:"1f35f",a:"0.6"},{n:["pizza","slice of pizza"],u:"1f355",a:"0.6"},{n:["hotdog","hot dog"],u:"1f32d",a:"1.0"},{n:["sandwich"],u:"1f96a",a:"5.0"},{n:["taco"],u:"1f32e",a:"1.0"},{n:["burrito"],u:"1f32f",a:"1.0"},{n:["tamale"],u:"1fad4",a:"13.0"},{n:["stuffed flatbread"],u:"1f959",a:"3.0"},{n:["falafel"],u:"1f9c6",a:"12.0"},{n:["egg"],u:"1f95a",a:"3.0"},{n:["cooking","fried egg"],u:"1f373",a:"0.6"},{n:["shallow pan of food"],u:"1f958",a:"3.0"},{n:["stew","pot of food"],u:"1f372",a:"0.6"},{n:["fondue"],u:"1fad5",a:"13.0"},{n:["bowl with spoon"],u:"1f963",a:"5.0"},{n:["green salad"],u:"1f957",a:"3.0"},{n:["popcorn"],u:"1f37f",a:"1.0"},{n:["butter"],u:"1f9c8",a:"12.0"},{n:["salt","salt shaker"],u:"1f9c2",a:"11.0"},{n:["canned food"],u:"1f96b",a:"5.0"},{n:["bento","bento box"],u:"1f371",a:"0.6"},{n:["rice cracker"],u:"1f358",a:"0.6"},{n:["rice ball"],u:"1f359",a:"0.6"},{n:["rice","cooked rice"],u:"1f35a",a:"0.6"},{n:["curry","curry and rice"],u:"1f35b",a:"0.6"},{n:["ramen","steaming bowl"],u:"1f35c",a:"0.6"},{n:["spaghetti"],u:"1f35d",a:"0.6"},{n:["sweet potato","roasted sweet potato"],u:"1f360",a:"0.6"},{n:["oden"],u:"1f362",a:"0.6"},{n:["sushi"],u:"1f363",a:"0.6"},{n:["fried shrimp"],u:"1f364",a:"0.6"},{n:["fish cake","fish cake with swirl design"],u:"1f365",a:"0.6"},{n:["moon cake"],u:"1f96e",a:"11.0"},{n:["dango"],u:"1f361",a:"0.6"},{n:["dumpling"],u:"1f95f",a:"5.0"},{n:["fortune cookie"],u:"1f960",a:"5.0"},{n:["takeout box"],u:"1f961",a:"5.0"},{n:["crab"],u:"1f980",a:"1.0"},{n:["lobster"],u:"1f99e",a:"11.0"},{n:["shrimp"],u:"1f990",a:"3.0"},{n:["squid"],u:"1f991",a:"3.0"},{n:["oyster"],u:"1f9aa",a:"12.0"},{n:["icecream","soft ice cream"],u:"1f366",a:"0.6"},{n:["shaved ice"],u:"1f367",a:"0.6"},{n:["ice cream"],u:"1f368",a:"0.6"},{n:["doughnut"],u:"1f369",a:"0.6"},{n:["cookie"],u:"1f36a",a:"0.6"},{n:["birthday","birthday cake"],u:"1f382",a:"0.6"},{n:["cake","shortcake"],u:"1f370",a:"0.6"},{n:["cupcake"],u:"1f9c1",a:"11.0"},{n:["pie"],u:"1f967",a:"5.0"},{n:["chocolate bar"],u:"1f36b",a:"0.6"},{n:["candy"],u:"1f36c",a:"0.6"},{n:["lollipop"],u:"1f36d",a:"0.6"},{n:["custard"],u:"1f36e",a:"0.6"},{n:["honey pot"],u:"1f36f",a:"0.6"},{n:["baby bottle"],u:"1f37c",a:"1.0"},{n:["glass of milk"],u:"1f95b",a:"3.0"},{n:["coffee","hot beverage"],u:"2615",a:"0.6"},{n:["teapot"],u:"1fad6",a:"13.0"},{n:["tea","teacup without handle"],u:"1f375",a:"0.6"},{n:["sake","sake bottle and cup"],u:"1f376",a:"0.6"},{n:["champagne","bottle with popping cork"],u:"1f37e",a:"1.0"},{n:["wine glass"],u:"1f377",a:"0.6"},{n:["cocktail","cocktail glass"],u:"1f378",a:"0.6"},{n:["tropical drink"],u:"1f379",a:"0.6"},{n:["beer","beer mug"],u:"1f37a",a:"0.6"},{n:["beers","clinking beer mugs"],u:"1f37b",a:"0.6"},{n:["clinking glasses"],u:"1f942",a:"3.0"},{n:["tumbler glass"],u:"1f943",a:"3.0"},{n:["pouring liquid"],u:"1fad7",a:"14.0"},{n:["cup with straw"],u:"1f964",a:"5.0"},{n:["bubble tea"],u:"1f9cb",a:"13.0"},{n:["beverage box"],u:"1f9c3",a:"12.0"},{n:["mate drink"],u:"1f9c9",a:"12.0"},{n:["ice cube"],u:"1f9ca",a:"12.0"},{n:["chopsticks"],u:"1f962",a:"5.0"},{n:["knife fork plate","fork and knife with plate"],u:"1f37d-fe0f",a:"0.7"},{n:["fork and knife"],u:"1f374",a:"0.6"},{n:["spoon"],u:"1f944",a:"3.0"},{n:["hocho","knife"],u:"1f52a",a:"0.6"},{n:["jar"],u:"1fad9",a:"14.0"},{n:["amphora"],u:"1f3fa",a:"1.0"}],P1=[{n:["earth africa","earth globe europe-africa"],u:"1f30d",a:"0.7"},{n:["earth americas","earth globe americas"],u:"1f30e",a:"0.7"},{n:["earth asia","earth globe asia-australia"],u:"1f30f",a:"0.6"},{n:["globe with meridians"],u:"1f310",a:"1.0"},{n:["world map"],u:"1f5fa-fe0f",a:"0.7"},{n:["japan","silhouette of japan"],u:"1f5fe",a:"0.6"},{n:["compass"],u:"1f9ed",a:"11.0"},{n:["snow-capped mountain","snow capped mountain"],u:"1f3d4-fe0f",a:"0.7"},{n:["mountain"],u:"26f0-fe0f",a:"0.7"},{n:["volcano"],u:"1f30b",a:"0.6"},{n:["mount fuji"],u:"1f5fb",a:"0.6"},{n:["camping"],u:"1f3d5-fe0f",a:"0.7"},{n:["beach with umbrella"],u:"1f3d6-fe0f",a:"0.7"},{n:["desert"],u:"1f3dc-fe0f",a:"0.7"},{n:["desert island"],u:"1f3dd-fe0f",a:"0.7"},{n:["national park"],u:"1f3de-fe0f",a:"0.7"},{n:["stadium"],u:"1f3df-fe0f",a:"0.7"},{n:["classical building"],u:"1f3db-fe0f",a:"0.7"},{n:["building construction"],u:"1f3d7-fe0f",a:"0.7"},{n:["brick","bricks"],u:"1f9f1",a:"11.0"},{n:["rock"],u:"1faa8",a:"13.0"},{n:["wood"],u:"1fab5",a:"13.0"},{n:["hut"],u:"1f6d6",a:"13.0"},{n:["houses","house buildings"],u:"1f3d8-fe0f",a:"0.7"},{n:["derelict house","derelict house building"],u:"1f3da-fe0f",a:"0.7"},{n:["house","house building"],u:"1f3e0",a:"0.6"},{n:["house with garden"],u:"1f3e1",a:"0.6"},{n:["office","office building"],u:"1f3e2",a:"0.6"},{n:["post office","japanese post office"],u:"1f3e3",a:"0.6"},{n:["european post office"],u:"1f3e4",a:"1.0"},{n:["hospital"],u:"1f3e5",a:"0.6"},{n:["bank"],u:"1f3e6",a:"0.6"},{n:["hotel"],u:"1f3e8",a:"0.6"},{n:["love hotel"],u:"1f3e9",a:"0.6"},{n:["convenience store"],u:"1f3ea",a:"0.6"},{n:["school"],u:"1f3eb",a:"0.6"},{n:["department store"],u:"1f3ec",a:"0.6"},{n:["factory"],u:"1f3ed",a:"0.6"},{n:["japanese castle"],u:"1f3ef",a:"0.6"},{n:["european castle"],u:"1f3f0",a:"0.6"},{n:["wedding"],u:"1f492",a:"0.6"},{n:["tokyo tower"],u:"1f5fc",a:"0.6"},{n:["statue of liberty"],u:"1f5fd",a:"0.6"},{n:["church"],u:"26ea",a:"0.6"},{n:["mosque"],u:"1f54c",a:"1.0"},{n:["hindu temple"],u:"1f6d5",a:"12.0"},{n:["synagogue"],u:"1f54d",a:"1.0"},{n:["shinto shrine"],u:"26e9-fe0f",a:"0.7"},{n:["kaaba"],u:"1f54b",a:"1.0"},{n:["fountain"],u:"26f2",a:"0.6"},{n:["tent"],u:"26fa",a:"0.6"},{n:["foggy"],u:"1f301",a:"0.6"},{n:["night with stars"],u:"1f303",a:"0.6"},{n:["cityscape"],u:"1f3d9-fe0f",a:"0.7"},{n:["sunrise over mountains"],u:"1f304",a:"0.6"},{n:["sunrise"],u:"1f305",a:"0.6"},{n:["city sunset","cityscape at dusk"],u:"1f306",a:"0.6"},{n:["city sunrise","sunset over buildings"],u:"1f307",a:"0.6"},{n:["bridge at night"],u:"1f309",a:"0.6"},{n:["hotsprings","hot springs"],u:"2668-fe0f",a:"0.6"},{n:["carousel horse"],u:"1f3a0",a:"0.6"},{n:["playground slide"],u:"1f6dd",a:"14.0"},{n:["ferris wheel"],u:"1f3a1",a:"0.6"},{n:["roller coaster"],u:"1f3a2",a:"0.6"},{n:["barber","barber pole"],u:"1f488",a:"0.6"},{n:["circus tent"],u:"1f3aa",a:"0.6"},{n:["steam locomotive"],u:"1f682",a:"1.0"},{n:["railway car"],u:"1f683",a:"0.6"},{n:["high-speed train","bullettrain side"],u:"1f684",a:"0.6"},{n:["bullettrain front","high-speed train with bullet nose"],u:"1f685",a:"0.6"},{n:["train","train2"],u:"1f686",a:"1.0"},{n:["metro"],u:"1f687",a:"0.6"},{n:["light rail"],u:"1f688",a:"1.0"},{n:["station"],u:"1f689",a:"0.6"},{n:["tram"],u:"1f68a",a:"1.0"},{n:["monorail"],u:"1f69d",a:"1.0"},{n:["mountain railway"],u:"1f69e",a:"1.0"},{n:["train","tram car"],u:"1f68b",a:"1.0"},{n:["bus"],u:"1f68c",a:"0.6"},{n:["oncoming bus"],u:"1f68d",a:"0.7"},{n:["trolleybus"],u:"1f68e",a:"1.0"},{n:["minibus"],u:"1f690",a:"1.0"},{n:["ambulance"],u:"1f691",a:"0.6"},{n:["fire engine"],u:"1f692",a:"0.6"},{n:["police car"],u:"1f693",a:"0.6"},{n:["oncoming police car"],u:"1f694",a:"0.7"},{n:["taxi"],u:"1f695",a:"0.6"},{n:["oncoming taxi"],u:"1f696",a:"1.0"},{n:["car","red car","automobile"],u:"1f697",a:"0.6"},{n:["oncoming automobile"],u:"1f698",a:"0.7"},{n:["blue car","recreational vehicle"],u:"1f699",a:"0.6"},{n:["pickup truck"],u:"1f6fb",a:"13.0"},{n:["truck","delivery truck"],u:"1f69a",a:"0.6"},{n:["articulated lorry"],u:"1f69b",a:"1.0"},{n:["tractor"],u:"1f69c",a:"1.0"},{n:["racing car"],u:"1f3ce-fe0f",a:"0.7"},{n:["motorcycle","racing motorcycle"],u:"1f3cd-fe0f",a:"0.7"},{n:["motor scooter"],u:"1f6f5",a:"3.0"},{n:["manual wheelchair"],u:"1f9bd",a:"12.0"},{n:["motorized wheelchair"],u:"1f9bc",a:"12.0"},{n:["auto rickshaw"],u:"1f6fa",a:"12.0"},{n:["bike","bicycle"],u:"1f6b2",a:"0.6"},{n:["scooter"],u:"1f6f4",a:"3.0"},{n:["skateboard"],u:"1f6f9",a:"11.0"},{n:["roller skate"],u:"1f6fc",a:"13.0"},{n:["busstop","bus stop"],u:"1f68f",a:"0.6"},{n:["motorway"],u:"1f6e3-fe0f",a:"0.7"},{n:["railway track"],u:"1f6e4-fe0f",a:"0.7"},{n:["oil drum"],u:"1f6e2-fe0f",a:"0.7"},{n:["fuelpump","fuel pump"],u:"26fd",a:"0.6"},{n:["wheel"],u:"1f6de",a:"14.0"},{n:["rotating light","police cars revolving light"],u:"1f6a8",a:"0.6"},{n:["traffic light","horizontal traffic light"],u:"1f6a5",a:"0.6"},{n:["vertical traffic light"],u:"1f6a6",a:"1.0"},{n:["octagonal sign"],u:"1f6d1",a:"3.0"},{n:["construction","construction sign"],u:"1f6a7",a:"0.6"},{n:["anchor"],u:"2693",a:"0.6"},{n:["ring buoy"],u:"1f6df",a:"14.0"},{n:["boat","sailboat"],u:"26f5",a:"0.6"},{n:["canoe"],u:"1f6f6",a:"3.0"},{n:["speedboat"],u:"1f6a4",a:"0.6"},{n:["passenger ship"],u:"1f6f3-fe0f",a:"0.7"},{n:["ferry"],u:"26f4-fe0f",a:"0.7"},{n:["motor boat"],u:"1f6e5-fe0f",a:"0.7"},{n:["ship"],u:"1f6a2",a:"0.6"},{n:["airplane"],u:"2708-fe0f",a:"0.6"},{n:["small airplane"],u:"1f6e9-fe0f",a:"0.7"},{n:["airplane departure"],u:"1f6eb",a:"1.0"},{n:["airplane arriving"],u:"1f6ec",a:"1.0"},{n:["parachute"],u:"1fa82",a:"12.0"},{n:["seat"],u:"1f4ba",a:"0.6"},{n:["helicopter"],u:"1f681",a:"1.0"},{n:["suspension railway"],u:"1f69f",a:"1.0"},{n:["mountain cableway"],u:"1f6a0",a:"1.0"},{n:["aerial tramway"],u:"1f6a1",a:"1.0"},{n:["satellite"],u:"1f6f0-fe0f",a:"0.7"},{n:["rocket"],u:"1f680",a:"0.6"},{n:["flying saucer"],u:"1f6f8",a:"5.0"},{n:["bellhop bell"],u:"1f6ce-fe0f",a:"0.7"},{n:["luggage"],u:"1f9f3",a:"11.0"},{n:["hourglass"],u:"231b",a:"0.6"},{n:["hourglass flowing sand","hourglass with flowing sand"],u:"23f3",a:"0.6"},{n:["watch"],u:"231a",a:"0.6"},{n:["alarm clock"],u:"23f0",a:"0.6"},{n:["stopwatch"],u:"23f1-fe0f",a:"1.0"},{n:["timer clock"],u:"23f2-fe0f",a:"1.0"},{n:["mantelpiece clock"],u:"1f570-fe0f",a:"0.7"},{n:["clock12","clock face twelve oclock"],u:"1f55b",a:"0.6"},{n:["clock1230","clock face twelve-thirty"],u:"1f567",a:"0.7"},{n:["clock1","clock face one oclock"],u:"1f550",a:"0.6"},{n:["clock130","clock face one-thirty"],u:"1f55c",a:"0.7"},{n:["clock2","clock face two oclock"],u:"1f551",a:"0.6"},{n:["clock230","clock face two-thirty"],u:"1f55d",a:"0.7"},{n:["clock3","clock face three oclock"],u:"1f552",a:"0.6"},{n:["clock330","clock face three-thirty"],u:"1f55e",a:"0.7"},{n:["clock4","clock face four oclock"],u:"1f553",a:"0.6"},{n:["clock430","clock face four-thirty"],u:"1f55f",a:"0.7"},{n:["clock5","clock face five oclock"],u:"1f554",a:"0.6"},{n:["clock530","clock face five-thirty"],u:"1f560",a:"0.7"},{n:["clock6","clock face six oclock"],u:"1f555",a:"0.6"},{n:["clock630","clock face six-thirty"],u:"1f561",a:"0.7"},{n:["clock7","clock face seven oclock"],u:"1f556",a:"0.6"},{n:["clock730","clock face seven-thirty"],u:"1f562",a:"0.7"},{n:["clock8","clock face eight oclock"],u:"1f557",a:"0.6"},{n:["clock830","clock face eight-thirty"],u:"1f563",a:"0.7"},{n:["clock9","clock face nine oclock"],u:"1f558",a:"0.6"},{n:["clock930","clock face nine-thirty"],u:"1f564",a:"0.7"},{n:["clock10","clock face ten oclock"],u:"1f559",a:"0.6"},{n:["clock1030","clock face ten-thirty"],u:"1f565",a:"0.7"},{n:["clock11","clock face eleven oclock"],u:"1f55a",a:"0.6"},{n:["clock1130","clock face eleven-thirty"],u:"1f566",a:"0.7"},{n:["new moon","new moon symbol"],u:"1f311",a:"0.6"},{n:["waxing crescent moon","waxing crescent moon symbol"],u:"1f312",a:"1.0"},{n:["first quarter moon","first quarter moon symbol"],u:"1f313",a:"0.6"},{n:["moon","waxing gibbous moon","waxing gibbous moon symbol"],u:"1f314",a:"0.6"},{n:["full moon","full moon symbol"],u:"1f315",a:"0.6"},{n:["waning gibbous moon","waning gibbous moon symbol"],u:"1f316",a:"1.0"},{n:["last quarter moon","last quarter moon symbol"],u:"1f317",a:"1.0"},{n:["waning crescent moon","waning crescent moon symbol"],u:"1f318",a:"1.0"},{n:["crescent moon"],u:"1f319",a:"0.6"},{n:["new moon with face"],u:"1f31a",a:"1.0"},{n:["first quarter moon with face"],u:"1f31b",a:"0.6"},{n:["last quarter moon with face"],u:"1f31c",a:"0.7"},{n:["thermometer"],u:"1f321-fe0f",a:"0.7"},{n:["sunny","black sun with rays"],u:"2600-fe0f",a:"0.6"},{n:["full moon with face"],u:"1f31d",a:"1.0"},{n:["sun with face"],u:"1f31e",a:"1.0"},{n:["ringed planet"],u:"1fa90",a:"12.0"},{n:["star","white medium star"],u:"2b50",a:"0.6"},{n:["star2","glowing star"],u:"1f31f",a:"0.6"},{n:["stars","shooting star"],u:"1f320",a:"0.6"},{n:["milky way"],u:"1f30c",a:"0.6"},{n:["cloud"],u:"2601-fe0f",a:"0.6"},{n:["partly sunny","sun behind cloud"],u:"26c5",a:"0.6"},{n:["thunder cloud and rain","cloud with lightning and rain"],u:"26c8-fe0f",a:"0.7"},{n:["mostly sunny","sun small cloud","sun behind small cloud"],u:"1f324-fe0f",a:"0.7"},{n:["barely sunny","sun behind cloud","sun behind large cloud"],u:"1f325-fe0f",a:"0.7"},{n:["partly sunny rain","sun behind rain cloud"],u:"1f326-fe0f",a:"0.7"},{n:["rain cloud","cloud with rain"],u:"1f327-fe0f",a:"0.7"},{n:["snow cloud","cloud with snow"],u:"1f328-fe0f",a:"0.7"},{n:["lightning","lightning cloud","cloud with lightning"],u:"1f329-fe0f",a:"0.7"},{n:["tornado","tornado cloud"],u:"1f32a-fe0f",a:"0.7"},{n:["fog"],u:"1f32b-fe0f",a:"0.7"},{n:["wind face","wind blowing face"],u:"1f32c-fe0f",a:"0.7"},{n:["cyclone"],u:"1f300",a:"0.6"},{n:["rainbow"],u:"1f308",a:"0.6"},{n:["closed umbrella"],u:"1f302",a:"0.6"},{n:["umbrella"],u:"2602-fe0f",a:"0.7"},{n:["umbrella with rain drops"],u:"2614",a:"0.6"},{n:["umbrella on ground"],u:"26f1-fe0f",a:"0.7"},{n:["zap","high voltage sign"],u:"26a1",a:"0.6"},{n:["snowflake"],u:"2744-fe0f",a:"0.6"},{n:["snowman"],u:"2603-fe0f",a:"0.7"},{n:["snowman without snow"],u:"26c4",a:"0.6"},{n:["comet"],u:"2604-fe0f",a:"1.0"},{n:["fire"],u:"1f525",a:"0.6"},{n:["droplet"],u:"1f4a7",a:"0.6"},{n:["ocean","water wave"],u:"1f30a",a:"0.6"}],T1=[{n:["jack-o-lantern","jack o lantern"],u:"1f383",a:"0.6"},{n:["christmas tree"],u:"1f384",a:"0.6"},{n:["fireworks"],u:"1f386",a:"0.6"},{n:["sparkler","firework sparkler"],u:"1f387",a:"0.6"},{n:["firecracker"],u:"1f9e8",a:"11.0"},{n:["sparkles"],u:"2728",a:"0.6"},{n:["balloon"],u:"1f388",a:"0.6"},{n:["tada","party popper"],u:"1f389",a:"0.6"},{n:["confetti ball"],u:"1f38a",a:"0.6"},{n:["tanabata tree"],u:"1f38b",a:"0.6"},{n:["bamboo","pine decoration"],u:"1f38d",a:"0.6"},{n:["dolls","japanese dolls"],u:"1f38e",a:"0.6"},{n:["flags","carp streamer"],u:"1f38f",a:"0.6"},{n:["wind chime"],u:"1f390",a:"0.6"},{n:["rice scene","moon viewing ceremony"],u:"1f391",a:"0.6"},{n:["red envelope","red gift envelope"],u:"1f9e7",a:"11.0"},{n:["ribbon"],u:"1f380",a:"0.6"},{n:["gift","wrapped present"],u:"1f381",a:"0.6"},{n:["reminder ribbon"],u:"1f397-fe0f",a:"0.7"},{n:["admission tickets"],u:"1f39f-fe0f",a:"0.7"},{n:["ticket"],u:"1f3ab",a:"0.6"},{n:["medal","military medal"],u:"1f396-fe0f",a:"0.7"},{n:["trophy"],u:"1f3c6",a:"0.6"},{n:["sports medal"],u:"1f3c5",a:"1.0"},{n:["first place medal"],u:"1f947",a:"3.0"},{n:["second place medal"],u:"1f948",a:"3.0"},{n:["third place medal"],u:"1f949",a:"3.0"},{n:["soccer","soccer ball"],u:"26bd",a:"0.6"},{n:["baseball"],u:"26be",a:"0.6"},{n:["softball"],u:"1f94e",a:"11.0"},{n:["basketball","basketball and hoop"],u:"1f3c0",a:"0.6"},{n:["volleyball"],u:"1f3d0",a:"1.0"},{n:["football","american football"],u:"1f3c8",a:"0.6"},{n:["rugby football"],u:"1f3c9",a:"1.0"},{n:["tennis","tennis racquet and ball"],u:"1f3be",a:"0.6"},{n:["flying disc"],u:"1f94f",a:"11.0"},{n:["bowling"],u:"1f3b3",a:"0.6"},{n:["cricket bat and ball"],u:"1f3cf",a:"1.0"},{n:["field hockey stick and ball"],u:"1f3d1",a:"1.0"},{n:["ice hockey stick and puck"],u:"1f3d2",a:"1.0"},{n:["lacrosse","lacrosse stick and ball"],u:"1f94d",a:"11.0"},{n:["table tennis paddle and ball"],u:"1f3d3",a:"1.0"},{n:["badminton racquet and shuttlecock"],u:"1f3f8",a:"1.0"},{n:["boxing glove"],u:"1f94a",a:"3.0"},{n:["martial arts uniform"],u:"1f94b",a:"3.0"},{n:["goal net"],u:"1f945",a:"3.0"},{n:["golf","flag in hole"],u:"26f3",a:"0.6"},{n:["ice skate"],u:"26f8-fe0f",a:"0.7"},{n:["fishing pole and fish"],u:"1f3a3",a:"0.6"},{n:["diving mask"],u:"1f93f",a:"12.0"},{n:["running shirt with sash"],u:"1f3bd",a:"0.6"},{n:["ski","ski and ski boot"],u:"1f3bf",a:"0.6"},{n:["sled"],u:"1f6f7",a:"5.0"},{n:["curling stone"],u:"1f94c",a:"5.0"},{n:["dart","direct hit"],u:"1f3af",a:"0.6"},{n:["yo-yo"],u:"1fa80",a:"12.0"},{n:["kite"],u:"1fa81",a:"12.0"},{n:["8ball","billiards"],u:"1f3b1",a:"0.6"},{n:["crystal ball"],u:"1f52e",a:"0.6"},{n:["magic wand"],u:"1fa84",a:"13.0"},{n:["nazar amulet"],u:"1f9ff",a:"11.0"},{n:["hamsa"],u:"1faac",a:"14.0"},{n:["video game"],u:"1f3ae",a:"0.6"},{n:["joystick"],u:"1f579-fe0f",a:"0.7"},{n:["slot machine"],u:"1f3b0",a:"0.6"},{n:["game die"],u:"1f3b2",a:"0.6"},{n:["jigsaw","jigsaw puzzle piece"],u:"1f9e9",a:"11.0"},{n:["teddy bear"],u:"1f9f8",a:"11.0"},{n:["pinata"],u:"1fa85",a:"13.0"},{n:["mirror ball"],u:"1faa9",a:"14.0"},{n:["nesting dolls"],u:"1fa86",a:"13.0"},{n:["spades","black spade suit"],u:"2660-fe0f",a:"0.6"},{n:["hearts","black heart suit"],u:"2665-fe0f",a:"0.6"},{n:["diamonds","black diamond suit"],u:"2666-fe0f",a:"0.6"},{n:["clubs","black club suit"],u:"2663-fe0f",a:"0.6"},{n:["chess pawn"],u:"265f-fe0f",a:"11.0"},{n:["black joker","playing card black joker"],u:"1f0cf",a:"0.6"},{n:["mahjong","mahjong tile red dragon"],u:"1f004",a:"0.6"},{n:["flower playing cards"],u:"1f3b4",a:"0.6"},{n:["performing arts"],u:"1f3ad",a:"0.6"},{n:["framed picture","frame with picture"],u:"1f5bc-fe0f",a:"0.7"},{n:["art","artist palette"],u:"1f3a8",a:"0.6"},{n:["thread","spool of thread"],u:"1f9f5",a:"11.0"},{n:["sewing needle"],u:"1faa1",a:"13.0"},{n:["yarn","ball of yarn"],u:"1f9f6",a:"11.0"},{n:["knot"],u:"1faa2",a:"13.0"}],A1=[{n:["eyeglasses"],u:"1f453",a:"0.6"},{n:["sunglasses","dark sunglasses"],u:"1f576-fe0f",a:"0.7"},{n:["goggles"],u:"1f97d",a:"11.0"},{n:["lab coat"],u:"1f97c",a:"11.0"},{n:["safety vest"],u:"1f9ba",a:"12.0"},{n:["necktie"],u:"1f454",a:"0.6"},{n:["shirt","tshirt","t-shirt"],u:"1f455",a:"0.6"},{n:["jeans"],u:"1f456",a:"0.6"},{n:["scarf"],u:"1f9e3",a:"5.0"},{n:["gloves"],u:"1f9e4",a:"5.0"},{n:["coat"],u:"1f9e5",a:"5.0"},{n:["socks"],u:"1f9e6",a:"5.0"},{n:["dress"],u:"1f457",a:"0.6"},{n:["kimono"],u:"1f458",a:"0.6"},{n:["sari"],u:"1f97b",a:"12.0"},{n:["one-piece swimsuit"],u:"1fa71",a:"12.0"},{n:["briefs"],u:"1fa72",a:"12.0"},{n:["shorts"],u:"1fa73",a:"12.0"},{n:["bikini"],u:"1f459",a:"0.6"},{n:["womans clothes"],u:"1f45a",a:"0.6"},{n:["purse"],u:"1f45b",a:"0.6"},{n:["handbag"],u:"1f45c",a:"0.6"},{n:["pouch"],u:"1f45d",a:"0.6"},{n:["shopping bags"],u:"1f6cd-fe0f",a:"0.7"},{n:["school satchel"],u:"1f392",a:"0.6"},{n:["thong sandal"],u:"1fa74",a:"13.0"},{n:["shoe","mans shoe"],u:"1f45e",a:"0.6"},{n:["athletic shoe"],u:"1f45f",a:"0.6"},{n:["hiking boot"],u:"1f97e",a:"11.0"},{n:["flat shoe","womans flat shoe"],u:"1f97f",a:"11.0"},{n:["high heel","high-heeled shoe"],u:"1f460",a:"0.6"},{n:["sandal","womans sandal"],u:"1f461",a:"0.6"},{n:["ballet shoes"],u:"1fa70",a:"12.0"},{n:["boot","womans boots"],u:"1f462",a:"0.6"},{n:["crown"],u:"1f451",a:"0.6"},{n:["womans hat"],u:"1f452",a:"0.6"},{n:["tophat","top hat"],u:"1f3a9",a:"0.6"},{n:["mortar board","graduation cap"],u:"1f393",a:"0.6"},{n:["billed cap"],u:"1f9e2",a:"5.0"},{n:["military helmet"],u:"1fa96",a:"13.0"},{n:["rescue worker’s helmet","helmet with white cross"],u:"26d1-fe0f",a:"0.7"},{n:["prayer beads"],u:"1f4ff",a:"1.0"},{n:["lipstick"],u:"1f484",a:"0.6"},{n:["ring"],u:"1f48d",a:"0.6"},{n:["gem","gem stone"],u:"1f48e",a:"0.6"},{n:["mute","speaker with cancellation stroke"],u:"1f507",a:"1.0"},{n:["speaker"],u:"1f508",a:"0.7"},{n:["sound","speaker with one sound wave"],u:"1f509",a:"1.0"},{n:["loud sound","speaker with three sound waves"],u:"1f50a",a:"0.6"},{n:["loudspeaker","public address loudspeaker"],u:"1f4e2",a:"0.6"},{n:["mega","cheering megaphone"],u:"1f4e3",a:"0.6"},{n:["postal horn"],u:"1f4ef",a:"1.0"},{n:["bell"],u:"1f514",a:"0.6"},{n:["no bell","bell with cancellation stroke"],u:"1f515",a:"1.0"},{n:["musical score"],u:"1f3bc",a:"0.6"},{n:["musical note"],u:"1f3b5",a:"0.6"},{n:["notes","multiple musical notes"],u:"1f3b6",a:"0.6"},{n:["studio microphone"],u:"1f399-fe0f",a:"0.7"},{n:["level slider"],u:"1f39a-fe0f",a:"0.7"},{n:["control knobs"],u:"1f39b-fe0f",a:"0.7"},{n:["microphone"],u:"1f3a4",a:"0.6"},{n:["headphone","headphones"],u:"1f3a7",a:"0.6"},{n:["radio"],u:"1f4fb",a:"0.6"},{n:["saxophone"],u:"1f3b7",a:"0.6"},{n:["accordion"],u:"1fa97",a:"13.0"},{n:["guitar"],u:"1f3b8",a:"0.6"},{n:["musical keyboard"],u:"1f3b9",a:"0.6"},{n:["trumpet"],u:"1f3ba",a:"0.6"},{n:["violin"],u:"1f3bb",a:"0.6"},{n:["banjo"],u:"1fa95",a:"12.0"},{n:["drum with drumsticks"],u:"1f941",a:"3.0"},{n:["long drum"],u:"1fa98",a:"13.0"},{n:["iphone","mobile phone"],u:"1f4f1",a:"0.6"},{n:["calling","mobile phone with rightwards arrow at left"],u:"1f4f2",a:"0.6"},{n:["phone","telephone","black telephone"],u:"260e-fe0f",a:"0.6"},{n:["telephone receiver"],u:"1f4de",a:"0.6"},{n:["pager"],u:"1f4df",a:"0.6"},{n:["fax","fax machine"],u:"1f4e0",a:"0.6"},{n:["battery"],u:"1f50b",a:"0.6"},{n:["low battery"],u:"1faab",a:"14.0"},{n:["electric plug"],u:"1f50c",a:"0.6"},{n:["computer","personal computer"],u:"1f4bb",a:"0.6"},{n:["desktop computer"],u:"1f5a5-fe0f",a:"0.7"},{n:["printer"],u:"1f5a8-fe0f",a:"0.7"},{n:["keyboard"],u:"2328-fe0f",a:"1.0"},{n:["computer mouse","three button mouse"],u:"1f5b1-fe0f",a:"0.7"},{n:["trackball"],u:"1f5b2-fe0f",a:"0.7"},{n:["minidisc"],u:"1f4bd",a:"0.6"},{n:["floppy disk"],u:"1f4be",a:"0.6"},{n:["cd","optical disc"],u:"1f4bf",a:"0.6"},{n:["dvd"],u:"1f4c0",a:"0.6"},{n:["abacus"],u:"1f9ee",a:"11.0"},{n:["movie camera"],u:"1f3a5",a:"0.6"},{n:["film frames"],u:"1f39e-fe0f",a:"0.7"},{n:["film projector"],u:"1f4fd-fe0f",a:"0.7"},{n:["clapper","clapper board"],u:"1f3ac",a:"0.6"},{n:["tv","television"],u:"1f4fa",a:"0.6"},{n:["camera"],u:"1f4f7",a:"0.6"},{n:["camera with flash"],u:"1f4f8",a:"1.0"},{n:["video camera"],u:"1f4f9",a:"0.6"},{n:["vhs","videocassette"],u:"1f4fc",a:"0.6"},{n:["mag","left-pointing magnifying glass"],u:"1f50d",a:"0.6"},{n:["mag right","right-pointing magnifying glass"],u:"1f50e",a:"0.6"},{n:["candle"],u:"1f56f-fe0f",a:"0.7"},{n:["bulb","electric light bulb"],u:"1f4a1",a:"0.6"},{n:["flashlight","electric torch"],u:"1f526",a:"0.6"},{n:["lantern","izakaya lantern"],u:"1f3ee",a:"0.6"},{n:["diya lamp"],u:"1fa94",a:"12.0"},{n:["notebook with decorative cover"],u:"1f4d4",a:"0.6"},{n:["closed book"],u:"1f4d5",a:"0.6"},{n:["book","open book"],u:"1f4d6",a:"0.6"},{n:["green book"],u:"1f4d7",a:"0.6"},{n:["blue book"],u:"1f4d8",a:"0.6"},{n:["orange book"],u:"1f4d9",a:"0.6"},{n:["books"],u:"1f4da",a:"0.6"},{n:["notebook"],u:"1f4d3",a:"0.6"},{n:["ledger"],u:"1f4d2",a:"0.6"},{n:["page with curl"],u:"1f4c3",a:"0.6"},{n:["scroll"],u:"1f4dc",a:"0.6"},{n:["page facing up"],u:"1f4c4",a:"0.6"},{n:["newspaper"],u:"1f4f0",a:"0.6"},{n:["rolled-up newspaper","rolled up newspaper"],u:"1f5de-fe0f",a:"0.7"},{n:["bookmark tabs"],u:"1f4d1",a:"0.6"},{n:["bookmark"],u:"1f516",a:"0.6"},{n:["label"],u:"1f3f7-fe0f",a:"0.7"},{n:["moneybag","money bag"],u:"1f4b0",a:"0.6"},{n:["coin"],u:"1fa99",a:"13.0"},{n:["yen","banknote with yen sign"],u:"1f4b4",a:"0.6"},{n:["dollar","banknote with dollar sign"],u:"1f4b5",a:"0.6"},{n:["euro","banknote with euro sign"],u:"1f4b6",a:"1.0"},{n:["pound","banknote with pound sign"],u:"1f4b7",a:"1.0"},{n:["money with wings"],u:"1f4b8",a:"0.6"},{n:["credit card"],u:"1f4b3",a:"0.6"},{n:["receipt"],u:"1f9fe",a:"11.0"},{n:["chart","chart with upwards trend and yen sign"],u:"1f4b9",a:"0.6"},{n:["email","envelope"],u:"2709-fe0f",a:"0.6"},{n:["e-mail","e-mail symbol"],u:"1f4e7",a:"0.6"},{n:["incoming envelope"],u:"1f4e8",a:"0.6"},{n:["envelope with arrow","envelope with downwards arrow above"],u:"1f4e9",a:"0.6"},{n:["outbox tray"],u:"1f4e4",a:"0.6"},{n:["inbox tray"],u:"1f4e5",a:"0.6"},{n:["package"],u:"1f4e6",a:"0.6"},{n:["mailbox","closed mailbox with raised flag"],u:"1f4eb",a:"0.6"},{n:["mailbox closed","closed mailbox with lowered flag"],u:"1f4ea",a:"0.6"},{n:["mailbox with mail","open mailbox with raised flag"],u:"1f4ec",a:"0.7"},{n:["mailbox with no mail","open mailbox with lowered flag"],u:"1f4ed",a:"0.7"},{n:["postbox"],u:"1f4ee",a:"0.6"},{n:["ballot box with ballot"],u:"1f5f3-fe0f",a:"0.7"},{n:["pencil","pencil2"],u:"270f-fe0f",a:"0.6"},{n:["black nib"],u:"2712-fe0f",a:"0.6"},{n:["fountain pen","lower left fountain pen"],u:"1f58b-fe0f",a:"0.7"},{n:["pen","lower left ballpoint pen"],u:"1f58a-fe0f",a:"0.7"},{n:["paintbrush","lower left paintbrush"],u:"1f58c-fe0f",a:"0.7"},{n:["crayon","lower left crayon"],u:"1f58d-fe0f",a:"0.7"},{n:["memo","pencil"],u:"1f4dd",a:"0.6"},{n:["briefcase"],u:"1f4bc",a:"0.6"},{n:["file folder"],u:"1f4c1",a:"0.6"},{n:["open file folder"],u:"1f4c2",a:"0.6"},{n:["card index dividers"],u:"1f5c2-fe0f",a:"0.7"},{n:["date","calendar"],u:"1f4c5",a:"0.6"},{n:["calendar","tear-off calendar"],u:"1f4c6",a:"0.6"},{n:["spiral notepad","spiral note pad"],u:"1f5d2-fe0f",a:"0.7"},{n:["spiral calendar","spiral calendar pad"],u:"1f5d3-fe0f",a:"0.7"},{n:["card index"],u:"1f4c7",a:"0.6"},{n:["chart with upwards trend"],u:"1f4c8",a:"0.6"},{n:["chart with downwards trend"],u:"1f4c9",a:"0.6"},{n:["bar chart"],u:"1f4ca",a:"0.6"},{n:["clipboard"],u:"1f4cb",a:"0.6"},{n:["pushpin"],u:"1f4cc",a:"0.6"},{n:["round pushpin"],u:"1f4cd",a:"0.6"},{n:["paperclip"],u:"1f4ce",a:"0.6"},{n:["linked paperclips"],u:"1f587-fe0f",a:"0.7"},{n:["straight ruler"],u:"1f4cf",a:"0.6"},{n:["triangular ruler"],u:"1f4d0",a:"0.6"},{n:["scissors","black scissors"],u:"2702-fe0f",a:"0.6"},{n:["card file box"],u:"1f5c3-fe0f",a:"0.7"},{n:["file cabinet"],u:"1f5c4-fe0f",a:"0.7"},{n:["wastebasket"],u:"1f5d1-fe0f",a:"0.7"},{n:["lock"],u:"1f512",a:"0.6"},{n:["unlock","open lock"],u:"1f513",a:"0.6"},{n:["lock with ink pen"],u:"1f50f",a:"0.6"},{n:["closed lock with key"],u:"1f510",a:"0.6"},{n:["key"],u:"1f511",a:"0.6"},{n:["old key"],u:"1f5dd-fe0f",a:"0.7"},{n:["hammer"],u:"1f528",a:"0.6"},{n:["axe"],u:"1fa93",a:"12.0"},{n:["pick"],u:"26cf-fe0f",a:"0.7"},{n:["hammer and pick"],u:"2692-fe0f",a:"1.0"},{n:["hammer and wrench"],u:"1f6e0-fe0f",a:"0.7"},{n:["dagger","dagger knife"],u:"1f5e1-fe0f",a:"0.7"},{n:["crossed swords"],u:"2694-fe0f",a:"1.0"},{n:["gun","pistol"],u:"1f52b",a:"0.6"},{n:["boomerang"],u:"1fa83",a:"13.0"},{n:["bow and arrow"],u:"1f3f9",a:"1.0"},{n:["shield"],u:"1f6e1-fe0f",a:"0.7"},{n:["carpentry saw"],u:"1fa9a",a:"13.0"},{n:["wrench"],u:"1f527",a:"0.6"},{n:["screwdriver"],u:"1fa9b",a:"13.0"},{n:["nut and bolt"],u:"1f529",a:"0.6"},{n:["gear"],u:"2699-fe0f",a:"1.0"},{n:["clamp","compression"],u:"1f5dc-fe0f",a:"0.7"},{n:["scales","balance scale"],u:"2696-fe0f",a:"1.0"},{n:["probing cane"],u:"1f9af",a:"12.0"},{n:["link","link symbol"],u:"1f517",a:"0.6"},{n:["chains"],u:"26d3-fe0f",a:"0.7"},{n:["hook"],u:"1fa9d",a:"13.0"},{n:["toolbox"],u:"1f9f0",a:"11.0"},{n:["magnet"],u:"1f9f2",a:"11.0"},{n:["ladder"],u:"1fa9c",a:"13.0"},{n:["alembic"],u:"2697-fe0f",a:"1.0"},{n:["test tube"],u:"1f9ea",a:"11.0"},{n:["petri dish"],u:"1f9eb",a:"11.0"},{n:["dna","dna double helix"],u:"1f9ec",a:"11.0"},{n:["microscope"],u:"1f52c",a:"1.0"},{n:["telescope"],u:"1f52d",a:"1.0"},{n:["satellite antenna"],u:"1f4e1",a:"0.6"},{n:["syringe"],u:"1f489",a:"0.6"},{n:["drop of blood"],u:"1fa78",a:"12.0"},{n:["pill"],u:"1f48a",a:"0.6"},{n:["adhesive bandage"],u:"1fa79",a:"12.0"},{n:["crutch"],u:"1fa7c",a:"14.0"},{n:["stethoscope"],u:"1fa7a",a:"12.0"},{n:["x-ray"],u:"1fa7b",a:"14.0"},{n:["door"],u:"1f6aa",a:"0.6"},{n:["elevator"],u:"1f6d7",a:"13.0"},{n:["mirror"],u:"1fa9e",a:"13.0"},{n:["window"],u:"1fa9f",a:"13.0"},{n:["bed"],u:"1f6cf-fe0f",a:"0.7"},{n:["couch and lamp"],u:"1f6cb-fe0f",a:"0.7"},{n:["chair"],u:"1fa91",a:"12.0"},{n:["toilet"],u:"1f6bd",a:"0.6"},{n:["plunger"],u:"1faa0",a:"13.0"},{n:["shower"],u:"1f6bf",a:"1.0"},{n:["bathtub"],u:"1f6c1",a:"1.0"},{n:["mouse trap"],u:"1faa4",a:"13.0"},{n:["razor"],u:"1fa92",a:"12.0"},{n:["lotion bottle"],u:"1f9f4",a:"11.0"},{n:["safety pin"],u:"1f9f7",a:"11.0"},{n:["broom"],u:"1f9f9",a:"11.0"},{n:["basket"],u:"1f9fa",a:"11.0"},{n:["roll of paper"],u:"1f9fb",a:"11.0"},{n:["bucket"],u:"1faa3",a:"13.0"},{n:["soap","bar of soap"],u:"1f9fc",a:"11.0"},{n:["bubbles"],u:"1fae7",a:"14.0"},{n:["toothbrush"],u:"1faa5",a:"13.0"},{n:["sponge"],u:"1f9fd",a:"11.0"},{n:["fire extinguisher"],u:"1f9ef",a:"11.0"},{n:["shopping trolley"],u:"1f6d2",a:"3.0"},{n:["smoking","smoking symbol"],u:"1f6ac",a:"0.6"},{n:["coffin"],u:"26b0-fe0f",a:"1.0"},{n:["headstone"],u:"1faa6",a:"13.0"},{n:["funeral urn"],u:"26b1-fe0f",a:"1.0"},{n:["moyai"],u:"1f5ff",a:"0.6"},{n:["placard"],u:"1faa7",a:"13.0"},{n:["identification card"],u:"1faaa",a:"14.0"}],M1=[{n:["atm","automated teller machine"],u:"1f3e7",a:"0.6"},{n:["put litter in its place","put litter in its place symbol"],u:"1f6ae",a:"1.0"},{n:["potable water","potable water symbol"],u:"1f6b0",a:"1.0"},{n:["wheelchair","wheelchair symbol"],u:"267f",a:"0.6"},{n:["mens","mens symbol"],u:"1f6b9",a:"0.6"},{n:["womens","womens symbol"],u:"1f6ba",a:"0.6"},{n:["restroom"],u:"1f6bb",a:"0.6"},{n:["baby symbol"],u:"1f6bc",a:"0.6"},{n:["wc","water closet"],u:"1f6be",a:"0.6"},{n:["passport control"],u:"1f6c2",a:"1.0"},{n:["customs"],u:"1f6c3",a:"1.0"},{n:["baggage claim"],u:"1f6c4",a:"1.0"},{n:["left luggage"],u:"1f6c5",a:"1.0"},{n:["warning","warning sign"],u:"26a0-fe0f",a:"0.6"},{n:["children crossing"],u:"1f6b8",a:"1.0"},{n:["no entry"],u:"26d4",a:"0.6"},{n:["no entry sign"],u:"1f6ab",a:"0.6"},{n:["no bicycles"],u:"1f6b3",a:"1.0"},{n:["no smoking","no smoking symbol"],u:"1f6ad",a:"0.6"},{n:["do not litter","do not litter symbol"],u:"1f6af",a:"1.0"},{n:["non-potable water","non-potable water symbol"],u:"1f6b1",a:"1.0"},{n:["no pedestrians"],u:"1f6b7",a:"1.0"},{n:["no mobile phones"],u:"1f4f5",a:"1.0"},{n:["underage","no one under eighteen symbol"],u:"1f51e",a:"0.6"},{n:["radioactive","radioactive sign"],u:"2622-fe0f",a:"1.0"},{n:["biohazard","biohazard sign"],u:"2623-fe0f",a:"1.0"},{n:["arrow up","upwards black arrow"],u:"2b06-fe0f",a:"0.6"},{n:["north east arrow","arrow upper right"],u:"2197-fe0f",a:"0.6"},{n:["arrow right","black rightwards arrow"],u:"27a1-fe0f",a:"0.6"},{n:["south east arrow","arrow lower right"],u:"2198-fe0f",a:"0.6"},{n:["arrow down","downwards black arrow"],u:"2b07-fe0f",a:"0.6"},{n:["south west arrow","arrow lower left"],u:"2199-fe0f",a:"0.6"},{n:["arrow left","leftwards black arrow"],u:"2b05-fe0f",a:"0.6"},{n:["north west arrow","arrow upper left"],u:"2196-fe0f",a:"0.6"},{n:["up down arrow","arrow up down"],u:"2195-fe0f",a:"0.6"},{n:["left right arrow"],u:"2194-fe0f",a:"0.6"},{n:["leftwards arrow with hook"],u:"21a9-fe0f",a:"0.6"},{n:["arrow right hook","rightwards arrow with hook"],u:"21aa-fe0f",a:"0.6"},{n:["arrow heading up","arrow pointing rightwards then curving upwards"],u:"2934-fe0f",a:"0.6"},{n:["arrow heading down","arrow pointing rightwards then curving downwards"],u:"2935-fe0f",a:"0.6"},{n:["arrows clockwise","clockwise downwards and upwards open circle arrows"],u:"1f503",a:"0.6"},{n:["arrows counterclockwise","anticlockwise downwards and upwards open circle arrows"],u:"1f504",a:"1.0"},{n:["back","back with leftwards arrow above"],u:"1f519",a:"0.6"},{n:["end","end with leftwards arrow above"],u:"1f51a",a:"0.6"},{n:["on","on with exclamation mark with left right arrow above"],u:"1f51b",a:"0.6"},{n:["soon","soon with rightwards arrow above"],u:"1f51c",a:"0.6"},{n:["top","top with upwards arrow above"],u:"1f51d",a:"0.6"},{n:["place of worship"],u:"1f6d0",a:"1.0"},{n:["atom symbol"],u:"269b-fe0f",a:"1.0"},{n:["om","om symbol"],u:"1f549-fe0f",a:"0.7"},{n:["star of david"],u:"2721-fe0f",a:"0.7"},{n:["wheel of dharma"],u:"2638-fe0f",a:"0.7"},{n:["yin yang"],u:"262f-fe0f",a:"0.7"},{n:["latin cross"],u:"271d-fe0f",a:"0.7"},{n:["orthodox cross"],u:"2626-fe0f",a:"1.0"},{n:["star and crescent"],u:"262a-fe0f",a:"0.7"},{n:["peace symbol"],u:"262e-fe0f",a:"1.0"},{n:["menorah with nine branches"],u:"1f54e",a:"1.0"},{n:["six pointed star","six pointed star with middle dot"],u:"1f52f",a:"0.6"},{n:["aries"],u:"2648",a:"0.6"},{n:["taurus"],u:"2649",a:"0.6"},{n:["gemini"],u:"264a",a:"0.6"},{n:["cancer"],u:"264b",a:"0.6"},{n:["leo"],u:"264c",a:"0.6"},{n:["virgo"],u:"264d",a:"0.6"},{n:["libra"],u:"264e",a:"0.6"},{n:["scorpius"],u:"264f",a:"0.6"},{n:["sagittarius"],u:"2650",a:"0.6"},{n:["capricorn"],u:"2651",a:"0.6"},{n:["aquarius"],u:"2652",a:"0.6"},{n:["pisces"],u:"2653",a:"0.6"},{n:["ophiuchus"],u:"26ce",a:"0.6"},{n:["twisted rightwards arrows"],u:"1f500",a:"1.0"},{n:["repeat","clockwise rightwards and leftwards open circle arrows"],u:"1f501",a:"1.0"},{n:["repeat one","clockwise rightwards and leftwards open circle arrows with circled one overlay"],u:"1f502",a:"1.0"},{n:["arrow forward","black right-pointing triangle"],u:"25b6-fe0f",a:"0.6"},{n:["fast forward","black right-pointing double triangle"],u:"23e9",a:"0.6"},{n:["next track button","black right pointing double triangle with vertical bar"],u:"23ed-fe0f",a:"0.7"},{n:["play or pause button","black right pointing triangle with double vertical bar"],u:"23ef-fe0f",a:"1.0"},{n:["arrow backward","black left-pointing triangle"],u:"25c0-fe0f",a:"0.6"},{n:["rewind","black left-pointing double triangle"],u:"23ea",a:"0.6"},{n:["last track button","black left pointing double triangle with vertical bar"],u:"23ee-fe0f",a:"0.7"},{n:["arrow up small","up-pointing small red triangle"],u:"1f53c",a:"0.6"},{n:["arrow double up","black up-pointing double triangle"],u:"23eb",a:"0.6"},{n:["arrow down small","down-pointing small red triangle"],u:"1f53d",a:"0.6"},{n:["arrow double down","black down-pointing double triangle"],u:"23ec",a:"0.6"},{n:["pause button","double vertical bar"],u:"23f8-fe0f",a:"0.7"},{n:["stop button","black square for stop"],u:"23f9-fe0f",a:"0.7"},{n:["record button","black circle for record"],u:"23fa-fe0f",a:"0.7"},{n:["eject","eject button"],u:"23cf-fe0f",a:"1.0"},{n:["cinema"],u:"1f3a6",a:"0.6"},{n:["low brightness","low brightness symbol"],u:"1f505",a:"1.0"},{n:["high brightness","high brightness symbol"],u:"1f506",a:"1.0"},{n:["signal strength","antenna with bars"],u:"1f4f6",a:"0.6"},{n:["vibration mode"],u:"1f4f3",a:"0.6"},{n:["mobile phone off"],u:"1f4f4",a:"0.6"},{n:["female sign"],u:"2640-fe0f",a:"4.0"},{n:["male sign"],u:"2642-fe0f",a:"4.0"},{n:["transgender symbol"],u:"26a7-fe0f",a:"13.0"},{n:["heavy multiplication x"],u:"2716-fe0f",a:"0.6"},{n:["heavy plus sign"],u:"2795",a:"0.6"},{n:["heavy minus sign"],u:"2796",a:"0.6"},{n:["heavy division sign"],u:"2797",a:"0.6"},{n:["heavy equals sign"],u:"1f7f0",a:"14.0"},{n:["infinity"],u:"267e-fe0f",a:"11.0"},{n:["bangbang","double exclamation mark"],u:"203c-fe0f",a:"0.6"},{n:["interrobang","exclamation question mark"],u:"2049-fe0f",a:"0.6"},{n:["question","black question mark ornament"],u:"2753",a:"0.6"},{n:["grey question","white question mark ornament"],u:"2754",a:"0.6"},{n:["grey exclamation","white exclamation mark ornament"],u:"2755",a:"0.6"},{n:["exclamation","heavy exclamation mark","heavy exclamation mark symbol"],u:"2757",a:"0.6"},{n:["wavy dash"],u:"3030-fe0f",a:"0.6"},{n:["currency exchange"],u:"1f4b1",a:"0.6"},{n:["heavy dollar sign"],u:"1f4b2",a:"0.6"},{n:["medical symbol","staff of aesculapius"],u:"2695-fe0f",a:"4.0"},{n:["recycle","black universal recycling symbol"],u:"267b-fe0f",a:"0.6"},{n:["fleur-de-lis","fleur de lis"],u:"269c-fe0f",a:"1.0"},{n:["trident","trident emblem"],u:"1f531",a:"0.6"},{n:["name badge"],u:"1f4db",a:"0.6"},{n:["beginner","japanese symbol for beginner"],u:"1f530",a:"0.6"},{n:["o","heavy large circle"],u:"2b55",a:"0.6"},{n:["white check mark","white heavy check mark"],u:"2705",a:"0.6"},{n:["ballot box with check"],u:"2611-fe0f",a:"0.6"},{n:["heavy check mark"],u:"2714-fe0f",a:"0.6"},{n:["x","cross mark"],u:"274c",a:"0.6"},{n:["negative squared cross mark"],u:"274e",a:"0.6"},{n:["curly loop"],u:"27b0",a:"0.6"},{n:["loop","double curly loop"],u:"27bf",a:"1.0"},{n:["part alternation mark"],u:"303d-fe0f",a:"0.6"},{n:["eight spoked asterisk"],u:"2733-fe0f",a:"0.6"},{n:["eight pointed black star"],u:"2734-fe0f",a:"0.6"},{n:["sparkle"],u:"2747-fe0f",a:"0.6"},{n:["copyright","copyright sign"],u:"00a9-fe0f",a:"0.6"},{n:["registered","registered sign"],u:"00ae-fe0f",a:"0.6"},{n:["tm","trade mark sign"],u:"2122-fe0f",a:"0.6"},{n:["hash","hash key"],u:"0023-fe0f-20e3",a:"0.6"},{n:["keycap: *","keycap star"],u:"002a-fe0f-20e3",a:"2.0"},{n:["zero","keycap 0"],u:"0030-fe0f-20e3",a:"0.6"},{n:["one","keycap 1"],u:"0031-fe0f-20e3",a:"0.6"},{n:["two","keycap 2"],u:"0032-fe0f-20e3",a:"0.6"},{n:["three","keycap 3"],u:"0033-fe0f-20e3",a:"0.6"},{n:["four","keycap 4"],u:"0034-fe0f-20e3",a:"0.6"},{n:["five","keycap 5"],u:"0035-fe0f-20e3",a:"0.6"},{n:["six","keycap 6"],u:"0036-fe0f-20e3",a:"0.6"},{n:["seven","keycap 7"],u:"0037-fe0f-20e3",a:"0.6"},{n:["eight","keycap 8"],u:"0038-fe0f-20e3",a:"0.6"},{n:["nine","keycap 9"],u:"0039-fe0f-20e3",a:"0.6"},{n:["keycap ten"],u:"1f51f",a:"0.6"},{n:["capital abcd","input symbol for latin capital letters"],u:"1f520",a:"0.6"},{n:["abcd","input symbol for latin small letters"],u:"1f521",a:"0.6"},{n:["1234","input symbol for numbers"],u:"1f522",a:"0.6"},{n:["symbols","input symbol for symbols"],u:"1f523",a:"0.6"},{n:["abc","input symbol for latin letters"],u:"1f524",a:"0.6"},{n:["a","negative squared latin capital letter a"],u:"1f170-fe0f",a:"0.6"},{n:["ab","negative squared ab"],u:"1f18e",a:"0.6"},{n:["b","negative squared latin capital letter b"],u:"1f171-fe0f",a:"0.6"},{n:["cl","squared cl"],u:"1f191",a:"0.6"},{n:["cool","squared cool"],u:"1f192",a:"0.6"},{n:["free","squared free"],u:"1f193",a:"0.6"},{n:["information source"],u:"2139-fe0f",a:"0.6"},{n:["id","squared id"],u:"1f194",a:"0.6"},{n:["m","circled latin capital letter m"],u:"24c2-fe0f",a:"0.6"},{n:["new","squared new"],u:"1f195",a:"0.6"},{n:["ng","squared ng"],u:"1f196",a:"0.6"},{n:["o2","negative squared latin capital letter o"],u:"1f17e-fe0f",a:"0.6"},{n:["ok","squared ok"],u:"1f197",a:"0.6"},{n:["parking","negative squared latin capital letter p"],u:"1f17f-fe0f",a:"0.6"},{n:["sos","squared sos"],u:"1f198",a:"0.6"},{n:["up","squared up with exclamation mark"],u:"1f199",a:"0.6"},{n:["vs","squared vs"],u:"1f19a",a:"0.6"},{n:["koko","squared katakana koko"],u:"1f201",a:"0.6"},{n:["sa","squared katakana sa"],u:"1f202-fe0f",a:"0.6"},{n:["u6708","squared cjk unified ideograph-6708"],u:"1f237-fe0f",a:"0.6"},{n:["u6709","squared cjk unified ideograph-6709"],u:"1f236",a:"0.6"},{n:["u6307","squared cjk unified ideograph-6307"],u:"1f22f",a:"0.6"},{n:["ideograph advantage","circled ideograph advantage"],u:"1f250",a:"0.6"},{n:["u5272","squared cjk unified ideograph-5272"],u:"1f239",a:"0.6"},{n:["u7121","squared cjk unified ideograph-7121"],u:"1f21a",a:"0.6"},{n:["u7981","squared cjk unified ideograph-7981"],u:"1f232",a:"0.6"},{n:["accept","circled ideograph accept"],u:"1f251",a:"0.6"},{n:["u7533","squared cjk unified ideograph-7533"],u:"1f238",a:"0.6"},{n:["u5408","squared cjk unified ideograph-5408"],u:"1f234",a:"0.6"},{n:["u7a7a","squared cjk unified ideograph-7a7a"],u:"1f233",a:"0.6"},{n:["congratulations","circled ideograph congratulation"],u:"3297-fe0f",a:"0.6"},{n:["secret","circled ideograph secret"],u:"3299-fe0f",a:"0.6"},{n:["u55b6","squared cjk unified ideograph-55b6"],u:"1f23a",a:"0.6"},{n:["u6e80","squared cjk unified ideograph-6e80"],u:"1f235",a:"0.6"},{n:["red circle","large red circle"],u:"1f534",a:"0.6"},{n:["large orange circle"],u:"1f7e0",a:"12.0"},{n:["large yellow circle"],u:"1f7e1",a:"12.0"},{n:["large green circle"],u:"1f7e2",a:"12.0"},{n:["large blue circle"],u:"1f535",a:"0.6"},{n:["large purple circle"],u:"1f7e3",a:"12.0"},{n:["large brown circle"],u:"1f7e4",a:"12.0"},{n:["black circle","medium black circle"],u:"26ab",a:"0.6"},{n:["white circle","medium white circle"],u:"26aa",a:"0.6"},{n:["large red square"],u:"1f7e5",a:"12.0"},{n:["large orange square"],u:"1f7e7",a:"12.0"},{n:["large yellow square"],u:"1f7e8",a:"12.0"},{n:["large green square"],u:"1f7e9",a:"12.0"},{n:["large blue square"],u:"1f7e6",a:"12.0"},{n:["large purple square"],u:"1f7ea",a:"12.0"},{n:["large brown square"],u:"1f7eb",a:"12.0"},{n:["black large square"],u:"2b1b",a:"0.6"},{n:["white large square"],u:"2b1c",a:"0.6"},{n:["black medium square"],u:"25fc-fe0f",a:"0.6"},{n:["white medium square"],u:"25fb-fe0f",a:"0.6"},{n:["black medium small square"],u:"25fe",a:"0.6"},{n:["white medium small square"],u:"25fd",a:"0.6"},{n:["black small square"],u:"25aa-fe0f",a:"0.6"},{n:["white small square"],u:"25ab-fe0f",a:"0.6"},{n:["large orange diamond"],u:"1f536",a:"0.6"},{n:["large blue diamond"],u:"1f537",a:"0.6"},{n:["small orange diamond"],u:"1f538",a:"0.6"},{n:["small blue diamond"],u:"1f539",a:"0.6"},{n:["small red triangle","up-pointing red triangle"],u:"1f53a",a:"0.6"},{n:["small red triangle down","down-pointing red triangle"],u:"1f53b",a:"0.6"},{n:["diamond shape with a dot inside"],u:"1f4a0",a:"0.6"},{n:["radio button"],u:"1f518",a:"0.6"},{n:["white square button"],u:"1f533",a:"0.6"},{n:["black square button"],u:"1f532",a:"0.6"}],D1=[{n:["chequered flag","checkered flag"],u:"1f3c1",a:"0.6"},{n:["triangular flag on post"],u:"1f6a9",a:"0.6"},{n:["crossed flags"],u:"1f38c",a:"0.6"},{n:["waving black flag"],u:"1f3f4",a:"1.0"},{n:["white flag","waving white flag"],u:"1f3f3-fe0f",a:"0.7"},{n:["rainbow flag","rainbow-flag"],u:"1f3f3-fe0f-200d-1f308",a:"4.0"},{n:["transgender flag"],u:"1f3f3-fe0f-200d-26a7-fe0f",a:"13.0"},{n:["pirate flag"],u:"1f3f4-200d-2620-fe0f",a:"11.0"},{n:["flag-ac","ascension island flag"],u:"1f1e6-1f1e8",a:"2.0"},{n:["flag-ad","andorra flag"],u:"1f1e6-1f1e9",a:"2.0"},{n:["flag-ae","united arab emirates flag"],u:"1f1e6-1f1ea",a:"2.0"},{n:["flag-af","afghanistan flag"],u:"1f1e6-1f1eb",a:"2.0"},{n:["flag-ag","antigua & barbuda flag"],u:"1f1e6-1f1ec",a:"2.0"},{n:["flag-ai","anguilla flag"],u:"1f1e6-1f1ee",a:"2.0"},{n:["flag-al","albania flag"],u:"1f1e6-1f1f1",a:"2.0"},{n:["flag-am","armenia flag"],u:"1f1e6-1f1f2",a:"2.0"},{n:["flag-ao","angola flag"],u:"1f1e6-1f1f4",a:"2.0"},{n:["flag-aq","antarctica flag"],u:"1f1e6-1f1f6",a:"2.0"},{n:["flag-ar","argentina flag"],u:"1f1e6-1f1f7",a:"2.0"},{n:["flag-as","american samoa flag"],u:"1f1e6-1f1f8",a:"2.0"},{n:["flag-at","austria flag"],u:"1f1e6-1f1f9",a:"2.0"},{n:["flag-au","australia flag"],u:"1f1e6-1f1fa",a:"2.0"},{n:["flag-aw","aruba flag"],u:"1f1e6-1f1fc",a:"2.0"},{n:["flag-ax","åland islands flag"],u:"1f1e6-1f1fd",a:"2.0"},{n:["flag-az","azerbaijan flag"],u:"1f1e6-1f1ff",a:"2.0"},{n:["flag-ba","bosnia & herzegovina flag"],u:"1f1e7-1f1e6",a:"2.0"},{n:["flag-bb","barbados flag"],u:"1f1e7-1f1e7",a:"2.0"},{n:["flag-bd","bangladesh flag"],u:"1f1e7-1f1e9",a:"2.0"},{n:["flag-be","belgium flag"],u:"1f1e7-1f1ea",a:"2.0"},{n:["flag-bf","burkina faso flag"],u:"1f1e7-1f1eb",a:"2.0"},{n:["flag-bg","bulgaria flag"],u:"1f1e7-1f1ec",a:"2.0"},{n:["flag-bh","bahrain flag"],u:"1f1e7-1f1ed",a:"2.0"},{n:["flag-bi","burundi flag"],u:"1f1e7-1f1ee",a:"2.0"},{n:["flag-bj","benin flag"],u:"1f1e7-1f1ef",a:"2.0"},{n:["flag-bl","st. barthélemy flag"],u:"1f1e7-1f1f1",a:"2.0"},{n:["flag-bm","bermuda flag"],u:"1f1e7-1f1f2",a:"2.0"},{n:["flag-bn","brunei flag"],u:"1f1e7-1f1f3",a:"2.0"},{n:["flag-bo","bolivia flag"],u:"1f1e7-1f1f4",a:"2.0"},{n:["flag-bq","caribbean netherlands flag"],u:"1f1e7-1f1f6",a:"2.0"},{n:["flag-br","brazil flag"],u:"1f1e7-1f1f7",a:"2.0"},{n:["flag-bs","bahamas flag"],u:"1f1e7-1f1f8",a:"2.0"},{n:["flag-bt","bhutan flag"],u:"1f1e7-1f1f9",a:"2.0"},{n:["flag-bv","bouvet island flag"],u:"1f1e7-1f1fb",a:"2.0"},{n:["flag-bw","botswana flag"],u:"1f1e7-1f1fc",a:"2.0"},{n:["flag-by","belarus flag"],u:"1f1e7-1f1fe",a:"2.0"},{n:["flag-bz","belize flag"],u:"1f1e7-1f1ff",a:"2.0"},{n:["flag-ca","canada flag"],u:"1f1e8-1f1e6",a:"2.0"},{n:["flag-cc","cocos (keeling) islands flag"],u:"1f1e8-1f1e8",a:"2.0"},{n:["flag-cd","congo - kinshasa flag"],u:"1f1e8-1f1e9",a:"2.0"},{n:["flag-cf","central african republic flag"],u:"1f1e8-1f1eb",a:"2.0"},{n:["flag-cg","congo - brazzaville flag"],u:"1f1e8-1f1ec",a:"2.0"},{n:["flag-ch","switzerland flag"],u:"1f1e8-1f1ed",a:"2.0"},{n:["flag-ci","côte d’ivoire flag"],u:"1f1e8-1f1ee",a:"2.0"},{n:["flag-ck","cook islands flag"],u:"1f1e8-1f1f0",a:"2.0"},{n:["flag-cl","chile flag"],u:"1f1e8-1f1f1",a:"2.0"},{n:["flag-cm","cameroon flag"],u:"1f1e8-1f1f2",a:"2.0"},{n:["cn","flag-cn","china flag"],u:"1f1e8-1f1f3",a:"0.6"},{n:["flag-co","colombia flag"],u:"1f1e8-1f1f4",a:"2.0"},{n:["flag-cp","clipperton island flag"],u:"1f1e8-1f1f5",a:"2.0"},{n:["flag-cr","costa rica flag"],u:"1f1e8-1f1f7",a:"2.0"},{n:["flag-cu","cuba flag"],u:"1f1e8-1f1fa",a:"2.0"},{n:["flag-cv","cape verde flag"],u:"1f1e8-1f1fb",a:"2.0"},{n:["flag-cw","curaçao flag"],u:"1f1e8-1f1fc",a:"2.0"},{n:["flag-cx","christmas island flag"],u:"1f1e8-1f1fd",a:"2.0"},{n:["flag-cy","cyprus flag"],u:"1f1e8-1f1fe",a:"2.0"},{n:["flag-cz","czechia flag"],u:"1f1e8-1f1ff",a:"2.0"},{n:["de","flag-de","germany flag"],u:"1f1e9-1f1ea",a:"0.6"},{n:["flag-dg","diego garcia flag"],u:"1f1e9-1f1ec",a:"2.0"},{n:["flag-dj","djibouti flag"],u:"1f1e9-1f1ef",a:"2.0"},{n:["flag-dk","denmark flag"],u:"1f1e9-1f1f0",a:"2.0"},{n:["flag-dm","dominica flag"],u:"1f1e9-1f1f2",a:"2.0"},{n:["flag-do","dominican republic flag"],u:"1f1e9-1f1f4",a:"2.0"},{n:["flag-dz","algeria flag"],u:"1f1e9-1f1ff",a:"2.0"},{n:["flag-ea","ceuta & melilla flag"],u:"1f1ea-1f1e6",a:"2.0"},{n:["flag-ec","ecuador flag"],u:"1f1ea-1f1e8",a:"2.0"},{n:["flag-ee","estonia flag"],u:"1f1ea-1f1ea",a:"2.0"},{n:["flag-eg","egypt flag"],u:"1f1ea-1f1ec",a:"2.0"},{n:["flag-eh","western sahara flag"],u:"1f1ea-1f1ed",a:"2.0"},{n:["flag-er","eritrea flag"],u:"1f1ea-1f1f7",a:"2.0"},{n:["es","flag-es","spain flag"],u:"1f1ea-1f1f8",a:"0.6"},{n:["flag-et","ethiopia flag"],u:"1f1ea-1f1f9",a:"2.0"},{n:["flag-eu","european union flag"],u:"1f1ea-1f1fa",a:"2.0"},{n:["flag-fi","finland flag"],u:"1f1eb-1f1ee",a:"2.0"},{n:["flag-fj","fiji flag"],u:"1f1eb-1f1ef",a:"2.0"},{n:["flag-fk","falkland islands flag"],u:"1f1eb-1f1f0",a:"2.0"},{n:["flag-fm","micronesia flag"],u:"1f1eb-1f1f2",a:"2.0"},{n:["flag-fo","faroe islands flag"],u:"1f1eb-1f1f4",a:"2.0"},{n:["fr","flag-fr","france flag"],u:"1f1eb-1f1f7",a:"0.6"},{n:["flag-ga","gabon flag"],u:"1f1ec-1f1e6",a:"2.0"},{n:["gb","uk","flag-gb","united kingdom flag"],u:"1f1ec-1f1e7",a:"0.6"},{n:["flag-gd","grenada flag"],u:"1f1ec-1f1e9",a:"2.0"},{n:["flag-ge","georgia flag"],u:"1f1ec-1f1ea",a:"2.0"},{n:["flag-gf","french guiana flag"],u:"1f1ec-1f1eb",a:"2.0"},{n:["flag-gg","guernsey flag"],u:"1f1ec-1f1ec",a:"2.0"},{n:["flag-gh","ghana flag"],u:"1f1ec-1f1ed",a:"2.0"},{n:["flag-gi","gibraltar flag"],u:"1f1ec-1f1ee",a:"2.0"},{n:["flag-gl","greenland flag"],u:"1f1ec-1f1f1",a:"2.0"},{n:["flag-gm","gambia flag"],u:"1f1ec-1f1f2",a:"2.0"},{n:["flag-gn","guinea flag"],u:"1f1ec-1f1f3",a:"2.0"},{n:["flag-gp","guadeloupe flag"],u:"1f1ec-1f1f5",a:"2.0"},{n:["flag-gq","equatorial guinea flag"],u:"1f1ec-1f1f6",a:"2.0"},{n:["flag-gr","greece flag"],u:"1f1ec-1f1f7",a:"2.0"},{n:["flag-gs","south georgia & south sandwich islands flag"],u:"1f1ec-1f1f8",a:"2.0"},{n:["flag-gt","guatemala flag"],u:"1f1ec-1f1f9",a:"2.0"},{n:["flag-gu","guam flag"],u:"1f1ec-1f1fa",a:"2.0"},{n:["flag-gw","guinea-bissau flag"],u:"1f1ec-1f1fc",a:"2.0"},{n:["flag-gy","guyana flag"],u:"1f1ec-1f1fe",a:"2.0"},{n:["flag-hk","hong kong sar china flag"],u:"1f1ed-1f1f0",a:"2.0"},{n:["flag-hm","heard & mcdonald islands flag"],u:"1f1ed-1f1f2",a:"2.0"},{n:["flag-hn","honduras flag"],u:"1f1ed-1f1f3",a:"2.0"},{n:["flag-hr","croatia flag"],u:"1f1ed-1f1f7",a:"2.0"},{n:["flag-ht","haiti flag"],u:"1f1ed-1f1f9",a:"2.0"},{n:["flag-hu","hungary flag"],u:"1f1ed-1f1fa",a:"2.0"},{n:["flag-ic","canary islands flag"],u:"1f1ee-1f1e8",a:"2.0"},{n:["flag-id","indonesia flag"],u:"1f1ee-1f1e9",a:"2.0"},{n:["flag-ie","ireland flag"],u:"1f1ee-1f1ea",a:"2.0"},{n:["flag-il","israel flag"],u:"1f1ee-1f1f1",a:"2.0"},{n:["flag-im","isle of man flag"],u:"1f1ee-1f1f2",a:"2.0"},{n:["flag-in","india flag"],u:"1f1ee-1f1f3",a:"2.0"},{n:["flag-io","british indian ocean territory flag"],u:"1f1ee-1f1f4",a:"2.0"},{n:["flag-iq","iraq flag"],u:"1f1ee-1f1f6",a:"2.0"},{n:["flag-ir","iran flag"],u:"1f1ee-1f1f7",a:"2.0"},{n:["flag-is","iceland flag"],u:"1f1ee-1f1f8",a:"2.0"},{n:["it","flag-it","italy flag"],u:"1f1ee-1f1f9",a:"0.6"},{n:["flag-je","jersey flag"],u:"1f1ef-1f1ea",a:"2.0"},{n:["flag-jm","jamaica flag"],u:"1f1ef-1f1f2",a:"2.0"},{n:["flag-jo","jordan flag"],u:"1f1ef-1f1f4",a:"2.0"},{n:["jp","flag-jp","japan flag"],u:"1f1ef-1f1f5",a:"0.6"},{n:["flag-ke","kenya flag"],u:"1f1f0-1f1ea",a:"2.0"},{n:["flag-kg","kyrgyzstan flag"],u:"1f1f0-1f1ec",a:"2.0"},{n:["flag-kh","cambodia flag"],u:"1f1f0-1f1ed",a:"2.0"},{n:["flag-ki","kiribati flag"],u:"1f1f0-1f1ee",a:"2.0"},{n:["flag-km","comoros flag"],u:"1f1f0-1f1f2",a:"2.0"},{n:["flag-kn","st. kitts & nevis flag"],u:"1f1f0-1f1f3",a:"2.0"},{n:["flag-kp","north korea flag"],u:"1f1f0-1f1f5",a:"2.0"},{n:["kr","flag-kr","south korea flag"],u:"1f1f0-1f1f7",a:"0.6"},{n:["flag-kw","kuwait flag"],u:"1f1f0-1f1fc",a:"2.0"},{n:["flag-ky","cayman islands flag"],u:"1f1f0-1f1fe",a:"2.0"},{n:["flag-kz","kazakhstan flag"],u:"1f1f0-1f1ff",a:"2.0"},{n:["flag-la","laos flag"],u:"1f1f1-1f1e6",a:"2.0"},{n:["flag-lb","lebanon flag"],u:"1f1f1-1f1e7",a:"2.0"},{n:["flag-lc","st. lucia flag"],u:"1f1f1-1f1e8",a:"2.0"},{n:["flag-li","liechtenstein flag"],u:"1f1f1-1f1ee",a:"2.0"},{n:["flag-lk","sri lanka flag"],u:"1f1f1-1f1f0",a:"2.0"},{n:["flag-lr","liberia flag"],u:"1f1f1-1f1f7",a:"2.0"},{n:["flag-ls","lesotho flag"],u:"1f1f1-1f1f8",a:"2.0"},{n:["flag-lt","lithuania flag"],u:"1f1f1-1f1f9",a:"2.0"},{n:["flag-lu","luxembourg flag"],u:"1f1f1-1f1fa",a:"2.0"},{n:["flag-lv","latvia flag"],u:"1f1f1-1f1fb",a:"2.0"},{n:["flag-ly","libya flag"],u:"1f1f1-1f1fe",a:"2.0"},{n:["flag-ma","morocco flag"],u:"1f1f2-1f1e6",a:"2.0"},{n:["flag-mc","monaco flag"],u:"1f1f2-1f1e8",a:"2.0"},{n:["flag-md","moldova flag"],u:"1f1f2-1f1e9",a:"2.0"},{n:["flag-me","montenegro flag"],u:"1f1f2-1f1ea",a:"2.0"},{n:["flag-mf","st. martin flag"],u:"1f1f2-1f1eb",a:"2.0"},{n:["flag-mg","madagascar flag"],u:"1f1f2-1f1ec",a:"2.0"},{n:["flag-mh","marshall islands flag"],u:"1f1f2-1f1ed",a:"2.0"},{n:["flag-mk","north macedonia flag"],u:"1f1f2-1f1f0",a:"2.0"},{n:["flag-ml","mali flag"],u:"1f1f2-1f1f1",a:"2.0"},{n:["flag-mm","myanmar (burma) flag"],u:"1f1f2-1f1f2",a:"2.0"},{n:["flag-mn","mongolia flag"],u:"1f1f2-1f1f3",a:"2.0"},{n:["flag-mo","macao sar china flag"],u:"1f1f2-1f1f4",a:"2.0"},{n:["flag-mp","northern mariana islands flag"],u:"1f1f2-1f1f5",a:"2.0"},{n:["flag-mq","martinique flag"],u:"1f1f2-1f1f6",a:"2.0"},{n:["flag-mr","mauritania flag"],u:"1f1f2-1f1f7",a:"2.0"},{n:["flag-ms","montserrat flag"],u:"1f1f2-1f1f8",a:"2.0"},{n:["flag-mt","malta flag"],u:"1f1f2-1f1f9",a:"2.0"},{n:["flag-mu","mauritius flag"],u:"1f1f2-1f1fa",a:"2.0"},{n:["flag-mv","maldives flag"],u:"1f1f2-1f1fb",a:"2.0"},{n:["flag-mw","malawi flag"],u:"1f1f2-1f1fc",a:"2.0"},{n:["flag-mx","mexico flag"],u:"1f1f2-1f1fd",a:"2.0"},{n:["flag-my","malaysia flag"],u:"1f1f2-1f1fe",a:"2.0"},{n:["flag-mz","mozambique flag"],u:"1f1f2-1f1ff",a:"2.0"},{n:["flag-na","namibia flag"],u:"1f1f3-1f1e6",a:"2.0"},{n:["flag-nc","new caledonia flag"],u:"1f1f3-1f1e8",a:"2.0"},{n:["flag-ne","niger flag"],u:"1f1f3-1f1ea",a:"2.0"},{n:["flag-nf","norfolk island flag"],u:"1f1f3-1f1eb",a:"2.0"},{n:["flag-ng","nigeria flag"],u:"1f1f3-1f1ec",a:"2.0"},{n:["flag-ni","nicaragua flag"],u:"1f1f3-1f1ee",a:"2.0"},{n:["flag-nl","netherlands flag"],u:"1f1f3-1f1f1",a:"2.0"},{n:["flag-no","norway flag"],u:"1f1f3-1f1f4",a:"2.0"},{n:["flag-np","nepal flag"],u:"1f1f3-1f1f5",a:"2.0"},{n:["flag-nr","nauru flag"],u:"1f1f3-1f1f7",a:"2.0"},{n:["flag-nu","niue flag"],u:"1f1f3-1f1fa",a:"2.0"},{n:["flag-nz","new zealand flag"],u:"1f1f3-1f1ff",a:"2.0"},{n:["flag-om","oman flag"],u:"1f1f4-1f1f2",a:"2.0"},{n:["flag-pa","panama flag"],u:"1f1f5-1f1e6",a:"2.0"},{n:["flag-pe","peru flag"],u:"1f1f5-1f1ea",a:"2.0"},{n:["flag-pf","french polynesia flag"],u:"1f1f5-1f1eb",a:"2.0"},{n:["flag-pg","papua new guinea flag"],u:"1f1f5-1f1ec",a:"2.0"},{n:["flag-ph","philippines flag"],u:"1f1f5-1f1ed",a:"2.0"},{n:["flag-pk","pakistan flag"],u:"1f1f5-1f1f0",a:"2.0"},{n:["flag-pl","poland flag"],u:"1f1f5-1f1f1",a:"2.0"},{n:["flag-pm","st. pierre & miquelon flag"],u:"1f1f5-1f1f2",a:"2.0"},{n:["flag-pn","pitcairn islands flag"],u:"1f1f5-1f1f3",a:"2.0"},{n:["flag-pr","puerto rico flag"],u:"1f1f5-1f1f7",a:"2.0"},{n:["flag-ps","palestinian territories flag"],u:"1f1f5-1f1f8",a:"2.0"},{n:["flag-pt","portugal flag"],u:"1f1f5-1f1f9",a:"2.0"},{n:["flag-pw","palau flag"],u:"1f1f5-1f1fc",a:"2.0"},{n:["flag-py","paraguay flag"],u:"1f1f5-1f1fe",a:"2.0"},{n:["flag-qa","qatar flag"],u:"1f1f6-1f1e6",a:"2.0"},{n:["flag-re","réunion flag"],u:"1f1f7-1f1ea",a:"2.0"},{n:["flag-ro","romania flag"],u:"1f1f7-1f1f4",a:"2.0"},{n:["flag-rs","serbia flag"],u:"1f1f7-1f1f8",a:"2.0"},{n:["ru","flag-ru","russia flag"],u:"1f1f7-1f1fa",a:"0.6"},{n:["flag-rw","rwanda flag"],u:"1f1f7-1f1fc",a:"2.0"},{n:["flag-sa","saudi arabia flag"],u:"1f1f8-1f1e6",a:"2.0"},{n:["flag-sb","solomon islands flag"],u:"1f1f8-1f1e7",a:"2.0"},{n:["flag-sc","seychelles flag"],u:"1f1f8-1f1e8",a:"2.0"},{n:["flag-sd","sudan flag"],u:"1f1f8-1f1e9",a:"2.0"},{n:["flag-se","sweden flag"],u:"1f1f8-1f1ea",a:"2.0"},{n:["flag-sg","singapore flag"],u:"1f1f8-1f1ec",a:"2.0"},{n:["flag-sh","st. helena flag"],u:"1f1f8-1f1ed",a:"2.0"},{n:["flag-si","slovenia flag"],u:"1f1f8-1f1ee",a:"2.0"},{n:["flag-sj","svalbard & jan mayen flag"],u:"1f1f8-1f1ef",a:"2.0"},{n:["flag-sk","slovakia flag"],u:"1f1f8-1f1f0",a:"2.0"},{n:["flag-sl","sierra leone flag"],u:"1f1f8-1f1f1",a:"2.0"},{n:["flag-sm","san marino flag"],u:"1f1f8-1f1f2",a:"2.0"},{n:["flag-sn","senegal flag"],u:"1f1f8-1f1f3",a:"2.0"},{n:["flag-so","somalia flag"],u:"1f1f8-1f1f4",a:"2.0"},{n:["flag-sr","suriname flag"],u:"1f1f8-1f1f7",a:"2.0"},{n:["flag-ss","south sudan flag"],u:"1f1f8-1f1f8",a:"2.0"},{n:["flag-st","são tomé & príncipe flag"],u:"1f1f8-1f1f9",a:"2.0"},{n:["flag-sv","el salvador flag"],u:"1f1f8-1f1fb",a:"2.0"},{n:["flag-sx","sint maarten flag"],u:"1f1f8-1f1fd",a:"2.0"},{n:["flag-sy","syria flag"],u:"1f1f8-1f1fe",a:"2.0"},{n:["flag-sz","eswatini flag"],u:"1f1f8-1f1ff",a:"2.0"},{n:["flag-ta","tristan da cunha flag"],u:"1f1f9-1f1e6",a:"2.0"},{n:["flag-tc","turks & caicos islands flag"],u:"1f1f9-1f1e8",a:"2.0"},{n:["flag-td","chad flag"],u:"1f1f9-1f1e9",a:"2.0"},{n:["flag-tf","french southern territories flag"],u:"1f1f9-1f1eb",a:"2.0"},{n:["flag-tg","togo flag"],u:"1f1f9-1f1ec",a:"2.0"},{n:["flag-th","thailand flag"],u:"1f1f9-1f1ed",a:"2.0"},{n:["flag-tj","tajikistan flag"],u:"1f1f9-1f1ef",a:"2.0"},{n:["flag-tk","tokelau flag"],u:"1f1f9-1f1f0",a:"2.0"},{n:["flag-tl","timor-leste flag"],u:"1f1f9-1f1f1",a:"2.0"},{n:["flag-tm","turkmenistan flag"],u:"1f1f9-1f1f2",a:"2.0"},{n:["flag-tn","tunisia flag"],u:"1f1f9-1f1f3",a:"2.0"},{n:["flag-to","tonga flag"],u:"1f1f9-1f1f4",a:"2.0"},{n:["flag-tr","turkey flag"],u:"1f1f9-1f1f7",a:"2.0"},{n:["flag-tt","trinidad & tobago flag"],u:"1f1f9-1f1f9",a:"2.0"},{n:["flag-tv","tuvalu flag"],u:"1f1f9-1f1fb",a:"2.0"},{n:["flag-tw","taiwan flag"],u:"1f1f9-1f1fc",a:"2.0"},{n:["flag-tz","tanzania flag"],u:"1f1f9-1f1ff",a:"2.0"},{n:["flag-ua","ukraine flag"],u:"1f1fa-1f1e6",a:"2.0"},{n:["flag-ug","uganda flag"],u:"1f1fa-1f1ec",a:"2.0"},{n:["flag-um","u.s. outlying islands flag"],u:"1f1fa-1f1f2",a:"2.0"},{n:["flag-un","united nations flag"],u:"1f1fa-1f1f3",a:"4.0"},{n:["us","flag-us","united states flag"],u:"1f1fa-1f1f8",a:"0.6"},{n:["flag-uy","uruguay flag"],u:"1f1fa-1f1fe",a:"2.0"},{n:["flag-uz","uzbekistan flag"],u:"1f1fa-1f1ff",a:"2.0"},{n:["flag-va","vatican city flag"],u:"1f1fb-1f1e6",a:"2.0"},{n:["flag-vc","st. vincent & grenadines flag"],u:"1f1fb-1f1e8",a:"2.0"},{n:["flag-ve","venezuela flag"],u:"1f1fb-1f1ea",a:"2.0"},{n:["flag-vg","british virgin islands flag"],u:"1f1fb-1f1ec",a:"2.0"},{n:["flag-vi","u.s. virgin islands flag"],u:"1f1fb-1f1ee",a:"2.0"},{n:["flag-vn","vietnam flag"],u:"1f1fb-1f1f3",a:"2.0"},{n:["flag-vu","vanuatu flag"],u:"1f1fb-1f1fa",a:"2.0"},{n:["flag-wf","wallis & futuna flag"],u:"1f1fc-1f1eb",a:"2.0"},{n:["flag-ws","samoa flag"],u:"1f1fc-1f1f8",a:"2.0"},{n:["flag-xk","kosovo flag"],u:"1f1fd-1f1f0",a:"2.0"},{n:["flag-ye","yemen flag"],u:"1f1fe-1f1ea",a:"2.0"},{n:["flag-yt","mayotte flag"],u:"1f1fe-1f1f9",a:"2.0"},{n:["flag-za","south africa flag"],u:"1f1ff-1f1e6",a:"2.0"},{n:["flag-zm","zambia flag"],u:"1f1ff-1f1f2",a:"2.0"},{n:["flag-zw","zimbabwe flag"],u:"1f1ff-1f1fc",a:"2.0"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",a:"5.0"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",a:"5.0"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",a:"5.0"}],rf={custom:x1,smileys_people:S1,animals_nature:R1,food_drink:z1,travel_places:P1,activities:T1,objects:A1,symbols:M1,flags:D1},bf=[_.NEUTRAL,_.LIGHT,_.MEDIUM_LIGHT,_.MEDIUM,_.MEDIUM_DARK,_.DARK],L1=Object.entries(_).reduce(function(f,e){var a=e[0],n=e[1];return f[n]=a,f},{}),_1=bf.reduce(function(f,e){var a;return Object.assign(f,(a={},a[e]=e,a))},{}),A;(function(f){f.name="n",f.unified="u",f.variations="v",f.added_in="a",f.imgUrl="imgUrl"})(A||(A={}));var af={};setTimeout(function(){vf.reduce(function(f,e){return ke(e),f},af)});function ke(f){var e=uf(f).flat().join("").toLowerCase().replace(/[^a-zA-Z\d]/g,"").split("");e.forEach(function(a){var n;af[a]=(n=af[a])!=null?n:{},af[a][C(f)]=f})}function uf(f){var e;return(e=f[A.name])!=null?e:[]}function O1(f){return parseFloat(f[A.added_in])}function Pf(f){return f?uf(f)[0]:""}function Of(f){var e=f.split("-"),a=e.splice(1,1),n=a[0];return _1[n]?e.join("-"):f}function C(f,e){var a,n=f[A.unified];return!e||!J(f)?n:(a=B1(f,e))!=null?a:n}function F1(f){var e;return(e=rf==null?void 0:rf[f])!=null?e:[]}function we(f,e){return""+C1(e)+f+".png"}function lf(f){var e;return(e=f[A.variations])!=null?e:[]}function J(f){return lf(f).length>0}function B1(f,e){return e?lf(f).find(function(a){return a.includes(e)}):C(f)}function of(f){if(f){if(G[f])return G[f];var e=Of(f);return G[e]}}var vf=Object.values(rf).flat();function I1(f){rf[m.CUSTOM].length=0,f.forEach(function(e){var a=U1(e);rf[m.CUSTOM].push(a),!G[a[A.unified]]&&(vf.push(a),G[a[A.unified]]=a,ke(a))})}function U1(f){var e;return e={},e[A.name]=f.names.map(function(a){return a.toLowerCase()}),e[A.unified]=f.id.toLowerCase(),e[A.added_in]="0",e[A.imgUrl]=f.imgUrl,e}var G={};setTimeout(function(){vf.reduce(function(f,e){return f[C(e)]=e,J(e)&&lf(e).forEach(function(a){f[a]=e}),f},G)});function N1(f){var e=f.split("-"),a=e[1];return bf.includes(a)?a:null}var V1=["2640-fe0f","2642-fe0f","2695-fe0f"],mf="Search",q1="No results found",ye=" found. Use up and down arrow keys to navigate.",H1="1 result"+ye,$1="%n results"+ye;function Xf(f){var e,a;f===void 0&&(f={});var n=Ee(),r=Object.assign(n.previewConfig,(e=f.previewConfig)!=null?e:{}),i=Object.assign(n,f),t=k1(f.categories,{suggestionMode:i.suggestedEmojisMode});I1((a=i.customEmojis)!=null?a:[]);var d=i.searchDisabled?W.PREVIEW:i.skinTonePickerLocation;return B({},i,{categories:t,previewConfig:r,skinTonePickerLocation:d})}function Ee(){return{autoFocusSearch:!0,categories:he(),customEmojis:[],defaultSkinTone:_.NEUTRAL,emojiStyle:S.APPLE,emojiVersion:null,getEmojiUrl:we,height:450,lazyLoadEmojis:!1,previewConfig:B({},G1),searchDisabled:!1,searchPlaceHolder:mf,searchPlaceholder:mf,skinTonePickerLocation:W.SEARCH,skinTonesDisabled:!1,suggestedEmojisMode:nf.FREQUENT,theme:V.LIGHT,unicodeToHide:new Set(V1),width:350}}var G1={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},K1=["children"],je=o.createContext(Ee());function W1(f){var e=f.children,a=b1(f,K1),n=Y1(a);return o.createElement(je.Provider,{value:n},e)}function Y1(f){var e,a=o.useState(function(){return Xf(f)}),n=a[0],r=a[1];return o.useEffect(function(){var i,t;((i=f.customEmojis)==null?void 0:i.length)!==((t=n.customEmojis)==null?void 0:t.length)&&r(Xf(f))},[(e=f.customEmojis)==null?void 0:e.length]),n}function E(){return o.useContext(je)}var Ce=gf.createContext({});function J1(){var f=gf.useContext(Ce);return f}function Z1(f){var e=gf.useRef({onEmojiClick:f.onEmojiClick||fe});return gf.useEffect(function(){e.current.onEmojiClick=f.onEmojiClick||fe},[f.onEmojiClick]),e}function fe(){}function Q1(){var f,e=E(),a=e.searchPlaceHolder,n=e.searchPlaceholder;return(f=[a,n].find(function(r){return r!==mf}))!=null?f:mf}function X1(){var f=E(),e=f.defaultSkinTone;return e}function xe(){var f=E(),e=f.skinTonesDisabled;return e}function Z(){var f=E(),e=f.emojiStyle;return e}function fa(){var f=E(),e=f.autoFocusSearch;return e}function Se(){var f=E(),e=f.categories;return e}function ea(){var f=E(),e=f.customEmojis;return e}function aa(){var f=J1(),e=f.current;return e.onEmojiClick||function(){}}function Re(){var f=E(),e=f.previewConfig;return e}function na(){var f=E(),e=f.theme;return e}function ra(){var f=E(),e=f.suggestedEmojisMode;return e}function ia(){var f=E(),e=f.lazyLoadEmojis;return e}function oa(){var f=E(),e=f.height,a=f.width;return{height:ee(e),width:ee(a)}}function ta(){var f=E(),e=f.emojiVersion;return e}function ze(){var f=E(),e=f.searchDisabled;return e}function Pe(){var f=E(),e=f.skinTonePickerLocation;return e}function da(){var f=E(),e=f.unicodeToHide;return e}function Q(){var f=E(),e=f.getEmojiUrl;return e}function ee(f){return typeof f=="number"?f+"px":f}function ca(f){var e=f>0,a=f>1;return e?a?$1.replace("%n",f.toString()):H1:q1}function ae(f,e){e===void 0&&(e=0);var a=o.useState(f),n=a[0],r=a[1],i=o.useRef(null);function t(d){return new Promise(function(c){var l;i.current&&clearTimeout(i.current),i.current=(l=window)==null?void 0:l.setTimeout(function(){r(d),c(d)},e)})}return[n,t]}function ua(){var f=da();return function(e){return f.has(e)}}function Te(){var f=o.useRef({}),e=ta();return o.useMemo(function(){var a=parseFloat(""+e);return!e||Number.isNaN(a)?f.current:vf.reduce(function(n,r){return sa(r,a)&&(n[C(r)]=!0),n},f.current)},[e])}function la(){var f=Te(),e=ua();return function(n){var r=Of(C(n));return!!(f[r]||e(r))}}function sa(f,e){return O1(f)>e}function ga(f){o.useEffect(function(){f(!0)},[f])}function ba(f){var e=f.children,a=Te(),n=X1(),r=o.useRef(af),i=o.useRef(!1),t=o.useRef(!1),d=o.useRef(a),c=ae(Date.now(),200),l=ae("",100),u=o.useState(!1),s=o.useState(n),g=o.useState(null),p=o.useState(new Set),y=o.useState(null),v=o.useState(!1),w=v[0],h=v[1];return ga(h),o.createElement(F.Provider,{value:{activeCategoryState:g,activeSkinTone:s,disallowClickRef:i,disallowMouseRef:t,disallowedEmojisRef:d,emojiVariationPickerState:y,emojisThatFailedToLoadState:p,filterRef:r,isPastInitialLoad:w,searchTerm:l,skinToneFanOpenState:u,suggestedUpdateState:c}},e)}var F=o.createContext({activeCategoryState:[null,function(){}],activeSkinTone:[_.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise(function(){})}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}]});function Ff(){var f=o.useContext(F),e=f.filterRef;return e}function ma(){var f=o.useContext(F),e=f.disallowClickRef;return e}function Bf(){var f=o.useContext(F),e=f.disallowMouseRef;return e}function kf(){var f=o.useContext(F),e=f.searchTerm;return e}function If(){var f=o.useContext(F),e=f.activeSkinTone;return e}function Ae(){var f=o.useContext(F),e=f.emojisThatFailedToLoadState;return e}function pa(){var f=o.useContext(F),e=f.isPastInitialLoad;return e}function X(){var f=o.useContext(F),e=f.emojiVariationPickerState;return e}function sf(){var f=o.useContext(F),e=f.skinToneFanOpenState;return e}function Me(){var f=o.useContext(F),e=f.suggestedUpdateState,a=e[0],n=e[1];return[a,function(){n(Date.now())}]}function ha(){var f=Bf();return function(){f.current=!0}}function De(){var f=Bf();return function(){f.current=!1}}function Le(){var f=Bf();return function(){return f.current}}function va(){var f=M(),e=De(),a=Le();o.useEffect(function(){var n=f.current;n==null||n.addEventListener("mousemove",r,{passive:!0});function r(){a()&&e()}return function(){n==null||n.removeEventListener("mousemove",r)}},[f,e,a])}function _e(f,e){if(!f||!e)return 0;var a=f.getBoundingClientRect().width,n=e.getBoundingClientRect().width;return Math.floor(a/n)}function Oe(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().width,n=e.getBoundingClientRect().left,r=f.getBoundingClientRect().left;return Math.floor((n-r)/a)}function Fe(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,r=f.getBoundingClientRect().top;return Math.round((n-r)/a)}function ka(f,e){if(!f||!e)return!1;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,r=f.getBoundingClientRect().top,i=f.getBoundingClientRect().height;return Math.round(n-r+a)f.length?[]:Uf(f,n,a)}function Be(f,e,a,n){var r=Uf(f,e,a);return r[n]||r[r.length-1]||null}function ya(f,e,a,n){var r=wa(f,e,a);return r[n]||r[r.length-1]||null}function Ea(f,e,a,n){var r=Uf(f,e-1,a);return r[n]||r[r.length-1]||null}function ja(f,e){if(!f||!e.length)return null;var a=f.getBoundingClientRect().top,n=f.getBoundingClientRect().bottom,r=e.find(function(i){var t=i.getBoundingClientRect().top,d=i.getBoundingClientRect().bottom;return t>=a&&t<=n||d>=a&&d<=n});return r||null}function Ca(f){return!!f.nextElementSibling}var pf="button"+x(b.emoji),xa=[pf,x(b.visible),":not("+x(b.hidden)+")"].join("");function O(f){var e;return(e=f==null?void 0:f.closest(pf))!=null?e:null}function Nf(f){var e=qe(f),a=qf(f);if(!e)return[];var n=of(a??e);return n?[n,a]:[]}function Sa(f){var e;return!!(f!=null&&f.matches(pf)||!(f==null||(e=f.parentElement)==null)&&e.matches(pf))}function ne(f){var e;return(e=f==null?void 0:f.clientHeight)!=null?e:0}function Ie(f){if(!f)return 0;var e=O(f),a=N(e),n=Vf(a);return re(e)+re(a)+n}function Vf(f){var e,a;if(!f)return 0;var n=f.querySelector(x(b.categoryContent));return((e=f==null?void 0:f.clientHeight)!=null?e:0)-((a=n==null?void 0:n.clientHeight)!=null?a:0)}function Ra(f){return f?Ne(f)"u")){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",a==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=f:r.appendChild(document.createTextNode(f))}}var Ya='.EmojiPickerReact button.epr-emoji{align-items:center;border-radius:8px;box-sizing:border-box;display:flex;height:var(--epr-emoji-fullsize);justify-content:center;max-height:var(--epr-emoji-fullsize);max-width:var(--epr-emoji-fullsize);overflow:hidden;position:relative;width:var(--epr-emoji-fullsize)}.EmojiPickerReact button.epr-emoji.epr-emoji-has-variations:after{border-bottom:4px solid var(--epr-emoji-variation-indicator-color);border-left:4px solid transparent;border-right:4px solid transparent;bottom:1px;content:"";display:block;height:0;position:absolute;right:0;transform:rotate(135deg);width:0;z-index:var(--epr-emoji-variations-indictator-z-index)}.EmojiPickerReact button.epr-emoji .epr-emoji-img{max-height:var(--epr-emoji-fullsize);max-width:var(--epr-emoji-fullsize);min-height:var(--epr-emoji-fullsize);min-width:var(--epr-emoji-fullsize);padding:var(--epr-emoji-padding)}.EmojiPickerReact button.epr-emoji .epr-emoji-native{padding:var(--epr-emoji-padding)}.EmojiPickerReact button.epr-emoji>*{align-self:center;display:block;justify-self:center}.EmojiPickerReact button.epr-emoji.epr-emoji-has-variations:hover:after{border-bottom:4px solid var(--epr-emoji-variation-indicator-color-hover)}.__EmojiPicker__.epr-emoji-img{font-size:0}.__EmojiPicker__.epr-emoji-native{align-self:center;font-family:Segoe UI Emoji,Segoe UI Symbol,Segoe UI,Apple Color Emoji,Twemoji Mozilla,Noto Color Emoji,Android Emoji,Times,Symbola,Aegyptus,Code2000,Code2001,Code2002,Musica,serif,LastResort;font-size:var(--epr-emoji-size);justify-self:center;letter-spacing:0;line-height:100%;position:relative;text-align:center}.EmojiPickerReact button.epr-emoji>*{transition:background-color .2s}.EmojiPickerReact button.epr-emoji:hover>*{background-color:var(--epr-emoji-hover-color)}.EmojiPickerReact button.epr-emoji:focus>*{background-color:var(--epr-focus-bg-color)}';z(Ya);function jf(f){return o.createElement("button",Object.assign({type:"button"},f,{className:j("epr-btn",f.className)}),f.children)}function Ja(f){var e,a=f.emojiNames,n=f.unified,r=f.hidden,i=f.hiddenOnSearch,t=f.showVariations,d=t===void 0?!0:t,c=f.hasVariations,l=f.children;return o.createElement(jf,{className:j(b.emoji,(e={},e[b.hidden]=r,e[b.hiddenOnSearch]=i,e[b.visible]=!r&&!i,e[b.emojiHasVariations]=c&&d,e)),"data-unified":n,"aria-label":a[0],"data-full-name":a},l)}function te(f){var e=f.emojiName,a=f.style,n=f.lazyLoad,r=n===void 0?!1:n,i=f.imgUrl,t=f.onError;return o.createElement("img",{src:i,alt:e,className:j(b.external,"epr-emoji-img"),loading:r?"lazy":"eager",onError:t,style:a})}function Za(f){var e=f.unified,a=f.style;return o.createElement("span",{className:j(b.external,"epr-emoji-native"),"data-unified":e,style:a},We(e))}function Af(f){var e=f.emoji,a=f.unified,n=f.emojiStyle,r=f.size,i=f.lazyLoad,t=f.getEmojiUrl,d=t===void 0?we:t,c=Ae(),l=c[1],u={};r&&(u.width=u.height=u.fontSize=r+"px");var s=e||of(a);if(!s)return null;if(Ze(s))return o.createElement(te,{style:u,emojiName:a,emojiStyle:S.NATIVE,lazyLoad:i,imgUrl:s.imgUrl,onError:g});return o.createElement(o.Fragment,null,n===S.NATIVE?o.createElement(Za,{unified:a,style:u}):o.createElement(te,{style:u,emojiName:Pf(s),emojiStyle:n,lazyLoad:i,imgUrl:d(a,n),onError:g}));function g(){l(function(p){return new Set(p).add(a)})}}function Wf(f){var e=f.emoji,a=f.unified,n=f.hidden,r=f.hiddenOnSearch,i=f.emojiStyle,t=f.showVariations,d=t===void 0?!0:t,c=f.size,l=f.lazyLoad,u=f.getEmojiUrl,s=J(e);return o.createElement(Ja,{hasVariations:s,showVariations:d,hidden:n,hiddenOnSearch:r,emojiNames:uf(e),unified:a},o.createElement(Af,{unified:a,emoji:e,size:c,emojiStyle:i,lazyLoad:l,getEmojiUrl:u}))}var Qa=".EmojiPickerReact li.epr-emoji-category>.epr-emoji-category-content{grid-gap:0;display:grid;grid-template-columns:repeat(auto-fill,var(--epr-emoji-fullsize));justify-content:space-between;margin:var(--epr-category-padding);position:relative}.EmojiPickerReact li.epr-emoji-category:not(:has(.epr-visible)){display:none}.EmojiPickerReact li.epr-emoji-category>.epr-emoji-category-label{align-items:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:var(--epr-category-label-bg-color);color:var(--epr-category-label-text-color);display:flex;font-size:16px;font-weight:700;height:var(--epr-category-label-height);margin:0;padding:var(--epr-category-label-padding);position:-webkit-sticky;position:sticky;text-transform:capitalize;top:0;width:100%;z-index:var(--epr-category-label-z-index)}";z(Qa);function n1(f){var e,a=f.categoryConfig,n=f.children,r=f.hidden,i=f.hiddenOnSearch,t=_f(a),d=ve(a);return o.createElement("li",{className:j(b.category,(e={},e[b.hidden]=r,e[b.hiddenOnSearch]=i,e)),"data-name":t,"aria-label":d},o.createElement("h2",{className:b.label},d),o.createElement("div",{className:b.categoryContent},n))}function Xa(f){var e=f.categoryConfig,a=Me(),n=a[0],r=ra(),i=Q(),t=o.useMemo(function(){var c;return(c=Je(r))!=null?c:[]},[n,r]),d=Z();return o.createElement(n1,{categoryConfig:e,hiddenOnSearch:!0,hidden:t.length===0},t.map(function(c){var l=of(c.original);return l?o.createElement(Wf,{showVariations:!1,unified:c.unified,emojiStyle:d,emoji:l,key:c.unified,getEmojiUrl:i}):null}))}var fn=".EmojiPickerReact ul.epr-emoji-list{list-style:none;margin:0;padding:0}";z(fn);function en(){var f=Se(),e=o.useRef(0);return o.createElement("ul",{className:b.emojiList},f.map(function(a){var n=_f(a);return n===m.SUGGESTED?o.createElement(Xa,{key:n,categoryConfig:a}):o.createElement(an,{key:n,category:n,categoryConfig:a,renderdCategoriesCountRef:e})}))}function an(f){var e=f.category,a=f.categoryConfig,n=f.renderdCategoriesCountRef,r=Wa(),i=ia(),t=Z(),d=pa(),c=If(),l=c[0],u=la(),s=Q(),g=!xe(),p=!d&&n.current>0?[]:F1(e);p.length>0&&n.current++;var y=0,v=p.map(function(w){var h=C(w,l),P=r(w),D=P.failedToLoad,L=P.filteredOut,I=P.hidden,ff=u(w);return(I||ff)&&y++,ff?null:o.createElement(Wf,{showVariations:g,key:h,emoji:w,unified:h,hidden:D,hiddenOnSearch:L,emojiStyle:t,lazyLoad:i,getEmojiUrl:s})});return o.createElement(n1,{categoryConfig:a,hidden:y===v.length},v)}function Cf(f){var e=Gf(f);R(e),Ef(e)}function nn(f){var e=Gf(f);R(e),e==null||e.click()}function rn(f){R($e(f))}function on(f){if(f){var e=Ge(f);if(!e)return Cf(yf(f));R(e),Ef(e)}}function tn(f){if(f){var e=$f(f);if(!e)return rn(wf(f));R(e),Ef(e)}}function dn(f,e){if(f){var a=un(f);if(!a)return e();R(a),Ef(a)}}function cn(f){if(f){var e=ln(f);return R(e)}}function un(f){if(!f)return null;var e=Ke(f),a=N(e),n=Oe(e,f),r=Fe(e,f),i=_e(e,f);if(r===0){var t=wf(a);return t?Be(Y(t),-1,i,n):null}return Ea(Y(e),r,i,n)}function ln(f){if(!f)return null;var e=Ke(f),a=N(e),n=Oe(e,f),r=Fe(e,f),i=_e(e,f);if(!ka(e,f)){var t=yf(a);return t?Be(Y(t),0,i,n):null}var d=ya(Y(e),r,i,n);return d}var sn=`.EmojiPickerReact .epr-emoji-variation-picker{align-items:center;background:var(--epr-emoji-variation-picker-bg-color);border:1px solid var(--epr-picker-border-color);border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.2);display:flex;height:0;height:var(--epr-emoji-variation-picker-height);justify-content:space-around;left:15px;opacity:0;padding:5px;pointer-events:none;position:absolute;right:15px;top:0;top:-100%;transform:scale(.9);transition:transform .1s ease-out,opacity .2s ease-out;visibility:hidden;z-index:var(--epr-skin-variation-picker-z-index)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up{transform:scale(.9);transform-origin:center 0}.EmojiPickerReact .epr-emoji-variation-picker.visible{opacity:1;pointer-events:all;transform:scale(1);visibility:visible}.EmojiPickerReact .epr-emoji-variation-picker .EmojiPickerReact .epr-emoji-variation-picker button.epr-emoji:hover{background:none}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='15' xml:space='preserve'%3E%3Cg stroke-miterlimit='10'%3E%3Cpath fill='%23FFF' stroke='%23E8E7E7' d='m1.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L23.66-.43'/%3E%3Cpath fill='%23010202' stroke='%23151617' d='m26.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L48.66-.43'/%3E%3C/g%3E%3C/svg%3E");background-position:0 0;background-repeat:no-repeat;background-size:50px 15px;content:"";height:15px;position:absolute;top:-10px;width:25px}.EmojiPickerReact.epr-dark-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}@media (prefers-color-scheme:dark){.EmojiPickerReact.epr-auto-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{top:100%;transform:translateX(-18px)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up .epr-emoji-pointer{top:0;transform:rotate(180deg) translateY(100%) translateX(18px)}`;z(sn);var K;(function(f){f[f.Up=0]="Up",f[f.Down=1]="Down"})(K||(K={}));function gn(){var f=hf(),e=s1(),a=X(),n=a[0],r=Z(),i=mn(e),t=i.getTop,d=i.getMenuDirection,c=me(),l=bn(e),u=Q(),s=O(f.current),g=n&&s&&J(n)&&s.classList.contains(b.emojiHasVariations);o.useEffect(function(){g&&Cf(e.current)},[e,g,f]);var p,y;return!g&&f.current?c(null):(p=t(),y=l()),o.createElement("div",{ref:e,className:j(b.variationPicker,{visible:g,"pointing-up":d()===K.Down}),style:{top:p}},g&&n?[C(n)].concat(lf(n)).slice(0,6).map(function(v){return o.createElement(Wf,{key:v,emoji:n,unified:v,emojiStyle:r,showVariations:!1,getEmojiUrl:u})}):null,o.createElement("div",{className:"epr-emoji-pointer",style:y}))}function bn(f){var e=hf();return function(){var n={};if(!f.current)return n;if(e.current){var r=O(e.current),i=za(r);if(!r)return n;n.left=i+(r==null?void 0:r.clientWidth)/2}return n}}function mn(f){var e=hf(),a=M(),n=K.Up;return{getMenuDirection:r,getTop:i};function r(){return n}function i(){n=K.Up;var t=0;if(!f.current)return 0;var d=ne(f.current);if(e.current){var c,l=a.current,u=O(e.current),s=ne(u);t=Ie(u);var g=(c=l==null?void 0:l.scrollTop)!=null?c:0;g>t-d&&(n=K.Down,t+=s+d)}return t-d}}var pn=".EmojiPickerReact .epr-body{flex:1;overflow-x:hidden;overflow-y:scroll;position:relative}";z(pn);function hn(){var f=M();return _a(f),Da(f),va(),o.createElement("div",{className:b.scrollBody,ref:f},o.createElement(gn,null),o.createElement(en,null))}function vn(f,e){var a=M(),n=Le(),r=De();o.useEffect(function(){if(!f)return;var i=a.current;i==null||i.addEventListener("keydown",c,{passive:!0}),i==null||i.addEventListener("mouseover",l,!0),i==null||i.addEventListener("focus",t,!0),i==null||i.addEventListener("mouseout",d,{passive:!0}),i==null||i.addEventListener("blur",d,!0);function t(u){var s=O(u.target);if(!s)return d();var g=qf(s),p=qe(s);if(!g||!p)return d();e({unified:g,originalUnified:p})}function d(u){if(u){var s=u.relatedTarget;if(!O(s))return e(null)}e(null)}function c(u){u.key==="Escape"&&e(null)}function l(u){if(!n()){var s=O(u.target);s&&R(s)}}return function(){i==null||i.removeEventListener("mouseover",l),i==null||i.removeEventListener("mouseout",d),i==null||i.removeEventListener("focus",t,!0),i==null||i.removeEventListener("blur",d,!0),i==null||i.removeEventListener("keydown",c)}},[a,f,e,n,r])}function Yf(){var f=Pe();return f===W.SEARCH}function r1(){var f=Pe();return f===W.PREVIEW}var kn=".EmojiPickerReact .Flex{display:flex}.EmojiPickerReact .Flex.FlexRow{flex-direction:row}.EmojiPickerReact .Flex.FlexColumn{flex-direction:column}";z(kn);var Mf;(function(f){f.ROW="FlexRow",f.COLUMN="FlexColumn"})(Mf||(Mf={}));function i1(f){var e=f.children,a=f.className,n=f.style,r=n===void 0?{}:n,i=f.direction,t=i===void 0?Mf.ROW:i;return o.createElement("div",{style:B({},r),className:j("Flex",a,t)},e)}function wn(f){var e=f.className,a=f.style,n=a===void 0?{}:a;return o.createElement("div",{style:B({flex:1},n),className:j(e)})}var yn=".EmojiPickerReact .epr-preview{align-items:center;border-top:1px solid var(--epr-preview-border-color);height:var(--epr-preview-height);padding:0 var(--epr-horizontal-padding);position:relative;z-index:1;z-index:var(--epr-preview-z-index)}.EmojiPickerReact .epr-preview .epr-preview-emoji-label{color:var(--epr-preview-text-color);font-size:var(--epr-preview-text-size);padding:var(--epr-preview-text-padding);text-transform:capitalize}";z(yn);function En(f){var e=f.children,a=f.className,n=f.style;return o.createElement("div",{style:B({},n,{position:"absolute"}),className:a},e)}function xf(f){var e=f.children,a=f.className,n=f.style;return o.createElement("div",{style:B({},n,{position:"relative"}),className:a},e)}var jn='.EmojiPickerReact .epr-skin-tones{--epr-skin-tone-size:15px;align-items:center;display:flex;justify-content:flex-end;padding:10px 0;transition:all .3s ease-in-out}.EmojiPickerReact .epr-skin-tones.epr-vertical{align-items:flex-end;border:1px solid var(--epr-bg-color);border-radius:6px;flex-direction:column;padding:5px}.EmojiPickerReact .epr-skin-tones.epr-vertical.epr-open{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:var(--epr-skin-tone-picker-menu-color);border:1px solid var(--epr-picker-border-color)}.EmojiPickerReact .epr-skin-tone-select{height:var(--epr-skin-tone-size);position:relative;width:var(--epr-skin-tone-size)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-tone{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.EmojiPickerReact .epr-skin-tones:not(.epr-open) .epr-tone{opacity:0;z-index:0}.EmojiPickerReact .epr-skin-tones .epr-tone{border-radius:4px;box-shadow:0 0 0 0 var(--epr-active-skin-hover-color);cursor:pointer;display:block;height:var(--epr-skin-tone-size);position:absolute;right:0;transition:transform .3s ease-in-out,opacity .5s ease-in-out;width:var(--epr-skin-tone-size);z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone:hover{box-shadow:0 0 0 3px var(--epr-active-skin-hover-color)}.EmojiPickerReact .epr-skin-tones .epr-tone:focus{box-shadow:0 0 0 3px var(--epr-focus-bg-color)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-skin-tone-select .epr-tone.epr-active:after{border:1px solid var(--epr-active-skin-tone-indicator-border-color);border-radius:5px;bottom:-2px;content:"";left:-2px;position:absolute;right:-2px;top:-2px}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-active{opacity:1;z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-neutral{background-color:#ffd225}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fb{background-color:#ffdfbd}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fc{background-color:#e9c197}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fd{background-color:#c88e62}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fe{background-color:#a86637}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3ff{background-color:#60463a}';z(jn);var ef=28;function Cn(){return o.createElement(xf,{style:{height:ef}},o.createElement(En,{style:{bottom:0,right:0}},o.createElement(o1,{direction:tf.VERTICAL})))}function o1(f){var e,a=f.direction,n=a===void 0?tf.HORIZONTAL:a,r=Df(),i=xe(),t=sf(),d=t[0],c=t[1],l=If(),u=l[0],s=l[1],g=H(),p=$();if(i)return null;var y=ef*bf.length+"px",v=d?y:ef+"px",w=n===tf.VERTICAL;return o.createElement(xf,{className:j("epr-skin-tones",n,(e={},e[b.open]=d,e)),style:w?{flexBasis:v,height:v}:{flexBasis:v}},o.createElement("div",{className:"epr-skin-tone-select",ref:r},bf.map(function(h,P){var D,L=h===u;return o.createElement(jf,{style:{transform:j(w?"translateY(-"+P*(d?ef:0)+"px)":"translateX(-"+P*(d?ef:0)+"px)",d&&L&&"scale(1.3)")},onClick:function(){d?(s(h),p()):c(!0),g()},key:h,className:j("epr-tone-"+h,"epr-tone",(D={},D[b.active]=L,D)),tabIndex:d?0:-1,"aria-pressed":L,"aria-label":"Skin tone "+L1[h]})})))}var tf;(function(f){f.VERTICAL="epr-vertical",f.HORIZONTAL="epr-horizontal"})(tf||(tf={}));function xn(){var f=Re(),e=r1();return f.showPreview?o.createElement(i1,{className:"epr-preview"},o.createElement(Sn,null),o.createElement(wn,null),e?o.createElement(Cn,null):null):null}function Sn(){var f,e=Re(),a=o.useState(null),n=a[0],r=a[1],i=Z(),t=X(),d=t[0],c=Q();vn(e.showPreview,r);var l=of((f=n==null?void 0:n.unified)!=null?f:n==null?void 0:n.originalUnified),u=l!=null&&n!=null;return o.createElement(s,null);function s(){var g=d??of(e.defaultEmoji);if(!g)return null;var p=d?Pf(d):e.defaultCaption;return o.createElement(o.Fragment,null,o.createElement("div",null,u?o.createElement(Af,{unified:n==null?void 0:n.unified,emoji:l,emojiStyle:i,size:45,getEmojiUrl:c}):g?o.createElement(Af,{unified:C(g),emoji:g,emojiStyle:i,size:45,getEmojiUrl:c}):null),u?o.createElement("div",{className:"epr-preview-emoji-label"},Pf(l)):o.createElement("div",{className:"epr-preview-emoji-label"},p))}}var Rn=`.EmojiPickerReact .epr-category-nav{display:flex;flex-direction:row;justify-content:space-around;padding:var(--epr-header-padding)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-size:calc(var(--epr-category-navigation-button-size)*10);display:inline-block;height:var(--epr-category-navigation-button-size);outline:none;position:relative;transition:opacity .2s ease-in-out;width:var(--epr-category-navigation-button-size)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{border:2px solid var(--epr-category-icon-active-color);border-radius:50%;bottom:-2px;content:"";left:-2px;position:absolute;right:-2px;top:-2px}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}.EmojiPickerReact.epr-search-active .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' xml:space='preserve'%3E%3Cg fill='%233371B7' stroke='%233371B7' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 29.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 23c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3Cpath d='M14.6 31.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 34.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M64.1 33.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M65.5 23.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%233371B7' cx='66.2' cy='30.9' rx='.9' ry='1'/%3E%3Cellipse fill='%233371B7' cx='73.8' cy='30.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath d='M96.4 30c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 28.6v.1c-.9.1-2.9.1-4.6-1.1-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.1-.1-.2.5-.1 1.2-.2 2-.1 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.2.3.6.4.9zM84 32.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath stroke-linecap='round' d='m116.3 26.8-1.4 2-.8-.8-.6-.6v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.6-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 27.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 34.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%233371B7'/%3E%3Cg fill='%233371B7'%3E%3Cpath d='M170.8 23.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 27.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6 0-.4-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M186.2 23.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%233371B7' cx='186' cy='28.9' r='.7'/%3E%3Ccircle fill='%233371B7' cx='194' cy='26.7' r='.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m186 33.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%233371B7' stroke='%233371B7' stroke-width='.25' stroke-miterlimit='10' d='M156 24.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M48.1 23.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 28.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m43.5 30.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 32.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 33.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%233371B7' cx='51.6' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='25' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='27.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='54.3' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='50.9' cy='25' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%233371B7' d='M24.2 31v-7.6c.1.1.8.9 2.8 3.1 2.5-1.6 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m21.2 30 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 30l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%233371B7' d='m29.5 32.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m32.4 32.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%233371B7' cx='27.6' cy='29.7' r='.7'/%3E%3Ccircle fill='%233371B7' cx='32.4' cy='29.7' r='.7'/%3E%3Cg fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 49.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm1.8 3.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 54.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 43c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M64.1 53.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M65.5 43.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%23C0C0BF' cx='66.2' cy='50.9' rx='.9' ry='1'/%3E%3Cellipse fill='%23C0C0BF' cx='73.8' cy='50.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%23C0C0BF'%3E%3Cpath d='M96.4 50c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 48.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.4.3.8.4 1.1zM84 52.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23C0C0BF'%3E%3Cpath stroke-linecap='round' d='m116.3 46.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 47.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 54.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%23C0C0BF'/%3E%3Cg fill='%23C0C0BF'%3E%3Cpath d='M170.8 43.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 47.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M186.2 43.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23C0C0BF' cx='186' cy='48.9' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='194' cy='46.7' r='.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m186 53.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.25' stroke-miterlimit='10' d='M156 44.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M48.1 43.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 48.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m43.5 50.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 52.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 53.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23C0C0BF' cx='51.6' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='45' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='47.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='54.3' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='50.9' cy='45' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M24.2 51v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m21.2 50 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 50l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23C0C0BF' d='m29.5 52.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m32.4 52.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23C0C0BF' cx='27.6' cy='49.7' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='32.4' cy='49.7' r='.7'/%3E%3Cg fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M14.6 71.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 74.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm2.8-4.6c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm-5.6 1.5c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 63c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M64.1 73.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4V76c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M65.5 63.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%236AA9DD' cx='66.2' cy='70.9' r='.9'/%3E%3Ccircle fill='%236AA9DD' cx='73.8' cy='70.9' r='.9'/%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath d='M96.4 70c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 68.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 72.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.9-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath stroke-linecap='round' d='m116.3 66.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 67.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 74.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%236AA9DD'/%3E%3Cg fill='%236AA9DD'%3E%3Cpath d='M170.8 63.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 67.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.7-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M186.2 63.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%236AA9DD' cx='186' cy='68.9' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='194' cy='66.7' r='.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m186 73.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.25' stroke-miterlimit='10' d='M156 64.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M48.1 63.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 68.8c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m43.5 70.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2-.1l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 72.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 73.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%236AA9DD' cx='51.6' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='65' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='67.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='54.3' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='50.9' cy='65' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M24.2 71v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m21.2 70.1 5.4 1.2m-5.4 2.8 5.4-1.2m12.2-2.8-5.4 1.2m5.4 2.8-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%236AA9DD' d='m29.5 72.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5.2-.1.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m32.4 72.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%236AA9DD' cx='27.6' cy='69.7' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='32.4' cy='69.7' r='.7'/%3E%3Cg fill='%23868686' stroke='%23868686' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 9.5c.6 0 1.1-.5 1.1-1.2 0-.6-.5-1.1-1.1-1.1-.6 0-1.2.5-1.2 1.1s.6 1.2 1.2 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zM7.2 9.5c.6 0 1.2-.5 1.2-1.2 0-.6-.5-1.1-1.2-1.1-.6 0-1.1.5-1.1 1.1s.5 1.2 1.1 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zm7.4 3.3c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.2.1-.3 0-.4zM10 14.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2z'/%3E%3Cpath d='M10 3c-3.8 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2S6.6 3.8 10 3.8s6.2 2.8 6.2 6.2-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M64.1 13.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4 0h2.4c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.2.2-.4.4-.4zm-9.8-5h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23868686' d='M65.5 3.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7V5.5c0-1.1.8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%23868686' cx='66.2' cy='10.9' r='.9'/%3E%3Ccircle fill='%23868686' cx='73.8' cy='10.9' r='.9'/%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath d='M96.4 10c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 8.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 12.1V12c.9-.2 2.9-.4 4.7.6 1.1.6 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8-1.1-.6-1.9-1.6-2.4-2.5-.3-.4-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath stroke-linecap='round' d='m116.3 6.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 7.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 14.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9M126.8 3.5h10.8v2.7h-10.8V3.5z' fill='none' stroke='%23868686'/%3E%3Cg fill='%23868686'%3E%3Cpath d='M170.8 3.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.3c-.2 3.8 2.6 7.1 6.3 7.4 3.9.4 7.3-2.6 7.6-6.5.3-3.6-2.5-6.9-6.1-7.3z'/%3E%3Cpath d='M170.3 7.4c0-.3-.3-.6-.6-.6s-.7.3-.7.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M186.2 3.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7V6.1c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23868686' cx='186' cy='8.9' r='.7'/%3E%3Ccircle fill='%23868686' cx='194' cy='6.7' r='.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m186 13.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23868686' stroke='%23868686' stroke-width='.25' stroke-miterlimit='10' d='M156 4.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.1s-2.4-.1-3.8-.6c-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4V4.7c-.3-.2-.4-.3-.5-.4zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1V4.7c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23868686' d='M48.1 3.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 8.7c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m43.5 10.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.1.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.1 1.2-.1l.2-.1c.3-.2.8-.1 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.4.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 12.1c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 13.3c0 .5.6 2.4 1.3 2.6 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23868686' cx='51.6' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='4.9' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='7.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='54.3' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='50.9' cy='4.9' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23868686' d='M24.2 11V3.5c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.7-.6-1.7-.6-2.6z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m21.2 10 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 10l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23868686' d='m29.5 12.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.6 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m32.4 12.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23868686' cx='27.6' cy='9.7' r='.7'/%3E%3Ccircle fill='%23868686' cx='32.4' cy='9.7' r='.7'/%3E%3C/svg%3E");background-position:0 0}.EmojiPickerReact.epr-dark-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}aside.EmojiPickerReact.epr-main:has(input:-moz-placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}aside.EmojiPickerReact.epr-main:has(input:placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}@media (prefers-color-scheme:dark){.EmojiPickerReact.epr-auto-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}.EmojiPickerReact.epr-auto-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-auto-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}}.EmojiPickerReact button.epr-cat-btn.epr-icn-suggested{background-position-x:calc(var(--epr-category-navigation-button-size)*-8)}.EmojiPickerReact button.epr-cat-btn.epr-icn-custom{background-position-x:calc(var(--epr-category-navigation-button-size)*-9)}.EmojiPickerReact button.epr-cat-btn.epr-icn-activities{background-position-x:calc(var(--epr-category-navigation-button-size)*-4)}.EmojiPickerReact button.epr-cat-btn.epr-icn-animals_nature{background-position-x:calc(var(--epr-category-navigation-button-size)*-1)}.EmojiPickerReact button.epr-cat-btn.epr-icn-flags{background-position-x:calc(var(--epr-category-navigation-button-size)*-7)}.EmojiPickerReact button.epr-cat-btn.epr-icn-food_drink{background-position-x:calc(var(--epr-category-navigation-button-size)*-2)}.EmojiPickerReact button.epr-cat-btn.epr-icn-objects{background-position-x:calc(var(--epr-category-navigation-button-size)*-5)}.EmojiPickerReact button.epr-cat-btn.epr-icn-smileys_people{background-position-x:0}.EmojiPickerReact button.epr-cat-btn.epr-icn-symbols{background-position-x:calc(var(--epr-category-navigation-button-size)*-6)}.EmojiPickerReact button.epr-cat-btn.epr-icn-travel_places{background-position-x:calc(var(--epr-category-navigation-button-size)*-3)}`;z(Rn);function zn(f){var e;return(e=f==null?void 0:f.getAttribute("data-name"))!=null?e:null}function Pn(f){var e=M();o.useEffect(function(){var a=new Map,n=e.current,r=new IntersectionObserver(function(i){if(n){for(var t=p1(i),d;!(d=t()).done;){var c=d.value,l=zn(c.target);a.set(l,c.intersectionRatio)}var u=Array.from(a),s=u[u.length-1];if(s[1]==1)return f(s[0]);for(var g=0,p=u;g{const t=s.useRef(!1);t.current||(t.current=!0,e==null||e())},i=s.memo(e=>{const t=s.useRef(null),[o,u]=s.useState(!1);return s.useEffect(()=>{if(!t.current)return;const c=t.current,r=c.parentElement;let n;return r&&(n=new ResizeObserver(()=>{const{width:l}=r.getBoundingClientRect();c.style.fontSize=`${l/e.text.length*e.scale}px`,u(!0)}),n.observe(r)),()=>{n&&n.disconnect()}},[e.scale]),a.jsx("span",{ref:t,className:o?"":"invisible",children:e.text})});i.displayName="FlexText";export{i as F,x as u}; +import{r as s,j as a}from"./index-HRfeE_7B.js";const x=e=>{const t=s.useRef(!1);t.current||(t.current=!0,e==null||e())},i=s.memo(e=>{const t=s.useRef(null),[o,u]=s.useState(!1);return s.useEffect(()=>{if(!t.current)return;const c=t.current,r=c.parentElement;let n;return r&&(n=new ResizeObserver(()=>{const{width:l}=r.getBoundingClientRect();c.style.fontSize=`${l/e.text.length*e.scale}px`,u(!0)}),n.observe(r)),()=>{n&&n.disconnect()}},[e.scale]),a.jsx("span",{ref:t,className:o?"":"invisible",children:e.text})});i.displayName="FlexText";export{i as F,x as u}; diff --git a/assets/Gallery-lvvI9ksR.js b/assets/Gallery-32-V3LXo.js similarity index 69% rename from assets/Gallery-lvvI9ksR.js rename to assets/Gallery-32-V3LXo.js index a0ed267883..14eb56e699 100644 --- a/assets/Gallery-lvvI9ksR.js +++ b/assets/Gallery-32-V3LXo.js @@ -1,3 +1,3 @@ -import{r as f,j as l,R as he,i as q}from"./index-Qg-bAq5J.js";import{a as D,j as Te,u as ge,s as He,b as Pe,L as _e,D as ce,c as ke}from"./Divider-ZvsSiSkZ.js";import{c as pe,a as W}from"./helper-Oi49T1hx.js";import{s as Me}from"./index-iAcAeRlm.js";const We=t=>{const e=f.useRef();return e.current||(e.current=t()),e.current},ve=f.createContext(D([])),Pt=({children:t,images:e})=>{const n=We(()=>D(e));return f.useEffect(()=>{Te.set(n,e)},[e]),l.jsx(ve.Provider,{value:n,children:t})},ne=t=>ge(He(f.useContext(ve),f.useCallback(e=>e.find(n=>n.src===t),[t]))),De=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ke=({contexts:t,children:e})=>t.reduceRight((n,r)=>he.cloneElement(r,{children:n}),e),J=t=>{const e=f.useRef(t);return f.useEffect(()=>{e.current=t},[t]),e};D(!1);const Fe=(t,e,n={})=>{let r,a,i;const u=()=>{r=void 0,a!==void 0&&(t.apply(void 0,a),a=void 0,i=Date.now(),r=setTimeout(u,e))};return function(...s){const g=Date.now();i===void 0&&n.leading===!1&&(i=g);const h=e-(g-(i??0));h<=0||h>e?(r!==void 0&&clearTimeout(r),t.apply(this,s),i=g,r=setTimeout(u,e)):n.trailing!==!1&&(a=s,r===void 0&&(r=setTimeout(u,h)))}},_t=t=>t[Math.floor(Math.random()*t.length)];D(0);const Ue=D(null),$e=()=>ge(Ue),[Ge,qe,Be]=q(void 0),[Ye,Ze,Ve]=q({h:0,w:0}),[Xe,kt,Qe]=q({x:0,y:0}),[Je,Mt,et]=q(!1),tt=[l.jsx(Ge,{},"ArticleElementProviderInternal"),l.jsx(Ye,{},"ElementSizeProviderInternal"),l.jsx(Xe,{},"ElementPositsionProviderInternal"),l.jsx(Je,{},"IsEOArticleElementProviderInternal")],Wt=({children:t,className:e})=>l.jsxs(Ke,{contexts:tt,children:[l.jsx(nt,{}),l.jsx(ye,{className:e,children:t})]}),nt=()=>{const t=Ve(),e=Qe(),n=qe();return De(()=>{if(!n)return;const{height:r,width:a,x:i,y:u}=n.getBoundingClientRect();t({h:r,w:a}),e({x:i,y:u});const s=new ResizeObserver(g=>{const h=g[0],{height:I,width:O,x:A,y:S}=h.contentRect;t({h:I,w:O}),e({x:A,y:S})});return s.observe(n),()=>{s.unobserve(n),s.disconnect()}},[n]),null},ye=f.memo(({children:t,className:e})=>{const n=Be();return l.jsxs("div",{className:pe("relative",e),ref:n,children:[t,l.jsx(ot,{})]})});ye.displayName="ArticleElementProviderContent";const ot=()=>{const t=$e(),e=J(t),n=et(),r=f.useRef(null);return f.useEffect(()=>{if(!r.current)return;const a=r.current,i=new IntersectionObserver(u=>{const s=u[0];!s.isIntersecting&&e.current==="down"||n(s.isIntersecting)},{rootMargin:"0px 0px 0px 0px"});return i.observe(a),()=>{i.unobserve(a),i.disconnect()}},[]),l.jsx("div",{ref:r})};var rt=typeof window>"u"||"Deno"in window;function Dt(){}function Kt(t,e){return typeof t=="function"?t(e):t}function Ft(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ut(t,e){return Math.max(t+(e||0)-Date.now(),0)}function $t(t,e){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:u,stale:s}=t;if(u){if(r){if(e.queryHash!==it(u,e.options))return!1}else if(!oe(e.queryKey,u))return!1}if(n!=="all"){const g=e.isActive();if(n==="active"&&!g||n==="inactive"&&g)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof a<"u"&&a!==e.state.fetchStatus||i&&!i(e))}function Gt(t,e){const{exact:n,status:r,predicate:a,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(ee(e.options.mutationKey)!==ee(i))return!1}else if(!oe(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||a&&!a(e))}function it(t,e){return((e==null?void 0:e.queryKeyHashFn)||ee)(t)}function ee(t){return JSON.stringify(t,(e,n)=>te(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function oe(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!oe(t[n],e[n])):!1}function ze(t,e){if(t===e)return t;const n=le(t)&&le(e);if(n||te(t)&&te(e)){const r=n?t.length:Object.keys(t).length,a=n?e:Object.keys(e),i=a.length,u=n?[]:{};let s=0;for(let g=0;g"u")return!0;const n=e.prototype;return!(!de(n)||!n.hasOwnProperty("isPrototypeOf"))}function de(t){return Object.prototype.toString.call(t)==="[object Object]"}function at(t){return new Promise(e=>{setTimeout(e,t)})}function Bt(t){at(0).then(t)}function Yt(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?ze(t,e):e}function Zt(t){return t}function Vt(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Xt(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var H=Object.assign||function(t){for(var e=1;e{const e=m.useRef();return e.current||(e.current=t()),e.current},ve=m.createContext(D([])),Pt=({children:t,images:e})=>{const n=We(()=>D(e));return m.useEffect(()=>{Te.set(n,e)},[e]),l.jsx(ve.Provider,{value:n,children:t})},ne=t=>ge(He(m.useContext(ve),m.useCallback(e=>e.find(n=>n.src===t),[t]))),De=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ke=({contexts:t,children:e})=>t.reduceRight((n,r)=>he.cloneElement(r,{children:n}),e),J=t=>{const e=m.useRef(t);return m.useEffect(()=>{e.current=t},[t]),e};D(!1);const Fe=(t,e,n={})=>{let r,a,i;const f=()=>{r=void 0,a!==void 0&&(t.apply(void 0,a),a=void 0,i=Date.now(),r=setTimeout(f,e))};return function(...s){const g=Date.now();i===void 0&&n.leading===!1&&(i=g);const h=e-(g-(i??0));h<=0||h>e?(r!==void 0&&clearTimeout(r),t.apply(this,s),i=g,r=setTimeout(f,e)):n.trailing!==!1&&(a=s,r===void 0&&(r=setTimeout(f,h)))}},_t=t=>t[Math.floor(Math.random()*t.length)];D(0);const Ue=D(null),$e=()=>ge(Ue),[Ge,qe,Be]=q(void 0),[Ye,Ze,Ve]=q({h:0,w:0}),[Xe,kt,Qe]=q({x:0,y:0}),[Je,Mt,et]=q(!1),tt=[l.jsx(Ge,{},"ArticleElementProviderInternal"),l.jsx(Ye,{},"ElementSizeProviderInternal"),l.jsx(Xe,{},"ElementPositsionProviderInternal"),l.jsx(Je,{},"IsEOArticleElementProviderInternal")],Wt=({children:t,className:e})=>l.jsxs(Ke,{contexts:tt,children:[l.jsx(nt,{}),l.jsx(ye,{className:e,children:t})]}),nt=()=>{const t=Ve(),e=Qe(),n=qe();return De(()=>{if(!n)return;const{height:r,width:a,x:i,y:f}=n.getBoundingClientRect();t({h:r,w:a}),e({x:i,y:f});const s=new ResizeObserver(g=>{const h=g[0],{height:I,width:O,x:A,y:S}=h.contentRect;t({h:I,w:O}),e({x:A,y:S})});return s.observe(n),()=>{s.unobserve(n),s.disconnect()}},[n]),null},ye=m.memo(({children:t,className:e})=>{const n=Be();return l.jsxs("div",{className:pe("relative",e),ref:n,children:[t,l.jsx(ot,{})]})});ye.displayName="ArticleElementProviderContent";const ot=()=>{const t=$e(),e=J(t),n=et(),r=m.useRef(null);return m.useEffect(()=>{if(!r.current)return;const a=r.current,i=new IntersectionObserver(f=>{const s=f[0];!s.isIntersecting&&e.current==="down"||n(s.isIntersecting)},{rootMargin:"0px 0px 0px 0px"});return i.observe(a),()=>{i.unobserve(a),i.disconnect()}},[]),l.jsx("div",{ref:r})};var rt=typeof window>"u"||"Deno"in window;function Dt(){}function Kt(t,e){return typeof t=="function"?t(e):t}function Ft(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ut(t,e){return Math.max(t+(e||0)-Date.now(),0)}function $t(t,e){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:f,stale:s}=t;if(f){if(r){if(e.queryHash!==it(f,e.options))return!1}else if(!oe(e.queryKey,f))return!1}if(n!=="all"){const g=e.isActive();if(n==="active"&&!g||n==="inactive"&&g)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof a<"u"&&a!==e.state.fetchStatus||i&&!i(e))}function Gt(t,e){const{exact:n,status:r,predicate:a,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(ee(e.options.mutationKey)!==ee(i))return!1}else if(!oe(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||a&&!a(e))}function it(t,e){return((e==null?void 0:e.queryKeyHashFn)||ee)(t)}function ee(t){return JSON.stringify(t,(e,n)=>te(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function oe(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!oe(t[n],e[n])):!1}function ze(t,e){if(t===e)return t;const n=le(t)&&le(e);if(n||te(t)&&te(e)){const r=n?t.length:Object.keys(t).length,a=n?e:Object.keys(e),i=a.length,f=n?[]:{};let s=0;for(let g=0;g"u")return!0;const n=e.prototype;return!(!de(n)||!n.hasOwnProperty("isPrototypeOf"))}function de(t){return Object.prototype.toString.call(t)==="[object Object]"}function at(t){return new Promise(e=>{setTimeout(e,t)})}function Bt(t){at(0).then(t)}function Yt(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?ze(t,e):e}function Zt(t){return t}function Vt(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Xt(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var H=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(c){function d(){}c(d,d)},a=function(c){var d=c.target;if(d===K){v();return}E.indexOf(d)!==-1&&N({target:d})},i=function(){if(!(P||!o.original)){var c=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(ae-c)>p.scrollOffset&&setTimeout(v,150)}},u=function(c){var d=c.key||c.keyCode;(d==="Escape"||d==="Esc"||d===27)&&v()},s=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c;if(c.background&&(K.style.background=c.background),c.container&&c.container instanceof Object&&(d.container=H({},p.container,c.container)),c.template){var y=$(c.template)?c.template:document.querySelector(c.template);d.template=y}return p=H({},p,d),E.forEach(function(z){z.dispatchEvent(k("medium-zoom:update",{detail:{zoom:x}}))}),x},g=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(H({},p,c))},h=function(){for(var c=arguments.length,d=Array(c),y=0;y0?d.reduce(function(m,w){return[].concat(m,me(w))},[]):E;return z.forEach(function(m){m.classList.remove("medium-zoom-image"),m.dispatchEvent(k("medium-zoom:detach",{detail:{zoom:x}}))}),E=E.filter(function(m){return z.indexOf(m)===-1}),x},O=function(c,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(z){z.addEventListener("medium-zoom:"+c,d,y)}),T.push({type:"medium-zoom:"+c,listener:d,options:y}),x},A=function(c,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(z){z.removeEventListener("medium-zoom:"+c,d,y)}),T=T.filter(function(z){return!(z.type==="medium-zoom:"+c&&z.listener.toString()===d.toString())}),x},S=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.target,y=function(){var m={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},w=void 0,L=void 0;if(p.container)if(p.container instanceof Object)m=H({},m,p.container),w=m.width-m.left-m.right-p.margin*2,L=m.height-m.top-m.bottom-p.margin*2;else{var _=$(p.container)?p.container:document.querySelector(p.container),R=_.getBoundingClientRect(),Y=R.width,be=R.height,we=R.left,je=R.top;m=H({},m,{width:Y,height:be,left:we,top:je})}w=w||m.width-p.margin*2,L=L||m.height-p.margin*2;var M=o.zoomedHd||o.original,Ie=ue(M)?w:M.naturalWidth||w,Se=ue(M)?L:M.naturalHeight||L,F=M.getBoundingClientRect(),Oe=F.top,Ce=F.left,Z=F.width,V=F.height,Le=Math.min(Math.max(Z,Ie),w)/Z,Ae=Math.min(Math.max(V,Se),L)/V,X=Math.min(Le,Ae),Ne=(-Ce+(w-Z)/2+p.margin+m.left)/X,Re=(-Oe+(L-V)/2+p.margin+m.top)/X,se="scale("+X+") translate3d("+Ne+"px, "+Re+"px, 0)";o.zoomed.style.transform=se,o.zoomedHd&&(o.zoomedHd.style.transform=se)};return new r(function(z){if(d&&E.indexOf(d)===-1){z(x);return}var m=function Y(){P=!1,o.zoomed.removeEventListener("transitionend",Y),o.original.dispatchEvent(k("medium-zoom:opened",{detail:{zoom:x}})),z(x)};if(o.zoomed){z(x);return}if(d)o.original=d;else if(E.length>0){var w=E;o.original=w[0]}else{z(x);return}if(o.original.dispatchEvent(k("medium-zoom:open",{detail:{zoom:x}})),ae=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,P=!0,o.zoomed=lt(o.original),document.body.appendChild(K),p.template){var L=$(p.template)?p.template:document.querySelector(p.template);o.template=document.createElement("div"),o.template.appendChild(L.content.cloneNode(!0)),document.body.appendChild(o.template)}if(o.original.parentElement&&o.original.parentElement.tagName==="PICTURE"&&o.original.currentSrc&&(o.zoomed.src=o.original.currentSrc),document.body.appendChild(o.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),o.original.classList.add("medium-zoom-image--hidden"),o.zoomed.classList.add("medium-zoom-image--opened"),o.zoomed.addEventListener("click",v),o.zoomed.addEventListener("transitionend",m),o.original.getAttribute("data-zoom-src")){o.zoomedHd=o.zoomed.cloneNode(),o.zoomedHd.removeAttribute("srcset"),o.zoomedHd.removeAttribute("sizes"),o.zoomedHd.removeAttribute("loading"),o.zoomedHd.src=o.zoomed.getAttribute("data-zoom-src"),o.zoomedHd.onerror=function(){clearInterval(_),console.warn("Unable to reach the zoom image target "+o.zoomedHd.src),o.zoomedHd=null,y()};var _=setInterval(function(){o.zoomedHd.complete&&(clearInterval(_),o.zoomedHd.classList.add("medium-zoom-image--opened"),o.zoomedHd.addEventListener("click",v),document.body.appendChild(o.zoomedHd),y())},10)}else if(o.original.hasAttribute("srcset")){o.zoomedHd=o.zoomed.cloneNode(),o.zoomedHd.removeAttribute("sizes"),o.zoomedHd.removeAttribute("loading");var R=o.zoomedHd.addEventListener("load",function(){o.zoomedHd.removeEventListener("load",R),o.zoomedHd.classList.add("medium-zoom-image--opened"),o.zoomedHd.addEventListener("click",v),document.body.appendChild(o.zoomedHd),y()})}else y()})},v=function(){return new r(function(c){if(P||!o.original){c(x);return}var d=function y(){o.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(o.zoomed),o.zoomedHd&&document.body.removeChild(o.zoomedHd),document.body.removeChild(K),o.zoomed.classList.remove("medium-zoom-image--opened"),o.template&&document.body.removeChild(o.template),P=!1,o.zoomed.removeEventListener("transitionend",y),o.original.dispatchEvent(k("medium-zoom:closed",{detail:{zoom:x}})),o.original=null,o.zoomed=null,o.zoomedHd=null,o.template=null,c(x)};P=!0,document.body.classList.remove("medium-zoom--opened"),o.zoomed.style.transform="",o.zoomedHd&&(o.zoomedHd.style.transform=""),o.template&&(o.template.style.transition="opacity 150ms",o.template.style.opacity=0),o.original.dispatchEvent(k("medium-zoom:close",{detail:{zoom:x}})),o.zoomed.addEventListener("transitionend",d)})},N=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.target;return o.original?v():S({target:d})},B=function(){return p},j=function(){return E},C=function(){return o.original},E=[],T=[],P=!1,ae=0,p=n,o={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?p=e:(e||typeof e=="string")&&h(e),p=H({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},p);var K=ct(p.background);document.addEventListener("click",a),document.addEventListener("keyup",u),document.addEventListener("scroll",i),window.addEventListener("resize",v);var x={open:S,close:v,toggle:N,update:s,clone:g,attach:h,detach:I,on:O,off:A,getOptions:B,getImages:j,getZoomedImage:C};return x};function ut(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var mt=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";ut(mt);const ft=dt,ht=t=>he.createElement("img",t,t.children),gt=({width:t,height:e,max:n})=>{if(t===0||e===0)throw new Error("Invalid image size");const{width:r,height:a}=n,i=r/t||1,u=a/e||1,s=Math.min(i,u,1);return{width:t*s,height:e*s}},pt="_error_hef56_1",vt="_loading_hef56_2",yt="_loaded_hef56_6",zt="_imageLoad_hef56_1",fe={error:pt,loading:vt,loaded:yt,imageLoad:zt},re=Me({base:"rounded-xl overflow-hidden text-center inline-flex items-center justify-center duration-200",variants:{status:{loading:"hidden opacity-0",loaded:"opacity-100 block",error:"hidden opacity-0"}}});let Q;const xt=({alt:t,src:e,title:n,zoom:r,placeholder:a,height:i,width:u})=>{const[s]=f.useState(()=>{if(rt)return null;if(Q)return Q;const v=ft(void 0);return Q=v,v}),g=n||t,[h,I]=f.useState("loading"),O=Pe(),A=f.useCallback(v=>{O.current||I(v)},[O]),S=f.useRef(null);return f.useEffect(()=>{if(h!=="loaded"||!r)return;const v=S.current;if(v)return s.attach(v),()=>{s.detach(v)}},[r,s,h]),l.jsxs("figure",{children:[l.jsx("span",{className:"relative flex justify-center","data-hide-print":!0,children:l.jsxs(_e,{placeholder:a,offset:30,children:[l.jsx("span",{children:h!=="loaded"&&a}),h==="error"&&l.jsxs("div",{className:"absolute inset-0 z-[1] flex flex-col gap-8 center",children:[l.jsx("i",{className:"icon-[mingcute--close-line] text-4xl text-red-500"}),l.jsx("span",{children:"图片加载失败"}),l.jsx(ce,{className:"w-[80px] opacity-80"}),l.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:l.jsx("span",{children:"查看原图"})})]}),l.jsx(xe,{height:i,width:u,src:e,title:n,alt:t||n||"",ref:S,onLoad:()=>{A("loaded")},onError:()=>A("error"),className:re({status:h,className:fe.loaded}),onAnimationEnd:v=>{v.target.classList.remove(fe.loaded)}})]})}),l.jsx("img",{className:"max-w-1/3 hidden print:block",src:e,alt:t||n}),!!g&&l.jsxs("figcaption",{className:"mt-1 flex flex-col items-center justify-center",children:[l.jsx(ce,{className:"w-[80px] opacity-80"}),l.jsx("span",{children:g})]})]})},Et=t=>{const e=f.useMemo(()=>l.jsx(bt,{...t}),[t]);return l.jsx(xt,{zoom:!0,placeholder:e,...t})},bt=({src:t,containerWidth:e,height:n,width:r,accent:a})=>{const i=ne(t),u=a||(i==null?void 0:i.accent),s=f.useMemo(()=>{let g=n,h=r;if(!g||!h){if(!i)return;g=i.height,h=i.width}if(e<=0)return;const{height:I,width:O}=gt({width:h,height:g,max:{width:e,height:1/0}});return{scaleHeight:I,scaleWidth:O}},[n,r,e,i]);return s?l.jsx("span",{className:`image-placeholder ${re.base}`,"data-width":s.scaleWidth,"data-height":s.scaleHeight,"data-from-record-height":i==null?void 0:i.height,"data-from-record-width":i==null?void 0:i.width,"data-src":t,style:{height:s.scaleHeight,width:s.scaleWidth,backgroundColor:u}}):l.jsx(wt,{accent:u})},wt=({accent:t})=>l.jsx("span",{className:pe("image-placeholder",re.base,"h-[300px] w-full bg-slate-300 dark:bg-slate-700"),style:{backgroundColor:t,outline:void 0}}),xe=f.forwardRef(({src:t,alt:e,placeholder:n,...r},a)=>{const{height:i,width:u}=ne(t)||r;return!i||!u?l.jsx("img",{alt:e,src:t,ref:a,...r}):l.jsx(ht,{alt:e||"",fetchPriority:"high",priority:!0,src:t,...r,height:+i,width:+u,ref:a})});xe.displayName="OptimizedImage";const jt="_root_1ug9l_1",It="_indicator_1ug9l_2",St="_container_1ug9l_7",Ot="_child_1ug9l_17",G={root:jt,indicator:It,container:St,child:Ot},ie=60,Ct=15,Lt=5e3,Qt=t=>{const{images:e}=t,[n,r]=f.useState(null),[,a]=f.useState({}),i=f.useRef(0);f.useEffect(()=>{if(!n)return;const j=new ResizeObserver(()=>{a({}),C(n)});function C(E){const T=E.children.item(0);T&&(i.current=T.clientWidth)}return C(n),j.observe(n),()=>{j.disconnect()}},[n]);const[u,s]=f.useState(0),g=f.useCallback(Fe(j=>{const C=j.target,E=Math.floor((C.scrollLeft+ie+15)/i.current);s(E)},60),[]),h=f.useCallback(j=>{n&&n.scrollTo({left:i.current*j,behavior:"smooth"})},[n]),I=f.useRef(null),O=J(u),A=J(e.length),S=f.useRef(!0),v=f.useRef(!0),N=f.useCallback(()=>{v.current&&(v.current=!1,clearInterval(I.current))},[]),{ref:B}=ke({initialInView:!1,triggerOnce:e.length<2,onChange(j){A.current<2||!v.current||(j?I.current=setInterval(()=>{O.current+1>A.current-1&&S.current&&(S.current=!1),O.current-1<0&&!S.current&&(S.current=!0);const C=O.current+(S.current?1:-1);h(C)},Lt):I.current=clearInterval(I.current))}});return f.useEffect(()=>()=>{clearInterval(I.current)},[]),l.jsxs("div",{className:W("w-full","relative",G.root),ref:B,onTouchMove:N,onWheel:N,children:[l.jsx("div",{className:W("w-full overflow-auto whitespace-nowrap",G.container),onTouchStart:N,onScroll:g,ref:r,onTouchMove:N,onWheel:N,children:e.map(j=>l.jsx(Ee,{image:j},j.url))}),l.jsx("div",{className:W(G.indicator,"space-x-2"),children:Array.from({length:e.length}).map((j,C)=>l.jsx("div",{className:W("h-[6px] w-[6px] cursor-pointer rounded-full bg-stone-600 opacity-50 transition-opacity duration-200 ease-in-out",u==C&&"!opacity-100"),onClick:h.bind(null,C)},C))})]})},At={width:`calc(100% - ${ie}px)`,marginRight:`${Ct}px`},Ee=f.memo(({image:t})=>{const e=ne(t.url),n=t.name,a=t.footnote||(["!","¡"].some(u=>u==(n==null?void 0:n[0]))?n==null?void 0:n.slice(1):"")||"",{w:i}=Ze();return l.jsx("div",{style:At,className:W(G.child,"inline-block self-center"),children:l.jsx(Et,{accent:e==null?void 0:e.accent,src:t.url,alt:a,containerWidth:i-ie})},`${t.url}-${t.name||""}`)});Ee.displayName="GalleryItem";export{Et as F,Qt as G,ht as I,Pt as M,Wt as W,Xt as a,Vt as b,rt as c,Gt as d,ee as e,Kt as f,We as g,it as h,Ft as i,qt as j,Zt as k,at as l,$t as m,Dt as n,Bt as o,oe as p,Yt as r,_t as s,Ut as t,Ze as u}; +See: https://github.com/francoischalifour/medium-zoom`)}},ct=function(e){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=e,n},lt=function(e){var n=e.getBoundingClientRect(),r=n.top,a=n.left,i=n.width,f=n.height,s=e.cloneNode(),g=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,h=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=r+g+"px",s.style.left=a+h+"px",s.style.width=i+"px",s.style.height=f+"px",s.style.transform="",s},k=function(e,n){var r=H({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(e,r);var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),a},dt=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(c){function d(){}c(d,d)},a=function(c){var d=c.target;if(d===K){v();return}E.indexOf(d)!==-1&&N({target:d})},i=function(){if(!(P||!o.original)){var c=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(ae-c)>p.scrollOffset&&setTimeout(v,150)}},f=function(c){var d=c.key||c.keyCode;(d==="Escape"||d==="Esc"||d===27)&&v()},s=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c;if(c.background&&(K.style.background=c.background),c.container&&c.container instanceof Object&&(d.container=H({},p.container,c.container)),c.template){var y=$(c.template)?c.template:document.querySelector(c.template);d.template=y}return p=H({},p,d),E.forEach(function(z){z.dispatchEvent(k("medium-zoom:update",{detail:{zoom:x}}))}),x},g=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(H({},p,c))},h=function(){for(var c=arguments.length,d=Array(c),y=0;y0?d.reduce(function(u,w){return[].concat(u,me(w))},[]):E;return z.forEach(function(u){u.classList.remove("medium-zoom-image"),u.dispatchEvent(k("medium-zoom:detach",{detail:{zoom:x}}))}),E=E.filter(function(u){return z.indexOf(u)===-1}),x},O=function(c,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(z){z.addEventListener("medium-zoom:"+c,d,y)}),T.push({type:"medium-zoom:"+c,listener:d,options:y}),x},A=function(c,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(z){z.removeEventListener("medium-zoom:"+c,d,y)}),T=T.filter(function(z){return!(z.type==="medium-zoom:"+c&&z.listener.toString()===d.toString())}),x},S=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.target,y=function(){var u={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},w=void 0,L=void 0;if(p.container)if(p.container instanceof Object)u=H({},u,p.container),w=u.width-u.left-u.right-p.margin*2,L=u.height-u.top-u.bottom-p.margin*2;else{var _=$(p.container)?p.container:document.querySelector(p.container),R=_.getBoundingClientRect(),Y=R.width,be=R.height,we=R.left,je=R.top;u=H({},u,{width:Y,height:be,left:we,top:je})}w=w||u.width-p.margin*2,L=L||u.height-p.margin*2;var M=o.zoomedHd||o.original,Ie=ue(M)?w:M.naturalWidth||w,Se=ue(M)?L:M.naturalHeight||L,F=M.getBoundingClientRect(),Oe=F.top,Ce=F.left,Z=F.width,V=F.height,Le=Math.min(Math.max(Z,Ie),w)/Z,Ae=Math.min(Math.max(V,Se),L)/V,X=Math.min(Le,Ae),Ne=(-Ce+(w-Z)/2+p.margin+u.left)/X,Re=(-Oe+(L-V)/2+p.margin+u.top)/X,se="scale("+X+") translate3d("+Ne+"px, "+Re+"px, 0)";o.zoomed.style.transform=se,o.zoomedHd&&(o.zoomedHd.style.transform=se)};return new r(function(z){if(d&&E.indexOf(d)===-1){z(x);return}var u=function Y(){P=!1,o.zoomed.removeEventListener("transitionend",Y),o.original.dispatchEvent(k("medium-zoom:opened",{detail:{zoom:x}})),z(x)};if(o.zoomed){z(x);return}if(d)o.original=d;else if(E.length>0){var w=E;o.original=w[0]}else{z(x);return}if(o.original.dispatchEvent(k("medium-zoom:open",{detail:{zoom:x}})),ae=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,P=!0,o.zoomed=lt(o.original),document.body.appendChild(K),p.template){var L=$(p.template)?p.template:document.querySelector(p.template);o.template=document.createElement("div"),o.template.appendChild(L.content.cloneNode(!0)),document.body.appendChild(o.template)}if(o.original.parentElement&&o.original.parentElement.tagName==="PICTURE"&&o.original.currentSrc&&(o.zoomed.src=o.original.currentSrc),document.body.appendChild(o.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),o.original.classList.add("medium-zoom-image--hidden"),o.zoomed.classList.add("medium-zoom-image--opened"),o.zoomed.addEventListener("click",v),o.zoomed.addEventListener("transitionend",u),o.original.getAttribute("data-zoom-src")){o.zoomedHd=o.zoomed.cloneNode(),o.zoomedHd.removeAttribute("srcset"),o.zoomedHd.removeAttribute("sizes"),o.zoomedHd.removeAttribute("loading"),o.zoomedHd.src=o.zoomed.getAttribute("data-zoom-src"),o.zoomedHd.onerror=function(){clearInterval(_),console.warn("Unable to reach the zoom image target "+o.zoomedHd.src),o.zoomedHd=null,y()};var _=setInterval(function(){o.zoomedHd.complete&&(clearInterval(_),o.zoomedHd.classList.add("medium-zoom-image--opened"),o.zoomedHd.addEventListener("click",v),document.body.appendChild(o.zoomedHd),y())},10)}else if(o.original.hasAttribute("srcset")){o.zoomedHd=o.zoomed.cloneNode(),o.zoomedHd.removeAttribute("sizes"),o.zoomedHd.removeAttribute("loading");var R=o.zoomedHd.addEventListener("load",function(){o.zoomedHd.removeEventListener("load",R),o.zoomedHd.classList.add("medium-zoom-image--opened"),o.zoomedHd.addEventListener("click",v),document.body.appendChild(o.zoomedHd),y()})}else y()})},v=function(){return new r(function(c){if(P||!o.original){c(x);return}var d=function y(){o.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(o.zoomed),o.zoomedHd&&document.body.removeChild(o.zoomedHd),document.body.removeChild(K),o.zoomed.classList.remove("medium-zoom-image--opened"),o.template&&document.body.removeChild(o.template),P=!1,o.zoomed.removeEventListener("transitionend",y),o.original.dispatchEvent(k("medium-zoom:closed",{detail:{zoom:x}})),o.original=null,o.zoomed=null,o.zoomedHd=null,o.template=null,c(x)};P=!0,document.body.classList.remove("medium-zoom--opened"),o.zoomed.style.transform="",o.zoomedHd&&(o.zoomedHd.style.transform=""),o.template&&(o.template.style.transition="opacity 150ms",o.template.style.opacity=0),o.original.dispatchEvent(k("medium-zoom:close",{detail:{zoom:x}})),o.zoomed.addEventListener("transitionend",d)})},N=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.target;return o.original?v():S({target:d})},B=function(){return p},j=function(){return E},C=function(){return o.original},E=[],T=[],P=!1,ae=0,p=n,o={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?p=e:(e||typeof e=="string")&&h(e),p=H({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},p);var K=ct(p.background);document.addEventListener("click",a),document.addEventListener("keyup",f),document.addEventListener("scroll",i),window.addEventListener("resize",v);var x={open:S,close:v,toggle:N,update:s,clone:g,attach:h,detach:I,on:O,off:A,getOptions:B,getImages:j,getZoomedImage:C};return x};function ut(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var mt=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";ut(mt);const ft=dt,ht=t=>he.createElement("img",t,t.children),gt=({width:t,height:e,max:n})=>{if(t===0||e===0)throw new Error("Invalid image size");const{width:r,height:a}=n,i=r/t||1,f=a/e||1,s=Math.min(i,f,1);return{width:t*s,height:e*s}},pt="_error_hef56_1",vt="_loading_hef56_2",yt="_loaded_hef56_6",zt="_imageLoad_hef56_1",fe={error:pt,loading:vt,loaded:yt,imageLoad:zt},re=Me({base:"rounded-xl overflow-hidden text-center inline-flex items-center justify-center duration-200",variants:{status:{loading:"hidden opacity-0",loaded:"opacity-100 block",error:"hidden opacity-0"}}});let Q;const xt=({alt:t,src:e,title:n,zoom:r,placeholder:a,height:i,width:f})=>{const[s]=m.useState(()=>{if(rt)return null;if(Q)return Q;const v=ft(void 0);return Q=v,v}),g=n||t,[h,I]=m.useState("loading"),O=Pe(),A=m.useCallback(v=>{O.current||I(v)},[O]),S=m.useRef(null);return m.useEffect(()=>{if(h!=="loaded"||!r)return;const v=S.current;if(v)return s.attach(v),()=>{s.detach(v)}},[r,s,h]),l.jsxs("figure",{children:[l.jsx("span",{className:"relative flex justify-center","data-hide-print":!0,children:l.jsxs(_e,{placeholder:a,offset:30,children:[l.jsx("span",{children:h!=="loaded"&&a}),h==="error"&&l.jsxs("div",{className:"absolute inset-0 z-[1] flex flex-col gap-8 center",children:[l.jsx("i",{className:"icon-[mingcute--close-line] text-4xl text-red-500"}),l.jsx("span",{children:"图片加载失败"}),l.jsx(ce,{className:"w-[80px] opacity-80"}),l.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:l.jsx("span",{children:"查看原图"})})]}),l.jsx(xe,{height:i,width:f,src:e,title:n,alt:t||n||"",ref:S,onLoad:()=>{A("loaded")},onError:()=>A("error"),className:re({status:h,className:fe.loaded}),onAnimationEnd:v=>{v.target.classList.remove(fe.loaded)}})]})}),l.jsx("img",{className:"max-w-1/3 hidden print:block",src:e,alt:t||n}),!!g&&l.jsxs("figcaption",{className:"mt-1 flex flex-col items-center justify-center",children:[l.jsx(ce,{className:"w-[80px] opacity-80"}),l.jsx("span",{children:g})]})]})},Et=t=>{const e=m.useMemo(()=>l.jsx(bt,{...t}),[t]);return l.jsx(xt,{zoom:!0,placeholder:e,...t})},bt=({src:t,containerWidth:e,height:n,width:r,accent:a})=>{const i=ne(t),f=a||(i==null?void 0:i.accent),s=m.useMemo(()=>{let g=n,h=r;if(!g||!h){if(!i)return;g=i.height,h=i.width}if(e<=0)return;const{height:I,width:O}=gt({width:h,height:g,max:{width:e,height:1/0}});return{scaleHeight:I,scaleWidth:O}},[n,r,e,i]);return s?l.jsx("span",{className:`image-placeholder ${re.base}`,"data-width":s.scaleWidth,"data-height":s.scaleHeight,"data-from-record-height":i==null?void 0:i.height,"data-from-record-width":i==null?void 0:i.width,"data-src":t,style:{height:s.scaleHeight,width:s.scaleWidth,backgroundColor:f}}):l.jsx(wt,{accent:f})},wt=({accent:t})=>l.jsx("span",{className:pe("image-placeholder",re.base,"h-[300px] w-full bg-slate-300 dark:bg-slate-700"),style:{backgroundColor:t,outline:void 0}}),xe=m.forwardRef(({src:t,alt:e,...n},r)=>{const{height:a,width:i}=ne(t)||n;return!a||!i?l.jsx("img",{alt:e,src:t,ref:r,...n}):l.jsx(ht,{alt:e||"",fetchPriority:"high",priority:!0,src:t,...n,height:+a,width:+i,ref:r})});xe.displayName="OptimizedImage";const jt="_root_1ug9l_1",It="_indicator_1ug9l_2",St="_container_1ug9l_7",Ot="_child_1ug9l_17",G={root:jt,indicator:It,container:St,child:Ot},ie=60,Ct=15,Lt=5e3,Qt=t=>{const{images:e}=t,[n,r]=m.useState(null),[,a]=m.useState({}),i=m.useRef(0);m.useEffect(()=>{if(!n)return;const j=new ResizeObserver(()=>{a({}),C(n)});function C(E){const T=E.children.item(0);T&&(i.current=T.clientWidth)}return C(n),j.observe(n),()=>{j.disconnect()}},[n]);const[f,s]=m.useState(0),g=m.useCallback(Fe(j=>{const C=j.target,E=Math.floor((C.scrollLeft+ie+15)/i.current);s(E)},60),[]),h=m.useCallback(j=>{n&&n.scrollTo({left:i.current*j,behavior:"smooth"})},[n]),I=m.useRef(null),O=J(f),A=J(e.length),S=m.useRef(!0),v=m.useRef(!0),N=m.useCallback(()=>{v.current&&(v.current=!1,clearInterval(I.current))},[]),{ref:B}=ke({initialInView:!1,triggerOnce:e.length<2,onChange(j){A.current<2||!v.current||(j?I.current=setInterval(()=>{O.current+1>A.current-1&&S.current&&(S.current=!1),O.current-1<0&&!S.current&&(S.current=!0);const C=O.current+(S.current?1:-1);h(C)},Lt):I.current=clearInterval(I.current))}});return m.useEffect(()=>()=>{clearInterval(I.current)},[]),l.jsxs("div",{className:W("w-full","relative",G.root),ref:B,onTouchMove:N,onWheel:N,children:[l.jsx("div",{className:W("w-full overflow-auto whitespace-nowrap",G.container),onTouchStart:N,onScroll:g,ref:r,onTouchMove:N,onWheel:N,children:e.map(j=>l.jsx(Ee,{image:j},j.url))}),l.jsx("div",{className:W(G.indicator,"space-x-2"),children:Array.from({length:e.length}).map((j,C)=>l.jsx("div",{className:W("h-[6px] w-[6px] cursor-pointer rounded-full bg-stone-600 opacity-50 transition-opacity duration-200 ease-in-out",f==C&&"!opacity-100"),onClick:h.bind(null,C)},C))})]})},At={width:`calc(100% - ${ie}px)`,marginRight:`${Ct}px`},Ee=m.memo(({image:t})=>{const e=ne(t.url),n=t.name,a=t.footnote||(["!","¡"].some(f=>f==(n==null?void 0:n[0]))?n==null?void 0:n.slice(1):"")||"",{w:i}=Ze();return l.jsx("div",{style:At,className:W(G.child,"inline-block self-center"),children:l.jsx(Et,{accent:e==null?void 0:e.accent,src:t.url,alt:a,containerWidth:i-ie})},`${t.url}-${t.name||""}`)});Ee.displayName="GalleryItem";export{Et as F,Qt as G,ht as I,Pt as M,Wt as W,Xt as a,Vt as b,rt as c,Gt as d,ee as e,Kt as f,We as g,it as h,Ft as i,qt as j,Zt as k,at as l,$t as m,Dt as n,Bt as o,oe as p,Yt as r,_t as s,Ut as t,Ze as u}; diff --git a/assets/LinkCard-aLl-jjA_.js b/assets/LinkCard-gCgkDO82.js similarity index 99% rename from assets/LinkCard-aLl-jjA_.js rename to assets/LinkCard-gCgkDO82.js index a4f86707bc..3cee0582c9 100644 --- a/assets/LinkCard-aLl-jjA_.js +++ b/assets/LinkCard-gCgkDO82.js @@ -1,4 +1,4 @@ -import{g as Hr,r as l,c as Do,R as S,j as C,$ as Io,a as Wr,b as Mo,_ as Xn}from"./index-Qg-bAq5J.js";import{i as Lo,h as jo,u as st,e as qr,a as ve,s as Vr,j as Re,g as Fo,b as Uo,D as Bo,c as Kr,L as zo}from"./Divider-ZvsSiSkZ.js";import{a as An,c as Wt}from"./helper-Oi49T1hx.js";import{o as Ho,am as Wo,a as qo,u as Vo,m as We,M as Ko,b as Jr,c as Yr}from"./spring-hZ91AlwC.js";import{i as Gr}from"./env-jTYMx4r5.js";function Jo(e){e.values.forEach(t=>t.stop())}function Yo(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const s=[];return e.forEach(o=>{s.push(Ho(o,n,{transitionOverride:r}))}),Promise.all(s)},set(n){return e.forEach(r=>{Wo(r,n)})},stop(){e.forEach(n=>{Jo(n)})},mount(){return()=>{t.stop()}}};return t}function Go(){const e=qo(Yo);return Vo(e.mount,[]),e}var ke=(e=>(e.GHRepo="gh-repo",e.Self="self",e.MixSpace="mx-space",e.GHCommit="gh-commit",e.GHPr="gh-pr",e))(ke||{}),Xo=function(e,t){t=t||{},t.listUnicodeChar=t.hasOwnProperty("listUnicodeChar")?t.listUnicodeChar:!1,t.stripListLeaders=t.hasOwnProperty("stripListLeaders")?t.stripListLeaders:!0,t.gfm=t.hasOwnProperty("gfm")?t.gfm:!0,t.useImgAltText=t.hasOwnProperty("useImgAltText")?t.useImgAltText:!0,t.abbr=t.hasOwnProperty("abbr")?t.abbr:!1,t.replaceLinksWithURL=t.hasOwnProperty("replaceLinksWithURL")?t.replaceLinksWithURL:!1,t.htmlTagsToSkip=t.hasOwnProperty("htmlTagsToSkip")?t.htmlTagsToSkip:[];var n=e||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*/gm,"");try{t.stripListLeaders&&(t.listUnicodeChar?n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(n=n.replace(/\n={2,}/g,` +import{g as Hr,r as l,c as Do,R as S,j as C,$ as Io,a as Wr,b as Mo,_ as Xn}from"./index-HRfeE_7B.js";import{i as Lo,h as jo,u as st,e as qr,a as ve,s as Vr,j as Re,g as Fo,b as Uo,D as Bo,c as Kr,L as zo}from"./Divider-sIhvLlX0.js";import{a as An,c as Wt}from"./helper-Oi49T1hx.js";import{o as Ho,am as Wo,a as qo,u as Vo,m as We,M as Ko,b as Jr,c as Yr}from"./spring-0AHu48BV.js";import{i as Gr}from"./env-jTYMx4r5.js";function Jo(e){e.values.forEach(t=>t.stop())}function Yo(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const s=[];return e.forEach(o=>{s.push(Ho(o,n,{transitionOverride:r}))}),Promise.all(s)},set(n){return e.forEach(r=>{Wo(r,n)})},stop(){e.forEach(n=>{Jo(n)})},mount(){return()=>{t.stop()}}};return t}function Go(){const e=qo(Yo);return Vo(e.mount,[]),e}var ke=(e=>(e.GHRepo="gh-repo",e.Self="self",e.MixSpace="mx-space",e.GHCommit="gh-commit",e.GHPr="gh-pr",e))(ke||{}),Xo=function(e,t){t=t||{},t.listUnicodeChar=t.hasOwnProperty("listUnicodeChar")?t.listUnicodeChar:!1,t.stripListLeaders=t.hasOwnProperty("stripListLeaders")?t.stripListLeaders:!0,t.gfm=t.hasOwnProperty("gfm")?t.gfm:!0,t.useImgAltText=t.hasOwnProperty("useImgAltText")?t.useImgAltText:!0,t.abbr=t.hasOwnProperty("abbr")?t.abbr:!1,t.replaceLinksWithURL=t.hasOwnProperty("replaceLinksWithURL")?t.replaceLinksWithURL:!1,t.htmlTagsToSkip=t.hasOwnProperty("htmlTagsToSkip")?t.htmlTagsToSkip:[];var n=e||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*/gm,"");try{t.stripListLeaders&&(t.listUnicodeChar?n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(n=n.replace(/\n={2,}/g,` `).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),t.abbr&&(n=n.replace(/\*\[.*\]:.*\n/,"")),n=n.replace(/<[^>]*>/g,"");var r=new RegExp("<[^>]*>","g");if(t.htmlTagsToSkip.length>0){var s="(?!"+t.htmlTagsToSkip.join("|")+")";r=new RegExp("<"+s+"[^>]*>","ig")}n=n.replace(r,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[([^\]]*?)\][\[\(].*?[\]\)]/g,t.replaceLinksWithURL?"$2":"$1").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} #{0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(o){return console.error(o),e}return n};const Zo=Hr(Xo);var Nn=e=>Xr(e)&&Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e)===Object.prototype,Qo=e=>({asc:1,desc:-1})[e]||1,Xr=e=>e&&typeof e=="object",ei=e=>{if(typeof e!="object"||e===null)return e;const t=e.data;if(Nn(t)&&Object.keys(e).length===1){const r=Object.assign({},t);return fn(e,r),r}return e},fn=(e,t)=>{!e||!Xr(t)||["$raw","$request","$serialized"].forEach(n=>{e[n]&&Object.defineProperty(t,n,{get(){return e[n]},enumerable:!1})})},qe=e=>Array.isArray(e)?e.map(t=>qe(t)):Nn(e)?Object.keys(e).reduce((t,n)=>(t[ti(n)]=qe(e[n]),t),{}):e;function ti(e){return e.replace(/([-_][a-z])/gi,t=>t.toUpperCase().replace("-","").replace("_",""))}var Zn=(e,t)=>(t.startsWith("/")||(t=`/${t}`),`${e}${t}`),ni=e=>{const t=new Set;do for(const n of Reflect.ownKeys(e))t.add([e,n]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t};function te(e,{include:t,exclude:n}={}){const r=s=>{const o=i=>typeof i=="string"?s===i:i.test(s);return t?t.some(o):n?!n.some(o):!0};for(const[s,o]of ni(e.constructor.prototype)){if(o==="constructor"||!r(o))continue;const i=Reflect.getOwnPropertyDescriptor(s,o);i&&typeof i.value=="function"&&(e[o]=e[o].bind(e))}return e}var ri=class{constructor(e){this.client=e,this.base="ack",this.name="ack",te(this)}get proxy(){return this.client.proxy(this.base)}read(e,t){return this.proxy.post({data:{type:"read",payload:{type:e,id:t}}})}},si=class{constructor(e){this.client=e,this.base="activity",this.name="activity",te(this)}get proxy(){return this.client.proxy(this.base)}likeIt(e,t){return this.proxy.like.post({data:{type:e,id:t}})}},oi=class{constructor(e){this.client=e,this.base="aggregate",this.name="aggregate",te(this)}get proxy(){return this.client.proxy(this.base)}getAggregateData(e){return this.proxy.get({params:{theme:e}})}getTop(e=5){return this.proxy.top.get({params:{size:e}})}getTimeline(e){const{sort:t,type:n,year:r}=e||{};return this.proxy.timeline.get({params:{sort:t&&Qo(t),type:n,year:r}})}getStat(){return this.proxy.stat.get()}},kn=class extends Error{constructor(e,t,n,r){super(e),this.status=t,this.path=n,this.raw=r}},ii=class{constructor(e){this.client=e,this.name="category",this.base="categories",te(this)}get proxy(){return this.client.proxy(this.base)}getAllCategories(){return this.proxy.get({params:{type:0}})}getAllTags(){return this.proxy.get({params:{type:1}})}async getCategoryDetail(e){if(typeof e=="string"){const t=await this.proxy.get({params:{ids:e}}),n=Object.values(t.entries)[0];return fn(t,n),n}else if(Array.isArray(e)){const t=await this.proxy.get({params:{ids:e.join(",")}}),n=t==null?void 0:t.entries;if(!n)throw new kn("data structure error",500,t.$request.path,t);const r=new Map(Object.entries(n).map(([s,o])=>[s.toLowerCase(),o]));return fn(t,r),r}}async getCategoryByIdOrSlug(e){const t=await this.proxy(e).get();return ei(t)}async getTagByName(e){return await this.proxy(e).get({params:{tag:1}})}},ai=class{constructor(e){this.client=e,this.base="comments",this.name="comment",te(this)}get proxy(){return this.client.proxy(this.base)}getById(e){return this.proxy(e).get()}getByRefId(e,t={}){const{page:n,size:r}=t;return this.proxy.ref(e).get({params:{page:n||1,size:r||10}})}comment(e,t){return this.proxy(e).post({data:t})}reply(e,t){return this.proxy.reply(e).post({data:t})}},At=class{constructor(e){this.client=e,te(this)}get proxy(){return this.client.proxy(this.base)}getById(e){return this.proxy(e).get()}getAll(){return this.proxy.all.get()}getAllPaginated(e,t,n){return this.proxy.get({params:{page:e,size:t,...n}})}},ci=class extends At{constructor(e){super(e),this.client=e,this.name=["link","friend"],this.base="links",te(this)}async canApplyLink(){const{can:e}=await this.proxy.audit.get();return e}async applyLink(e){return await this.proxy.audit.post({data:e})}},li=class{constructor(e){this.client=e,this.base="notes",this.name="note",te(this)}get proxy(){return this.client.proxy(this.base)}getLatest(){return this.proxy.latest.get()}getNoteById(...e){const[t,n=void 0,r=!1]=e;return typeof t=="number"?this.proxy.nid(t.toString()).get({params:{password:n,single:r?"1":void 0}}):this.proxy(t).get()}getList(e=1,t=10,n={}){const{select:r,sortBy:s,sortOrder:o,year:i}=n;return this.proxy.get({params:{page:e,size:t,select:r==null?void 0:r.join(" "),sortBy:s,sortOrder:o,year:i}})}getMiddleList(e,t=5){return this.proxy.list(e).get({params:{size:t}})}getNoteByTopicId(e,t=1,n=10,r={}){return this.proxy.topics(e).get({params:{page:t,size:n,...r}})}},ui=class{constructor(e){this.client=e,this.base="pages",this.name="page",te(this)}get proxy(){return this.client.proxy(this.base)}getList(e=1,t=10,n={}){const{select:r,sortBy:s,sortOrder:o}=n;return this.proxy.get({params:{page:e,size:t,select:r==null?void 0:r.join(" "),sortBy:s,sortOrder:o}})}getById(e){return this.proxy(e).get()}getBySlug(e){return this.proxy.slug(e).get({})}},di=class{constructor(e){this.client=e,this.base="posts",this.name="post",te(this)}get proxy(){return this.client.proxy(this.base)}getList(e=1,t=10,n={}){const{select:r,sortBy:s,sortOrder:o,year:i}=n;return this.proxy.get({params:{page:e,size:t,select:r==null?void 0:r.join(" "),sortBy:s,sortOrder:o,year:i}})}getPost(e,t){return arguments.length==1?this.proxy(e).get():this.proxy(e)(t).get()}getLatest(){return this.proxy.latest.get()}},fi=class extends At{constructor(e){super(e),this.client=e,this.base="projects",this.name="project",te(this)}},pi=class{constructor(e){this.client=e,this.base="recently",this.name=["recently","shorthand"],te(this)}get proxy(){return this.client.proxy(this.base)}getLatestOne(){return this.proxy.latest.get()}getAll(){return this.proxy.all.get()}getList(e,t,n){return this.proxy.get({params:{before:e,after:t,size:n}})}attitude(e,t){return this.proxy.attitude(e).get({params:{attitude:t}})}},hi=class extends At{constructor(e){super(e),this.client=e,this.base="says",this.name="say",te(this)}get proxy(){return this.client.proxy(this.base)}getRandom(){return this.proxy.random.get()}},mi=class{constructor(e){this.client=e,this.base="search",this.name="search",te(this)}get proxy(){return this.client.proxy(this.base)}search(e,t,n={}){return this.proxy(e).get({params:{keyword:t,...n}})}searchByAlgolia(e,t){return this.proxy("algolia").get({params:{keyword:e,...t}})}},gi=class{constructor(e){this.client=e,this.base="serverless",this.name="serverless",te(this)}get proxy(){return this.client.proxy(this.base)}getByReferenceAndName(e,t){return this.proxy(e)(t).get()}},yi=class{constructor(e){this.client=e,this.base="snippets",this.name="snippet",te(this)}get proxy(){return this.client.proxy(this.base)}getByReferenceAndName(e,t){return this.proxy(e)(t).get()}},vi=class{constructor(e){this.client=e,this.base="subscribe",this.name="subscribe",te(this)}get proxy(){return this.client.proxy(this.base)}check(){return this.proxy.status.get()}subscribe(e,t){return this.proxy.post({data:{email:e,types:t}})}unsubscribe(e,t){return this.proxy.unsubscribe.get({params:{email:e,cancelToken:t}})}},bi=class extends At{constructor(e){super(e),this.client=e,this.base="topics",this.name="topic",te(this)}get proxy(){return this.client.proxy(this.base)}getTopicBySlug(e){return this.proxy.slug(e).get()}},Ei=class{constructor(e){this.client=e,this.base="master",this.name=["user","master"],te(this)}get proxy(){return this.client.proxy(this.base)}getMasterInfo(){return this.proxy.get()}login(e,t){return this.proxy.login.post({data:{username:e,password:t}})}loginWithToken(e){return this.proxy.login.put({params:e?{token:`bearer ${e.replace(/^Bearer\s/i,"")}`}:void 0})}checkTokenValid(e){return this.proxy.check_logged.get({params:{token:`bearer ${e.replace(/^Bearer\s/i,"")}`}})}},wi=[ri,si,oi,ii,ai,ci,li,ui,di,fi,pi,bi,hi,mi,yi,gi,vi,Ei],xi=["ack","activity","aggregate","category","comment","link","note","page","post","project","topic","recently","say","search","snippet","serverless","subscribe","user","friend","master","shorthand"];function $i(e){Object.defineProperty(e,"$$get",{value(t,n){const{params:r={},...s}=n,o=Ci(r);return e.instance.get(`${t}${o?`${`?${o}`}`:""}`,s)}}),["put","post","patch","delete"].forEach(t=>{Object.defineProperty(e,`$$${t}`,{value(n,r){return e.instance[t](n,r)}})})}function Ci(e){if(!e&&typeof e!="object")throw new TypeError("params must be object.");if(e instanceof URLSearchParams)return e.toString();const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{typeof r>"u"||Object.prototype.toString.call(r)==="[object Null]"||t.set(n,r)}),t.toString()}var Qn="_$",Si=class{constructor(e,t,n={}){this._endpoint=e,this._adaptor=t,this.options=n,this._endpoint=e.replace(/\/*$/,"").replace("localhost","127.0.0.1"),this._proxy=this.buildRoute(this)(),n.transformResponse=n.transformResponse||(r=>qe(r)),this.initGetClient(),$i(this)}initGetClient(){for(const e of xi)Object.defineProperty(this,e,{get(){const t=Reflect.get(this,`${Qn}${e}`);if(!t)throw new ReferenceError(`${e.charAt(0).toUpperCase()+e.slice(1)} Client not inject yet, please inject with client.injectClients(...)`);return t},configurable:!1,enumerable:!1})}injectControllers(e,...t){e=Array.isArray(e)?e:[e,...t];for(const r of e){const s=new r(this);if(Array.isArray(s.name))for(const o of s.name)n.call(this,o,s);else n.call(this,s.name,s)}function n(r,s){Object.defineProperty(this,`${Qn}${r.toLowerCase()}`,{get(){return s},enumerable:!1,configurable:!1})}}get endpoint(){return this._endpoint}get instance(){return this._adaptor}request(e){return this[`$$${String(e.method||"get").toLowerCase()}`](e.url,e)}get proxy(){return this._proxy}buildRoute(e){const t=()=>{},n=["get","post","delete","patch","put"],r=["toString","valueOf","inspect","constructor",Symbol.toPrimitive],s=this;return()=>{const o=[""],i={get(a,d){return r.includes(d)?f=>{if(f){const u=Zn(s.endpoint,o.join("/"));return o.length=0,u}else{const u=o.join("/");return o.length=0,u.startsWith("/")?u:`/${u}`}}:n.includes(d)?async f=>{var p,y,E;const u=Zn(s.endpoint,o.join("/"));o.length=0;let c;try{c=await e.request({method:d,...f,url:u})}catch(b){let w=b.message,x=b.code||b.status||b.statusCode||((p=b.response)==null?void 0:p.status)||((y=b.response)==null?void 0:y.statusCode)||((E=b.response)==null?void 0:E.code)||500;if(s.options.getCodeMessageFromException){const O=s.options.getCodeMessageFromException(b);w=O.message||w,x=O.code||x}throw s.options.customThrowResponseError?s.options.customThrowResponseError(b):new kn(w,x,u,b)}const m=c.data;if(!m)return null;const g=(Array.isArray(m)||Nn(m))&&s.options.transformResponse?s.options.transformResponse(m):m;let h=g;return g&&typeof g=="object"&&(h={...g},Object.defineProperty(h,"$raw",{get(){return c},enumerable:!1,configurable:!1}),Object.defineProperty(h,"$request",{get(){return{url:u,method:d,options:f}},enumerable:!1}),Object.defineProperty(h,"$serialized",{get(){return g}})),h}:(o.push(d),new Proxy(t,i))},apply(a,d,f){return o.push(...f.filter(u=>u!==null)),new Proxy(t,i)}};return new Proxy(t,i)}}};function Oi(e){return(t,n)=>{const r=new Si(t,e,n),{controllers:s}=n||{};return s&&r.injectControllers(s),r}}let qt,er=()=>{if(qt)return qt;let e=Lo();return qt=e,e},Ri=e=>[()=>er().get(e),t=>er().set(e,t)],Zr=e=>[e,()=>jo(e),()=>st(e),()=>qr(e),...Ri(e)];Zr(ve(0));const Ti=ve({sm:!1,md:!1,lg:!1,xl:!1,"2xl":!1,h:0,w:0}),_i=e=>st(Vr(Ti,l.useCallback(t=>e(t),[]))),Qr=()=>_i(l.useCallback(e=>(e.sm||e.md||!e.sm)&&!e.lg,[])),[,,Id,,,Md]=Zr(ve(!1));var es={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Do,function(){var n=1e3,r=6e4,s=36e5,o="millisecond",i="second",a="minute",d="hour",f="day",u="week",c="month",m="quarter",g="year",h="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var T=["th","st","nd","rd"],$=_%100;return"["+_+(T[($-20)%10]||T[$]||T[0])+"]"}},w=function(_,T,$){var P=String(_);return!P||P.length>=T?_:""+Array(T+1-P.length).join($)+_},x={s:w,z:function(_){var T=-_.utcOffset(),$=Math.abs(T),P=Math.floor($/60),R=$%60;return(T<=0?"+":"-")+w(P,2,"0")+":"+w(R,2,"0")},m:function _(T,$){if(T.date()<$.date())return-_($,T);var P=12*($.year()-T.year())+($.month()-T.month()),R=T.clone().add(P,c),N=$-R<0,I=T.clone().add(P+(N?-1:1),c);return+(-(P+($-R)/(N?R-I:I-R))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:c,y:g,w:u,d:f,D:h,h:d,m:a,s:i,ms:o,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},O="en",F={};F[O]=b;var B="$isDayjsObject",k=function(_){return _ instanceof J||!(!_||!_[B])},z=function _(T,$,P){var R;if(!T)return O;if(typeof T=="string"){var N=T.toLowerCase();F[N]&&(R=N),$&&(F[N]=$,R=N);var I=T.split("-");if(!R&&I.length>1)return _(I[0])}else{var H=T.name;F[H]=T,R=H}return!P&&R&&(O=R),R||!P&&O},j=function(_,T){if(k(_))return _.clone();var $=typeof T=="object"?T:{};return $.date=_,$.args=arguments,new J($)},D=x;D.l=z,D.i=k,D.w=function(_,T){return j(_,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var J=function(){function _($){this.$L=z($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[B]=!0}var T=_.prototype;return T.parse=function($){this.$d=function(P){var R=P.date,N=P.utc;if(R===null)return new Date(NaN);if(D.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var I=R.match(y);if(I){var H=I[2]-1||0,W=(I[7]||"0").substring(0,3);return N?new Date(Date.UTC(I[1],H,I[3]||1,I[4]||0,I[5]||0,I[6]||0,W)):new Date(I[1],H,I[3]||1,I[4]||0,I[5]||0,I[6]||0,W)}}return new Date(R)}($),this.init()},T.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},T.$utils=function(){return D},T.isValid=function(){return this.$d.toString()!==p},T.isSame=function($,P){var R=j($);return this.startOf(P)<=R&&R<=this.endOf(P)},T.isAfter=function($,P){return j($)"u")){i=ut({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var d in i)i[d]&&(a+="; "+d,i[d]!==!0&&(a+="="+i[d].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a{try{return!1}catch{}return!1},ki=()=>{try{return!0}catch{}return!1},nr=new Set,ts=(e,t,n)=>{const r=Ni()||ki(),s=n??e;nr.has(s)||r||(nr.add(s),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release. ${t}`))},Nt=(e,t,n,r=!1)=>{const s=r?e:e.prototype;let o=s[t];Object.defineProperty(s,t,{get(){return ts(t,n,`${e.name}:${t}`),o},set(i){o=i}})},Di={Expired:"expired",Failed:"failed"};new Proxy(Di,{get(e,t,n){return ts("MagicLinkErrorCode","Use `EmailLinkErrorCode` instead."),Reflect.get(e,t,n)}});var Ii=Object.freeze({InvalidFrontendApiErrorMessage:"The frontendApi passed to Clerk is invalid. You can get your Frontend API key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invalid. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys."});function Mi({packageName:e,customMessages:t}){let n=e;const r={...Ii,...t};function s(o,i){if(!i)return`${n}: ${o}`;let a=o;const d=o.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const f of d){const u=(i[f[1]]||"").toString();a=a.replace(`{{${f[1]}}}`,u)}return`${n}: ${a}`}return{setPackageName({packageName:o}){return typeof o=="string"&&(n=o),this},setMessages({customMessages:o}){return Object.assign(r,o||{}),this},throwInvalidPublishableKeyError(o){throw new Error(s(r.InvalidPublishableKeyErrorMessage,o))},throwInvalidFrontendApiError(o){throw new Error(s(r.InvalidFrontendApiErrorMessage,o))},throwInvalidProxyUrl(o){throw new Error(s(r.InvalidProxyUrlErrorMessage,o))},throwMissingPublishableKeyError(){throw new Error(s(r.MissingPublishableKeyErrorMessage))}}}const Li=fetch,ji=Blob,Fi=FormData,Ui=Headers,Bi=Request,zi=Response,Hi=AbortController,Wi=fetch,qi=Object.freeze(Object.defineProperty({__proto__:null,RuntimeAbortController:Hi,RuntimeBlob:ji,RuntimeFetch:Wi,RuntimeFormData:Fi,RuntimeHeaders:Ui,RuntimeRequest:Bi,RuntimeResponse:zi,default:Li},Symbol.toStringTag,{value:"Module"}));var Vi=function(t){return Ki(t)&&!Ji(t)};function Ki(e){return!!e&&typeof e=="object"}function Ji(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Xi(e)}var Yi=typeof Symbol=="function"&&Symbol.for,Gi=Yi?Symbol.for("react.element"):60103;function Xi(e){return e.$$typeof===Gi}function Zi(e){return Array.isArray(e)?[]:{}}function et(e,t){return t.clone!==!1&&t.isMergeableObject(e)?tt(Zi(e),e,t):e}function Qi(e,t,n){return e.concat(t).map(function(r){return et(r,n)})}function ea(e,t){if(!t.customMerge)return tt;var n=t.customMerge(e);return typeof n=="function"?n:tt}function ta(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function rr(e){return Object.keys(e).concat(ta(e))}function ns(e,t){try{return t in e}catch{return!1}}function na(e,t){return ns(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ra(e,t,n){var r={};return n.isMergeableObject(e)&&rr(e).forEach(function(s){r[s]=et(e[s],n)}),rr(t).forEach(function(s){na(e,s)||(ns(e,s)&&n.isMergeableObject(t[s])?r[s]=ea(s,n)(e[s],t[s],n):r[s]=et(t[s],n))}),r}function tt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Qi,n.isMergeableObject=n.isMergeableObject||Vi,n.cloneUnlessOtherwiseSpecified=et;var r=Array.isArray(t),s=Array.isArray(e),o=r===s;return o?r?n.arrayMerge(e,t,n):ra(e,t,n):et(t,n)}tt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return tt(r,s,n)},{})};var rs={exports:{}};const ss=e=>typeof e=="object"&&e!==null,os=Symbol("skip"),sr=e=>ss(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),hn=(e,t,n,r=new WeakMap)=>{if(n={deep:!1,target:{},...n},r.has(e))return r.get(e);r.set(e,n.target);const{target:s}=n;delete n.target;const o=i=>i.map(a=>sr(a)?hn(a,t,n,r):a);if(Array.isArray(e))return o(e);for(const[i,a]of Object.entries(e)){const d=t(i,a,e);if(d===os)continue;let[f,u,{shouldRecurse:c=!0}={}]=d;f!=="__proto__"&&(n.deep&&c&&sr(u)&&(u=Array.isArray(u)?o(u):hn(u,t,n,r)),s[f]=u)}return s};rs.exports=(e,t,n)=>{if(!ss(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return hn(e,t,n)};rs.exports.mapObjectSkip=os;var ge=function(){return ge=Object.assign||function(t){for(var n,r=1,s=arguments.length;rcs.fromJSON(n)))}},fs=class ps{constructor(t,n,r,s,o,i,a,d,f,u,c,m={},g,h){this.id=t,this.provider=n,this.identificationId=r,this.externalId=s,this.approvedScopes=o,this.emailAddress=i,this.firstName=a,this.lastName=d,this.picture=f,this.imageUrl=u,this.username=c,this.publicMetadata=m,this.label=g,this.verification=h}static fromJSON(t){return new ps(t.id,t.provider,t.identification_id,t.provider_user_id,t.approved_scopes,t.email_address,t.first_name,t.last_name,t.avatar_url,t.image_url,t.username,t.public_metadata,t.label,t.verification&&kt.fromJSON(t.verification))}};Nt(fs,"picture","Use `imageUrl` instead.");var fa=class hs{constructor(t,n,r,s,o,i,a,d,f,u={},c={},m,g,h){this.id=t,this.name=n,this.slug=r,this.logoUrl=s,this.imageUrl=o,this.hasImage=i,this.createdBy=a,this.createdAt=d,this.updatedAt=f,this.publicMetadata=u,this.privateMetadata=c,this.maxAllowedMemberships=m,this.adminDeleteEnabled=g,this.members_count=h}static fromJSON(t){return new hs(t.id,t.name,t.slug,t.logo_url,t.image_url,t.has_image,t.created_by,t.created_at,t.updated_at,t.public_metadata,t.private_metadata,t.max_allowed_memberships,t.admin_delete_enabled,t.members_count)}};Nt(fa,"logoUrl","Use `imageUrl` instead.");var pa=class ms{constructor(t,n,r,s,o,i,a){this.identifier=t,this.firstName=n,this.lastName=r,this.profileImageUrl=s,this.imageUrl=o,this.hasImage=i,this.userId=a}static fromJSON(t){return new ms(t.identifier,t.first_name,t.last_name,t.profile_image_url,t.image_url,t.has_image,t.user_id)}};Nt(pa,"profileImageUrl","Use `imageUrl` instead.");var ha=class gs{constructor(t,n,r,s,o,i){this.id=t,this.phoneNumber=n,this.reservedForSecondFactor=r,this.defaultSecondFactor=s,this.verification=o,this.linkedTo=i}static fromJSON(t){return new gs(t.id,t.phone_number,t.reserved_for_second_factor,t.default_second_factor,t.verification&&kt.fromJSON(t.verification),t.linked_to.map(n=>cs.fromJSON(n)))}},ma=class ys{constructor(t,n,r){this.id=t,this.web3Wallet=n,this.verification=r}static fromJSON(t){return new ys(t.id,t.web3_wallet,t.verification&&kt.fromJSON(t.verification))}},ga=class vs{constructor(t,n,r,s,o,i,a,d,f,u,c,m,g,h,p,y,E,b,w,x,O,F={},B={},k={},z=[],j=[],D=[],J=[]){this.id=t,this.passwordEnabled=n,this.totpEnabled=r,this.backupCodeEnabled=s,this.twoFactorEnabled=o,this.banned=i,this.createdAt=a,this.updatedAt=d,this.profileImageUrl=f,this.imageUrl=u,this.hasImage=c,this.gender=m,this.birthday=g,this.primaryEmailAddressId=h,this.primaryPhoneNumberId=p,this.primaryWeb3WalletId=y,this.lastSignInAt=E,this.externalId=b,this.username=w,this.firstName=x,this.lastName=O,this.publicMetadata=F,this.privateMetadata=B,this.unsafeMetadata=k,this.emailAddresses=z,this.phoneNumbers=j,this.web3Wallets=D,this.externalAccounts=J}static fromJSON(t){return new vs(t.id,t.password_enabled,t.totp_enabled,t.backup_code_enabled,t.two_factor_enabled,t.banned,t.created_at,t.updated_at,t.profile_image_url,t.image_url,t.has_image,t.gender,t.birthday,t.primary_email_address_id,t.primary_phone_number_id,t.primary_web3_wallet_id,t.last_sign_in_at,t.external_id,t.username,t.first_name,t.last_name,t.public_metadata,t.private_metadata,t.unsafe_metadata,(t.email_addresses||[]).map(n=>da.fromJSON(n)),(t.phone_numbers||[]).map(n=>ha.fromJSON(n)),(t.web3_wallets||[]).map(n=>ma.fromJSON(n)),(t.external_accounts||[]).map(n=>fs.fromJSON(n)))}};Nt(ga,"profileImageUrl","Use `imageUrl` instead.");const ya="mx-token";function bs(){const e=tr.get(ua.Cookies.Session);return tr.get(ya)||e||null}function Es(e,t){return function(){return e.apply(t,arguments)}}const{toString:va}=Object.prototype,{getPrototypeOf:Dn}=Object,Dt=(e=>t=>{const n=va.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>Dt(t)===e),It=e=>t=>typeof t===e,{isArray:Ke}=Array,nt=It("undefined");function ba(e){return e!==null&&!nt(e)&&e.constructor!==null&&!nt(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ws=be("ArrayBuffer");function Ea(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ws(e.buffer),t}const wa=It("string"),ue=It("function"),xs=It("number"),Mt=e=>e!==null&&typeof e=="object",xa=e=>e===!0||e===!1,wt=e=>{if(Dt(e)!=="object")return!1;const t=Dn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$a=be("Date"),Ca=be("File"),Sa=be("Blob"),Oa=be("FileList"),Ra=e=>Mt(e)&&ue(e.pipe),Ta=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ue(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&ue(e.toString)&&e.toString()==="[object FormData]"))},_a=be("URLSearchParams"),Pa=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ot(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ke(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ss=e=>!nt(e)&&e!==Cs;function mn(){const{caseless:e}=Ss(this)&&this||{},t={},n=(r,s)=>{const o=e&&$s(t,s)||s;wt(t[o])&&wt(r)?t[o]=mn(t[o],r):wt(r)?t[o]=mn({},r):Ke(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(ot(t,(s,o)=>{n&&ue(s)?e[o]=Es(s,n):e[o]=s},{allOwnKeys:r}),e),Na=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ka=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Da=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Dn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ia=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ma=e=>{if(!e)return null;if(Ke(e))return e;let t=e.length;if(!xs(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},La=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dn(Uint8Array)),ja=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Fa=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ua=be("HTMLFormElement"),Ba=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),or=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),za=be("RegExp"),Os=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ot(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ha=e=>{Os(e,(t,n)=>{if(ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ue(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Wa=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Ke(e)?r(e):r(String(e).split(t)),n},qa=()=>{},Va=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Vt="abcdefghijklmnopqrstuvwxyz",ir="0123456789",Rs={DIGIT:ir,ALPHA:Vt,ALPHA_DIGIT:Vt+Vt.toUpperCase()+ir},Ka=(e=16,t=Rs.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ja(e){return!!(e&&ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ya=e=>{const t=new Array(10),n=(r,s)=>{if(Mt(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=Ke(r)?[]:{};return ot(r,(i,a)=>{const d=n(i,s+1);!nt(d)&&(o[a]=d)}),t[s]=void 0,o}}return r};return n(e,0)},Ga=be("AsyncFunction"),Xa=e=>e&&(Mt(e)||ue(e))&&ue(e.then)&&ue(e.catch),v={isArray:Ke,isArrayBuffer:ws,isBuffer:ba,isFormData:Ta,isArrayBufferView:Ea,isString:wa,isNumber:xs,isBoolean:xa,isObject:Mt,isPlainObject:wt,isUndefined:nt,isDate:$a,isFile:Ca,isBlob:Sa,isRegExp:za,isFunction:ue,isStream:Ra,isURLSearchParams:_a,isTypedArray:La,isFileList:Oa,forEach:ot,merge:mn,extend:Aa,trim:Pa,stripBOM:Na,inherits:ka,toFlatObject:Da,kindOf:Dt,kindOfTest:be,endsWith:Ia,toArray:Ma,forEachEntry:ja,matchAll:Fa,isHTMLForm:Ua,hasOwnProperty:or,hasOwnProp:or,reduceDescriptors:Os,freezeMethods:Ha,toObjectSet:Wa,toCamelCase:Ba,noop:qa,toFiniteNumber:Va,findKey:$s,global:Cs,isContextDefined:Ss,ALPHABET:Rs,generateString:Ka,isSpecCompliantForm:Ja,toJSONObject:Ya,isAsyncFn:Ga,isThenable:Xa};function U(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}v.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ts=U.prototype,_s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_s[e]={value:e}});Object.defineProperties(U,_s);Object.defineProperty(Ts,"isAxiosError",{value:!0});U.from=(e,t,n,r,s,o)=>{const i=Object.create(Ts);return v.toFlatObject(e,i,function(d){return d!==Error.prototype},a=>a!=="isAxiosError"),U.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Za=null;function gn(e){return v.isPlainObject(e)||v.isArray(e)}function Ps(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function ar(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ps(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Qa(e){return v.isArray(e)&&!e.some(gn)}const ec=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Lt(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!v.isUndefined(y[p])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(s))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(v.isDate(h))return h.toISOString();if(!d&&v.isBlob(h))throw new U("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(h)||v.isTypedArray(h)?d&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,p,y){let E=h;if(h&&!y&&typeof h=="object"){if(v.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(v.isArray(h)&&Qa(h)||(v.isFileList(h)||v.endsWith(p,"[]"))&&(E=v.toArray(h)))return p=Ps(p),E.forEach(function(w,x){!(v.isUndefined(w)||w===null)&&t.append(i===!0?ar([p],x,o):i===null?p:p+"[]",f(w))}),!1}return gn(h)?!0:(t.append(ar(y,p,o),f(h)),!1)}const c=[],m=Object.assign(ec,{defaultVisitor:u,convertValue:f,isVisitable:gn});function g(h,p){if(!v.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));c.push(h),v.forEach(h,function(E,b){(!(v.isUndefined(E)||E===null)&&s.call(t,E,v.isString(b)?b.trim():b,p,m))===!0&&g(E,p?p.concat(b):[b])}),c.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return g(e),t}function cr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function In(e,t){this._pairs=[],e&&Lt(e,this,t)}const As=In.prototype;As.append=function(t,n){this._pairs.push([t,n])};As.toString=function(t){const n=t?function(r){return t.call(this,r,cr)}:cr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function tc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ns(e,t,n){if(!t)return e;const r=n&&n.encode||tc,s=n&&n.serialize;let o;if(s?o=s(t,n):o=v.isURLSearchParams(t)?t.toString():new In(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class nc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lr=nc,ks={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rc=typeof URLSearchParams<"u"?URLSearchParams:In,sc=typeof FormData<"u"?FormData:null,oc=typeof Blob<"u"?Blob:null,ic={isBrowser:!0,classes:{URLSearchParams:rc,FormData:sc,Blob:oc},protocols:["http","https","file","blob","url","data"]},Ds=typeof window<"u"&&typeof document<"u",ac=(e=>Ds&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),cc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lc=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ds,hasStandardBrowserEnv:ac,hasStandardBrowserWebWorkerEnv:cc},Symbol.toStringTag,{value:"Module"})),ye={...lc,...ic};function uc(e,t){return Lt(e,new ye.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return ye.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function dc(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fc(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&v.isArray(s)?s.length:i,d?(v.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!v.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&v.isArray(s[i])&&(s[i]=fc(s[i])),!a)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,s)=>{t(dc(r),s,n,0)}),n}return null}function pc(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Mn={transitional:ks,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return s&&s?JSON.stringify(Is(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uc(t,this.formSerializer).toString();if((a=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Lt(a?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),pc(t)):t}],transformResponse:[function(t){const n=this.transitional||Mn.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&v.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Mn.headers[e]={}});const Ln=Mn,hc=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mc=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&hc[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ur=Symbol("internals");function Ye(e){return e&&String(e).trim().toLowerCase()}function xt(e){return e===!1||e==null?e:v.isArray(e)?e.map(xt):String(e)}function gc(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const yc=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kt(e,t,n,r,s){if(v.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function vc(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bc(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class jt{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,d,f){const u=Ye(d);if(!u)throw new Error("header name must be a non-empty string");const c=v.findKey(s,u);(!c||s[c]===void 0||f===!0||f===void 0&&s[c]!==!1)&&(s[c||d]=xt(a))}const i=(a,d)=>v.forEach(a,(f,u)=>o(f,u,d));return v.isPlainObject(t)||t instanceof this.constructor?i(t,n):v.isString(t)&&(t=t.trim())&&!yc(t)?i(mc(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Ye(t),t){const r=v.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return gc(s);if(v.isFunction(n))return n.call(this,s,r);if(v.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ye(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Kt(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Ye(i),i){const a=v.findKey(r,i);a&&(!n||Kt(r,r[a],a,n))&&(delete r[a],s=!0)}}return v.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Kt(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return v.forEach(this,(s,o)=>{const i=v.findKey(r,o);if(i){n[i]=xt(s),delete n[o];return}const a=t?vc(o):String(o).trim();a!==o&&delete n[o],n[a]=xt(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` @@ -45,10 +45,10 @@ ${t}`))},Nt=(e,t,n,r=!1)=>{const s=r?e:e.prototype;let o=s[t];Object.definePrope .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},mu=0,Ue=[];function gu(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),s=l.useState(mu++)[0],o=l.useState(function(){return Zs()})[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=sa([e.lockRef.current],(e.shards||[]).map(Nr),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(p,y){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var E=mt(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-E[0],x="deltaY"in p?p.deltaY:b[1]-E[1],O,F=p.target,B=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in p&&B==="h"&&F.type==="range")return!1;var k=Pr(B,F);if(!k)return!0;if(k?O=B:(O=B==="v"?"h":"v",k=Pr(B,F)),!k)return!1;if(!r.current&&"changedTouches"in p&&(w||x)&&(r.current=O),!O)return!0;var z=r.current||O;return fu(z,y,p,z==="h"?w:x,!0)},[]),d=l.useCallback(function(p){var y=p;if(!(!Ue.length||Ue[Ue.length-1]!==o)){var E="deltaY"in y?Ar(y):mt(y),b=t.current.filter(function(O){return O.name===y.type&&O.target===y.target&&pu(O.delta,E)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var w=(i.current.shards||[]).map(Nr).filter(Boolean).filter(function(O){return O.contains(y.target)}),x=w.length>0?a(y,w[0]):!i.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),f=l.useCallback(function(p,y,E,b){var w={name:p,delta:y,target:E,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),u=l.useCallback(function(p){n.current=mt(p),r.current=void 0},[]),c=l.useCallback(function(p){f(p.type,Ar(p),p.target,a(p,e.lockRef.current))},[]),m=l.useCallback(function(p){f(p.type,mt(p),p.target,a(p,e.lockRef.current))},[]);l.useEffect(function(){return Ue.push(o),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",d,Fe),document.addEventListener("touchmove",d,Fe),document.addEventListener("touchstart",u,Fe),function(){Ue=Ue.filter(function(p){return p!==o}),document.removeEventListener("wheel",d,Fe),document.removeEventListener("touchmove",d,Fe),document.removeEventListener("touchstart",u,Fe)}},[]);var g=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(o,{styles:hu(s)}):null,g?l.createElement(ou,{gapMode:"margin"}):null)}const yu=Kl(Xs,gu);var no=l.forwardRef(function(e,t){return l.createElement(zt,ge({},e,{ref:t,sideCar:yu}))});no.classNames=zt.classNames;const vu=no;var bu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Be=new WeakMap,gt=new WeakMap,yt={},cn=0,ro=function(e){return e&&(e.host||ro(e.parentNode))},Eu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ro(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wu=function(e,t,n,r){var s=Eu(t,Array.isArray(e)?e:[e]);yt[n]||(yt[n]=new WeakMap);var o=yt[n],i=[],a=new Set,d=new Set(s),f=function(c){!c||a.has(c)||(a.add(c),f(c.parentNode))};s.forEach(f);var u=function(c){!c||d.has(c)||Array.prototype.forEach.call(c.children,function(m){if(a.has(m))u(m);else{var g=m.getAttribute(r),h=g!==null&&g!=="false",p=(Be.get(m)||0)+1,y=(o.get(m)||0)+1;Be.set(m,p),o.set(m,y),i.push(m),p===1&&h&>.set(m,!0),y===1&&m.setAttribute(n,"true"),h||m.setAttribute(r,"true")}})};return u(t),a.clear(),cn++,function(){i.forEach(function(c){var m=Be.get(c)-1,g=o.get(c)-1;Be.set(c,m),o.set(c,g),m||(gt.has(c)||c.removeAttribute(r),gt.delete(c)),g||c.removeAttribute(n)}),cn--,cn||(Be=new WeakMap,Be=new WeakMap,gt=new WeakMap,yt={})}},xu=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=t||bu(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),wu(r,s,n,"aria-hidden")):function(){return null}};const so="Dialog",[oo,Jd]=ul(so),[$u,fe]=oo(so),Cu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=l.useRef(null),d=l.useRef(null),[f=!1,u]=hl({prop:r,defaultProp:s,onChange:o});return l.createElement($u,{scope:t,triggerRef:a,contentRef:d,contentId:tn(),titleId:tn(),descriptionId:tn(),open:f,onOpenChange:u,onOpenToggle:l.useCallback(()=>u(c=>!c),[u]),modal:i},n)},Su="DialogTrigger",Ou=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=fe(Su,n),o=Je(t,s.triggerRef);return l.createElement(_e.button,ee({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Hn(s.open)},r,{ref:o,onClick:Te(e.onClick,s.onOpenToggle)}))}),io="DialogPortal",[Ru,ao]=oo(io,{forceMount:void 0}),Tu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=fe(io,t);return l.createElement(Ru,{scope:t,forceMount:n},l.Children.map(r,i=>l.createElement(Bt,{present:n||o.open},l.createElement(Il,{asChild:!0,container:s},i))))},Sn="DialogOverlay",_u=l.forwardRef((e,t)=>{const n=ao(Sn,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=fe(Sn,e.__scopeDialog);return o.modal?l.createElement(Bt,{present:r||o.open},l.createElement(Pu,ee({},s,{ref:t}))):null}),Pu=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=fe(Sn,n);return l.createElement(vu,{as:zn,allowPinchZoom:!0,shards:[s.contentRef]},l.createElement(_e.div,ee({"data-state":Hn(s.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),rt="DialogContent",Au=l.forwardRef((e,t)=>{const n=ao(rt,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=fe(rt,e.__scopeDialog);return l.createElement(Bt,{present:r||o.open},o.modal?l.createElement(Nu,ee({},s,{ref:t})):l.createElement(ku,ee({},s,{ref:t})))}),Nu=l.forwardRef((e,t)=>{const n=fe(rt,e.__scopeDialog),r=l.useRef(null),s=Je(t,n.contentRef,r);return l.useEffect(()=>{const o=r.current;if(o)return xu(o)},[]),l.createElement(co,ee({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Te(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Te(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:Te(e.onFocusOutside,o=>o.preventDefault())}))}),ku=l.forwardRef((e,t)=>{const n=fe(rt,e.__scopeDialog),r=l.useRef(!1),s=l.useRef(!1);return l.createElement(co,ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;r.current||(a=n.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}r.current=!1,s.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const d=o.target;((a=n.triggerRef.current)===null||a===void 0?void 0:a.contains(d))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}}))}),co=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=fe(rt,n),d=l.useRef(null),f=Je(t,d);return jl(),l.createElement(l.Fragment,null,l.createElement(Tl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o},l.createElement(Sl,ee({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Hn(a.open)},i,{ref:f,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),Du="DialogTitle",Iu=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=fe(Du,n);return l.createElement(_e.h2,ee({id:s.titleId},r,{ref:t}))}),Mu="DialogDescription",Lu=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=fe(Mu,n);return l.createElement(_e.p,ee({id:s.descriptionId},r,{ref:t}))}),ju="DialogClose",lo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=fe(ju,n);return l.createElement(_e.button,ee({type:"button"},r,{ref:t,onClick:Te(e.onClick,()=>s.onOpenChange(!1))}))});function Hn(e){return e?"open":"closed"}const On=Cu,Fu=Ou,Rn=Tu,uo=_u,Tn=Au,fo=Iu,Uu=Lu,Bu=lo,zu=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.4em",height:"1.4em",viewBox:"0 0 32 32",children:C.jsx("path",{fill:"currentColor",d:"M24 9.4L22.6 8L16 14.6L9.4 8L8 9.4l6.6 6.6L8 22.6L9.4 24l6.6-6.6l6.6 6.6l1.4-1.4l-6.6-6.6L24 9.4z"})}),kr=({onClick:e,zIndex:t})=>C.jsx(uo,{asChild:!0,children:C.jsx(We.div,{onClick:e,className:"fixed inset-0 z-[11] bg-slate-50/80 dark:bg-neutral-900/80",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{zIndex:t}})});var po=S.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),Wn=()=>S.useContext(po);function Hu(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Hu(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}.vaul-dragging .vaul-scrollable{overflow-y:hidden!important}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var Wu=typeof window<"u"?l.useLayoutEffect:l.useEffect;function _n(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function qu(){return qn(/^Mac/)}function Vu(){return qn(/^iPhone/)}function Ku(){return qn(/^iPad/)||qu()&&navigator.maxTouchPoints>1}function ho(){return Vu()||Ku()}function qn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var ln=typeof document<"u"&&window.visualViewport;function Dr(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function mo(e){for(Dr(e)&&(e=e.parentElement);e&&!Dr(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Ju=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),vt=0,un;function Yu(e={}){let{isDisabled:t}=e;Wu(()=>{if(!t)return vt++,vt===1&&(ho()?un=Xu():un=Gu()),()=>{vt--,vt===0&&un()}},[t])}function Gu(){return _n(_t(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),_t(document.documentElement,"overflow","hidden"))}function Xu(){let e,t=0,n=c=>{e=mo(c.target),!(e===document.documentElement&&e===document.body)&&(t=c.changedTouches[0].pageY)},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}let m=c.changedTouches[0].pageY,g=e.scrollTop,h=e.scrollHeight-e.clientHeight;h!==0&&((g<=0&&m>t||g>=h&&m{let m=c.target;Pt(m)&&m!==document.activeElement&&(c.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},o=c=>{let m=c.target;Pt(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",ln&&(ln.height{Ir(m)}):ln.addEventListener("resize",()=>Ir(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},a=window.pageXOffset,d=window.pageYOffset,f=_n(_t(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),_t(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=_n(Ge(document,"touchstart",n,{passive:!1,capture:!0}),Ge(document,"touchmove",r,{passive:!1,capture:!0}),Ge(document,"touchend",s,{passive:!1,capture:!0}),Ge(document,"focus",o,!0),Ge(window,"scroll",i));return()=>{f(),u(),window.scrollTo(a,d)}}function _t(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ge(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ir(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=mo(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,s=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;o>i&&(n.scrollTop+=s-r)}e=n.parentElement}}function Pt(e){return e instanceof HTMLInputElement&&!Ju.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Zu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Qu(...e){return t=>e.forEach(n=>Zu(n,t))}function go(...e){return l.useCallback(Qu(...e),e)}var Ce=null;function ed({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let[s,o]=S.useState(typeof window<"u"?window.location.href:""),i=S.useRef(0);function a(){if(Ce===null&&e){Ce={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:f,innerHeight:u}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-i.current}px`,document.body.style.left=`${-f}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=u-window.innerHeight;c&&i.current>=u&&(document.body.style.top=`${-(i.current+c)}px`)}),300)}}function d(){if(Ce!==null){let f=-parseInt(document.body.style.top,10),u=-parseInt(document.body.style.left,10);document.body.style.position=Ce.position,document.body.style.top=Ce.top,document.body.style.left=Ce.left,document.body.style.height=Ce.height,document.body.style.right="unset",requestAnimationFrame(()=>{if(s!==window.location.href){o(window.location.href);return}window.scrollTo(u,f)}),Ce=null}}return S.useEffect(()=>{function f(){i.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),S.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{d()},500)):d())},[e,r,s]),{restorePositionSetting:d}}var yo=new WeakMap;function K(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([s,o])=>{if(s.startsWith("--")){e.style.setProperty(s,o);return}r[s]=e.style[s],e.style[s]=o}),!n&&yo.set(e,r)}function bt(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yo.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,s])=>{e.style[r]=s}))}function Et(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function td(e){return 8*(Math.log(e+1)-2)}var q={DURATION:.5,EASE:[.32,.72,0,1]},vo=.4;function bo(e){let t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nd({defaultProp:e,onChange:t}){let n=S.useState(e),[r]=n,s=S.useRef(r),o=bo(t);return S.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}function rd({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,s]=nd({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,a=bo(n),d=S.useCallback(f=>{if(o){let u=typeof f=="function"?f(e):f;u!==e&&a(u)}else s(f)},[o,e,s,a]);return[i,d]}function sd({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:s,fadeFromIndex:o,onSnapPointChange:i}){let[a,d]=rd({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),f=S.useMemo(()=>a===(n==null?void 0:n[n.length-1]),[n,a]),u=n&&n.length>0&&o&&n[o]===a||!n,c=S.useMemo(()=>{var b;return(b=n==null?void 0:n.findIndex(w=>w===a))!=null?b:null},[n,a]),m=S.useMemo(()=>{var b;return(b=n==null?void 0:n.map(w=>{let x=typeof window<"u",O=typeof w=="string",F=0;O&&(F=parseInt(w,10));let B=O?F:x?w*window.innerHeight:0;return x?window.innerHeight-B:B}))!=null?b:[]},[n]),g=S.useMemo(()=>c!==null?m==null?void 0:m[c]:null,[m,c]),h=S.useCallback(b=>{var w;let x=(w=m==null?void 0:m.findIndex(O=>O===b))!=null?w:null;i(x),K(r.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:`translate3d(0, ${b}px, 0)`}),m&&x!==m.length-1&&x!==o?K(s.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"0"}):K(s.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"1"}),d(x!==null?n==null?void 0:n[x]:null)},[r.current,n,m,o,s,d]);S.useEffect(()=>{var b;if(e){let w=(b=n==null?void 0:n.findIndex(x=>x===e))!=null?b:null;m&&w&&typeof m[w]=="number"&&h(m[w])}},[e,n,m,h]);function p({draggedDistance:b,closeDrawer:w,velocity:x}){if(o===void 0)return;let O=g-b,F=c===o-1,B=c===0;if(F&&K(s.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),x>2&&b<0){w();return}if(x>2&&b>0&&m&&n){h(m[n.length-1]);return}let k=m==null?void 0:m.reduce((z,j)=>typeof z!="number"||typeof j!="number"?z:Math.abs(j-O)vo&&Math.abs(b)0?1:-1;if(z>0&&f){h(m[n.length-1]);return}if(B&&z<0&&w(),c===null)return;h(m[c+z]);return}h(k)}function y({draggedDistance:b}){if(g===null)return;let w=g-b;K(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function E(b,w){if(!n||typeof c!="number"||!m||o===void 0)return null;let x=c===o-1;if(c>=o&&w)return 0;if(x&&!w)return 1;if(!u&&!x)return null;let O=x?c+1:c-1,F=x?m[O]-m[O-1]:m[O+1]-m[O],B=b/Math.abs(F);return x?1-B:B}return{isLastSnapPoint:f,activeSnapPoint:a,shouldFade:u,getPercentageDragged:E,setActiveSnapPoint:d,activeSnapPointIndex:c,onRelease:p,onDrag:y,snapPointsOffset:m}}var od=.25,id=100,Mr=8,Ae=16,Lr=26,jr="vaul-dragging";function Eo({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:s,onRelease:o,snapPoints:i,nested:a,closeThreshold:d=od,scrollLockTimeout:f=id,dismissible:u=!0,fadeFromIndex:c=i&&i.length-1,activeSnapPoint:m,setActiveSnapPoint:g,fixed:h,modal:p=!0,onClose:y}){var E;let[b=!1,w]=S.useState(!1),[x,O]=S.useState(!1),[F,B]=S.useState(!1),[k,z]=S.useState(!1),[j,D]=S.useState(!1),[J,se]=S.useState(!1),_=S.useRef(null),T=S.useRef(null),$=S.useRef(null),P=S.useRef(null),R=S.useRef(null),N=S.useRef(!1),I=S.useRef(null),H=S.useRef(0),W=S.useRef(!1),Y=S.useRef(0),A=S.useRef(null),oe=S.useRef(((E=A.current)==null?void 0:E.getBoundingClientRect().height)||0),pe=S.useRef(0),Ee=S.useCallback(L=>{i&&L===de.length-1&&(T.current=new Date)},[]),{activeSnapPoint:Pe,activeSnapPointIndex:ae,setActiveSnapPoint:ne,onRelease:he,snapPointsOffset:de,onDrag:Me,shouldFade:Jn,getPercentageDragged:So}=sd({snapPoints:i,activeSnapPointProp:m,setActiveSnapPointProp:g,drawerRef:A,fadeFromIndex:c,overlayRef:_,onSnapPointChange:Ee});Yu({isDisabled:!b||j||!p||J||!x});let{restorePositionSetting:Oo}=ed({isOpen:b,modal:p,nested:a,hasBeenOpened:x});function at(){return(window.innerWidth-Lr)/window.innerWidth}function Ro(L){var M;!u&&!i||A.current&&!A.current.contains(L.target)||(oe.current=((M=A.current)==null?void 0:M.getBoundingClientRect().height)||0,D(!0),$.current=new Date,ho()&&window.addEventListener("touchend",()=>N.current=!1,{once:!0}),L.target.setPointerCapture(L.pointerId),H.current=L.screenY)}function Yn(L,M){var G;let Z=L,re=new Date,Q=(G=window.getSelection())==null?void 0:G.toString(),me=A.current?Et(A.current):null;if(T.current&&re.getTime()-T.current.getTime()<500)return!1;if(me>0)return!0;if(Q&&Q.length>0)return!1;if(R.current&&re.getTime()-R.current.getTime()Z.clientHeight){if(Z.scrollTop!==0)return R.current=new Date,!1;if(Z.getAttribute("role")==="dialog")return!0}Z=Z.parentNode}return!0}function To(L){if(j){let M=H.current-L.screenY,G=M>0;if(i&&ae===0&&!u||!N.current&&!Yn(L.target,G))return;if(A.current.classList.add(jr),N.current=!0,K(A.current,{transition:"none"}),K(_.current,{transition:"none"}),i&&Me({draggedDistance:M}),M>0&&!i){let we=td(M);K(A.current,{transform:`translate3d(0, ${Math.min(we*-1,0)}px, 0)`});return}let Z=Math.abs(M),re=document.querySelector("[vaul-drawer-wrapper]"),Q=Z/oe.current,me=So(Z,G);me!==null&&(Q=me);let Ht=1-Q;if((Jn||c&&ae===c-1)&&(s==null||s(L,Q),K(_.current,{opacity:`${Ht}`,transition:"none"},!0)),re&&_.current&&r){let we=Math.min(at()+Q*(1-at()),1),lt=8-Q*8,ko=Math.max(0,14-Q*14);K(re,{borderRadius:`${lt}px`,transform:`scale(${we}) translate3d(0, ${ko}px, 0)`,transition:"none"},!0)}i||K(A.current,{transform:`translate3d(0, ${Z}px, 0)`})}}S.useEffect(()=>()=>{ct(!1),Oo()},[]),S.useEffect(()=>{var L;function M(){var G;if(!A.current)return;let Z=document.activeElement;if(Pt(Z)||W.current){let re=((G=window.visualViewport)==null?void 0:G.height)||0,Q=window.innerHeight-re,me=A.current.getBoundingClientRect().height||0;pe.current||(pe.current=me);let Ht=A.current.getBoundingClientRect().top;if(Math.abs(Y.current-Q)>60&&(W.current=!W.current),i&&i.length>0&&de&&ae){let we=de[ae]||0;Q+=we}if(Y.current=Q,me>re||W.current){let we=A.current.getBoundingClientRect().height,lt=we;we>re&&(lt=re-Lr),h?A.current.style.height=`${we-Math.max(Q,0)}px`:A.current.style.height=`${Math.max(lt,re-Ht)}px`}else A.current.style.height=`${pe.current}px`;i&&i.length>0&&!W.current?A.current.style.bottom="0px":A.current.style.bottom=`${Math.max(Q,0)}px`}}return(L=window.visualViewport)==null||L.addEventListener("resize",M),()=>{var G;return(G=window.visualViewport)==null?void 0:G.removeEventListener("resize",M)}},[ae,i,de]);function Le(){A.current&&(y==null||y(),A.current&&(K(A.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),K(_.current,{opacity:"0",transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),ct(!1)),setTimeout(()=>{B(!1),w(!1)},300),setTimeout(()=>{i&&ne(i[0])},500))}S.useEffect(()=>{if(!b&&r){let L=setTimeout(()=>{bt(document.body)},200);return()=>clearTimeout(L)}},[b,r]),S.useEffect(()=>{e?(w(!0),O(!0)):Le()},[e]),S.useEffect(()=>{k&&(t==null||t(b))},[b]),S.useEffect(()=>{z(!0)},[]);function Gn(){if(!A.current)return;let L=document.querySelector("[vaul-drawer-wrapper]"),M=Et(A.current);K(A.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),K(_.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"1"}),r&&M&&M>0&&b&&K(L,{borderRadius:`${Mr}px`,overflow:"hidden",transform:`scale(${at()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`},!0)}function _o(L){if(!j||!A.current)return;N.current&&Pt(L.target)&&L.target.blur(),A.current.classList.remove(jr),N.current=!1,D(!1),P.current=new Date;let M=Et(A.current);if(!Yn(L.target,!1)||!M||Number.isNaN(M)||$.current===null)return;let G=L.screenY,Z=P.current.getTime()-$.current.getTime(),re=H.current-G,Q=Math.abs(re)/Z;if(Q>.05&&(se(!0),setTimeout(()=>{se(!1)},200)),i){he({draggedDistance:re,closeDrawer:Le,velocity:Q});return}if(re>0){Gn(),o==null||o(L,!0);return}if(Q>vo){Le(),o==null||o(L,!1);return}let me=Math.min(A.current.getBoundingClientRect().height||0,window.innerHeight);if(M>=me*d){Le(),o==null||o(L,!1);return}o==null||o(L,!0),Gn()}S.useEffect(()=>{b&&(T.current=new Date,ct(!0))},[b]),S.useEffect(()=>{F&&F&&A.current.querySelectorAll("*").forEach(L=>{let M=L;(M.scrollHeight>M.clientHeight||M.scrollWidth>M.clientWidth)&&M.classList.add("vaul-scrollable")})},[F]);function ct(L){let M=document.querySelector("[vaul-drawer-wrapper]");!M||!r||(L?(K(document.body,{background:"black"},!0),K(M,{borderRadius:`${Mr}px`,overflow:"hidden",transform:`scale(${at()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`})):(bt(M,"overflow"),bt(M,"transform"),bt(M,"borderRadius"),K(M,{transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`})))}function Po(L){let M=L?(window.innerWidth-Ae)/window.innerWidth:1,G=L?-Ae:0;I.current&&window.clearTimeout(I.current),K(A.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:`scale(${M}) translate3d(0, ${G}px, 0)`}),!L&&A.current&&(I.current=setTimeout(()=>{K(A.current,{transition:"none",transform:`translate3d(0, ${Et(A.current)}px, 0)`})},500))}function Ao(L,M){if(M<0)return;let G=(window.innerWidth-Ae)/window.innerWidth,Z=G+M*(1-G),re=-Ae+M*Ae;K(A.current,{transform:`scale(${Z}) translate3d(0, ${re}px, 0)`,transition:"none"})}function No(L,M){let G=M?(window.innerWidth-Ae)/window.innerWidth:1,Z=M?-Ae:0;M&&K(A.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:`scale(${G}) translate3d(0, ${Z}px, 0)`})}return S.createElement(On,{modal:p,onOpenChange:L=>{if(e!==void 0){t==null||t(L);return}L?(O(!0),w(L)):Le()},open:b},S.createElement(po.Provider,{value:{visible:F,activeSnapPoint:Pe,snapPoints:i,setActiveSnapPoint:ne,drawerRef:A,overlayRef:_,scaleBackground:ct,onOpenChange:t,onPress:Ro,setVisible:B,onRelease:_o,onDrag:To,dismissible:u,isOpen:b,shouldFade:Jn,closeDrawer:Le,onNestedDrag:Ao,onNestedOpenChange:Po,onNestedRelease:No,keyboardIsOpen:W,openProp:e,modal:p,snapPointsOffset:de}},n))}var wo=S.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:s,onRelease:o,shouldFade:i,isOpen:a,visible:d}=Wn(),f=go(n,r),u=s&&s.length>0;return S.createElement(uo,{onMouseUp:o,ref:f,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":a&&u?"true":"false","vaul-snap-points-overlay":a&&i?"true":"false",...t})});wo.displayName="Drawer.Overlay";var xo=S.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:s,...o},i){let{drawerRef:a,onPress:d,onRelease:f,onDrag:u,dismissible:c,keyboardIsOpen:m,snapPointsOffset:g,visible:h,closeDrawer:p,modal:y,openProp:E,onOpenChange:b,setVisible:w}=Wn(),x=go(i,a);return S.useEffect(()=>{w(!0)},[]),S.createElement(Tn,{onOpenAutoFocus:O=>{t?t(O):(O.preventDefault(),a.current.focus())},onPointerDown:d,onPointerDownOutside:O=>{if(n==null||n(O),!y){O.preventDefault();return}m.current&&(m.current=!1),O.preventDefault(),b==null||b(!1),!(!c||E!==void 0)&&p()},onPointerMove:u,onPointerUp:f,ref:x,style:g&&g.length>0?{"--snap-point-height":`${g[0]}px`,...s}:s,...o,"vaul-drawer":"","vaul-drawer-visible":h?"true":"false"},e)});xo.displayName="Drawer.Content";function ad({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:s,onNestedOpenChange:o,onNestedRelease:i}=Wn();if(!s)throw new Error("Drawer.NestedRoot must be placed in another drawer");return S.createElement(Eo,{nested:!0,onClose:()=>{o(!1)},onDrag:(a,d)=>{s(a,d),t==null||t(a,d)},onOpenChange:a=>{a&&o(a),n==null||n(a)},onRelease:i,...r},e)}var ze={Root:Eo,NestedRoot:ad,Content:xo,Overlay:wo,Trigger:Fu,Portal:Rn,Close:Bu,Title:fo,Description:Uu};const Pn=ve([]),cd=e=>{const{content:t,children:n,zIndex:r=998,title:s,dismissible:o=!0}=e,i=l.useMemo(()=>{const g={};return e.open!==void 0&&(g.open=e.open),e.onOpenChange!==void 0&&(g.onOpenChange=e.onOpenChange),g},[e]),[a,d]=l.useState(),f=Fo();l.useEffect(()=>{const g=a;if(g)return f.set(Pn,h=>h.concat(g)),()=>{f.set(Pn,h=>h.filter(p=>p!==g))}},[a,f]);const u=ze.Root,c=r-1,m=r;return C.jsxs(u,{dismissible:o,...i,children:[C.jsx(ze.Trigger,{asChild:!0,children:n}),C.jsxs(ze.Portal,{children:[C.jsxs(ze.Content,{style:{zIndex:m},className:"fixed bottom-0 left-0 right-0 mt-24 flex max-h-[95vh] flex-col rounded-t-[10px] bg-base-100 p-4",children:[o&&C.jsx("div",{className:"mx-auto mb-8 h-1.5 w-12 flex-shrink-0 rounded-full bg-zinc-300 dark:bg-neutral-800"}),s&&C.jsx(ze.Title,{children:s}),S.isValidElement(t)?t:typeof t=="function"?S.createElement(t):null,C.jsx("div",{ref:d})]}),C.jsx(ze.Overlay,{className:"fixed inset-0 bg-neutral-800/40",style:{zIndex:c}})]})]})},Yd=()=>{const[e,t]=l.useState(!1);return l.useEffect(()=>{t(!0)},[]),e},ld=()=>{const[e,t]=l.useState(!1);return l.useEffect(()=>{l.startTransition(()=>{t(!0)})},[]),e},dn=e=>e.stopPropagation(),ud=e=>e.preventDefault(),dd={},He=ve([]),$o=()=>{const e=l.useId(),t=l.useRef(0);return{present:l.useCallback(n=>{const r=`${e}-${t.current++}`;return Re.set(He,s=>{const o={...n,id:n.id??r};return dd[o.id]=o,s.concat(o)}),()=>{Re.set(He,s=>s.filter(o=>o.id!==r))}},[e]),...fd}},fd={dismiss(e){Re.set(He,t=>t.filter(n=>n.id!==e))},dismissTop(){Re.set(He,e=>e.slice(0,-1))},dismissAll(){Re.set(He,[])}},pd={scale:1,opacity:1},Fr={scale:.96,opacity:0},hd={...Jr};l.memo(function({item:t,index:n}){const r=qr(He),s=l.useCallback(()=>{r(w=>w.filter(x=>x.id!==t.id))},[t.id,r]),o=l.useCallback(w=>{w||s()},[s]),i=Go();l.useEffect(()=>{i.start(pd)},[]);const{CustomModalComponent:a,modalClassName:d,content:f,title:u,clickOutsideToDismiss:c,modalContainerClassName:m}=t,g=l.useMemo(()=>({zIndex:99+n}),[n]),h=l.useCallback(w=>{dn(w),s()},[s]),p=Uo(),y=l.useCallback(()=>{i.start({scale:1.05,transition:{duration:.06}}).then(()=>{p.current||i.start({scale:1})})},[i]),E={dismiss:s};if(Qr()){const w=Re.get(Pn).length;return C.jsx(cd,{open:!0,zIndex:1e3+w,onOpenChange:o,content:l.createElement(f,E)})}return a?C.jsx(On,{open:!0,onOpenChange:o,children:C.jsxs(Rn,{children:[C.jsx(kr,{zIndex:20}),C.jsx(Tn,{asChild:!0,children:C.jsx("div",{className:Wt("fixed inset-0 z-[20] overflow-auto",m),onClick:c?h:void 0,children:C.jsx("div",{className:"contents",onClick:dn,children:C.jsx(a,{children:l.createElement(f,E)})})})})]})}):C.jsx(On,{open:!0,onOpenChange:o,children:C.jsxs(Rn,{children:[C.jsx(kr,{zIndex:20}),C.jsx(Tn,{asChild:!0,children:C.jsx("div",{className:Wt("fixed inset-0 z-[20] flex center",m),onClick:c?h:y,children:C.jsxs(We.div,{style:g,exit:Fr,initial:Fr,animate:i,transition:hd,className:Wt("relative flex flex-col overflow-hidden rounded-lg","bg-slate-50/80 dark:bg-neutral-900/80","p-2 shadow-2xl shadow-stone-300 backdrop-blur-sm dark:shadow-stone-800","max-h-[70vh] min-w-[300px] max-w-[90vw] lg:max-h-[calc(100vh-20rem)] lg:max-w-[70vw]","border border-slate-200 dark:border-neutral-800",d),onClick:dn,children:[C.jsx(fo,{className:"flex-shrink-0 px-4 py-2 text-lg font-medium",children:u}),C.jsx(Bo,{className:"my-2 flex-shrink-0 border-slate-200 opacity-80 dark:border-neutral-800"}),C.jsx("div",{className:"min-h-0 flex-shrink flex-grow overflow-auto px-4 py-2",children:l.createElement(f,E)}),C.jsx(lo,{onClick:s,className:"absolute right-0 top-0 z-[9] p-5",children:C.jsx(zu,{})})]})})})]})})});var Vn=(e=>(e.Click="click",e.Interaction="interaction",e.Impression="impression",e))(Vn||{});const md=e=>{const{shouldTrack:t=!0,...n}=e;return t?C.jsx(Co,{...n}):C.jsx(C.Fragment,{children:e.children})},Co=l.memo(e=>{const[t,n]=l.useState(!1),r=cl(),{ref:s}=Kr({initialInView:!1,triggerOnce:!0,onChange(o){var i;if(o){if(n(!0),r)return;document.dispatchEvent(new CustomEvent("impression",{detail:{action:e.action??Vn.Impression,label:e.trackerMessage}})),(i=e.onTrack)==null||i.call(e)}}});return C.jsxs(C.Fragment,{children:[e.children,!t&&C.jsx("span",{ref:s})]})});Co.displayName="ImpressionView";const Ur=e=>{const{dismissAll:t,dismissTop:n}=$o();return C.jsxs("div",{className:"relative mx-auto mt-[10vh] max-w-full overflow-auto px-2 scrollbar-none lg:max-w-[65rem] lg:p-0",children:[C.jsx(md,{action:Vn.Impression,trackerMessage:"Peek Modal"}),C.jsx(We.div,{initial:{opacity:.5,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:Jr,className:"scrollbar-none",children:e.children}),C.jsxs(We.div,{initial:!0,exit:{opacity:0},className:"fixed right-2 top-2 flex items-center gap-4",children:[C.jsxs(Yr,{className:"flex h-8 w-8 rounded-full p-1 shadow-sm ring-1 ring-zinc-200 center dark:ring-neutral-800",href:e.to,onClick:t,children:[C.jsx("i",{className:"icon-[mingcute--fullscreen-2-line] text-lg"}),C.jsx("span",{className:"sr-only",children:"Go to this link"})]}),C.jsxs("button",{className:"flex h-8 w-8 rounded-full p-1 shadow-sm ring-1 ring-zinc-200 center dark:ring-neutral-800",onClick:n,children:[C.jsx("i",{className:"icon-[mingcute--close-line] text-lg"}),C.jsx("span",{className:"sr-only",children:"Dimiss"})]})]})]})},gd=()=>{const e=Qr(),{present:t}=$o();return l.useCallback(n=>{if(e)return;const r={clickOutsideToDismiss:!0,title:"Preview",modalClassName:"relative mx-auto mt-[10vh] scrollbar-none max-w-full overflow-auto px-2 lg:max-w-[65rem] lg:p-0"};return n.startsWith("/notes/")?(requestAnimationFrame(async()=>{const s=await Xn(()=>import("./NotePreview-yCCpXwBc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(o=>o.NotePreview);t({...r,CustomModalComponent:()=>C.jsx(Ur,{to:n,children:C.jsx(s,{noteId:parseInt(n.split("/").pop())})}),content:()=>null})}),!0):n.startsWith("/posts/")?(requestAnimationFrame(async()=>{const s=await Xn(()=>import("./PostPreview-kGe_h9w-.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19]),import.meta.url).then(d=>d.PostPreview),o=n.split("/"),i=o.pop(),a=o.pop();t({...r,CustomModalComponent:()=>C.jsx(Ur,{to:n,children:C.jsx(s,{category:a,slug:i})}),content:()=>null})}),!0):!1},[e,t])},Br="https://api.github.com",yd="/api/gh",Kn=e=>{const t=e.replace(Br,"");return Promise.any([fetch(Br+t).then(n=>{if(n.status===403)throw new Error("GitHub API rate limit exceeded");return n.json()}),fetch(yd+t).then(n=>n.json())])},vd="_contents_wztwv_23",bd="_title_wztwv_31",Ed="_desc_wztwv_43",wd="_image_wztwv_54",xd="_skeleton_wztwv_64",$d="_error_wztwv_92",ce={"card-grid":"_card-grid_wztwv_1",contents:vd,title:bd,desc:Ed,image:wd,skeleton:xd,error:$d},Gd=e=>ld()?C.jsx(zo,{placeholder:C.jsx(Sd,{}),children:C.jsx(Cd,{...e})}):null,Cd=e=>{const{id:t,source:n=ke.Self,className:r}=e,[s,o]=l.useState(!0),[i,a]=l.useState(!1),[d,f]=l.useState("about:blank"),[u,c]=l.useState(),m=gd(),g=l.useCallback(async w=>{m(d)&&ud(w)},[d]),{isValid:h,fetchFn:p}=l.useMemo(()=>Od(n,t),[n,t]),y=l.useCallback(async()=>{p&&(o(!0),await p(t,c,f).catch(w=>{console.log("fetch card info error: ",w),a(!0)}),o(!1))},[p,t]),{ref:E}=Kr({triggerOnce:!0,onChange(w){w&&y()}});if(!h)return null;const b=n==="self"?Yr:"a";return C.jsxs(b,{href:d,target:n!=="self"?"_blank":"_self",ref:E,className:An(ce["card-grid"],(s||i)&&ce.skeleton,i&&ce.error,r),onClick:g,children:[C.jsxs("span",{className:ce.contents,children:[C.jsx("span",{className:ce.title,children:u==null?void 0:u.title}),C.jsx("span",{className:ce.desc,children:u==null?void 0:u.desc})]}),(s||(u==null?void 0:u.image))&&C.jsx("span",{className:ce.image,"data-image":(u==null?void 0:u.image)||"",style:{backgroundImage:u!=null&&u.image?`url(${u.image})`:void 0}})]})},Sd=()=>C.jsxs("span",{className:An(ce["card-grid"],ce.skeleton),children:[C.jsxs("span",{className:ce.contents,children:[C.jsx("span",{className:ce.title}),C.jsx("span",{className:ce.desc})]}),C.jsx("span",{className:ce.image})]});function Od(e,t){const r={[ke.MixSpace]:zr,[ke.GHRepo]:Rd,[ke.GHCommit]:Td,[ke.GHPr]:_d,[ke.Self]:zr}[e];if(!r)return{isValid:!1,fetchFn:null};const s=r.isValid(t);return{isValid:s,fetchFn:s?r.fetch:null}}const Rd={isValid:e=>{const t=e.split("/");return t.length===2&&t[0].length>0&&t[1].length>0},fetch:async(e,t,n)=>{const[r,s]=e.split("/");try{const o=await Kn(`https://api.github.com/repos/${r}/${s}`),i=qe(o);t({title:i.name,desc:i.description,image:i.owner.avatarUrl}),n(i.htmlUrl)}catch(o){throw console.error("Error fetching GitHub data:",o),o}}},Td={isValid:e=>{const t=e.split("/");return t.length===4&&t.every(n=>n.length>0)&&t[2]==="commit"},fetch:async(e,t,n)=>{var i;const[r,s,,o]=e.split("/");try{const a=await Kn(`https://api.github.com/repos/${r}/${s}/commits/${o}`),d=qe(a);t({title:C.jsx("span",{className:"font-normal",children:d.commit.message.replace(/Signed-off-by:.+/,"")}),desc:C.jsxs("span",{className:"flex items-center space-x-5 font-mono",children:[C.jsxs("span",{className:"text-uk-green-light",children:["+",d.stats.additions]}),C.jsxs("span",{className:"text-uk-red-light",children:["-",d.stats.deletions]}),C.jsx("span",{className:"text-sm",children:d.sha.slice(0,7)}),C.jsxs("span",{className:"text-sm opacity-80",children:[r,"/",s]})]}),image:(i=d.author)==null?void 0:i.avatarUrl}),n(`https://github.com/${r}/${s}/commit/${o}`)}catch(a){throw console.error("Error fetching GitHub commit data:",a),a}}},_d={isValid:e=>{const t=e.split("/");return t.length===3&&t.every(n=>n.length>0)},fetch:async(e,t,n)=>{const[r,s,,o]=e.split("/");try{const i=await Kn(`https://api.github.com/repos/${r}/${s}/pulls/${o}`),a=qe(i);t({title:`PR: ${a.title}`,desc:C.jsxs("span",{className:"flex items-center space-x-5 font-mono",children:[C.jsxs("span",{className:"text-uk-green-light",children:["+",a.additions]}),C.jsxs("span",{className:"text-uk-red-light",children:["-",a.deletions]}),C.jsxs("span",{className:"text-sm opacity-80",children:[r,"/",s]})]}),image:a.user.avatarUrl}),n(a.htmlUrl)}catch(i){throw console.error("Error fetching GitHub PR data:",i),i}}},zr={isValid:e=>{const[t,...n]=e.split("/");return t!=="posts"&&t!=="notes"?!1:t==="posts"?n.length===2:n.length===1},fetch:async(e,t,n)=>{var o,i,a;const[r,...s]=e.split("/");try{let d={title:"",text:""};if(r==="posts"){const[f,u]=s;d=await gr.post.getPost(f,u),n(`/posts/${f}/${u}`)}else if(r==="notes"){const[f]=s;d=(await gr.note.getNoteById(+f)).data,n(`/notes/${f}`)}t({title:d.title,desc:d.summary||`${Zo(d.text).slice(0,50)}...`,image:d.cover||((o=d.meta)==null?void 0:o.cover)||((a=(i=d.images)==null?void 0:i[0])==null?void 0:a.src)})}catch(d){throw console.error("Error fetching self data:",d),d}}};export{On as $,kr as D,Gd as L,Zo as R,ke as a,cl as b,gr as c,$o as d,Ld as e,Vd as f,Yd as g,Tu as h,Kd as i,Au as j,Er as k,Pi as l,qd as m,Wd as n,er as o,Qr as p,ud as q,ol as r,Id as s,wr as t,Go as u,Oe as v}; +`);var Wu=typeof window<"u"?l.useLayoutEffect:l.useEffect;function _n(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function qu(){return qn(/^Mac/)}function Vu(){return qn(/^iPhone/)}function Ku(){return qn(/^iPad/)||qu()&&navigator.maxTouchPoints>1}function ho(){return Vu()||Ku()}function qn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var ln=typeof document<"u"&&window.visualViewport;function Dr(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function mo(e){for(Dr(e)&&(e=e.parentElement);e&&!Dr(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Ju=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),vt=0,un;function Yu(e={}){let{isDisabled:t}=e;Wu(()=>{if(!t)return vt++,vt===1&&(ho()?un=Xu():un=Gu()),()=>{vt--,vt===0&&un()}},[t])}function Gu(){return _n(_t(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),_t(document.documentElement,"overflow","hidden"))}function Xu(){let e,t=0,n=c=>{e=mo(c.target),!(e===document.documentElement&&e===document.body)&&(t=c.changedTouches[0].pageY)},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}let m=c.changedTouches[0].pageY,g=e.scrollTop,h=e.scrollHeight-e.clientHeight;h!==0&&((g<=0&&m>t||g>=h&&m{let m=c.target;Pt(m)&&m!==document.activeElement&&(c.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},o=c=>{let m=c.target;Pt(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",ln&&(ln.height{Ir(m)}):ln.addEventListener("resize",()=>Ir(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},a=window.pageXOffset,d=window.pageYOffset,f=_n(_t(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),_t(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=_n(Ge(document,"touchstart",n,{passive:!1,capture:!0}),Ge(document,"touchmove",r,{passive:!1,capture:!0}),Ge(document,"touchend",s,{passive:!1,capture:!0}),Ge(document,"focus",o,!0),Ge(window,"scroll",i));return()=>{f(),u(),window.scrollTo(a,d)}}function _t(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ge(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ir(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=mo(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,s=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;o>i&&(n.scrollTop+=s-r)}e=n.parentElement}}function Pt(e){return e instanceof HTMLInputElement&&!Ju.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Zu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Qu(...e){return t=>e.forEach(n=>Zu(n,t))}function go(...e){return l.useCallback(Qu(...e),e)}var Ce=null;function ed({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let[s,o]=S.useState(typeof window<"u"?window.location.href:""),i=S.useRef(0);function a(){if(Ce===null&&e){Ce={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:f,innerHeight:u}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-i.current}px`,document.body.style.left=`${-f}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=u-window.innerHeight;c&&i.current>=u&&(document.body.style.top=`${-(i.current+c)}px`)}),300)}}function d(){if(Ce!==null){let f=-parseInt(document.body.style.top,10),u=-parseInt(document.body.style.left,10);document.body.style.position=Ce.position,document.body.style.top=Ce.top,document.body.style.left=Ce.left,document.body.style.height=Ce.height,document.body.style.right="unset",requestAnimationFrame(()=>{if(s!==window.location.href){o(window.location.href);return}window.scrollTo(u,f)}),Ce=null}}return S.useEffect(()=>{function f(){i.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),S.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{d()},500)):d())},[e,r,s]),{restorePositionSetting:d}}var yo=new WeakMap;function K(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([s,o])=>{if(s.startsWith("--")){e.style.setProperty(s,o);return}r[s]=e.style[s],e.style[s]=o}),!n&&yo.set(e,r)}function bt(e,t){if(!e||!(e instanceof HTMLElement))return;let n=yo.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,s])=>{e.style[r]=s}))}function Et(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function td(e){return 8*(Math.log(e+1)-2)}var q={DURATION:.5,EASE:[.32,.72,0,1]},vo=.4;function bo(e){let t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nd({defaultProp:e,onChange:t}){let n=S.useState(e),[r]=n,s=S.useRef(r),o=bo(t);return S.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}function rd({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,s]=nd({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,a=bo(n),d=S.useCallback(f=>{if(o){let u=typeof f=="function"?f(e):f;u!==e&&a(u)}else s(f)},[o,e,s,a]);return[i,d]}function sd({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:s,fadeFromIndex:o,onSnapPointChange:i}){let[a,d]=rd({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),f=S.useMemo(()=>a===(n==null?void 0:n[n.length-1]),[n,a]),u=n&&n.length>0&&o&&n[o]===a||!n,c=S.useMemo(()=>{var b;return(b=n==null?void 0:n.findIndex(w=>w===a))!=null?b:null},[n,a]),m=S.useMemo(()=>{var b;return(b=n==null?void 0:n.map(w=>{let x=typeof window<"u",O=typeof w=="string",F=0;O&&(F=parseInt(w,10));let B=O?F:x?w*window.innerHeight:0;return x?window.innerHeight-B:B}))!=null?b:[]},[n]),g=S.useMemo(()=>c!==null?m==null?void 0:m[c]:null,[m,c]),h=S.useCallback(b=>{var w;let x=(w=m==null?void 0:m.findIndex(O=>O===b))!=null?w:null;i(x),K(r.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:`translate3d(0, ${b}px, 0)`}),m&&x!==m.length-1&&x!==o?K(s.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"0"}):K(s.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"1"}),d(x!==null?n==null?void 0:n[x]:null)},[r.current,n,m,o,s,d]);S.useEffect(()=>{var b;if(e){let w=(b=n==null?void 0:n.findIndex(x=>x===e))!=null?b:null;m&&w&&typeof m[w]=="number"&&h(m[w])}},[e,n,m,h]);function p({draggedDistance:b,closeDrawer:w,velocity:x}){if(o===void 0)return;let O=g-b,F=c===o-1,B=c===0;if(F&&K(s.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),x>2&&b<0){w();return}if(x>2&&b>0&&m&&n){h(m[n.length-1]);return}let k=m==null?void 0:m.reduce((z,j)=>typeof z!="number"||typeof j!="number"?z:Math.abs(j-O)vo&&Math.abs(b)0?1:-1;if(z>0&&f){h(m[n.length-1]);return}if(B&&z<0&&w(),c===null)return;h(m[c+z]);return}h(k)}function y({draggedDistance:b}){if(g===null)return;let w=g-b;K(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function E(b,w){if(!n||typeof c!="number"||!m||o===void 0)return null;let x=c===o-1;if(c>=o&&w)return 0;if(x&&!w)return 1;if(!u&&!x)return null;let O=x?c+1:c-1,F=x?m[O]-m[O-1]:m[O+1]-m[O],B=b/Math.abs(F);return x?1-B:B}return{isLastSnapPoint:f,activeSnapPoint:a,shouldFade:u,getPercentageDragged:E,setActiveSnapPoint:d,activeSnapPointIndex:c,onRelease:p,onDrag:y,snapPointsOffset:m}}var od=.25,id=100,Mr=8,Ae=16,Lr=26,jr="vaul-dragging";function Eo({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:s,onRelease:o,snapPoints:i,nested:a,closeThreshold:d=od,scrollLockTimeout:f=id,dismissible:u=!0,fadeFromIndex:c=i&&i.length-1,activeSnapPoint:m,setActiveSnapPoint:g,fixed:h,modal:p=!0,onClose:y}){var E;let[b=!1,w]=S.useState(!1),[x,O]=S.useState(!1),[F,B]=S.useState(!1),[k,z]=S.useState(!1),[j,D]=S.useState(!1),[J,se]=S.useState(!1),_=S.useRef(null),T=S.useRef(null),$=S.useRef(null),P=S.useRef(null),R=S.useRef(null),N=S.useRef(!1),I=S.useRef(null),H=S.useRef(0),W=S.useRef(!1),Y=S.useRef(0),A=S.useRef(null),oe=S.useRef(((E=A.current)==null?void 0:E.getBoundingClientRect().height)||0),pe=S.useRef(0),Ee=S.useCallback(L=>{i&&L===de.length-1&&(T.current=new Date)},[]),{activeSnapPoint:Pe,activeSnapPointIndex:ae,setActiveSnapPoint:ne,onRelease:he,snapPointsOffset:de,onDrag:Me,shouldFade:Jn,getPercentageDragged:So}=sd({snapPoints:i,activeSnapPointProp:m,setActiveSnapPointProp:g,drawerRef:A,fadeFromIndex:c,overlayRef:_,onSnapPointChange:Ee});Yu({isDisabled:!b||j||!p||J||!x});let{restorePositionSetting:Oo}=ed({isOpen:b,modal:p,nested:a,hasBeenOpened:x});function at(){return(window.innerWidth-Lr)/window.innerWidth}function Ro(L){var M;!u&&!i||A.current&&!A.current.contains(L.target)||(oe.current=((M=A.current)==null?void 0:M.getBoundingClientRect().height)||0,D(!0),$.current=new Date,ho()&&window.addEventListener("touchend",()=>N.current=!1,{once:!0}),L.target.setPointerCapture(L.pointerId),H.current=L.screenY)}function Yn(L,M){var G;let Z=L,re=new Date,Q=(G=window.getSelection())==null?void 0:G.toString(),me=A.current?Et(A.current):null;if(T.current&&re.getTime()-T.current.getTime()<500)return!1;if(me>0)return!0;if(Q&&Q.length>0)return!1;if(R.current&&re.getTime()-R.current.getTime()Z.clientHeight){if(Z.scrollTop!==0)return R.current=new Date,!1;if(Z.getAttribute("role")==="dialog")return!0}Z=Z.parentNode}return!0}function To(L){if(j){let M=H.current-L.screenY,G=M>0;if(i&&ae===0&&!u||!N.current&&!Yn(L.target,G))return;if(A.current.classList.add(jr),N.current=!0,K(A.current,{transition:"none"}),K(_.current,{transition:"none"}),i&&Me({draggedDistance:M}),M>0&&!i){let we=td(M);K(A.current,{transform:`translate3d(0, ${Math.min(we*-1,0)}px, 0)`});return}let Z=Math.abs(M),re=document.querySelector("[vaul-drawer-wrapper]"),Q=Z/oe.current,me=So(Z,G);me!==null&&(Q=me);let Ht=1-Q;if((Jn||c&&ae===c-1)&&(s==null||s(L,Q),K(_.current,{opacity:`${Ht}`,transition:"none"},!0)),re&&_.current&&r){let we=Math.min(at()+Q*(1-at()),1),lt=8-Q*8,ko=Math.max(0,14-Q*14);K(re,{borderRadius:`${lt}px`,transform:`scale(${we}) translate3d(0, ${ko}px, 0)`,transition:"none"},!0)}i||K(A.current,{transform:`translate3d(0, ${Z}px, 0)`})}}S.useEffect(()=>()=>{ct(!1),Oo()},[]),S.useEffect(()=>{var L;function M(){var G;if(!A.current)return;let Z=document.activeElement;if(Pt(Z)||W.current){let re=((G=window.visualViewport)==null?void 0:G.height)||0,Q=window.innerHeight-re,me=A.current.getBoundingClientRect().height||0;pe.current||(pe.current=me);let Ht=A.current.getBoundingClientRect().top;if(Math.abs(Y.current-Q)>60&&(W.current=!W.current),i&&i.length>0&&de&&ae){let we=de[ae]||0;Q+=we}if(Y.current=Q,me>re||W.current){let we=A.current.getBoundingClientRect().height,lt=we;we>re&&(lt=re-Lr),h?A.current.style.height=`${we-Math.max(Q,0)}px`:A.current.style.height=`${Math.max(lt,re-Ht)}px`}else A.current.style.height=`${pe.current}px`;i&&i.length>0&&!W.current?A.current.style.bottom="0px":A.current.style.bottom=`${Math.max(Q,0)}px`}}return(L=window.visualViewport)==null||L.addEventListener("resize",M),()=>{var G;return(G=window.visualViewport)==null?void 0:G.removeEventListener("resize",M)}},[ae,i,de]);function Le(){A.current&&(y==null||y(),A.current&&(K(A.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),K(_.current,{opacity:"0",transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),ct(!1)),setTimeout(()=>{B(!1),w(!1)},300),setTimeout(()=>{i&&ne(i[0])},500))}S.useEffect(()=>{if(!b&&r){let L=setTimeout(()=>{bt(document.body)},200);return()=>clearTimeout(L)}},[b,r]),S.useEffect(()=>{e?(w(!0),O(!0)):Le()},[e]),S.useEffect(()=>{k&&(t==null||t(b))},[b]),S.useEffect(()=>{z(!0)},[]);function Gn(){if(!A.current)return;let L=document.querySelector("[vaul-drawer-wrapper]"),M=Et(A.current);K(A.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),K(_.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"1"}),r&&M&&M>0&&b&&K(L,{borderRadius:`${Mr}px`,overflow:"hidden",transform:`scale(${at()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`},!0)}function _o(L){if(!j||!A.current)return;N.current&&Pt(L.target)&&L.target.blur(),A.current.classList.remove(jr),N.current=!1,D(!1),P.current=new Date;let M=Et(A.current);if(!Yn(L.target,!1)||!M||Number.isNaN(M)||$.current===null)return;let G=L.screenY,Z=P.current.getTime()-$.current.getTime(),re=H.current-G,Q=Math.abs(re)/Z;if(Q>.05&&(se(!0),setTimeout(()=>{se(!1)},200)),i){he({draggedDistance:re,closeDrawer:Le,velocity:Q});return}if(re>0){Gn(),o==null||o(L,!0);return}if(Q>vo){Le(),o==null||o(L,!1);return}let me=Math.min(A.current.getBoundingClientRect().height||0,window.innerHeight);if(M>=me*d){Le(),o==null||o(L,!1);return}o==null||o(L,!0),Gn()}S.useEffect(()=>{b&&(T.current=new Date,ct(!0))},[b]),S.useEffect(()=>{F&&F&&A.current.querySelectorAll("*").forEach(L=>{let M=L;(M.scrollHeight>M.clientHeight||M.scrollWidth>M.clientWidth)&&M.classList.add("vaul-scrollable")})},[F]);function ct(L){let M=document.querySelector("[vaul-drawer-wrapper]");!M||!r||(L?(K(document.body,{background:"black"},!0),K(M,{borderRadius:`${Mr}px`,overflow:"hidden",transform:`scale(${at()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`})):(bt(M,"overflow"),bt(M,"transform"),bt(M,"borderRadius"),K(M,{transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`})))}function Po(L){let M=L?(window.innerWidth-Ae)/window.innerWidth:1,G=L?-Ae:0;I.current&&window.clearTimeout(I.current),K(A.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:`scale(${M}) translate3d(0, ${G}px, 0)`}),!L&&A.current&&(I.current=setTimeout(()=>{K(A.current,{transition:"none",transform:`translate3d(0, ${Et(A.current)}px, 0)`})},500))}function Ao(L,M){if(M<0)return;let G=(window.innerWidth-Ae)/window.innerWidth,Z=G+M*(1-G),re=-Ae+M*Ae;K(A.current,{transform:`scale(${Z}) translate3d(0, ${re}px, 0)`,transition:"none"})}function No(L,M){let G=M?(window.innerWidth-Ae)/window.innerWidth:1,Z=M?-Ae:0;M&&K(A.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:`scale(${G}) translate3d(0, ${Z}px, 0)`})}return S.createElement(On,{modal:p,onOpenChange:L=>{if(e!==void 0){t==null||t(L);return}L?(O(!0),w(L)):Le()},open:b},S.createElement(po.Provider,{value:{visible:F,activeSnapPoint:Pe,snapPoints:i,setActiveSnapPoint:ne,drawerRef:A,overlayRef:_,scaleBackground:ct,onOpenChange:t,onPress:Ro,setVisible:B,onRelease:_o,onDrag:To,dismissible:u,isOpen:b,shouldFade:Jn,closeDrawer:Le,onNestedDrag:Ao,onNestedOpenChange:Po,onNestedRelease:No,keyboardIsOpen:W,openProp:e,modal:p,snapPointsOffset:de}},n))}var wo=S.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:s,onRelease:o,shouldFade:i,isOpen:a,visible:d}=Wn(),f=go(n,r),u=s&&s.length>0;return S.createElement(uo,{onMouseUp:o,ref:f,"vaul-drawer-visible":d?"true":"false","vaul-overlay":"","vaul-snap-points":a&&u?"true":"false","vaul-snap-points-overlay":a&&i?"true":"false",...t})});wo.displayName="Drawer.Overlay";var xo=S.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:s,...o},i){let{drawerRef:a,onPress:d,onRelease:f,onDrag:u,dismissible:c,keyboardIsOpen:m,snapPointsOffset:g,visible:h,closeDrawer:p,modal:y,openProp:E,onOpenChange:b,setVisible:w}=Wn(),x=go(i,a);return S.useEffect(()=>{w(!0)},[]),S.createElement(Tn,{onOpenAutoFocus:O=>{t?t(O):(O.preventDefault(),a.current.focus())},onPointerDown:d,onPointerDownOutside:O=>{if(n==null||n(O),!y){O.preventDefault();return}m.current&&(m.current=!1),O.preventDefault(),b==null||b(!1),!(!c||E!==void 0)&&p()},onPointerMove:u,onPointerUp:f,ref:x,style:g&&g.length>0?{"--snap-point-height":`${g[0]}px`,...s}:s,...o,"vaul-drawer":"","vaul-drawer-visible":h?"true":"false"},e)});xo.displayName="Drawer.Content";function ad({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:s,onNestedOpenChange:o,onNestedRelease:i}=Wn();if(!s)throw new Error("Drawer.NestedRoot must be placed in another drawer");return S.createElement(Eo,{nested:!0,onClose:()=>{o(!1)},onDrag:(a,d)=>{s(a,d),t==null||t(a,d)},onOpenChange:a=>{a&&o(a),n==null||n(a)},onRelease:i,...r},e)}var ze={Root:Eo,NestedRoot:ad,Content:xo,Overlay:wo,Trigger:Fu,Portal:Rn,Close:Bu,Title:fo,Description:Uu};const Pn=ve([]),cd=e=>{const{content:t,children:n,zIndex:r=998,title:s,dismissible:o=!0}=e,i=l.useMemo(()=>{const g={};return e.open!==void 0&&(g.open=e.open),e.onOpenChange!==void 0&&(g.onOpenChange=e.onOpenChange),g},[e]),[a,d]=l.useState(),f=Fo();l.useEffect(()=>{const g=a;if(g)return f.set(Pn,h=>h.concat(g)),()=>{f.set(Pn,h=>h.filter(p=>p!==g))}},[a,f]);const u=ze.Root,c=r-1,m=r;return C.jsxs(u,{dismissible:o,...i,children:[C.jsx(ze.Trigger,{asChild:!0,children:n}),C.jsxs(ze.Portal,{children:[C.jsxs(ze.Content,{style:{zIndex:m},className:"fixed bottom-0 left-0 right-0 mt-24 flex max-h-[95vh] flex-col rounded-t-[10px] bg-base-100 p-4",children:[o&&C.jsx("div",{className:"mx-auto mb-8 h-1.5 w-12 flex-shrink-0 rounded-full bg-zinc-300 dark:bg-neutral-800"}),s&&C.jsx(ze.Title,{children:s}),S.isValidElement(t)?t:typeof t=="function"?S.createElement(t):null,C.jsx("div",{ref:d})]}),C.jsx(ze.Overlay,{className:"fixed inset-0 bg-neutral-800/40",style:{zIndex:c}})]})]})},Yd=()=>{const[e,t]=l.useState(!1);return l.useEffect(()=>{t(!0)},[]),e},ld=()=>{const[e,t]=l.useState(!1);return l.useEffect(()=>{l.startTransition(()=>{t(!0)})},[]),e},dn=e=>e.stopPropagation(),ud=e=>e.preventDefault(),dd={},He=ve([]),$o=()=>{const e=l.useId(),t=l.useRef(0);return{present:l.useCallback(n=>{const r=`${e}-${t.current++}`;return Re.set(He,s=>{const o={...n,id:n.id??r};return dd[o.id]=o,s.concat(o)}),()=>{Re.set(He,s=>s.filter(o=>o.id!==r))}},[e]),...fd}},fd={dismiss(e){Re.set(He,t=>t.filter(n=>n.id!==e))},dismissTop(){Re.set(He,e=>e.slice(0,-1))},dismissAll(){Re.set(He,[])}},pd={scale:1,opacity:1},Fr={scale:.96,opacity:0},hd={...Jr};l.memo(function({item:t,index:n}){const r=qr(He),s=l.useCallback(()=>{r(w=>w.filter(x=>x.id!==t.id))},[t.id,r]),o=l.useCallback(w=>{w||s()},[s]),i=Go();l.useEffect(()=>{i.start(pd)},[]);const{CustomModalComponent:a,modalClassName:d,content:f,title:u,clickOutsideToDismiss:c,modalContainerClassName:m}=t,g=l.useMemo(()=>({zIndex:99+n}),[n]),h=l.useCallback(w=>{dn(w),s()},[s]),p=Uo(),y=l.useCallback(()=>{i.start({scale:1.05,transition:{duration:.06}}).then(()=>{p.current||i.start({scale:1})})},[i]),E={dismiss:s};if(Qr()){const w=Re.get(Pn).length;return C.jsx(cd,{open:!0,zIndex:1e3+w,onOpenChange:o,content:l.createElement(f,E)})}return a?C.jsx(On,{open:!0,onOpenChange:o,children:C.jsxs(Rn,{children:[C.jsx(kr,{zIndex:20}),C.jsx(Tn,{asChild:!0,children:C.jsx("div",{className:Wt("fixed inset-0 z-[20] overflow-auto",m),onClick:c?h:void 0,children:C.jsx("div",{className:"contents",onClick:dn,children:C.jsx(a,{children:l.createElement(f,E)})})})})]})}):C.jsx(On,{open:!0,onOpenChange:o,children:C.jsxs(Rn,{children:[C.jsx(kr,{zIndex:20}),C.jsx(Tn,{asChild:!0,children:C.jsx("div",{className:Wt("fixed inset-0 z-[20] flex center",m),onClick:c?h:y,children:C.jsxs(We.div,{style:g,exit:Fr,initial:Fr,animate:i,transition:hd,className:Wt("relative flex flex-col overflow-hidden rounded-lg","bg-slate-50/80 dark:bg-neutral-900/80","p-2 shadow-2xl shadow-stone-300 backdrop-blur-sm dark:shadow-stone-800","max-h-[70vh] min-w-[300px] max-w-[90vw] lg:max-h-[calc(100vh-20rem)] lg:max-w-[70vw]","border border-slate-200 dark:border-neutral-800",d),onClick:dn,children:[C.jsx(fo,{className:"flex-shrink-0 px-4 py-2 text-lg font-medium",children:u}),C.jsx(Bo,{className:"my-2 flex-shrink-0 border-slate-200 opacity-80 dark:border-neutral-800"}),C.jsx("div",{className:"min-h-0 flex-shrink flex-grow overflow-auto px-4 py-2",children:l.createElement(f,E)}),C.jsx(lo,{onClick:s,className:"absolute right-0 top-0 z-[9] p-5",children:C.jsx(zu,{})})]})})})]})})});var Vn=(e=>(e.Click="click",e.Interaction="interaction",e.Impression="impression",e))(Vn||{});const md=e=>{const{shouldTrack:t=!0,...n}=e;return t?C.jsx(Co,{...n}):C.jsx(C.Fragment,{children:e.children})},Co=l.memo(e=>{const[t,n]=l.useState(!1),r=cl(),{ref:s}=Kr({initialInView:!1,triggerOnce:!0,onChange(o){var i;if(o){if(n(!0),r)return;document.dispatchEvent(new CustomEvent("impression",{detail:{action:e.action??Vn.Impression,label:e.trackerMessage}})),(i=e.onTrack)==null||i.call(e)}}});return C.jsxs(C.Fragment,{children:[e.children,!t&&C.jsx("span",{ref:s})]})});Co.displayName="ImpressionView";const Ur=e=>{const{dismissAll:t,dismissTop:n}=$o();return C.jsxs("div",{className:"relative mx-auto mt-[10vh] max-w-full overflow-auto px-2 scrollbar-none lg:max-w-[65rem] lg:p-0",children:[C.jsx(md,{action:Vn.Impression,trackerMessage:"Peek Modal"}),C.jsx(We.div,{initial:{opacity:.5,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:Jr,className:"scrollbar-none",children:e.children}),C.jsxs(We.div,{initial:!0,exit:{opacity:0},className:"fixed right-2 top-2 flex items-center gap-4",children:[C.jsxs(Yr,{className:"flex h-8 w-8 rounded-full p-1 shadow-sm ring-1 ring-zinc-200 center dark:ring-neutral-800",href:e.to,onClick:t,children:[C.jsx("i",{className:"icon-[mingcute--fullscreen-2-line] text-lg"}),C.jsx("span",{className:"sr-only",children:"Go to this link"})]}),C.jsxs("button",{className:"flex h-8 w-8 rounded-full p-1 shadow-sm ring-1 ring-zinc-200 center dark:ring-neutral-800",onClick:n,children:[C.jsx("i",{className:"icon-[mingcute--close-line] text-lg"}),C.jsx("span",{className:"sr-only",children:"Dimiss"})]})]})]})},gd=()=>{const e=Qr(),{present:t}=$o();return l.useCallback(n=>{if(e)return;const r={clickOutsideToDismiss:!0,title:"Preview",modalClassName:"relative mx-auto mt-[10vh] scrollbar-none max-w-full overflow-auto px-2 lg:max-w-[65rem] lg:p-0"};return n.startsWith("/notes/")?(requestAnimationFrame(async()=>{const s=await Xn(()=>import("./NotePreview-CSBxvseK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(o=>o.NotePreview);t({...r,CustomModalComponent:()=>C.jsx(Ur,{to:n,children:C.jsx(s,{noteId:parseInt(n.split("/").pop())})}),content:()=>null})}),!0):n.startsWith("/posts/")?(requestAnimationFrame(async()=>{const s=await Xn(()=>import("./PostPreview-Ufc-M9kZ.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19]),import.meta.url).then(d=>d.PostPreview),o=n.split("/"),i=o.pop(),a=o.pop();t({...r,CustomModalComponent:()=>C.jsx(Ur,{to:n,children:C.jsx(s,{category:a,slug:i})}),content:()=>null})}),!0):!1},[e,t])},Br="https://api.github.com",yd="/api/gh",Kn=e=>{const t=e.replace(Br,"");return Promise.any([fetch(Br+t).then(n=>{if(n.status===403)throw new Error("GitHub API rate limit exceeded");return n.json()}),fetch(yd+t).then(n=>n.json())])},vd="_contents_wztwv_23",bd="_title_wztwv_31",Ed="_desc_wztwv_43",wd="_image_wztwv_54",xd="_skeleton_wztwv_64",$d="_error_wztwv_92",ce={"card-grid":"_card-grid_wztwv_1",contents:vd,title:bd,desc:Ed,image:wd,skeleton:xd,error:$d},Gd=e=>ld()?C.jsx(zo,{placeholder:C.jsx(Sd,{}),children:C.jsx(Cd,{...e})}):null,Cd=e=>{const{id:t,source:n=ke.Self,className:r}=e,[s,o]=l.useState(!0),[i,a]=l.useState(!1),[d,f]=l.useState("about:blank"),[u,c]=l.useState(),m=gd(),g=l.useCallback(async w=>{m(d)&&ud(w)},[d]),{isValid:h,fetchFn:p}=l.useMemo(()=>Od(n,t),[n,t]),y=l.useCallback(async()=>{p&&(o(!0),await p(t,c,f).catch(w=>{console.log("fetch card info error: ",w),a(!0)}),o(!1))},[p,t]),{ref:E}=Kr({triggerOnce:!0,onChange(w){w&&y()}});if(!h)return null;const b=n==="self"?Yr:"a";return C.jsxs(b,{href:d,target:n!=="self"?"_blank":"_self",ref:E,className:An(ce["card-grid"],(s||i)&&ce.skeleton,i&&ce.error,r),onClick:g,children:[C.jsxs("span",{className:ce.contents,children:[C.jsx("span",{className:ce.title,children:u==null?void 0:u.title}),C.jsx("span",{className:ce.desc,children:u==null?void 0:u.desc})]}),(s||(u==null?void 0:u.image))&&C.jsx("span",{className:ce.image,"data-image":(u==null?void 0:u.image)||"",style:{backgroundImage:u!=null&&u.image?`url(${u.image})`:void 0}})]})},Sd=()=>C.jsxs("span",{className:An(ce["card-grid"],ce.skeleton),children:[C.jsxs("span",{className:ce.contents,children:[C.jsx("span",{className:ce.title}),C.jsx("span",{className:ce.desc})]}),C.jsx("span",{className:ce.image})]});function Od(e,t){const r={[ke.MixSpace]:zr,[ke.GHRepo]:Rd,[ke.GHCommit]:Td,[ke.GHPr]:_d,[ke.Self]:zr}[e];if(!r)return{isValid:!1,fetchFn:null};const s=r.isValid(t);return{isValid:s,fetchFn:s?r.fetch:null}}const Rd={isValid:e=>{const t=e.split("/");return t.length===2&&t[0].length>0&&t[1].length>0},fetch:async(e,t,n)=>{const[r,s]=e.split("/");try{const o=await Kn(`https://api.github.com/repos/${r}/${s}`),i=qe(o);t({title:i.name,desc:i.description,image:i.owner.avatarUrl}),n(i.htmlUrl)}catch(o){throw console.error("Error fetching GitHub data:",o),o}}},Td={isValid:e=>{const t=e.split("/");return t.length===4&&t.every(n=>n.length>0)&&t[2]==="commit"},fetch:async(e,t,n)=>{var i;const[r,s,,o]=e.split("/");try{const a=await Kn(`https://api.github.com/repos/${r}/${s}/commits/${o}`),d=qe(a);t({title:C.jsx("span",{className:"font-normal",children:d.commit.message.replace(/Signed-off-by:.+/,"")}),desc:C.jsxs("span",{className:"flex items-center space-x-5 font-mono",children:[C.jsxs("span",{className:"text-uk-green-light",children:["+",d.stats.additions]}),C.jsxs("span",{className:"text-uk-red-light",children:["-",d.stats.deletions]}),C.jsx("span",{className:"text-sm",children:d.sha.slice(0,7)}),C.jsxs("span",{className:"text-sm opacity-80",children:[r,"/",s]})]}),image:(i=d.author)==null?void 0:i.avatarUrl}),n(`https://github.com/${r}/${s}/commit/${o}`)}catch(a){throw console.error("Error fetching GitHub commit data:",a),a}}},_d={isValid:e=>{const t=e.split("/");return t.length===3&&t.every(n=>n.length>0)},fetch:async(e,t,n)=>{const[r,s,,o]=e.split("/");try{const i=await Kn(`https://api.github.com/repos/${r}/${s}/pulls/${o}`),a=qe(i);t({title:`PR: ${a.title}`,desc:C.jsxs("span",{className:"flex items-center space-x-5 font-mono",children:[C.jsxs("span",{className:"text-uk-green-light",children:["+",a.additions]}),C.jsxs("span",{className:"text-uk-red-light",children:["-",a.deletions]}),C.jsxs("span",{className:"text-sm opacity-80",children:[r,"/",s]})]}),image:a.user.avatarUrl}),n(a.htmlUrl)}catch(i){throw console.error("Error fetching GitHub PR data:",i),i}}},zr={isValid:e=>{const[t,...n]=e.split("/");return t!=="posts"&&t!=="notes"?!1:t==="posts"?n.length===2:n.length===1},fetch:async(e,t,n)=>{var o,i,a;const[r,...s]=e.split("/");try{let d={title:"",text:""};if(r==="posts"){const[f,u]=s;d=await gr.post.getPost(f,u),n(`/posts/${f}/${u}`)}else if(r==="notes"){const[f]=s;d=(await gr.note.getNoteById(+f)).data,n(`/notes/${f}`)}t({title:d.title,desc:d.summary||`${Zo(d.text).slice(0,50)}...`,image:d.cover||((o=d.meta)==null?void 0:o.cover)||((a=(i=d.images)==null?void 0:i[0])==null?void 0:a.src)})}catch(d){throw console.error("Error fetching self data:",d),d}}};export{On as $,kr as D,Gd as L,Zo as R,ke as a,cl as b,gr as c,$o as d,Ld as e,Vd as f,Yd as g,Tu as h,Kd as i,Au as j,Er as k,Pi as l,qd as m,Wd as n,er as o,Qr as p,ud as q,ol as r,Id as s,wr as t,Go as u,Oe as v}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./NotePreview-yCCpXwBc.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./Markdown-xk31dQ-T.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./Collapse-gGRmuqb3.js","./Gallery-lvvI9ksR.js","./Divider-ZvsSiSkZ.js","./Gallery-cCMf-PmV.css","./RichLink-sK7aRcsj.js","./Markdown-nufn1r_q.css","./utils-C0Upvd9p.js","./customParseFormat-q3ZbyGZe.js","./FlexText-AbEHEN8T.js","./NotePreview-N_FVGxK4.css","./PostPreview-kGe_h9w-.js","./PinIconToggle-vlWhC9Tj.js"] + __vite__mapDeps.viteFileDeps = ["./NotePreview-CSBxvseK.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./Markdown-tpcPSstc.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./Collapse-JZfrBou4.js","./Gallery-32-V3LXo.js","./Divider-sIhvLlX0.js","./Gallery-cCMf-PmV.css","./RichLink-6jHOm4uG.js","./Markdown-nufn1r_q.css","./utils-DGmE6P1M.js","./customParseFormat-ePfR8DqR.js","./FlexText-0MKUXZWJ.js","./NotePreview-N_FVGxK4.css","./PostPreview-Ufc-M9kZ.js","./PinIconToggle-EjPj0VvX.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/Markdown-xk31dQ-T.js b/assets/Markdown-tpcPSstc.js similarity index 98% rename from assets/Markdown-xk31dQ-T.js rename to assets/Markdown-tpcPSstc.js index ad308c8437..1d80308735 100644 --- a/assets/Markdown-xk31dQ-T.js +++ b/assets/Markdown-tpcPSstc.js @@ -1,4 +1,4 @@ -var gt=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var R=(e,t,n)=>(gt(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},N=(e,t,n,r)=>(gt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var B=(e,t,n)=>(gt(e,t,"access private method"),n);import{r as w,R as U,E as Ir,a as Ut,g as $r,j as d,_ as On}from"./index-Qg-bAq5J.js";import{c as Pe,a as ee}from"./helper-Oi49T1hx.js";import{m as Xt,b as Hr,al as Fr,d as Dr,M as Ur}from"./spring-hZ91AlwC.js";import{g as Br,s as An,t as qr,L as ke,a as Ie}from"./LinkCard-aLl-jjA_.js";import{i as Gr,a as Wr}from"./env-jTYMx4r5.js";import{A as Vr,C as zr}from"./Collapse-gGRmuqb3.js";import{c as $e,l as Qr,o as Kt,j as Ct,n as Xr,i as Zt,t as Kr,r as Yt,G as Pn,u as Zr,F as Yr}from"./Gallery-lvvI9ksR.js";import{i as Jr,p as es,a as ts,b as ns,c as rs,F as ss,R as In,d as os,e as is,f as as,g as cs,h as ls,j as us,k as ds,l as yt,m as fs,n as hs,o as ps,q as ms,r as gs,G as ys,s as xs}from"./RichLink-sK7aRcsj.js";import{D as $n}from"./Divider-ZvsSiSkZ.js";var Bt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},he,oe,Re,Sn,bs=(Sn=class extends Bt{constructor(){super();I(this,he,void 0);I(this,oe,void 0);I(this,Re,void 0);N(this,Re,t=>{if(!$e&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,oe)||this.setEventListener(R(this,Re))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,oe))==null||t.call(this),N(this,oe,void 0))}setEventListener(t){var n;N(this,Re,t),(n=R(this,oe))==null||n.call(this),N(this,oe,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,he)!==t&&(N(this,he,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof R(this,he)=="boolean"?R(this,he):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},he=new WeakMap,oe=new WeakMap,Re=new WeakMap,Sn),Hn=new bs,_e,ie,Me,Tn,ws=(Tn=class extends Bt{constructor(){super();I(this,_e,!0);I(this,ie,void 0);I(this,Me,void 0);N(this,Me,t=>{if(!$e&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,ie)||this.setEventListener(R(this,Me))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,ie))==null||t.call(this),N(this,ie,void 0))}setEventListener(t){var n;N(this,Me,t),(n=R(this,ie))==null||n.call(this),N(this,ie,t(this.setOnline.bind(this)))}setOnline(t){R(this,_e)!==t&&(N(this,_e,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,_e)}},_e=new WeakMap,ie=new WeakMap,Me=new WeakMap,Tn),Fn=new ws;function vs(e){return Math.min(1e3*2**e,3e4)}function Dn(e){return(e??"online")==="online"?Fn.isOnline():!0}var Un=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function za(e){return e instanceof Un}function Qa(e){let t=!1,n=0,r=!1,i,s,a;const l=new Promise((g,o)=>{s=g,a=o}),p=g=>{var o;r||(x(new Un(g)),(o=e.abort)==null||o.call(e))},h=()=>{t=!0},f=()=>{t=!1},m=()=>!Hn.isFocused()||e.networkMode!=="always"&&!Fn.isOnline(),E=g=>{var o;r||(r=!0,(o=e.onSuccess)==null||o.call(e,g),i==null||i(),s(g))},x=g=>{var o;r||(r=!0,(o=e.onError)==null||o.call(e,g),i==null||i(),a(g))},v=()=>new Promise(g=>{var o;i=c=>{const u=r||!m();return u&&g(c),u},(o=e.onPause)==null||o.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),_=()=>{if(r)return;let g;try{g=e.fn()}catch(o){g=Promise.reject(o)}Promise.resolve(g).then(E).catch(o=>{var C;if(r)return;const c=e.retry??($e?0:3),u=e.retryDelay??vs,b=typeof u=="function"?u(n,o):u,y=c===!0||typeof c=="number"&&n{if(m())return v()}).then(()=>{t?x(o):_()})})};return Dn(e.networkMode)?_():v().then(_),{promise:l,cancel:p,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:h,continueRetry:f}}function ks(){let e=[],t=0,n=f=>{f()},r=f=>{f()};const i=f=>{let m;t++;try{m=f()}finally{t--,t||l()}return m},s=f=>{t?e.push(f):Kt(()=>{n(f)})},a=f=>(...m)=>{s(()=>{f(...m)})},l=()=>{const f=e;e=[],f.length&&Kt(()=>{r(()=>{f.forEach(m=>{n(m)})})})};return{batch:i,batchCalls:a,schedule:s,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f}}}var Bn=ks(),G,$,Le,q,pe,je,Y,Ue,Se,Te,me,ge,ae,ye,xe,Ae,Be,Et,qe,Rt,Ge,_t,We,Mt,Ve,Lt,ze,jt,Qe,St,ut,qn,Nn,Cs=(Nn=class extends Bt{constructor(t,n){super();I(this,xe);I(this,Be);I(this,qe);I(this,Ge);I(this,We);I(this,Ve);I(this,ze);I(this,Qe);I(this,ut);I(this,G,void 0);I(this,$,void 0);I(this,Le,void 0);I(this,q,void 0);I(this,pe,void 0);I(this,je,void 0);I(this,Y,void 0);I(this,Ue,void 0);I(this,Se,void 0);I(this,Te,void 0);I(this,me,void 0);I(this,ge,void 0);I(this,ae,void 0);I(this,ye,void 0);N(this,$,void 0),N(this,Le,void 0),N(this,q,void 0),N(this,ye,new Set),N(this,G,t),this.options=n,N(this,Y,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,$).addObserver(this),Jt(R(this,$),this.options)?B(this,xe,Ae).call(this):this.updateResult(),B(this,We,Mt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tt(R(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tt(R(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,B(this,Ve,Lt).call(this),B(this,ze,jt).call(this),R(this,$).removeObserver(this)}setOptions(t,n){const r=this.options,i=R(this,$);if(this.options=R(this,G).defaultQueryOptions(t),Ct(r,this.options)||R(this,G).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,$),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),B(this,Qe,St).call(this);const s=this.hasListeners();s&&en(R(this,$),i,this.options,r)&&B(this,xe,Ae).call(this),this.updateResult(n),s&&(R(this,$)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&B(this,Be,Et).call(this);const a=B(this,qe,Rt).call(this);s&&(R(this,$)!==i||this.options.enabled!==r.enabled||a!==R(this,ae))&&B(this,Ge,_t).call(this,a)}getOptimisticResult(t){const n=R(this,G).getQueryCache().build(R(this,G),t),r=this.createResult(n,t);return Rs(this,r)&&(N(this,q,r),N(this,je,this.options),N(this,pe,R(this,$).state)),r}getCurrentResult(){return R(this,q)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(R(this,ye).add(r),t[r])})}),n}getCurrentQuery(){return R(this,$)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=R(this,G).defaultQueryOptions(t),r=R(this,G).getQueryCache().build(R(this,G),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return B(this,xe,Ae).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,q)))}createResult(t,n){var C;const r=R(this,$),i=this.options,s=R(this,q),a=R(this,pe),l=R(this,je),h=t!==r?t.state:R(this,Le),{state:f}=t;let{error:m,errorUpdatedAt:E,fetchStatus:x,status:v}=f,_=!1,g;if(n._optimisticResults){const k=this.hasListeners(),M=!k&&Jt(t,n),j=k&&en(t,r,n,i);(M||j)&&(x=Dn(t.options.networkMode)?"fetching":"paused",f.dataUpdatedAt||(v="pending")),n._optimisticResults==="isRestoring"&&(x="idle")}if(n.select&&typeof f.data<"u")if(s&&f.data===(a==null?void 0:a.data)&&n.select===R(this,Ue))g=R(this,Se);else try{N(this,Ue,n.select),g=n.select(f.data),g=Yt(s==null?void 0:s.data,g,n),N(this,Se,g),N(this,Y,null)}catch(k){N(this,Y,k)}else g=f.data;if(typeof n.placeholderData<"u"&&typeof g>"u"&&v==="pending"){let k;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))k=s.data;else if(k=typeof n.placeholderData=="function"?n.placeholderData((C=R(this,Te))==null?void 0:C.state.data,R(this,Te)):n.placeholderData,n.select&&typeof k<"u")try{k=n.select(k),N(this,Y,null)}catch(M){N(this,Y,M)}typeof k<"u"&&(v="success",g=Yt(s==null?void 0:s.data,k,n),_=!0)}R(this,Y)&&(m=R(this,Y),g=R(this,Se),E=Date.now(),v="error");const o=x==="fetching",c=v==="pending",u=v==="error",b=c&&o;return{status:v,fetchStatus:x,isPending:c,isSuccess:v==="success",isError:u,isInitialLoading:b,isLoading:b,data:g,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>h.dataUpdateCount||f.errorUpdateCount>h.errorUpdateCount,isFetching:o,isRefetching:o&&!c,isLoadingError:u&&f.dataUpdatedAt===0,isPaused:x==="paused",isPlaceholderData:_,isRefetchError:u&&f.dataUpdatedAt!==0,isStale:qt(t,n),refetch:this.refetch}}updateResult(t){const n=R(this,q),r=this.createResult(R(this,$),this.options);if(N(this,pe,R(this,$).state),N(this,je,this.options),R(this,pe).data!==void 0&&N(this,Te,R(this,$)),Ct(r,n))return;N(this,q,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!R(this,ye).size)return!0;const p=new Set(l??R(this,ye));return this.options.throwOnError&&p.add("error"),Object.keys(R(this,q)).some(h=>{const f=h;return R(this,q)[f]!==n[f]&&p.has(f)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),B(this,ut,qn).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&B(this,We,Mt).call(this)}},G=new WeakMap,$=new WeakMap,Le=new WeakMap,q=new WeakMap,pe=new WeakMap,je=new WeakMap,Y=new WeakMap,Ue=new WeakMap,Se=new WeakMap,Te=new WeakMap,me=new WeakMap,ge=new WeakMap,ae=new WeakMap,ye=new WeakMap,xe=new WeakSet,Ae=function(t){B(this,Qe,St).call(this);let n=R(this,$).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Xr)),n},Be=new WeakSet,Et=function(){if(B(this,Ve,Lt).call(this),$e||R(this,q).isStale||!Zt(this.options.staleTime))return;const n=Kr(R(this,q).dataUpdatedAt,this.options.staleTime)+1;N(this,me,setTimeout(()=>{R(this,q).isStale||this.updateResult()},n))},qe=new WeakSet,Rt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,$)):this.options.refetchInterval)??!1},Ge=new WeakSet,_t=function(t){B(this,ze,jt).call(this),N(this,ae,t),!($e||this.options.enabled===!1||!Zt(R(this,ae))||R(this,ae)===0)&&N(this,ge,setInterval(()=>{(this.options.refetchIntervalInBackground||Hn.isFocused())&&B(this,xe,Ae).call(this)},R(this,ae)))},We=new WeakSet,Mt=function(){B(this,Be,Et).call(this),B(this,Ge,_t).call(this,B(this,qe,Rt).call(this))},Ve=new WeakSet,Lt=function(){R(this,me)&&(clearTimeout(R(this,me)),N(this,me,void 0))},ze=new WeakSet,jt=function(){R(this,ge)&&(clearInterval(R(this,ge)),N(this,ge,void 0))},Qe=new WeakSet,St=function(){const t=R(this,G).getQueryCache().build(R(this,G),this.options);if(t===R(this,$))return;const n=R(this,$);N(this,$,t),N(this,Le,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ut=new WeakSet,qn=function(t){Bn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(R(this,q))}),R(this,G).getQueryCache().notify({query:R(this,$),type:"observerResultsUpdated"})})},Nn);function Es(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jt(e,t){return Es(e,t)||e.state.dataUpdatedAt>0&&Tt(e,t,t.refetchOnMount)}function Tt(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qt(e,t)}return!1}function en(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&qt(e,n)}function qt(e,t){return e.isStaleByTime(t.staleTime)}function Rs(e,t){return!Ct(e.getCurrentResult(),t)}var Gn=w.createContext(void 0),_s=e=>{const t=w.useContext(Gn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Xa=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.createElement(Gn.Provider,{value:e},t)),Wn=w.createContext(!1),Ms=()=>w.useContext(Wn);Wn.Provider;function Ls(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var js=w.createContext(Ls()),Ss=()=>w.useContext(js);function Ts(e,t){return typeof e=="function"?e(...t):!!e}var Ns=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Os=e=>{w.useEffect(()=>{e.clearReset()},[e])},As=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Ts(n,[e.error,r]),Ps=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Is=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$s=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Hs(e,t,n){const r=_s(n),i=Ms(),s=Ss(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",Ps(a),Ns(a,s),Os(s);const[l]=w.useState(()=>new t(r,a)),p=l.getOptimisticResult(a);if(w.useSyncExternalStore(w.useCallback(h=>{const f=i?()=>{}:l.subscribe(Bn.batchCalls(h));return l.updateResult(),f},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),Is(a,p))throw l.setOptions(a,{listeners:!1}),$s(a,l,s);if(As({result:p,errorResetBoundary:s,throwOnError:a.throwOnError,query:l.getCurrentQuery()}))throw p.error;return a.notifyOnChangeProps?p:l.trackResult(p)}function Fs(e,t){return Hs(e,Cs,t)}const Ds=()=>({push(e){location.pathname=e}}),Ka=()=>location.pathname,st=["light","dark"],Gt="(prefers-color-scheme: dark)",Us=typeof window>"u",Wt=w.createContext(void 0),Bs={setTheme:e=>{},themes:[]},qs=()=>{var e;return(e=w.useContext(Wt))!==null&&e!==void 0?e:Bs},Za=e=>w.useContext(Wt)?U.createElement(w.Fragment,null,e.children):U.createElement(Ws,e),Gs=["light","dark"],Ws=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:s=Gs,defaultTheme:a=n?"system":"light",attribute:l="data-theme",value:p,children:h,nonce:f})=>{const[m,E]=w.useState(()=>tn(i,a)),[x,v]=w.useState(()=>tn(i)),_=p?Object.values(p):s,g=w.useCallback(b=>{let y=b;if(!y)return;b==="system"&&n&&(y=nn());const C=p?p[y]:y,k=t?zs():null,M=document.documentElement;if(l==="class"?(M.classList.remove(..._),C&&M.classList.add(C)):C?M.setAttribute(l,C):M.removeAttribute(l),r){const j=st.includes(a)?a:null,T=st.includes(y)?y:j;M.style.colorScheme=T}k==null||k()},[]),o=w.useCallback(b=>{E(b);try{localStorage.setItem(i,b)}catch{}},[e]),c=w.useCallback(b=>{const y=nn(b);v(y),m==="system"&&n&&!e&&g("system")},[m,e]);w.useEffect(()=>{const b=window.matchMedia(Gt);return b.addListener(c),c(b),()=>b.removeListener(c)},[c]),w.useEffect(()=>{const b=y=>{y.key===i&&o(y.newValue||a)};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[o]),w.useEffect(()=>{g(e??m)},[e,m]);const u=w.useMemo(()=>({theme:m,setTheme:o,forcedTheme:e,resolvedTheme:m==="system"?x:m,themes:n?[...s,"system"]:s,systemTheme:n?x:void 0}),[m,o,e,x,n,s]);return U.createElement(Wt.Provider,{value:u},U.createElement(Vs,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:s,defaultTheme:a,attribute:l,value:p,children:h,attrs:_,nonce:f}),h)},Vs=w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:a,attrs:l,nonce:p})=>{const h=s==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;c.remove(${l.map(v=>`'${v}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=i?st.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",E=(v,_=!1,g=!0)=>{const o=a?a[v]:v,c=_?v+"|| ''":`'${o}'`;let u="";return i&&g&&!_&&st.includes(v)&&(u+=`d.style.colorScheme = '${v}';`),n==="class"?u+=_||o?`c.add(${c})`:"null":o&&(u+=`d[s](n,${c})`),u},x=e?`!function(){${f}${E(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${h})){var t='${Gt}',m=window.matchMedia(t);if(m.media!==t||m.matches){${E("dark")}}else{${E("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${E(a?"x[e]":"e",!0)}}${h?"":"else{"+E(s,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${E(a?"x[e]":"e",!0)}}else{${E(s,!1,!1)};}${m}}catch(t){}}();`;return U.createElement("script",{nonce:p,dangerouslySetInnerHTML:{__html:x}})},()=>!0),tn=(e,t)=>{if(Us)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},zs=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},nn=e=>(e||(e=window.matchMedia(Gt)),e.matches?"dark":"light");function se(){return(se=Object.assign||function(e){for(var t=1;t",lt:"<",nbsp:" ",quot:"“"},Xs=["style","script"],Ks=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Zs=/mailto:/i,Ys=/\n{2,}$/,Vn=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Js=/^ *> ?/gm,eo=/^ {2,}\n/,to=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,zn=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Qn=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,no=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,ro=/^(?:\n *)*\n/,so=/\r\n?/g,oo=/^\[\^([^\]]+)](:.*)\n/,io=/^\[\^([^\]]+)]/,ao=/\f/g,co=/^\s*?\[(x|\s)\]/,Xn=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Kn=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Nt=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,lo=/&([a-zA-Z]+);/g,Zn=/^)/,uo=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ot=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,fo=/^\{.*\}$/,ho=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,po=/^<([^ >]+@[^ >]+)>/,mo=/^<([^ >]+:\/[^ >]+)>/,go=/-([a-z])?/gi,Yn=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,yo=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,xo=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,bo=/^\[([^\]]*)\] ?\[([^\]]*)\]/,wo=/(\[|\])/g,vo=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ko=/\t/g,Co=/^ *\| */,Eo=/(^ *\||\| *$)/g,Ro=/ *$/,_o=/^ *:-+: *$/,Mo=/^ *:-+ *$/,Lo=/^ *-+: *$/,jo=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,So=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,To=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,No=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Oo=/^\\([^0-9A-Za-z\s])/,Ao=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Po=/(^\n+|\n+$|\s+$)/g,Io=/^([ \t]*)/,$o=/\\([^\\])/g,an=/ *\n+$/,Ho=/(?:^|\n)( *)$/;function Jn(e){return"( *)("+(e===1?"(?:\\d+\\.)":"(?:[*+-])")+") +"}const er=Jn(1),tr=Jn(2);function nr(e){return new RegExp("^"+(e===1?er:tr))}const Fo=nr(1),Do=nr(2);function rr(e){return new RegExp("^"+(e===1?er:tr)+"[^\\n]*(?:\\n(?!\\1"+(e===1?"(?:\\d+\\.)":"(?:[*+-])")+" )[^\\n]*)*(\\n|$)","gm")}const sr=rr(1),or=rr(2);function ir(e){const t=e===1?"(?:\\d+\\.)":"(?:[*+-])";return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ar=ir(1),cr=ir(2);function cn(e,t){const n=t===1,r=n?ar:cr,i=n?sr:or,s=n?Fo:Do;return{match(a,l,p){const h=Ho.exec(p);return h&&(l.list||!l.inline&&!l.simple)?r.exec(a=h[1]+a):null},order:S.HIGH,parse(a,l,p){const h=n?+a[2]:void 0,f=a[0].replace(Ys,` +var gt=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var R=(e,t,n)=>(gt(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},N=(e,t,n,r)=>(gt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var B=(e,t,n)=>(gt(e,t,"access private method"),n);import{r as w,R as U,E as Ir,a as Ut,g as $r,j as d,_ as On}from"./index-HRfeE_7B.js";import{c as Pe,a as ee}from"./helper-Oi49T1hx.js";import{m as Xt,b as Hr,al as Fr,d as Dr,M as Ur}from"./spring-0AHu48BV.js";import{g as Br,s as An,t as qr,L as ke,a as Ie}from"./LinkCard-gCgkDO82.js";import{i as Gr,a as Wr}from"./env-jTYMx4r5.js";import{A as Vr,C as zr}from"./Collapse-JZfrBou4.js";import{c as $e,l as Qr,o as Kt,j as Ct,n as Xr,i as Zt,t as Kr,r as Yt,G as Pn,u as Zr,F as Yr}from"./Gallery-32-V3LXo.js";import{i as Jr,p as es,a as ts,b as ns,c as rs,F as ss,R as In,d as os,e as is,f as as,g as cs,h as ls,j as us,k as ds,l as yt,m as fs,n as hs,o as ps,q as ms,r as gs,G as ys,s as xs}from"./RichLink-6jHOm4uG.js";import{D as $n}from"./Divider-sIhvLlX0.js";var Bt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},he,oe,Re,Sn,bs=(Sn=class extends Bt{constructor(){super();I(this,he,void 0);I(this,oe,void 0);I(this,Re,void 0);N(this,Re,t=>{if(!$e&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,oe)||this.setEventListener(R(this,Re))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,oe))==null||t.call(this),N(this,oe,void 0))}setEventListener(t){var n;N(this,Re,t),(n=R(this,oe))==null||n.call(this),N(this,oe,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,he)!==t&&(N(this,he,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof R(this,he)=="boolean"?R(this,he):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},he=new WeakMap,oe=new WeakMap,Re=new WeakMap,Sn),Hn=new bs,_e,ie,Me,Tn,ws=(Tn=class extends Bt{constructor(){super();I(this,_e,!0);I(this,ie,void 0);I(this,Me,void 0);N(this,Me,t=>{if(!$e&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,ie)||this.setEventListener(R(this,Me))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,ie))==null||t.call(this),N(this,ie,void 0))}setEventListener(t){var n;N(this,Me,t),(n=R(this,ie))==null||n.call(this),N(this,ie,t(this.setOnline.bind(this)))}setOnline(t){R(this,_e)!==t&&(N(this,_e,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,_e)}},_e=new WeakMap,ie=new WeakMap,Me=new WeakMap,Tn),Fn=new ws;function vs(e){return Math.min(1e3*2**e,3e4)}function Dn(e){return(e??"online")==="online"?Fn.isOnline():!0}var Un=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function za(e){return e instanceof Un}function Qa(e){let t=!1,n=0,r=!1,i,s,a;const l=new Promise((g,o)=>{s=g,a=o}),p=g=>{var o;r||(x(new Un(g)),(o=e.abort)==null||o.call(e))},h=()=>{t=!0},f=()=>{t=!1},m=()=>!Hn.isFocused()||e.networkMode!=="always"&&!Fn.isOnline(),E=g=>{var o;r||(r=!0,(o=e.onSuccess)==null||o.call(e,g),i==null||i(),s(g))},x=g=>{var o;r||(r=!0,(o=e.onError)==null||o.call(e,g),i==null||i(),a(g))},v=()=>new Promise(g=>{var o;i=c=>{const u=r||!m();return u&&g(c),u},(o=e.onPause)==null||o.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),_=()=>{if(r)return;let g;try{g=e.fn()}catch(o){g=Promise.reject(o)}Promise.resolve(g).then(E).catch(o=>{var C;if(r)return;const c=e.retry??($e?0:3),u=e.retryDelay??vs,b=typeof u=="function"?u(n,o):u,y=c===!0||typeof c=="number"&&n{if(m())return v()}).then(()=>{t?x(o):_()})})};return Dn(e.networkMode)?_():v().then(_),{promise:l,cancel:p,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:h,continueRetry:f}}function ks(){let e=[],t=0,n=f=>{f()},r=f=>{f()};const i=f=>{let m;t++;try{m=f()}finally{t--,t||l()}return m},s=f=>{t?e.push(f):Kt(()=>{n(f)})},a=f=>(...m)=>{s(()=>{f(...m)})},l=()=>{const f=e;e=[],f.length&&Kt(()=>{r(()=>{f.forEach(m=>{n(m)})})})};return{batch:i,batchCalls:a,schedule:s,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f}}}var Bn=ks(),G,$,Le,q,pe,je,Y,Ue,Se,Te,me,ge,ae,ye,xe,Ae,Be,Et,qe,Rt,Ge,_t,We,Mt,Ve,Lt,ze,jt,Qe,St,ut,qn,Nn,Cs=(Nn=class extends Bt{constructor(t,n){super();I(this,xe);I(this,Be);I(this,qe);I(this,Ge);I(this,We);I(this,Ve);I(this,ze);I(this,Qe);I(this,ut);I(this,G,void 0);I(this,$,void 0);I(this,Le,void 0);I(this,q,void 0);I(this,pe,void 0);I(this,je,void 0);I(this,Y,void 0);I(this,Ue,void 0);I(this,Se,void 0);I(this,Te,void 0);I(this,me,void 0);I(this,ge,void 0);I(this,ae,void 0);I(this,ye,void 0);N(this,$,void 0),N(this,Le,void 0),N(this,q,void 0),N(this,ye,new Set),N(this,G,t),this.options=n,N(this,Y,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,$).addObserver(this),Jt(R(this,$),this.options)?B(this,xe,Ae).call(this):this.updateResult(),B(this,We,Mt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tt(R(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tt(R(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,B(this,Ve,Lt).call(this),B(this,ze,jt).call(this),R(this,$).removeObserver(this)}setOptions(t,n){const r=this.options,i=R(this,$);if(this.options=R(this,G).defaultQueryOptions(t),Ct(r,this.options)||R(this,G).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,$),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),B(this,Qe,St).call(this);const s=this.hasListeners();s&&en(R(this,$),i,this.options,r)&&B(this,xe,Ae).call(this),this.updateResult(n),s&&(R(this,$)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&B(this,Be,Et).call(this);const a=B(this,qe,Rt).call(this);s&&(R(this,$)!==i||this.options.enabled!==r.enabled||a!==R(this,ae))&&B(this,Ge,_t).call(this,a)}getOptimisticResult(t){const n=R(this,G).getQueryCache().build(R(this,G),t),r=this.createResult(n,t);return Rs(this,r)&&(N(this,q,r),N(this,je,this.options),N(this,pe,R(this,$).state)),r}getCurrentResult(){return R(this,q)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(R(this,ye).add(r),t[r])})}),n}getCurrentQuery(){return R(this,$)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=R(this,G).defaultQueryOptions(t),r=R(this,G).getQueryCache().build(R(this,G),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return B(this,xe,Ae).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,q)))}createResult(t,n){var C;const r=R(this,$),i=this.options,s=R(this,q),a=R(this,pe),l=R(this,je),h=t!==r?t.state:R(this,Le),{state:f}=t;let{error:m,errorUpdatedAt:E,fetchStatus:x,status:v}=f,_=!1,g;if(n._optimisticResults){const k=this.hasListeners(),M=!k&&Jt(t,n),j=k&&en(t,r,n,i);(M||j)&&(x=Dn(t.options.networkMode)?"fetching":"paused",f.dataUpdatedAt||(v="pending")),n._optimisticResults==="isRestoring"&&(x="idle")}if(n.select&&typeof f.data<"u")if(s&&f.data===(a==null?void 0:a.data)&&n.select===R(this,Ue))g=R(this,Se);else try{N(this,Ue,n.select),g=n.select(f.data),g=Yt(s==null?void 0:s.data,g,n),N(this,Se,g),N(this,Y,null)}catch(k){N(this,Y,k)}else g=f.data;if(typeof n.placeholderData<"u"&&typeof g>"u"&&v==="pending"){let k;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))k=s.data;else if(k=typeof n.placeholderData=="function"?n.placeholderData((C=R(this,Te))==null?void 0:C.state.data,R(this,Te)):n.placeholderData,n.select&&typeof k<"u")try{k=n.select(k),N(this,Y,null)}catch(M){N(this,Y,M)}typeof k<"u"&&(v="success",g=Yt(s==null?void 0:s.data,k,n),_=!0)}R(this,Y)&&(m=R(this,Y),g=R(this,Se),E=Date.now(),v="error");const o=x==="fetching",c=v==="pending",u=v==="error",b=c&&o;return{status:v,fetchStatus:x,isPending:c,isSuccess:v==="success",isError:u,isInitialLoading:b,isLoading:b,data:g,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>h.dataUpdateCount||f.errorUpdateCount>h.errorUpdateCount,isFetching:o,isRefetching:o&&!c,isLoadingError:u&&f.dataUpdatedAt===0,isPaused:x==="paused",isPlaceholderData:_,isRefetchError:u&&f.dataUpdatedAt!==0,isStale:qt(t,n),refetch:this.refetch}}updateResult(t){const n=R(this,q),r=this.createResult(R(this,$),this.options);if(N(this,pe,R(this,$).state),N(this,je,this.options),R(this,pe).data!==void 0&&N(this,Te,R(this,$)),Ct(r,n))return;N(this,q,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!R(this,ye).size)return!0;const p=new Set(l??R(this,ye));return this.options.throwOnError&&p.add("error"),Object.keys(R(this,q)).some(h=>{const f=h;return R(this,q)[f]!==n[f]&&p.has(f)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),B(this,ut,qn).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&B(this,We,Mt).call(this)}},G=new WeakMap,$=new WeakMap,Le=new WeakMap,q=new WeakMap,pe=new WeakMap,je=new WeakMap,Y=new WeakMap,Ue=new WeakMap,Se=new WeakMap,Te=new WeakMap,me=new WeakMap,ge=new WeakMap,ae=new WeakMap,ye=new WeakMap,xe=new WeakSet,Ae=function(t){B(this,Qe,St).call(this);let n=R(this,$).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Xr)),n},Be=new WeakSet,Et=function(){if(B(this,Ve,Lt).call(this),$e||R(this,q).isStale||!Zt(this.options.staleTime))return;const n=Kr(R(this,q).dataUpdatedAt,this.options.staleTime)+1;N(this,me,setTimeout(()=>{R(this,q).isStale||this.updateResult()},n))},qe=new WeakSet,Rt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,$)):this.options.refetchInterval)??!1},Ge=new WeakSet,_t=function(t){B(this,ze,jt).call(this),N(this,ae,t),!($e||this.options.enabled===!1||!Zt(R(this,ae))||R(this,ae)===0)&&N(this,ge,setInterval(()=>{(this.options.refetchIntervalInBackground||Hn.isFocused())&&B(this,xe,Ae).call(this)},R(this,ae)))},We=new WeakSet,Mt=function(){B(this,Be,Et).call(this),B(this,Ge,_t).call(this,B(this,qe,Rt).call(this))},Ve=new WeakSet,Lt=function(){R(this,me)&&(clearTimeout(R(this,me)),N(this,me,void 0))},ze=new WeakSet,jt=function(){R(this,ge)&&(clearInterval(R(this,ge)),N(this,ge,void 0))},Qe=new WeakSet,St=function(){const t=R(this,G).getQueryCache().build(R(this,G),this.options);if(t===R(this,$))return;const n=R(this,$);N(this,$,t),N(this,Le,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ut=new WeakSet,qn=function(t){Bn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(R(this,q))}),R(this,G).getQueryCache().notify({query:R(this,$),type:"observerResultsUpdated"})})},Nn);function Es(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jt(e,t){return Es(e,t)||e.state.dataUpdatedAt>0&&Tt(e,t,t.refetchOnMount)}function Tt(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qt(e,t)}return!1}function en(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&qt(e,n)}function qt(e,t){return e.isStaleByTime(t.staleTime)}function Rs(e,t){return!Ct(e.getCurrentResult(),t)}var Gn=w.createContext(void 0),_s=e=>{const t=w.useContext(Gn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Xa=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.createElement(Gn.Provider,{value:e},t)),Wn=w.createContext(!1),Ms=()=>w.useContext(Wn);Wn.Provider;function Ls(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var js=w.createContext(Ls()),Ss=()=>w.useContext(js);function Ts(e,t){return typeof e=="function"?e(...t):!!e}var Ns=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Os=e=>{w.useEffect(()=>{e.clearReset()},[e])},As=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Ts(n,[e.error,r]),Ps=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Is=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$s=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Hs(e,t,n){const r=_s(n),i=Ms(),s=Ss(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",Ps(a),Ns(a,s),Os(s);const[l]=w.useState(()=>new t(r,a)),p=l.getOptimisticResult(a);if(w.useSyncExternalStore(w.useCallback(h=>{const f=i?()=>{}:l.subscribe(Bn.batchCalls(h));return l.updateResult(),f},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),Is(a,p))throw l.setOptions(a,{listeners:!1}),$s(a,l,s);if(As({result:p,errorResetBoundary:s,throwOnError:a.throwOnError,query:l.getCurrentQuery()}))throw p.error;return a.notifyOnChangeProps?p:l.trackResult(p)}function Fs(e,t){return Hs(e,Cs,t)}const Ds=()=>({push(e){location.pathname=e}}),Ka=()=>location.pathname,st=["light","dark"],Gt="(prefers-color-scheme: dark)",Us=typeof window>"u",Wt=w.createContext(void 0),Bs={setTheme:e=>{},themes:[]},qs=()=>{var e;return(e=w.useContext(Wt))!==null&&e!==void 0?e:Bs},Za=e=>w.useContext(Wt)?U.createElement(w.Fragment,null,e.children):U.createElement(Ws,e),Gs=["light","dark"],Ws=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:s=Gs,defaultTheme:a=n?"system":"light",attribute:l="data-theme",value:p,children:h,nonce:f})=>{const[m,E]=w.useState(()=>tn(i,a)),[x,v]=w.useState(()=>tn(i)),_=p?Object.values(p):s,g=w.useCallback(b=>{let y=b;if(!y)return;b==="system"&&n&&(y=nn());const C=p?p[y]:y,k=t?zs():null,M=document.documentElement;if(l==="class"?(M.classList.remove(..._),C&&M.classList.add(C)):C?M.setAttribute(l,C):M.removeAttribute(l),r){const j=st.includes(a)?a:null,T=st.includes(y)?y:j;M.style.colorScheme=T}k==null||k()},[]),o=w.useCallback(b=>{E(b);try{localStorage.setItem(i,b)}catch{}},[e]),c=w.useCallback(b=>{const y=nn(b);v(y),m==="system"&&n&&!e&&g("system")},[m,e]);w.useEffect(()=>{const b=window.matchMedia(Gt);return b.addListener(c),c(b),()=>b.removeListener(c)},[c]),w.useEffect(()=>{const b=y=>{y.key===i&&o(y.newValue||a)};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[o]),w.useEffect(()=>{g(e??m)},[e,m]);const u=w.useMemo(()=>({theme:m,setTheme:o,forcedTheme:e,resolvedTheme:m==="system"?x:m,themes:n?[...s,"system"]:s,systemTheme:n?x:void 0}),[m,o,e,x,n,s]);return U.createElement(Wt.Provider,{value:u},U.createElement(Vs,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:s,defaultTheme:a,attribute:l,value:p,children:h,attrs:_,nonce:f}),h)},Vs=w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:a,attrs:l,nonce:p})=>{const h=s==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;c.remove(${l.map(v=>`'${v}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=i?st.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",E=(v,_=!1,g=!0)=>{const o=a?a[v]:v,c=_?v+"|| ''":`'${o}'`;let u="";return i&&g&&!_&&st.includes(v)&&(u+=`d.style.colorScheme = '${v}';`),n==="class"?u+=_||o?`c.add(${c})`:"null":o&&(u+=`d[s](n,${c})`),u},x=e?`!function(){${f}${E(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${h})){var t='${Gt}',m=window.matchMedia(t);if(m.media!==t||m.matches){${E("dark")}}else{${E("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${E(a?"x[e]":"e",!0)}}${h?"":"else{"+E(s,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${E(a?"x[e]":"e",!0)}}else{${E(s,!1,!1)};}${m}}catch(t){}}();`;return U.createElement("script",{nonce:p,dangerouslySetInnerHTML:{__html:x}})},()=>!0),tn=(e,t)=>{if(Us)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},zs=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},nn=e=>(e||(e=window.matchMedia(Gt)),e.matches?"dark":"light");function se(){return(se=Object.assign||function(e){for(var t=1;t",lt:"<",nbsp:" ",quot:"“"},Xs=["style","script"],Ks=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Zs=/mailto:/i,Ys=/\n{2,}$/,Vn=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Js=/^ *> ?/gm,eo=/^ {2,}\n/,to=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,zn=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Qn=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,no=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,ro=/^(?:\n *)*\n/,so=/\r\n?/g,oo=/^\[\^([^\]]+)](:.*)\n/,io=/^\[\^([^\]]+)]/,ao=/\f/g,co=/^\s*?\[(x|\s)\]/,Xn=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Kn=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Nt=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,lo=/&([a-zA-Z]+);/g,Zn=/^)/,uo=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ot=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,fo=/^\{.*\}$/,ho=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,po=/^<([^ >]+@[^ >]+)>/,mo=/^<([^ >]+:\/[^ >]+)>/,go=/-([a-z])?/gi,Yn=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,yo=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,xo=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,bo=/^\[([^\]]*)\] ?\[([^\]]*)\]/,wo=/(\[|\])/g,vo=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ko=/\t/g,Co=/^ *\| */,Eo=/(^ *\||\| *$)/g,Ro=/ *$/,_o=/^ *:-+: *$/,Mo=/^ *:-+ *$/,Lo=/^ *-+: *$/,jo=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,So=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,To=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,No=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Oo=/^\\([^0-9A-Za-z\s])/,Ao=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Po=/(^\n+|\n+$|\s+$)/g,Io=/^([ \t]*)/,$o=/\\([^\\])/g,an=/ *\n+$/,Ho=/(?:^|\n)( *)$/;function Jn(e){return"( *)("+(e===1?"(?:\\d+\\.)":"(?:[*+-])")+") +"}const er=Jn(1),tr=Jn(2);function nr(e){return new RegExp("^"+(e===1?er:tr))}const Fo=nr(1),Do=nr(2);function rr(e){return new RegExp("^"+(e===1?er:tr)+"[^\\n]*(?:\\n(?!\\1"+(e===1?"(?:\\d+\\.)":"(?:[*+-])")+" )[^\\n]*)*(\\n|$)","gm")}const sr=rr(1),or=rr(2);function ir(e){const t=e===1?"(?:\\d+\\.)":"(?:[*+-])";return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ar=ir(1),cr=ir(2);function cn(e,t){const n=t===1,r=n?ar:cr,i=n?sr:or,s=n?Fo:Do;return{match(a,l,p){const h=Ho.exec(p);return h&&(l.list||!l.inline&&!l.simple)?r.exec(a=h[1]+a):null},order:S.HIGH,parse(a,l,p){const h=n?+a[2]:void 0,f=a[0].replace(Ys,` `).match(i);let m=!1;return{items:f.map(function(E,x){const v=s.exec(E)[0].length,_=new RegExp("^ {1,"+v+"}","gm"),g=E.replace(_,"").replace(s,""),o=x===f.length-1,c=g.indexOf(` `)!==-1||o&&m;m=c;const u=p.inline,b=p.list;let y;p.list=!0,c?(p.inline=!1,y=g.replace(an,` @@ -17,10 +17,10 @@ var gt=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var R=(e,t,n)=>(gt(e `),r=[];for(const i of n){if(!i.startsWith("!")&&ta(i)){r.push({url:i,name:i});continue}const s=t.exec(i);if(!s)continue;const[,a,l,p]=s;r.push({name:a,url:l,footnote:p})}return r},ta=e=>{try{new URL(e)}catch{return!1}return!0},na=["gallery","banner","carousel","warn","error","danger","info","success","warning","note"].join("|"),ra={match:X(new RegExp(`^\\s*::: *(?(${na})) *({(?(.*?))})? * (?[\\s\\S]+?)\\s*::: *(?: *)+ -?`)),order:S.MED,parse(e){const{groups:t}=e;return{...t}},react(e,t,n){const{name:r,content:i,params:s}=e;switch(r){case"carousel":case"gallery":return d.jsx(Pn,{images:ea(i)},n==null?void 0:n.key);case"warn":case"error":case"danger":case"info":case"note":case"success":case"warning":{const a={warning:"warn",danger:"error"};return d.jsx(Mn,{type:r||a[r]||"info",className:"my-4",children:d.jsx(De,{value:i,allowsScript:!0,className:"w-full [&>p:first-child]:mt-0"})},n==null?void 0:n.key)}case"banner":{if(!s)break;return d.jsx(Mn,{type:s,className:"my-4",children:d.jsx(De,{value:i,allowsScript:!0,className:"w-full [&>p:first-child]:mt-0"})},n==null?void 0:n.key)}}return d.jsx("div",{children:d.jsx("p",{children:i})},n==null?void 0:n.key)}},sa={match:V(/^\+\+((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\+\+/),order:S.LOW,parse:be,react(e,t,n){return d.jsx("ins",{children:t(e.content,n)},n==null?void 0:n.key)}},Je={},re={};function nt(e){return new Promise((t,n)=>{const r=Je[e];if(r==="loaded")return t(null);if(r==="loading"){re[e]=re[e]?[...re[e],[t,n]]:[[t,n]];return}const i=document.createElement("script");i.src=e,i.crossOrigin="anonymous",Je[e]="loading",i.onload=function(){Je[e]="loaded",t(null),re[e]&&(re[e].forEach(([s])=>{s(null)}),delete re[e])},i.onerror=function(s){this.onerror=this.onload=null,delete Je[e],re[e].forEach(([,a])=>{a(s)}),delete re[e],n(s)},document.head.appendChild(i)})}const ve=new Map;function Ft(e){if(ve.has(e)){const n=ve.get(e);return{$link:n,remove:()=>{n.parentNode&&n.parentNode.removeChild(n),ve.delete(e)}}}const t=document.createElement("link");return t.href=e,t.rel="stylesheet",t.type="text/css",t.crossOrigin="anonymous",ve.set(e,t),t.onerror=()=>{t.onerror=null,ve.delete(e)},document.head.appendChild(t),{remove:()=>{t.parentNode&&t.parentNode.removeChild(t),ve.delete(e)},$link:t}}const oa=U.useInsertionEffect||U.useEffect,ia={match:V(/^\$\s{0,}((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\s{0,}\$/),order:S.LOW,parse:be,react(e,t,n){try{const r=e.content.map(i=>i.content).join("");return d.jsx(aa,{children:r},n==null?void 0:n.key)}catch{return null}}},aa=e=>{const{children:t}=e,[n,r]=w.useState("");return oa(()=>{Ft("https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.15.2/katex.min.css"),nt("https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.15.2/katex.min.js").then(()=>{const i=window.katex.renderToString(t);r(i)})},[]),d.jsx("span",{dangerouslySetInnerHTML:{__html:n}})},ca={match:V(/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/),order:S.LOW,parse:be,react(e,t,n){return d.jsx("mark",{className:"rounded-md bg-always-yellow-400 bg-opacity-80 px-1 text-black",children:d.jsx("span",{children:t(e.content,n)})},n==null?void 0:n.key)}},la={match:V(/^(\[(?.*?)\])?\{((?(GH)|(TW)|(TG))@(?\w+\b))\}\s?(?!\[.*?\])/),order:S.MIN,parse(e){const{groups:t}=e;return t?{content:{...t},type:"mention"}:{}},react(e,t,n){const{content:r}=e;if(!r)return null;const{prefix:i,name:s,displayName:a}=r;return s?d.jsx(In,{name:a||s,source:i},n==null?void 0:n.key):null}},ua={match:V(/^\|\|((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\|\|/),order:S.LOW,parse:be,react(e,t,n){return d.jsx("del",{className:"spoiler",title:"你知道的太多了",children:t(e.content,n)},n==null?void 0:n.key)}};function da(e){return d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[d.jsx("path",{fill:"currentColor",d:"M5.7 6.71a.996.996 0 0 0 0 1.41L9.58 12L5.7 15.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0z"}),d.jsx("path",{fill:"currentColor",d:"M12.29 6.71a.996.996 0 0 0 0 1.41L16.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01z"})]})}const fa=e=>{const[t,n]=w.useState(!1),r=e.children[0],i=An();w.useLayoutEffect(()=>{i&&n(!0)},[i]);const s=w.useCallback(()=>{n(a=>!a)},[]);return d.jsxs("div",{className:"my-2",children:[d.jsxs("button",{className:"mb-2 flex cursor-pointer items-center pl-2",onClick:s,children:[d.jsx("i",{className:ee("icon-[mingcute--align-arrow-down-line] mr-2 transform transition-transform duration-500",!t&&"-rotate-90"),children:d.jsx(da,{})}),r]}),d.jsx(zr,{withBackground:!0,isOpened:t,className:"my-2",children:d.jsx("div",{className:ee(t?"opacity-100":"opacity-0","transition-opacity duration-500"),children:e.children.slice(1)})})]})},rt=e=>`footnote-ref-${e}`,Dt=e=>`footnote-${e}`;function Nr(e){const t=document.getElementById(e);t?(t.style.color="#ef4444",setTimeout(()=>{t.style.color=""},5e3)):console.log(`Element with id fnref:${e} not found.`)}const ha=e=>d.jsxs("div",{className:"children:my-2 children:leading-6 children:text-base mt-4",children:[d.jsx($n,{}),U.Children.map(e.children,t=>{if(U.isValidElement(t)){const n=t.props.id;return d.jsx("div",{id:`${Dt(n)}`,children:d.jsxs("p",{className:"inline",children:[U.cloneElement(t,{className:"inline"}),d.jsx("a",{href:`#${rt(n)}`,onClick:r=>{r.preventDefault(),Qt(document.getElementById(`${rt(n)}`),-window.innerHeight/2),Nr(`${rt(n)}`)},className:"inline",children:"↩"})]})})}else return null})]}),Or=()=>{const{theme:e,systemTheme:t}=qs();return e==="dark"||e==="system"&&t==="dark"},kt={"code-wrap":"_code-wrap_1uhyk_1","copy-tip":"_copy-tip_1uhyk_11","language-tip":"_language-tip_1uhyk_49"},Ar=e=>{const{lang:t,content:n}=e,r=w.useCallback(()=>{navigator.clipboard.writeText(n),qr.success("COPIED!")},[n]),i=w.useRef(),s=An(),a=Or();w.useInsertionEffect(()=>{const p=Ft(`https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism-themes/1.9.0/prism-one-${s?"light":a?"dark":"light"}.css`);if(i.current){const h=i.current;p.$link.onload=()=>{h.remove()}}i.current=p},[a,s]),w.useInsertionEffect(()=>{Ft("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/line-numbers/prism-line-numbers.min.css"),Promise.all([nt("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/components/prism-core.min.js")]).then(()=>Promise.all([nt("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/autoloader/prism-autoloader.min.js"),nt("https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/line-numbers/prism-line-numbers.min.js")])).then(()=>{l.current?requestAnimationFrame(()=>{var p;(p=window.Prism)==null||p.highlightElement(l.current),requestAnimationFrame(()=>{var h;(h=window.Prism)==null||h.highlightElement(l.current)})}):requestAnimationFrame(()=>{var p;(p=window.Prism)==null||p.highlightAll(),requestAnimationFrame(()=>{var h;(h=window.Prism)==null||h.highlightAll()})})})},[]);const l=w.useRef(null);return d.jsxs("div",{className:kt["code-wrap"],children:[d.jsx("span",{className:kt["language-tip"],"aria-hidden":!0,children:t==null?void 0:t.toUpperCase()}),d.jsx("pre",{className:"line-numbers !bg-transparent","data-start":"1",children:d.jsx("code",{className:`language-${t??"markup"} !bg-transparent`,ref:l,children:n})}),d.jsx("div",{className:kt["copy-tip"],onClick:r,"aria-hidden":!0,children:"Copy"})]})},tc=Object.freeze(Object.defineProperty({__proto__:null,HighLighter:Ar},Symbol.toStringTag,{value:"Module"})),pa="别着急,坐和放宽",ma=({loadingText:e,className:t,useDefaultLoadingText:n=!1})=>{const r=n?pa:e;return d.jsxs("div",{"data-hide-print":!0,className:Pe("my-20 flex flex-col center",t),children:[d.jsx("span",{className:"loading loading-ball loading-lg"}),!!r&&d.jsx("span",{className:"mt-6 block",children:r})]})},ga={".js":"javascript",".ts":"typescript",".jsx":"javascript",".tsx":"typescript",".md":"markdown",".css":"css",".scss":"scss",".html":"html",".json":"json",".yml":"yaml",".yaml":"yaml",".toml":"toml",".xml":"xml",".sh":"bash",".bash":"bash",".zsh":"bash",".fish":"bash",".ps1":"powershell",".bat":"batch",".cmd":"batch",".go":"go",".py":"python",".rb":"ruby",".java":"java",".c":"c",".cpp":"cpp",".cs":"csharp",".rs":"rust",".swift":"swift",".kt":"kotlin",".clj":"clojure",".lua":"lua",".sql":"sql",".graphql":"graphql",".groovy":"groovy",".scala":"scala",".pl":"perl",".r":"r",".dart":"dart",".elm":"elm",".erl":"erlang",".ex":"elixir",".h":"c",".hpp":"cpp",".hxx":"cpp",".hh":"cpp",".h++":"cpp",".m":"objectivec",".mm":"objectivec",".vue":"vue"},Pr=w.memo(({owner:e,path:t,repo:n,refType:r})=>{const i=t.slice(t.lastIndexOf(".")),s=ga[i]||"text",{data:a,isLoading:l,isError:p}=Fs({queryKey:["github-preview",e,n,t,r],queryFn:async()=>fetch(`https://cdn.jsdelivr.net/gh/${e}/${n}${r?`@${r}`:""}/${t}`).then(async h=>h.text())});return l?d.jsx(ma,{className:"h-[50vh]",loadingText:"Loading GitHub File Preview..."}):p?d.jsxs("pre",{className:"flex h-[50vh] flex-wrap rounded-md border border-uk-orange-light center",children:[d.jsx("code",{children:"Loading GitHub File Preview Failed:"}),d.jsx("br",{}),d.jsxs("code",{children:[e,"/",n,"/",t]})]}):a?d.jsx("div",{className:"h-[50vh] overflow-auto",children:d.jsx(Ar,{content:a,lang:s})}):null});Pr.displayName="EmbedGithubFile";const ya=dr(()=>On(()=>import("./Tweet-jnYP4Kiq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),xa=({href:e,children:t})=>{const n=w.useMemo(()=>{try{return new URL(e)}catch{return null}},[e]),r=w.useMemo(()=>d.jsx("p",{children:d.jsx(Fe,{href:e,children:t??d.jsx("span",{children:e})})}),[t,e]);if(!n)return r;switch(!0){case us(n):return d.jsx(ba,{url:n,href:e,fallbackElement:r});case cs(n):{const i=ls(n);return d.jsx(ya,{id:i})}case as(n):{const i=n.searchParams.get("v");return d.jsx(Ln,{children:d.jsx("iframe",{src:`https://www.youtube.com/embed/${i}`,className:"absolute inset-0 h-full w-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video player"})})}case is(n):return d.jsx(Ln,{children:d.jsx("iframe",{className:"absolute inset-0 h-full w-full rounded-md border-0",src:`https://codesandbox.io/embed/${n.pathname.slice(2)}?fontsize=14&hidenavigation=1&theme=dark${n.search}`})});case os(n):return d.jsx(ke,{source:Ie.Self,id:n.pathname.slice(1)});default:return r}},Ln=({children:e,ratio:t=58})=>d.jsx("div",{className:"mockup-window my-16 bg-base-300",children:d.jsx("div",{className:"flex justify-center px-4",children:d.jsx("div",{className:"relative my-8 h-0 w-full",style:{paddingBottom:`${t}%`},children:e})})}),ba=e=>{const{url:t,href:n=t.href,fallbackElement:r}=e;switch(!0){case xs(t):{const{owner:i,repo:s}=yt(t);return d.jsx(ke,{id:`${i}/${s}`,source:Ie.GHRepo})}case ms(t):{const{owner:i,id:s}=gs(t);return d.jsxs(d.Fragment,{children:[d.jsx("iframe",{src:`https://gist.github.com/${i}/${s}.pibb`,className:"h-[300px] w-full overflow-auto border-0"}),d.jsxs("a",{className:"mt-2 flex space-x-2 center",href:n,target:"_blank",rel:"noreferrer",children:[d.jsx(ys,{}),d.jsx("span",{children:n})]})]})}case hs(t):{const{owner:i,repo:s,pr:a}=ps(t);return d.jsx(ke,{id:`${i}/${s}/${a}`,source:Ie.GHPr})}case fs(t):{const{owner:i,repo:s,id:a}=yt(t);return d.jsxs(d.Fragment,{children:[d.jsx("p",{children:d.jsx(Fe,{href:n,children:n})}),d.jsx(ke,{id:`${i}/${s}/commit/${a}`,source:Ie.GHCommit})]})}case ds(t):{const{owner:i,repo:s,afterTypeString:a}=yt(t),l=a.split("/"),p=l[0],h=p?l.slice(1).join("/"):a;return d.jsxs(d.Fragment,{children:[d.jsx(Fe,{href:n,children:n}),d.jsx(Pr,{owner:i,repo:s,path:h,refType:p})]})}}return r},wa=e=>{var s,a;const{children:t,...n}=e,{className:r,...i}=n;if(U.Children.count(t)===1){const l=U.Children.toArray(t)[0];if(va(l))return t;if(ka(l)){const p=(s=l==null?void 0:l.props)==null?void 0:s.children;return d.jsx(xa,{href:(a=l==null?void 0:l.props)==null?void 0:a.href,children:p})}}return d.jsx("p",{className:ee("paragraph",r),...i,children:t})},va=e=>{var t;return!!(typeof e=="object"&&(t=e==null?void 0:e.props)!=null&&t.src)},ka=e=>{var t,n,r;return!!(typeof e=="object"&&(t=e==null?void 0:e.props)!=null&&t.href&&((r=(n=e==null?void 0:e.props)==null?void 0:n.children)==null?void 0:r.length)===1)},Ca=e=>{const{className:t,...n}=e;return d.jsx("table",{...n,className:Pe("table table-zebra table-pin-rows",t)})},Ea=e=>{const{children:t,className:n,...r}=e;return d.jsx("thead",{className:n,...r,children:t})},Ra=e=>{const{children:t,...n}=e;return d.jsx("tr",{...n,children:t})},_a=e=>{const{children:t,...n}=e;return d.jsx("tbody",{...n,children:t})},Ma=e=>{const{children:t,id:n,level:r}=e;return w.createElement(`h${r}`,{id:n,className:"group flex items-center"},null,d.jsxs(d.Fragment,{children:[d.jsx("span",{children:t}),d.jsx("span",{className:"ml-2 inline-flex cursor-pointer select-none text-accent opacity-0 transition-opacity duration-200 center group-hover:opacity-100",role:"button",tabIndex:0,"aria-hidden":!0,onClick:()=>{const i=history.state;history.replaceState(i,"",`#${n}`),Qt(document.getElementById(n),-100)},children:d.jsx("i",{className:"icon-[mingcute--hashtag-line]"})})]}))},La=["mp4","webm","ogg","avi","mov","flv","wmv","mkv"],ja=e=>La.includes(e),Sa=e=>{const{src:t,alt:n}=e,r={...e};r.alt=n==null?void 0:n.replace(/^[¡!]/,"");const{w:i}=Zr(),s=t.split(".").pop();if(ja(s)){const a=n==null?void 0:n.replace(/^[¡!]/,"");return d.jsxs("div",{children:[d.jsx("video",{src:t,controls:!0,playsInline:!0,autoPlay:!1}),a&&d.jsxs("p",{className:"mt-1 flex flex-col items-center justify-center text-sm",children:[d.jsx($n,{className:"w-[80px] opacity-80"}),d.jsx("span",{className:"opacity-90",children:a})]})]})}return d.jsx(Yr,{...r,containerWidth:i})},jn=(e,t,n)=>{const r=Math.floor(Math.random()*(t[1]-t[0]+1)+t[0]),i=Math.floor(Math.random()*(e[1]-e[0]+1)+e[0]),s=r>30?r-30:0,a=i<80?i+20:100;return{accent:`hsl(${n}, ${r}%, ${i}%)`,background:`hsl(${n}, ${s}%, ${a}%)`}};function Ta(e){let t=0;for(let r=0;r{const t=e??Math.floor(Math.random()*361),n=(t+180)%360,r=jn([40,70],[70,90],t),i=jn([20,50],[70,90],n);return{light:{accent:r.accent,background:r.background},dark:{accent:i.accent,background:i.background}}};function Oa(e,t){if(!/^hsl\((\d{1,3}),\s*([\d.]+)%,\s*([\d.]+)%\)$/.test(e))throw new Error("Invalid HSL color value");return`${e.slice(0,-1)}, ${t})`.replace("hsl","hsla")}const Aa=w.memo(function(t){const{text:n,count:r,passProps:i,onClick:s}=t,{dark:a,light:l}=w.useMemo(()=>Na(Ta(n)),[n]),h=Or()?a.background:l.background,f=s?Ur:"span";return d.jsxs(f,{onClick:()=>{s==null||s(i)},className:"inline-block space-x-1 rounded-md px-3 py-2",style:{backgroundColor:Oa(h,.7)},children:[d.jsx("span",{children:n}),!!r&&d.jsxs("span",{className:"self-end text-xs",children:["(",r,")"]})]},n)}),Pa=({children:e})=>typeof(e==null?void 0:e[0])!="string"?null:d.jsx(Aa,{text:e[0]}),Ia=dr(()=>On(()=>import("./CodeBlock-uS2A-zOt.js"),__vite__mapDeps([8,1,2,5,9,6,10,4,11,12,13,3,7,14]),import.meta.url)),De=w.memo(e=>{const{value:t,renderers:n,style:r,wrapperProps:i={},codeBlockFully:s=!1,className:a,overrides:l,extendsRules:p,additionalParserRules:h,as:f="div",allowsScript:m=!1,...E}=e,x=w.useRef(null),v=w.useMemo(()=>!t&&typeof e.children!="string"?null:ur(`${t||e.children}`,{wrapper:null,overrides:{p:wa,thead:Ea,tr:Ra,tbody:_a,table:Ca,footer:ha,details:fa,img:Sa,tag:Pa,LinkCard:ke,Gallery:Pn,script:m?si:void 0,...l},extendsRules:{heading:{react(g,o,c){return d.jsx(Ma,{id:g.id,level:g.level,children:o(g.content,c)},c==null?void 0:c.key)}},gfmTask:{react(g,o,c){return d.jsx("input",{type:"checkbox",checked:g.completed,readOnly:!0},c==null?void 0:c.key)}},link:{react(g,o,c){const{target:u,title:b}=g;let y="";for(const C of g.content)C.type==="text"&&(y+=C.content);return d.jsx(Fe,{href:fe(u),title:b,text:y,children:o(g.content,c)},c==null?void 0:c.key)}},footnoteReference:{react(g,o,c){var k;const{footnoteMap:u,content:b}=g,y=u.get(b),C=(()=>{var M;try{const j=new URL((M=y==null?void 0:y.footnote)==null?void 0:M.replace(": ",""));return!(j.hostname===window.location.hostname)&&!Wr?void 0:j.pathname.slice(1)}catch{return}})();return d.jsxs(w.Fragment,{children:[d.jsx(Mr,{wrapperClassName:"inline",as:"span",TriggerComponent:()=>d.jsx("a",{href:`${Dt(b)}`,onClick:M=>{M.preventDefault();const j=Dt(b);Qt(document.getElementById(j),-window.innerHeight/2),Nr(j)},children:d.jsx("sup",{id:`${rt(b)}`,children:`[^${b}]`})}),type:"tooltip",children:(k=y==null?void 0:y.footnote)==null?void 0:k.substring(1)}),C&&d.jsx(ke,{id:C,source:Ie.MixSpace})]},c==null?void 0:c.key)}},codeBlock:{react(g,o,c){return d.jsx(Ia,{content:g.content,lang:g.lang},c==null?void 0:c.key)}},list:{react(g,o,c){const u=g.ordered?"ol":"ul";return d.jsx(u,{start:g.start,children:g.items.map((b,y)=>{var k;let C="";return((k=b[0])==null?void 0:k.type)=="gfmTask"&&(C="list-none flex items-center"),d.jsx("li",{className:C,children:o(b,c)},y)})},c==null?void 0:c.key)}},...p,...n},additionalParserRules:{spoilder:ua,mention:la,mark:ca,ins:sa,kateX:ia,container:ra,alerts:Ji,...h},...E}),[t,e.children,m,l,p,n,h,E]);return d.jsx(w.Suspense,{children:d.jsx(f,{style:r,...i,ref:x,className:ee(kn.md,s?kn["code-fully"]:void 0,a),children:v})})});De.displayName="Markdown";const nc=e=>{const{wrapperProps:t=Gi}=e;return d.jsx(De,{as:"main",...e,wrapperProps:w.useMemo(()=>({...t,id:qi}),[t])})};export{Za as $,Mn as B,tc as C,Mr as F,ma as L,De as M,Xa as Q,Bi as R,Bt as S,Aa as T,Dn as a,Fs as b,Qa as c,dr as d,nc as e,Hn as f,Ja as g,Cs as h,za as i,Hs as j,Na as k,_s as l,Ya as m,Bn as n,Fn as o,ec as p,Ts as q,Fe as r,Ta as s,Ka as t,Or as u}; +?`)),order:S.MED,parse(e){const{groups:t}=e;return{...t}},react(e,t,n){const{name:r,content:i,params:s}=e;switch(r){case"carousel":case"gallery":return d.jsx(Pn,{images:ea(i)},n==null?void 0:n.key);case"warn":case"error":case"danger":case"info":case"note":case"success":case"warning":{const a={warning:"warn",danger:"error"};return d.jsx(Mn,{type:r||a[r]||"info",className:"my-4",children:d.jsx(De,{value:i,allowsScript:!0,className:"w-full [&>p:first-child]:mt-0"})},n==null?void 0:n.key)}case"banner":{if(!s)break;return d.jsx(Mn,{type:s,className:"my-4",children:d.jsx(De,{value:i,allowsScript:!0,className:"w-full [&>p:first-child]:mt-0"})},n==null?void 0:n.key)}}return d.jsx("div",{children:d.jsx("p",{children:i})},n==null?void 0:n.key)}},sa={match:V(/^\+\+((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\+\+/),order:S.LOW,parse:be,react(e,t,n){return d.jsx("ins",{children:t(e.content,n)},n==null?void 0:n.key)}},Je={},re={};function nt(e){return new Promise((t,n)=>{const r=Je[e];if(r==="loaded")return t(null);if(r==="loading"){re[e]=re[e]?[...re[e],[t,n]]:[[t,n]];return}const i=document.createElement("script");i.src=e,i.crossOrigin="anonymous",Je[e]="loading",i.onload=function(){Je[e]="loaded",t(null),re[e]&&(re[e].forEach(([s])=>{s(null)}),delete re[e])},i.onerror=function(s){this.onerror=this.onload=null,delete Je[e],re[e].forEach(([,a])=>{a(s)}),delete re[e],n(s)},document.head.appendChild(i)})}const ve=new Map;function Ft(e){if(ve.has(e)){const n=ve.get(e);return{$link:n,remove:()=>{n.parentNode&&n.parentNode.removeChild(n),ve.delete(e)}}}const t=document.createElement("link");return t.href=e,t.rel="stylesheet",t.type="text/css",t.crossOrigin="anonymous",ve.set(e,t),t.onerror=()=>{t.onerror=null,ve.delete(e)},document.head.appendChild(t),{remove:()=>{t.parentNode&&t.parentNode.removeChild(t),ve.delete(e)},$link:t}}const oa=U.useInsertionEffect||U.useEffect,ia={match:V(/^\$\s{0,}((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\s{0,}\$/),order:S.LOW,parse:be,react(e,t,n){try{const r=e.content.map(i=>i.content).join("");return d.jsx(aa,{children:r},n==null?void 0:n.key)}catch{return null}}},aa=e=>{const{children:t}=e,[n,r]=w.useState("");return oa(()=>{Ft("https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.15.2/katex.min.css"),nt("https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.15.2/katex.min.js").then(()=>{const i=window.katex.renderToString(t);r(i)})},[]),d.jsx("span",{dangerouslySetInnerHTML:{__html:n}})},ca={match:V(/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/),order:S.LOW,parse:be,react(e,t,n){return d.jsx("mark",{className:"rounded-md bg-always-yellow-400 bg-opacity-80 px-1 text-black",children:d.jsx("span",{children:t(e.content,n)})},n==null?void 0:n.key)}},la={match:V(/^(\[(?.*?)\])?\{((?(GH)|(TW)|(TG))@(?\w+\b))\}\s?(?!\[.*?\])/),order:S.MIN,parse(e){const{groups:t}=e;return t?{content:{...t},type:"mention"}:{}},react(e,t,n){const{content:r}=e;if(!r)return null;const{prefix:i,name:s,displayName:a}=r;return s?d.jsx(In,{name:a||s,source:i},n==null?void 0:n.key):null}},ua={match:V(/^\|\|((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)\|\|/),order:S.LOW,parse:be,react(e,t,n){return d.jsx("del",{className:"spoiler",title:"你知道的太多了",children:t(e.content,n)},n==null?void 0:n.key)}};function da(e){return d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[d.jsx("path",{fill:"currentColor",d:"M5.7 6.71a.996.996 0 0 0 0 1.41L9.58 12L5.7 15.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0z"}),d.jsx("path",{fill:"currentColor",d:"M12.29 6.71a.996.996 0 0 0 0 1.41L16.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01z"})]})}const fa=e=>{const[t,n]=w.useState(!1),r=e.children[0],i=An();w.useLayoutEffect(()=>{i&&n(!0)},[i]);const s=w.useCallback(()=>{n(a=>!a)},[]);return d.jsxs("div",{className:"my-2",children:[d.jsxs("button",{className:"mb-2 flex cursor-pointer items-center pl-2",onClick:s,children:[d.jsx("i",{className:ee("icon-[mingcute--align-arrow-down-line] mr-2 transform transition-transform duration-500",!t&&"-rotate-90"),children:d.jsx(da,{})}),r]}),d.jsx(zr,{withBackground:!0,isOpened:t,className:"my-2",children:d.jsx("div",{className:ee(t?"opacity-100":"opacity-0","transition-opacity duration-500"),children:e.children.slice(1)})})]})},rt=e=>`footnote-ref-${e}`,Dt=e=>`footnote-${e}`;function Nr(e){const t=document.getElementById(e);t?(t.style.color="#ef4444",setTimeout(()=>{t.style.color=""},5e3)):console.log(`Element with id fnref:${e} not found.`)}const ha=e=>d.jsxs("div",{className:"children:my-2 children:leading-6 children:text-base mt-4",children:[d.jsx($n,{}),U.Children.map(e.children,t=>{if(U.isValidElement(t)){const n=t.props.id;return d.jsx("div",{id:`${Dt(n)}`,children:d.jsxs("p",{className:"inline",children:[U.cloneElement(t,{className:"inline"}),d.jsx("a",{href:`#${rt(n)}`,onClick:r=>{r.preventDefault(),Qt(document.getElementById(`${rt(n)}`),-window.innerHeight/2),Nr(`${rt(n)}`)},className:"inline",children:"↩"})]})})}else return null})]}),Or=()=>{const{theme:e,systemTheme:t}=qs();return e==="dark"||e==="system"&&t==="dark"},kt={"code-wrap":"_code-wrap_1uhyk_1","copy-tip":"_copy-tip_1uhyk_11","language-tip":"_language-tip_1uhyk_49"},Ar=e=>{const{lang:t,content:n}=e,r=w.useCallback(()=>{navigator.clipboard.writeText(n),qr.success("COPIED!")},[n]),i=w.useRef(),s=An(),a=Or();w.useInsertionEffect(()=>{const p=Ft(`https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism-themes/1.9.0/prism-one-${s?"light":a?"dark":"light"}.css`);if(i.current){const h=i.current;p.$link.onload=()=>{h.remove()}}i.current=p},[a,s]),w.useInsertionEffect(()=>{Ft("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/line-numbers/prism-line-numbers.min.css"),Promise.all([nt("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/components/prism-core.min.js")]).then(()=>Promise.all([nt("https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/autoloader/prism-autoloader.min.js"),nt("https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/prism/1.23.0/plugins/line-numbers/prism-line-numbers.min.js")])).then(()=>{l.current?requestAnimationFrame(()=>{var p;(p=window.Prism)==null||p.highlightElement(l.current),requestAnimationFrame(()=>{var h;(h=window.Prism)==null||h.highlightElement(l.current)})}):requestAnimationFrame(()=>{var p;(p=window.Prism)==null||p.highlightAll(),requestAnimationFrame(()=>{var h;(h=window.Prism)==null||h.highlightAll()})})})},[]);const l=w.useRef(null);return d.jsxs("div",{className:kt["code-wrap"],children:[d.jsx("span",{className:kt["language-tip"],"aria-hidden":!0,children:t==null?void 0:t.toUpperCase()}),d.jsx("pre",{className:"line-numbers !bg-transparent","data-start":"1",children:d.jsx("code",{className:`language-${t??"markup"} !bg-transparent`,ref:l,children:n})}),d.jsx("div",{className:kt["copy-tip"],onClick:r,"aria-hidden":!0,children:"Copy"})]})},tc=Object.freeze(Object.defineProperty({__proto__:null,HighLighter:Ar},Symbol.toStringTag,{value:"Module"})),pa="别着急,坐和放宽",ma=({loadingText:e,className:t,useDefaultLoadingText:n=!1})=>{const r=n?pa:e;return d.jsxs("div",{"data-hide-print":!0,className:Pe("my-20 flex flex-col center",t),children:[d.jsx("span",{className:"loading loading-ball loading-lg"}),!!r&&d.jsx("span",{className:"mt-6 block",children:r})]})},ga={".js":"javascript",".ts":"typescript",".jsx":"javascript",".tsx":"typescript",".md":"markdown",".css":"css",".scss":"scss",".html":"html",".json":"json",".yml":"yaml",".yaml":"yaml",".toml":"toml",".xml":"xml",".sh":"bash",".bash":"bash",".zsh":"bash",".fish":"bash",".ps1":"powershell",".bat":"batch",".cmd":"batch",".go":"go",".py":"python",".rb":"ruby",".java":"java",".c":"c",".cpp":"cpp",".cs":"csharp",".rs":"rust",".swift":"swift",".kt":"kotlin",".clj":"clojure",".lua":"lua",".sql":"sql",".graphql":"graphql",".groovy":"groovy",".scala":"scala",".pl":"perl",".r":"r",".dart":"dart",".elm":"elm",".erl":"erlang",".ex":"elixir",".h":"c",".hpp":"cpp",".hxx":"cpp",".hh":"cpp",".h++":"cpp",".m":"objectivec",".mm":"objectivec",".vue":"vue"},Pr=w.memo(({owner:e,path:t,repo:n,refType:r})=>{const i=t.slice(t.lastIndexOf(".")),s=ga[i]||"text",{data:a,isLoading:l,isError:p}=Fs({queryKey:["github-preview",e,n,t,r],queryFn:async()=>fetch(`https://cdn.jsdelivr.net/gh/${e}/${n}${r?`@${r}`:""}/${t}`).then(async h=>h.text())});return l?d.jsx(ma,{className:"h-[50vh]",loadingText:"Loading GitHub File Preview..."}):p?d.jsxs("pre",{className:"flex h-[50vh] flex-wrap rounded-md border border-uk-orange-light center",children:[d.jsx("code",{children:"Loading GitHub File Preview Failed:"}),d.jsx("br",{}),d.jsxs("code",{children:[e,"/",n,"/",t]})]}):a?d.jsx("div",{className:"h-[50vh] overflow-auto",children:d.jsx(Ar,{content:a,lang:s})}):null});Pr.displayName="EmbedGithubFile";const ya=dr(()=>On(()=>import("./Tweet-lNU6kk5E.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),xa=({href:e,children:t})=>{const n=w.useMemo(()=>{try{return new URL(e)}catch{return null}},[e]),r=w.useMemo(()=>d.jsx("p",{children:d.jsx(Fe,{href:e,children:t??d.jsx("span",{children:e})})}),[t,e]);if(!n)return r;switch(!0){case us(n):return d.jsx(ba,{url:n,href:e,fallbackElement:r});case cs(n):{const i=ls(n);return d.jsx(ya,{id:i})}case as(n):{const i=n.searchParams.get("v");return d.jsx(Ln,{children:d.jsx("iframe",{src:`https://www.youtube.com/embed/${i}`,className:"absolute inset-0 h-full w-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video player"})})}case is(n):return d.jsx(Ln,{children:d.jsx("iframe",{className:"absolute inset-0 h-full w-full rounded-md border-0",src:`https://codesandbox.io/embed/${n.pathname.slice(2)}?fontsize=14&hidenavigation=1&theme=dark${n.search}`})});case os(n):return d.jsx(ke,{source:Ie.Self,id:n.pathname.slice(1)});default:return r}},Ln=({children:e,ratio:t=58})=>d.jsx("div",{className:"mockup-window my-16 bg-base-300",children:d.jsx("div",{className:"flex justify-center px-4",children:d.jsx("div",{className:"relative my-8 h-0 w-full",style:{paddingBottom:`${t}%`},children:e})})}),ba=e=>{const{url:t,href:n=t.href,fallbackElement:r}=e;switch(!0){case xs(t):{const{owner:i,repo:s}=yt(t);return d.jsx(ke,{id:`${i}/${s}`,source:Ie.GHRepo})}case ms(t):{const{owner:i,id:s}=gs(t);return d.jsxs(d.Fragment,{children:[d.jsx("iframe",{src:`https://gist.github.com/${i}/${s}.pibb`,className:"h-[300px] w-full overflow-auto border-0"}),d.jsxs("a",{className:"mt-2 flex space-x-2 center",href:n,target:"_blank",rel:"noreferrer",children:[d.jsx(ys,{}),d.jsx("span",{children:n})]})]})}case hs(t):{const{owner:i,repo:s,pr:a}=ps(t);return d.jsx(ke,{id:`${i}/${s}/${a}`,source:Ie.GHPr})}case fs(t):{const{owner:i,repo:s,id:a}=yt(t);return d.jsxs(d.Fragment,{children:[d.jsx("p",{children:d.jsx(Fe,{href:n,children:n})}),d.jsx(ke,{id:`${i}/${s}/commit/${a}`,source:Ie.GHCommit})]})}case ds(t):{const{owner:i,repo:s,afterTypeString:a}=yt(t),l=a.split("/"),p=l[0],h=p?l.slice(1).join("/"):a;return d.jsxs(d.Fragment,{children:[d.jsx(Fe,{href:n,children:n}),d.jsx(Pr,{owner:i,repo:s,path:h,refType:p})]})}}return r},wa=e=>{var s,a;const{children:t,...n}=e,{className:r,...i}=n;if(U.Children.count(t)===1){const l=U.Children.toArray(t)[0];if(va(l))return t;if(ka(l)){const p=(s=l==null?void 0:l.props)==null?void 0:s.children;return d.jsx(xa,{href:(a=l==null?void 0:l.props)==null?void 0:a.href,children:p})}}return d.jsx("p",{className:ee("paragraph",r),...i,children:t})},va=e=>{var t;return!!(typeof e=="object"&&(t=e==null?void 0:e.props)!=null&&t.src)},ka=e=>{var t,n,r;return!!(typeof e=="object"&&(t=e==null?void 0:e.props)!=null&&t.href&&((r=(n=e==null?void 0:e.props)==null?void 0:n.children)==null?void 0:r.length)===1)},Ca=e=>{const{className:t,...n}=e;return d.jsx("table",{...n,className:Pe("table table-zebra table-pin-rows",t)})},Ea=e=>{const{children:t,className:n,...r}=e;return d.jsx("thead",{className:n,...r,children:t})},Ra=e=>{const{children:t,...n}=e;return d.jsx("tr",{...n,children:t})},_a=e=>{const{children:t,...n}=e;return d.jsx("tbody",{...n,children:t})},Ma=e=>{const{children:t,id:n,level:r}=e;return w.createElement(`h${r}`,{id:n,className:"group flex items-center"},null,d.jsxs(d.Fragment,{children:[d.jsx("span",{children:t}),d.jsx("span",{className:"ml-2 inline-flex cursor-pointer select-none text-accent opacity-0 transition-opacity duration-200 center group-hover:opacity-100",role:"button",tabIndex:0,"aria-hidden":!0,onClick:()=>{const i=history.state;history.replaceState(i,"",`#${n}`),Qt(document.getElementById(n),-100)},children:d.jsx("i",{className:"icon-[mingcute--hashtag-line]"})})]}))},La=["mp4","webm","ogg","avi","mov","flv","wmv","mkv"],ja=e=>La.includes(e),Sa=e=>{const{src:t,alt:n}=e,r={...e};r.alt=n==null?void 0:n.replace(/^[¡!]/,"");const{w:i}=Zr(),s=t.split(".").pop();if(ja(s)){const a=n==null?void 0:n.replace(/^[¡!]/,"");return d.jsxs("div",{children:[d.jsx("video",{src:t,controls:!0,playsInline:!0,autoPlay:!1}),a&&d.jsxs("p",{className:"mt-1 flex flex-col items-center justify-center text-sm",children:[d.jsx($n,{className:"w-[80px] opacity-80"}),d.jsx("span",{className:"opacity-90",children:a})]})]})}return d.jsx(Yr,{...r,containerWidth:i})},jn=(e,t,n)=>{const r=Math.floor(Math.random()*(t[1]-t[0]+1)+t[0]),i=Math.floor(Math.random()*(e[1]-e[0]+1)+e[0]),s=r>30?r-30:0,a=i<80?i+20:100;return{accent:`hsl(${n}, ${r}%, ${i}%)`,background:`hsl(${n}, ${s}%, ${a}%)`}};function Ta(e){let t=0;for(let r=0;r{const t=e??Math.floor(Math.random()*361),n=(t+180)%360,r=jn([40,70],[70,90],t),i=jn([20,50],[70,90],n);return{light:{accent:r.accent,background:r.background},dark:{accent:i.accent,background:i.background}}};function Oa(e,t){if(!/^hsl\((\d{1,3}),\s*([\d.]+)%,\s*([\d.]+)%\)$/.test(e))throw new Error("Invalid HSL color value");return`${e.slice(0,-1)}, ${t})`.replace("hsl","hsla")}const Aa=w.memo(function(t){const{text:n,count:r,passProps:i,onClick:s}=t,{dark:a,light:l}=w.useMemo(()=>Na(Ta(n)),[n]),h=Or()?a.background:l.background,f=s?Ur:"span";return d.jsxs(f,{onClick:()=>{s==null||s(i)},className:"inline-block space-x-1 rounded-md px-3 py-2",style:{backgroundColor:Oa(h,.7)},children:[d.jsx("span",{children:n}),!!r&&d.jsxs("span",{className:"self-end text-xs",children:["(",r,")"]})]},n)}),Pa=({children:e})=>typeof(e==null?void 0:e[0])!="string"?null:d.jsx(Aa,{text:e[0]}),Ia=dr(()=>On(()=>import("./CodeBlock-HVMt2b3q.js"),__vite__mapDeps([8,1,2,5,9,6,10,4,11,12,13,3,7,14]),import.meta.url)),De=w.memo(e=>{const{value:t,renderers:n,style:r,wrapperProps:i={},codeBlockFully:s=!1,className:a,overrides:l,extendsRules:p,additionalParserRules:h,as:f="div",allowsScript:m=!1,...E}=e,x=w.useRef(null),v=w.useMemo(()=>!t&&typeof e.children!="string"?null:ur(`${t||e.children}`,{wrapper:null,overrides:{p:wa,thead:Ea,tr:Ra,tbody:_a,table:Ca,footer:ha,details:fa,img:Sa,tag:Pa,LinkCard:ke,Gallery:Pn,script:m?si:void 0,...l},extendsRules:{heading:{react(g,o,c){return d.jsx(Ma,{id:g.id,level:g.level,children:o(g.content,c)},c==null?void 0:c.key)}},gfmTask:{react(g,o,c){return d.jsx("input",{type:"checkbox",checked:g.completed,readOnly:!0},c==null?void 0:c.key)}},link:{react(g,o,c){const{target:u,title:b}=g;let y="";for(const C of g.content)C.type==="text"&&(y+=C.content);return d.jsx(Fe,{href:fe(u),title:b,text:y,children:o(g.content,c)},c==null?void 0:c.key)}},footnoteReference:{react(g,o,c){var k;const{footnoteMap:u,content:b}=g,y=u.get(b),C=(()=>{var M;try{const j=new URL((M=y==null?void 0:y.footnote)==null?void 0:M.replace(": ",""));return!(j.hostname===window.location.hostname)&&!Wr?void 0:j.pathname.slice(1)}catch{return}})();return d.jsxs(w.Fragment,{children:[d.jsx(Mr,{wrapperClassName:"inline",as:"span",TriggerComponent:()=>d.jsx("a",{href:`${Dt(b)}`,onClick:M=>{M.preventDefault();const j=Dt(b);Qt(document.getElementById(j),-window.innerHeight/2),Nr(j)},children:d.jsx("sup",{id:`${rt(b)}`,children:`[^${b}]`})}),type:"tooltip",children:(k=y==null?void 0:y.footnote)==null?void 0:k.substring(1)}),C&&d.jsx(ke,{id:C,source:Ie.MixSpace})]},c==null?void 0:c.key)}},codeBlock:{react(g,o,c){return d.jsx(Ia,{content:g.content,lang:g.lang},c==null?void 0:c.key)}},list:{react(g,o,c){const u=g.ordered?"ol":"ul";return d.jsx(u,{start:g.start,children:g.items.map((b,y)=>{var k;let C="";return((k=b[0])==null?void 0:k.type)=="gfmTask"&&(C="list-none flex items-center"),d.jsx("li",{className:C,children:o(b,c)},y)})},c==null?void 0:c.key)}},...p,...n},additionalParserRules:{spoilder:ua,mention:la,mark:ca,ins:sa,kateX:ia,container:ra,alerts:Ji,...h},...E}),[t,e.children,m,l,p,n,h,E]);return d.jsx(w.Suspense,{children:d.jsx(f,{style:r,...i,ref:x,className:ee(kn.md,s?kn["code-fully"]:void 0,a),children:v})})});De.displayName="Markdown";const nc=e=>{const{wrapperProps:t=Gi}=e;return d.jsx(De,{as:"main",...e,wrapperProps:w.useMemo(()=>({...t,id:qi}),[t])})};export{Za as $,Mn as B,tc as C,Mr as F,ma as L,De as M,Xa as Q,Bi as R,Bt as S,Aa as T,Dn as a,Fs as b,Qa as c,dr as d,nc as e,Hn as f,Ja as g,Cs as h,za as i,Hs as j,Na as k,_s as l,Ya as m,Bn as n,Fn as o,ec as p,Ts as q,Fe as r,Ta as s,Ka as t,Or as u}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./Tweet-jnYP4Kiq.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./Gallery-lvvI9ksR.js","./Divider-ZvsSiSkZ.js","./helper-Oi49T1hx.js","./index-iAcAeRlm.js","./Gallery-cCMf-PmV.css","./CodeBlock-uS2A-zOt.js","./spring-hZ91AlwC.js","./LinkCard-aLl-jjA_.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Collapse-gGRmuqb3.js","./RichLink-sK7aRcsj.js"] + __vite__mapDeps.viteFileDeps = ["./Tweet-lNU6kk5E.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./Gallery-32-V3LXo.js","./Divider-sIhvLlX0.js","./helper-Oi49T1hx.js","./index-iAcAeRlm.js","./Gallery-cCMf-PmV.css","./CodeBlock-HVMt2b3q.js","./spring-0AHu48BV.js","./LinkCard-gCgkDO82.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Collapse-JZfrBou4.js","./RichLink-6jHOm4uG.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/Mermaid-gARWX2fD.js b/assets/Mermaid-HArpnZmx.js similarity index 66% rename from assets/Mermaid-gARWX2fD.js rename to assets/Mermaid-HArpnZmx.js index dca5eb0f6a..a2a7ae26a0 100644 --- a/assets/Mermaid-gARWX2fD.js +++ b/assets/Mermaid-HArpnZmx.js @@ -1,7 +1,7 @@ -import{r as t,_ as x,j as n}from"./index-Qg-bAq5J.js";import{u as y}from"./Markdown-xk31dQ-T.js";import{u as w,F as k}from"./Gallery-lvvI9ksR.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./env-jTYMx4r5.js";import"./Collapse-gGRmuqb3.js";import"./RichLink-sK7aRcsj.js";const N=o=>{const[E,m]=t.useState(!0),[v,a]=t.useState(""),[c,u]=t.useState(""),[_,l]=t.useState(),[h,f]=t.useState(),g=y();t.useEffect(()=>{x(()=>import("./mermaid.core-uOCfdc17.js").then(r=>r.b4),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(async r=>{r.default.initialize({theme:g?"dark":"default"})})},[g]);const d=t.useId().split(":").join("");t.useEffect(()=>{if(!o.content)return;a(""),m(!0);let r=!1;x(()=>import("./mermaid.core-uOCfdc17.js").then(s=>s.b4),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(async s=>{var p;const I=s.default;let i;try{i=await I.render(`mermaid-${d}`,o.content)}catch(e){(p=document.getElementById(`dmermaid-${d}`))==null||p.remove(),e instanceof Error&&a(e.message),u(""),l(void 0),f(void 0)}if(!r){if(i){u(i.svg);const e=i.svg.match(/viewBox="[^"]*\s([\d.]+)\s([\d.]+)"/);e!=null&&e[1]&&(e!=null&&e[2])&&(l(parseInt(e==null?void 0:e[1])),f(parseInt(e==null?void 0:e[2]))),a("")}return m(!1),()=>{r=!0}}})},[d,o.content]);const{w:S}=w(),b=new TextEncoder().encode(c),j=`data:image/svg+xml;base64,${btoa(String.fromCharCode(...new Uint8Array(b)))}`;return E?n.jsx("div",{className:"flex min-h-[50px] items-center justify-center rounded-lg bg-slate-100 text-sm dark:bg-neutral-800",children:"Mermaid Loading..."}):c?n.jsx("div",{children:n.jsx(k,{containerWidth:S,src:j,width:_,height:h})}):n.jsx("div",{className:"flex min-h-[50px] items-center justify-center rounded-lg bg-red-100 text-sm",children:v||"Error"})};export{N as Mermaid}; +import{r as t,_ as x,j as n}from"./index-HRfeE_7B.js";import{u as y}from"./Markdown-tpcPSstc.js";import{u as w,F as k}from"./Gallery-32-V3LXo.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./env-jTYMx4r5.js";import"./Collapse-JZfrBou4.js";import"./RichLink-6jHOm4uG.js";const N=o=>{const[E,m]=t.useState(!0),[v,a]=t.useState(""),[c,u]=t.useState(""),[_,l]=t.useState(),[h,f]=t.useState(),g=y();t.useEffect(()=>{x(()=>import("./mermaid.core-YsxFu0Y0.js").then(r=>r.b4),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(async r=>{r.default.initialize({theme:g?"dark":"default"})})},[g]);const d=t.useId().split(":").join("");t.useEffect(()=>{if(!o.content)return;a(""),m(!0);let r=!1;x(()=>import("./mermaid.core-YsxFu0Y0.js").then(s=>s.b4),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(async s=>{var p;const I=s.default;let i;try{i=await I.render(`mermaid-${d}`,o.content)}catch(e){(p=document.getElementById(`dmermaid-${d}`))==null||p.remove(),e instanceof Error&&a(e.message),u(""),l(void 0),f(void 0)}if(!r){if(i){u(i.svg);const e=i.svg.match(/viewBox="[^"]*\s([\d.]+)\s([\d.]+)"/);e!=null&&e[1]&&(e!=null&&e[2])&&(l(parseInt(e==null?void 0:e[1])),f(parseInt(e==null?void 0:e[2]))),a("")}return m(!1),()=>{r=!0}}})},[d,o.content]);const{w:S}=w(),b=new TextEncoder().encode(c),j=`data:image/svg+xml;base64,${btoa(String.fromCharCode(...new Uint8Array(b)))}`;return E?n.jsx("div",{className:"flex min-h-[50px] items-center justify-center rounded-lg bg-slate-100 text-sm dark:bg-neutral-800",children:"Mermaid Loading..."}):c?n.jsx("div",{children:n.jsx(k,{containerWidth:S,src:j,width:_,height:h})}):n.jsx("div",{className:"flex min-h-[50px] items-center justify-center rounded-lg bg-red-100 text-sm",children:v||"Error"})};export{N as Mermaid}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./mermaid.core-uOCfdc17.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./LinkCard-aLl-jjA_.js","./Divider-ZvsSiSkZ.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css"] + __vite__mapDeps.viteFileDeps = ["./mermaid.core-YsxFu0Y0.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./LinkCard-gCgkDO82.js","./Divider-sIhvLlX0.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/NotePreview-yCCpXwBc.js b/assets/NotePreview-CSBxvseK.js similarity index 97% rename from assets/NotePreview-yCCpXwBc.js rename to assets/NotePreview-CSBxvseK.js index e18bda41be..e80821d020 100644 --- a/assets/NotePreview-yCCpXwBc.js +++ b/assets/NotePreview-CSBxvseK.js @@ -1 +1 @@ -import{j as e,r as o,R as D}from"./index-Qg-bAq5J.js";import{F,e as $,g as q,b as f,p as O,m as U,L as S}from"./Markdown-xk31dQ-T.js";import{c as g,a as X}from"./helper-Oi49T1hx.js";import{b as z,f as W,e as E,g as R,t as G,c as H}from"./LinkCard-aLl-jjA_.js";import{e as l,f as N,M as P,c as K,r as w,R as C,a as Q,N as J,q as e1,h as t1,i as s1,P as n1,X as c1,g as r1,B as i1}from"./utils-C0Upvd9p.js";import{m as _,c as u}from"./spring-hZ91AlwC.js";import{M as l1,k as a1,W as o1}from"./Gallery-lvvI9ksR.js";import{u as m1}from"./FlexText-AbEHEN8T.js";import{a as v,e as d1,j as h1,u as x1,D as h,f as x}from"./Divider-ZvsSiSkZ.js";import{s as u1}from"./index-iAcAeRlm.js";import{A as j1}from"./Collapse-gGRmuqb3.js";import"./env-jTYMx4r5.js";import"./RichLink-sK7aRcsj.js";import"./customParseFormat-q3ZbyGZe.js";const p1=t=>{const s=z(),n=W(),{id:r,type:a,className:m}=t;if(!s)return null;const c=n(`#/${a}/edit?id=${r}`);return c?e.jsxs("a",{href:c,"data-hide-print":!0,target:"_blank",className:g("flex h-8 w-8 rounded-full text-accent no-underline opacity-80 ring-1 ring-slate-200 duration-200 center hover:opacity-100 dark:ring-neutral-800",m),rel:"noreferrer",children:[e.jsx("i",{className:"icon-[mingcute--quill-pen-line]"}),e.jsx("span",{className:"sr-only",children:"编辑"})]}):null},M={"with-indent":"_with-indent_1n4mw_1","with-serif":"_with-serif_1n4mw_91"},f1=()=>{const t=l(n=>n==null?void 0:n.data.title),s=l(n=>n==null?void 0:n.data.id);return t?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mt-8 text-left font-bold text-base-content/95",children:t}),e.jsx(p1,{type:"notes",id:s,className:"absolute right-0 top-0"})]}):null},g1=()=>{const t=l(n=>n==null?void 0:n.data.created);if(!t)return null;const s=E(t).locale("zh-cn").format("YYYY 年 M 月 D 日 dddd");return e.jsxs("span",{className:"inline-flex items-center space-x-1",children:[e.jsx(P,{}),e.jsx("time",{className:"font-medium",suppressHydrationWarning:!0,children:s})]})},w1=()=>{const t=l(n=>({created:n==null?void 0:n.data.created,modified:n==null?void 0:n.data.modified}));if(!(t!=null&&t.created))return null;const s=`创建于 ${N(t.created,"YYYY 年 M 月 D 日 dddd")}${t.modified?`,修改于 ${N(t.modified,"YYYY 年 M 月 D 日 dddd")}`:""}`;return e.jsx(F,{as:"span",TriggerComponent:g1,children:s})},C1=()=>{const t=l(s=>s==null?void 0:s.data.text);return e.jsx($,{className:"mt-10",allowsScript:!0,renderers:N1,value:t})},v1=t=>{const s=l(n=>(n==null?void 0:n.data.images)||q);return e.jsx(l1,{images:s,children:t.children})},N1={text:{react(t,s,n){return e.jsx("span",{className:"indent",children:t.content},n==null?void 0:n.key)}}},M1=t=>e.jsx("article",{className:X("prose relative",M["with-indent"],M["with-serif"]),children:t.children}),Z1=t=>R()?e.jsx(e.Fragment,{children:t.children}):null,p=v(null),y1=o.memo(({noteId:t,children:s})=>{const n=d1(p);return m1(()=>{h1.set(p,t)}),o.useEffect(()=>{n(t)},[t]),s});y1.displayName="CurrentNoteIdProvider";const Y=()=>x1(p),Z={info:"bg-sky-50 dark:bg-sky-800 dark:text-white",warning:"bg-orange-100 dark:bg-orange-800 dark:text-white",error:"bg-rose-100 dark:bg-rose-800 dark:text-white",success:"bg-emerald-100 dark:bg-emerald-800 dark:text-white",secondary:"bg-sky-100 dark:bg-sky-800 dark:text-white"},k1=()=>{const t=l(n=>n==null?void 0:n.data.meta);let s=t==null?void 0:t.banner;if(s)return typeof s=="string"?{type:"info",message:s,className:Z.info}:(s={...s},s.type??(s.type="info"),s.className??(s.className=Z[s.type]),s)},L1=()=>{const t=k1();return t?e.jsx("div",{className:"mx-[var(--padding-h)] mb-4 mt-8 text-sm",children:e.jsx(B1,{...t})}):null},B1=t=>e.jsx("div",{className:g("flex justify-center p-4 leading-8",t.className),style:t.style,children:t.message}),T1=({children:t})=>{const s=l(c=>c==null?void 0:c.data.secret),n=l(c=>c==null?void 0:c.data.nid),r=o.useMemo(()=>new Date(s),[s]),a=s?E(s).isAfter(new Date):!1,m=z();if(o.useEffect(()=>{if(!n)return;let c;const i=+r-+new Date;return a&&i&&i<28&&(c=setTimeout(()=>{G("刷新以查看解锁的文章","info",{autoClose:!1})},i)),()=>{clearTimeout(c)}},[a,r,n]),!n)return null;if(a){const c=s?Intl.DateTimeFormat("zh-cn",{hour12:!1,hour:"numeric",minute:"numeric",year:"numeric",day:"numeric",month:"long"}).format(new Date(s)):"";return m?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"my-6 text-center",children:[e.jsxs("p",{children:["这是一篇非公开的文章。(将在 ",c," 解锁)"]}),e.jsx("p",{children:"现在处于登录状态,预览模式:"})]}),t]}):e.jsxs("div",{className:"my-6 text-center",children:["这篇文章暂时没有公开呢,将会在 ",c," 解锁,再等等哦"]})}return t};v(0);const A1=K({from:{translateX:-70,opacity:.001},to:{translateX:0,opacity:1}}),I1=o.memo(()=>Y()?e.jsx(D1,{}):null);I1.displayName="NoteTimeline";const b1={transition:{staggerChildren:.5}},D1=()=>{var m;const t=l(c=>{const i=c==null?void 0:c.data;return i?{id:i.id,nid:i.nid,title:i.title,created:i.created}:null}),s=Y(),n=t==null?void 0:t.id,{data:r}=f({queryKey:["note_timeline",n],queryFn:async({queryKey:c})=>{const[,i]=c;if(!i)throw"";return(await H.note.getMiddleList(i,10)).$serialized.data},enabled:n!==void 0,placeholderData:a1}),a=t?[{title:t.title,nid:t.nid,id:t.id,created:t.created}]:[];return e.jsx(j1,{children:e.jsx(_.ul,{className:"space-y-1 [&_i]:hover:text-accent",animate:b1,children:(m=r||a)==null?void 0:m.map(c=>{const i=c.nid===parseInt(s||"0");return e.jsx(V,{active:i,title:c.title,nid:c.nid},c.id)})})})},y=u1({base:"text-neutral-content min-w-0 truncate text-left opacity-50 transition-all tabular-nums hover:opacity-80",variants:{status:{active:"ml-2 opacity-100"}}}),k={opacity:1e-4},F1={opacity:1},V=o.memo(t=>{const{active:s,nid:n,title:r}=t;return e.jsxs(_.li,{layout:!0,className:"flex items-center",layoutId:`note-${n}`,initial:k,animate:F1,exit:k,children:[s&&e.jsx(A1,{as:"span",className:"inline-flex items-center",children:e.jsx("i",{className:"icon-[material-symbols--arrow-circle-right-outline-rounded] duration-200"})}),e.jsx(u,{onClick:O,prefetch:!1,className:g(s?y({status:"active"}):y()),href:w(C.Note,{id:n}),scroll:!1,children:r})]})});V.displayName="MemoedItem";function S1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m15.54 3.5l4.96 4.97l-1.43 1.41l-4.95-4.95l1.42-1.43M3.5 19.78l6.5-6.47c-.1-.31-.03-.7.23-.96c.39-.39 1.03-.39 1.42 0c.39.4.39 1.03 0 1.42c-.26.26-.65.33-.96.23l-6.47 6.5l10.61-3.55l3.53-6.36l-4.94-4.95l-6.37 3.53L3.5 19.78Z"})})}const z1={allowedTypes:["text","paragraph","codeInline","link","linkMailtoDetector","linkBareUrlDetector","linkAngleBraceStyleDetector","textStrikethroughed","textEmphasized","textBolded","textEscaped"],forceBlock:!0,wrapper:({children:t})=>e.jsx("div",{className:"leading-7",children:t})},L=t=>e.jsx(U,{options:z1,children:t.children}),E1=t=>{var c,i;const{topic:s}=t,{id:n}=s,{data:r,isLoading:a}=f({queryKey:[`topic-${n}`],queryFn:()=>H.note.getNoteByTopicId(n,1,1,{sortBy:"created",sortOrder:-1})});return R()?e.jsxs("div",{className:"flex w-[400px] flex-col",children:[e.jsx(u,{href:w(C.NoteTopic,{slug:s.slug}),children:e.jsx("h1",{className:"!m-0 inline-block pb-2 text-lg font-medium",children:s.name})}),e.jsx("div",{className:"line-clamp-2 break-all text-neutral-content",children:e.jsx(L,{children:s.introduce})}),s.description&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsx("div",{className:"text-gray-1 leading-8",children:e.jsx(L,{children:s.description})})]}),e.jsx(h,{}),a?e.jsx(S,{className:"my-4"}):(r==null?void 0:r.data[0])&&e.jsxs("p",{className:"flex items-center",children:[e.jsx(P,{}),e.jsx(x,{}),e.jsx("span",{className:"flex-shrink-0",children:"最近更新"}),e.jsx(x,{}),e.jsxs("span",{className:"inline-flex min-w-0 flex-shrink",children:[e.jsx(u,{href:`/data?.data/${r==null?void 0:r.data[0].nid}`,className:"truncate",children:(c=r==null?void 0:r.data[0])==null?void 0:c.title}),e.jsxs("span",{className:"flex-shrink-0",children:["(",e.jsx(Q,{date:(r==null?void 0:r.data[0].modified)||(r==null?void 0:r.data[0].created),displayAbsoluteTimeAfterDay:1/0}),")"]})]})]}),!a&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsxs("p",{className:"flex items-center",children:[e.jsx(S1,{}),e.jsx(x,{}),"共有文章:",(i=r==null?void 0:r.pagination)==null?void 0:i.total," 篇"]})]})]}):null},R1=()=>{const t=l(s=>s==null?void 0:s.data.topic);return t?e.jsx(u,{href:w(C.NoteTopic,{slug:t.slug}),children:e.jsx("span",{className:"flex-grow truncate opacity-80 hover:opacity-100",children:t.name})}):null},H1=o.memo(()=>{const t=l(s=>s==null?void 0:s.data.topic);return t?e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"!w-3/4"}),e.jsx("p",{className:"mb-1 flex min-w-0 flex-col overflow-hidden text-neutral-content/50",children:"此文章收录于专栏:"}),e.jsx(F,{placement:"right",strategy:"fixed",wrapperClassName:"flex flex-grow flex-shrink min-w-0",TriggerComponent:R1,children:e.jsx(E1,{topic:t})})]}):null});H1.displayName="NoteTopicInfo";function P1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",...t,children:e.jsx("path",{fill:"currentColor",d:"M7.651 11.628c-.406 0-.713-.149-.92-.445c-.209-.295-.312-.69-.312-1.182c0-1.084.41-1.627 1.232-1.627c.164 0 .342.055.534.164s.353.3.484.574l1.232-.64c-.492-.887-1.308-1.33-2.447-1.33c-.778 0-1.422.257-1.93.771c-.51.516-.765 1.211-.765 2.088c0 .898.253 1.6.756 2.103c.504.504 1.168.754 1.988.754a2.697 2.697 0 0 0 2.416-1.445l-1.135-.574c-.219.525-.597.789-1.133.789zm5.307 0c-.406 0-.713-.149-.92-.445c-.209-.295-.312-.69-.312-1.182c0-1.084.41-1.627 1.232-1.627c.174 0 .357.055.549.164c.192.11.353.3.486.574l1.215-.64c-.482-.887-1.293-1.33-2.432-1.33c-.777 0-1.42.257-1.93.771c-.509.516-.763 1.211-.763 2.088c0 .898.248 1.6.747 2.103c.498.504 1.163.754 1.996.754c.503 0 .97-.129 1.396-.384a2.831 2.831 0 0 0 1.02-1.06l-1.151-.575c-.219.525-.598.789-1.133.789zm3.855-8.444C14.954 1.328 12.679.4 9.987.4c-2.659 0-4.91.928-6.752 2.784C1.345 5.104.4 7.375.4 10c0 2.624.945 4.88 2.835 6.768c1.89 1.888 4.142 2.832 6.752 2.832c2.644 0 4.935-.952 6.874-2.856C18.687 14.936 19.6 12.688 19.6 10c0-2.688-.93-4.96-2.787-6.816zM15.61 15.496c-1.586 1.568-3.452 2.352-5.6 2.352c-2.146 0-3.996-.776-5.55-2.329c-1.554-1.551-2.33-3.391-2.33-5.52c0-2.127.784-3.983 2.354-5.567C5.99 2.896 7.832 2.127 10.01 2.127c2.18 0 4.03.769 5.552 2.305C17.101 5.952 17.87 7.807 17.87 10c0 2.208-.753 4.04-2.259 5.496z"})})}function B(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 256 256",...t,children:e.jsx("path",{fill:"currentColor",d:"M128 56a72 72 0 1 0 72 72a72.1 72.1 0 0 0-72-72Zm0 120a48 48 0 1 1 48-48a48 48 0 0 1-48 48ZM116 28V12a12 12 0 0 1 24 0v16a12 12 0 0 1-24 0Zm74.2 37.8a12 12 0 0 1 0-17l11.3-11.3a12 12 0 0 1 17 17l-11.3 11.3a12 12 0 0 1-8.5 3.5a12.2 12.2 0 0 1-8.5-3.5ZM256 128a12 12 0 0 1-12 12h-16a12 12 0 0 1 0-24h16a12 12 0 0 1 12 12Zm-37.5 73.5a12 12 0 0 1 0 17a11.6 11.6 0 0 1-8.5 3.5a12 12 0 0 1-8.5-3.5l-11.3-11.3a12 12 0 0 1 17-17ZM140 228v16a12 12 0 0 1-24 0v-16a12 12 0 0 1 24 0Zm-74.2-37.8a12 12 0 0 1 0 17l-11.3 11.3A12 12 0 0 1 46 222a11.6 11.6 0 0 1-8.5-3.5a12 12 0 0 1 0-17l11.3-11.3a12 12 0 0 1 17 0ZM28 140H12a12 12 0 0 1 0-24h16a12 12 0 0 1 0 24Zm9.5-85.5a12 12 0 0 1 17-17l11.3 11.3a12 12 0 0 1 0 17a12.2 12.2 0 0 1-8.5 3.5a12 12 0 0 1-8.5-3.5Z"})})}function T(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M11 15a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm10 0a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-9.2 3.4a1 1 0 1 0-1.6 1.2c.69.92 2.688 2.4 5.8 2.4c3.112 0 5.11-1.48 5.8-2.4a1 1 0 0 0-1.6-1.2c-.31.413-1.712 1.6-4.2 1.6c-2.488 0-3.89-1.188-4.2-1.6Z"}),e.jsx("path",{d:"M4.763 5.423C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576c0 4.061-1.227 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.236-4.423C2.226 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.763-10.576Zm1.472 1.355C4.105 9.089 3 12.328 3 15.998c0 3.671 1.106 6.91 3.235 9.222c2.116 2.298 5.333 3.778 9.764 3.778c4.43 0 7.648-1.48 9.764-3.778c2.129-2.311 3.235-5.55 3.235-9.221c0-3.67-1.106-6.91-3.235-9.221C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778Z"})]})})}function _1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M9.07 9.988c-.594.563-.952 1.24-1.096 1.67a.5.5 0 1 1-.948-.316c.19-.57.631-1.392 1.355-2.08C9.113 8.567 10.148 8 11.5 8a.5.5 0 1 1 0 1c-1.048 0-1.846.433-2.43.988ZM14 15a3 3 0 1 1-6 0a3 3 0 0 1 6 0Zm-4 10a1.99 1.99 0 0 1-.619 1.446A2 2 0 0 1 6 25v-3a2 2 0 1 1 4 0v3Zm11-7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-8.707 4.293a1 1 0 0 0 1.404 1.424l.008-.007a2.7 2.7 0 0 1 .492-.315c.378-.19.976-.395 1.803-.395s1.425.206 1.803.394a2.7 2.7 0 0 1 .492.316l.008.007a1 1 0 0 0 1.404-1.424l-.001-.002l-.002-.001l-.003-.003l-.008-.008l-.02-.02a3.347 3.347 0 0 0-.26-.215a4.69 4.69 0 0 0-.716-.438C18.075 21.294 17.173 21 16 21s-2.075.294-2.697.606a4.69 4.69 0 0 0-.716.438a3.347 3.347 0 0 0-.26.215l-.02.02l-.008.008l-.003.003l-.002.002h-.001ZM22.93 9.988c.594.563.952 1.24 1.096 1.67a.5.5 0 1 0 .948-.316c-.19-.57-.631-1.392-1.355-2.08C22.887 8.567 21.852 8 20.5 8a.5.5 0 1 0 0 1c1.048 0 1.846.433 2.43.988Z"}),e.jsx("path",{d:"M4.763 5.423C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576c0 4.061-1.227 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.236-4.423C2.226 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.763-10.576Zm1.472 1.355C4.105 9.089 3 12.328 3 15.998c0 2.879.68 5.492 2 7.6V25a3 3 0 0 0 4.463 2.62c1.78.875 3.952 1.378 6.536 1.378c4.43 0 7.648-1.48 9.764-3.778c2.129-2.311 3.235-5.55 3.235-9.221c0-3.67-1.106-6.91-3.235-9.221C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778Z"})]})})}function Y1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M14.211 19a4.442 4.442 0 0 1-3.68 1.95c-.452 0-.889-.067-1.301-.192a.147.147 0 0 0-.19.138a1.104 1.104 0 0 1-2.209 0V20a1 1 0 0 1 1-1h6.38Zm3.539 0a4.442 4.442 0 0 0 3.68 1.95c.452 0 .89-.067 1.302-.192c.093-.029.19.04.19.138a1.104 1.104 0 0 0 2.208 0V20a1 1 0 0 0-1-1h-6.38ZM10.016 7.404l.003-.016a.5.5 0 0 1 .986.165l-.493-.082l.493.083v.002l-.001.004l-.002.01a1.753 1.753 0 0 1-.033.151a4.498 4.498 0 0 1-.745 1.552c-.65.866-1.795 1.702-3.718 1.702a.5.5 0 0 1 0-1c1.583 0 2.44-.667 2.917-1.302a3.496 3.496 0 0 0 .575-1.194l.018-.075Zm12.007 0l-.003-.016v-.001a.5.5 0 0 0-.986.166l.493-.082l-.493.083v.002l.001.004l.002.01a1.753 1.753 0 0 0 .034.151a4.494 4.494 0 0 0 .745 1.552c.65.866 1.794 1.702 3.717 1.702a.5.5 0 1 0 0-1c-1.583 0-2.44-.667-2.917-1.302a3.497 3.497 0 0 1-.575-1.194a1.791 1.791 0 0 1-.018-.075Zm-8.506 15.031a.75.75 0 0 0-1.003 1.115c.926.834 2.25 1.206 3.506 1.206c1.254 0 2.58-.372 3.506-1.206a.75.75 0 1 0-1.004-1.115c-.576.518-1.504.822-2.502.822c-.999 0-1.927-.304-2.503-.822Zm1.3-6.15c0 .619-.152 1.202-.42 1.715H7.834a3.701 3.701 0 1 1 6.982-1.715Zm-1.288.054c.546-.378.614-1.226.151-1.894c-.462-.669-1.28-.904-1.826-.527c-.546.378-.614 1.227-.151 1.895c.462.668 1.28.904 1.826.526ZM17.565 18h6.561a3.701 3.701 0 1 0-6.561 0Zm5.446-1.66c-.546.377-1.364.141-1.826-.527c-.463-.668-.395-1.517.151-1.895c.547-.377 1.364-.142 1.827.527c.462.668.394 1.516-.152 1.894Z"}),e.jsx("path",{d:"M4.768 5.391C7.321 2.62 11.108.963 16.018.963s8.698 1.656 11.25 4.428c2.541 2.759 3.769 6.524 3.769 10.59c0 4.067-1.228 7.832-3.768 10.59C24.716 29.343 20.929 31 16.019 31S7.32 29.343 4.768 26.57C2.227 23.813 1 20.048 1 15.981c0-4.066 1.228-7.831 3.768-10.59ZM6.24 6.746C4.108 9.061 3 12.306 3 15.981c0 3.676 1.108 6.92 3.24 9.236C8.359 27.517 11.58 29 16.018 29c4.438 0 7.66-1.482 9.78-3.784c2.131-2.315 3.239-5.559 3.239-9.235c0-3.675-1.108-6.92-3.24-9.235c-2.12-2.301-5.341-3.783-9.779-3.783c-4.437 0-7.659 1.482-9.778 3.783Z"})]})})}function A(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M14.999 13.29a.75.75 0 0 0-.71-.789c-.828-.044-1.504-.241-2.039-.613c-.527-.367-.979-.948-1.289-1.876a.75.75 0 1 0-1.422.476c.394 1.18 1.019 2.049 1.854 2.63c.828.577 1.8.827 2.817.88a.75.75 0 0 0 .789-.708Zm2.002 0a.75.75 0 0 1 .709-.789c.83-.044 1.505-.241 2.04-.613c.526-.367.978-.948 1.289-1.876a.75.75 0 1 1 1.422.476c-.394 1.18-1.019 2.049-1.854 2.63c-.828.577-1.8.827-2.817.88a.75.75 0 0 1-.79-.708Zm-4.107 12.157C13.066 25.104 13.995 24 16 24s2.934 1.104 3.105 1.447a1 1 0 0 0 1.79-.894C20.398 23.563 18.794 22 16 22c-2.795 0-4.4 1.562-4.895 2.553a1 1 0 0 0 1.79.894ZM12 19a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm8 0a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),e.jsx("path",{d:"M15.999 29.998c9.334 0 13.999-6.268 13.999-14c0-7.73-4.665-13.998-14-13.998C6.665 2 2 8.268 2 15.999c0 7.731 4.664 13.999 13.999 13.999Zm11.999-14c0 3.476-1.046 6.455-2.97 8.545c-1.9 2.063-4.835 3.455-9.03 3.455c-4.193 0-7.128-1.393-9.028-3.455C5.046 22.453 4 19.473 4 15.999c0-3.475 1.046-6.454 2.97-8.544C8.87 5.392 11.805 4 16 4s7.129 1.392 9.028 3.455c1.925 2.09 2.97 5.07 2.97 8.544Z"})]})})}function V1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13 5.5a.5.5 0 0 0-1 0c0 .864-.32 1.476-.77 1.876c-.46.409-1.087.624-1.73.624a.5.5 0 0 0 0 1c.857 0 1.73-.285 2.395-.876C12.569 7.524 13 6.636 13 5.5Zm6.5-.5a.5.5 0 0 0-.5.5c0 1.136.43 2.024 1.105 2.624c.666.591 1.538.876 2.395.876a.5.5 0 0 0 0-1c-.643 0-1.27-.215-1.73-.624c-.45-.4-.77-1.012-.77-1.876a.5.5 0 0 0-.5-.5Zm4 19c.829 0 1.513-.677 1.377-1.494a9.002 9.002 0 0 0-17.754 0C6.987 23.323 7.671 24 8.5 24h15ZM8.106 10.553a1 1 0 0 1 1.341-.448l4 2a1 1 0 0 1 0 1.79l-4 2a1 1 0 1 1-.894-1.79L10.763 13l-2.21-1.106a1 1 0 0 1-.447-1.341Zm14.447-.448a1 1 0 0 1 .894 1.79L21.237 13l2.21 1.105a1 1 0 0 1-.894 1.79l-4-2a1 1 0 0 1 0-1.79l4-2Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function I(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[e.jsx("path",{fill:"currentColor",d:"M8 22v-3h16v3H8Zm3-7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm10 0a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.765 5.423C7.315 2.654 11.096 1 16 1c4.904 0 8.686 1.654 11.235 4.423C29.773 8.178 31 11.938 31 15.999c0 4.061-1.226 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.235-4.423C2.227 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.764-10.576Zm-1.726 9.41a17.66 17.66 0 0 0-.038 1.166c0 2.189.393 4.224 1.162 6.001H8v2h16v-2h3.837c.769-1.777 1.162-3.812 1.162-6.001c0-.394-.013-.783-.038-1.166L24 17.589V17H8v.589l-4.96-2.756Zm.283-2.131l5.593 3.107c.152-.092.318-.164.496-.212C11.073 15.153 13.876 14.5 16 14.5c2.124 0 4.927.653 6.589 1.097c.178.048.344.12.495.212l5.594-3.107c-.47-2.306-1.45-4.335-2.914-5.924C23.648 4.48 20.431 3 16 3c-4.43 0-7.648 1.48-9.764 3.778c-1.464 1.59-2.444 3.618-2.914 5.924ZM26.736 24h-2.759a1.868 1.868 0 0 1-1.181 1.484C21.22 26.076 18.379 27 16 27c-2.379 0-5.22-.924-6.796-1.516A1.868 1.868 0 0 1 8.023 24H5.264c.296.43.62.838.972 1.22c2.116 2.298 5.333 3.778 9.764 3.778c4.43 0 7.648-1.48 9.764-3.778c.352-.382.676-.79.972-1.22Z",clipRule:"evenodd"})]})}function $1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M6.235 6.778c-1.84 1.996-2.915 4.685-3.174 7.746l-2.053 2.053A19.92 19.92 0 0 1 1 16c0-4.061 1.226-7.821 3.763-10.576C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576l-.003.332l-2.084-2.085c-.3-2.945-1.365-5.532-3.148-7.468C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778ZM27.937 21.76a11.491 11.491 0 0 1-2.174 3.46c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778a11.47 11.47 0 0 1-2.14-3.38a3.138 3.138 0 0 1-2.175-.092c.624 1.803 1.568 3.442 2.843 4.827c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c1.25-1.358 2.183-2.96 2.807-4.722a3.135 3.135 0 0 1-2.104-.094Z"}),e.jsx("path",{d:"M22.669 16H9.58a3.107 3.107 0 0 1-.874 1.707l-1.21 1.211C8.302 21.547 10.424 25 16 25c5.712 0 7.8-3.626 8.561-6.274l-1.018-1.019A3.107 3.107 0 0 1 22.669 16ZM4.63 20.37L8 17a2.121 2.121 0 1 0-3-3l-3.37 3.37a2.121 2.121 0 0 0 3 3ZM24.25 17l3.37 3.37a2.121 2.121 0 1 0 3-3L27.25 14a2.121 2.121 0 0 0-3 3ZM9.349 10.412c-.21.228-.32.532-.367.779a1 1 0 0 1-1.964-.382c.089-.456.31-1.153.858-1.749C8.453 8.431 9.316 8 10.5 8c1.195 0 2.062.452 2.636 1.082c.544.597.77 1.292.85 1.747a1 1 0 0 1-1.971.342a1.546 1.546 0 0 0-.358-.742C11.47 10.222 11.142 10 10.5 10c-.653 0-.972.217-1.151.412Zm11.001 0c-.21.228-.32.532-.368.779a1 1 0 0 1-1.963-.382c.088-.456.31-1.153.857-1.749C19.453 8.431 20.316 8 21.5 8c1.196 0 2.062.452 2.636 1.082c.544.597.77 1.292.85 1.747a1 1 0 0 1-1.971.342a1.545 1.545 0 0 0-.358-.742C22.47 10.222 22.142 10 21.5 10c-.653 0-.971.217-1.15.412Z"})]})})}function b(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M12 16a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm8 0a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm.901 8.006c.11.542-.35.994-.902.994H12c-.552 0-1.01-.452-.901-.994a5.002 5.002 0 0 1 9.802 0Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function q1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm10-2a2 2 0 1 1-4 0a2 2 0 0 1 4 0ZM8.512 23.677A2.988 2.988 0 0 0 11 25h10a2.989 2.989 0 0 0 2.437-1.25A2.984 2.984 0 0 0 24 22c0-.699-.24-1.342-.64-1.852A2.995 2.995 0 0 0 21 19H11c-.906 0-1.718.401-2.268 1.036A2.988 2.988 0 0 0 8 22c0 .621.189 1.198.512 1.677ZM11 20h10a2 2 0 0 1 1.792 1.11a.998.998 0 0 1-.792.39H10a.998.998 0 0 1-.792-.39A2 2 0 0 1 11 20Zm11.792 2.89A2 2 0 0 1 21 24H11a2 2 0 0 1-1.792-1.11a.998.998 0 0 1 .792-.39h12c.322 0 .609.152.792.39Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function O1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M9.07 8.988c-.594.562-.952 1.24-1.096 1.67a.5.5 0 1 1-.948-.316c.19-.57.631-1.392 1.355-2.08C9.113 7.567 10.148 7 11.5 7a.5.5 0 1 1 0 1c-1.048 0-1.846.433-2.43.988ZM14 14a2 2 0 1 1-4 0a2 2 0 0 1 4 0Zm-5 7c1.657 0 3-.895 3-2s-1.343-2-3-2s-3 .895-3 2s1.343 2 3 2Zm17-2c0 1.105-1.343 2-3 2s-3-.895-3-2s1.343-2 3-2s3 .895 3 2Zm-6-3a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm2.93-7.012c.594.562.952 1.24 1.096 1.67a.5.5 0 1 0 .948-.316c-.19-.57-.631-1.392-1.355-2.08C22.887 7.567 21.852 7 20.5 7a.5.5 0 1 0 0 1c1.048 0 1.846.433 2.43.988ZM13 23a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function U1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M9.984 5.06a6.5 6.5 0 1 1 11.286 6.436A5.5 5.5 0 0 1 17.5 21L9 20.999a8 8 0 1 1 .984-15.94zm2.071.544a8.026 8.026 0 0 1 4.403 4.495a5.529 5.529 0 0 1 3.12.307a4.5 4.5 0 0 0-7.522-4.802z"})})}function X1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M19.35 10.03A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.03A6.004 6.004 0 0 0 0 14a6 6 0 0 0 6 6h13a5 5 0 0 0 5-5c0-2.64-2.05-4.78-4.65-4.97Z"})})}function W1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m20.79 13.95l-2.33.62l-2-1.13v-2.88l2-1.13l2.33.62l.52-1.93l-1.77-.47l.46-1.77l-1.93-.52l-.62 2.33l-2 1.13L13 7.38V5.12l1.71-1.71L13.29 2L12 3.29L10.71 2L9.29 3.41L11 5.12v2.26L8.5 8.82l-2-1.13l-.58-2.33L4 5.88l.47 1.77l-1.77.47l.52 1.93l2.33-.62l2 1.13v2.89l-2 1.13l-2.33-.62l-.52 1.93l1.77.47L4 18.12l1.93.52l.62-2.33l2-1.13L11 16.62v2.26l-1.71 1.71L10.71 22L12 20.71L13.29 22l1.41-1.41l-1.7-1.71v-2.26l2.5-1.45l2 1.13l.62 2.33l1.88-.51l-.47-1.77l1.77-.47l-.51-1.93M9.5 10.56L12 9.11l2.5 1.45v2.88L12 14.89l-2.5-1.45v-2.88Z"})})}function G1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",...t,children:e.jsx("path",{fill:"currentColor",d:"M4.158 12.025a.5.5 0 0 1 .316.633l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-1 3a.5.5 0 1 1-.948-.316l1-3a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-1 3a.5.5 0 1 1-.948-.316l1-3a.5.5 0 0 1 .632-.317zm.247-6.998a5.001 5.001 0 0 0-9.499-1.004A3.5 3.5 0 1 0 3.5 11H13a3 3 0 0 0 .405-5.973z"})})}function K1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",...t,children:e.jsx("path",{fill:"currentColor",d:"M2.658 11.026a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm9.5 0a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 0 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm-7.5 1.5a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm9.5 0a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 0 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm-7.105-1.25A.5.5 0 0 1 7.5 11h1a.5.5 0 0 1 .474.658l-.28.842H9.5a.5.5 0 0 1 .39.812l-2 2.5a.5.5 0 0 1-.875-.433L7.36 14H6.5a.5.5 0 0 1-.447-.724l1-2zm6.352-7.249a5.001 5.001 0 0 0-9.499-1.004A3.5 3.5 0 1 0 3.5 10H13a3 3 0 0 0 .405-5.973z"})})}const Q1=t=>{const s={晴:B,多云:U1,阴:X1,雪:W1,雨:G1,雷雨:K1};return D.createElement(s[t]||B)},J1=t=>{const s={开心:T,伤心:Y1,大哭:_1,生气:A,痛苦:V1,悲哀:I,不快:I,激动:$1,担心:b,可怕:q1,可恶:A,绝望:b,焦虑:O1};return D.createElement(s[t]||T)},d=e.jsx(x,{className:"!mx-2 scale-y-50"}),j="flex items-center space-x-1 flex-shrink-0",e2=()=>e.jsxs(e.Fragment,{children:[e.jsx(t2,{}),e.jsx(s2,{}),e.jsx(n2,{}),e.jsx(c2,{}),e.jsx(r2,{})]}),t2=()=>{const t=l(s=>s==null?void 0:s.data.weather);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[Q1(t),e.jsx("span",{className:"font-medium",children:t})]},"weather")]}):null},s2=()=>{const t=l(s=>s==null?void 0:s.data.mood);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[J1(t),e.jsx("span",{className:"font-medium",children:t})]},"mood")]}):null},n2=()=>{const t=l(s=>s==null?void 0:s.data.count.read);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[e.jsx("i",{className:"icon-[mingcute--book-6-line]"}),e.jsx("span",{className:"font-medium",children:t})]},"readcount")]}):null},c2=()=>{const t=l(s=>s==null?void 0:s.data.count.like);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[e.jsx("i",{className:"icon-[mingcute--heart-line]"}),e.jsx("span",{className:"font-medium",children:e.jsx(J,{children:t})})]},"linkcount")]}):null},r2=()=>e.jsxs(e.Fragment,{children:[d,e.jsx("span",{className:"inline-flex items-center",children:e.jsx("a",{href:"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh",target:"_blank",className:"inline-flex cursor-pointer items-center text-current",rel:"noreferrer",children:e.jsx("span",{title:"知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议",className:"inline-flex items-center",children:e.jsx(P1,{})})})},"cc")]}),v2=t=>{const{data:s,isLoading:n}=f({...e1.note.byNid(t.noteId.toString())}),r=o.useMemo(()=>v(null),[]);return n?e.jsx(S,{className:"w-full",useDefaultLoadingText:!0}):s?e.jsxs(t1,{overrideAtom:r,children:[e.jsx(s1,{data:s}),e.jsx(n1,{children:e.jsxs(M1,{children:[e.jsxs("header",{children:[e.jsx(f1,{}),e.jsxs("span",{className:"flex flex-wrap items-center text-sm text-neutral-content/60",children:[e.jsx(w1,{}),e.jsx(Z1,{children:e.jsx(e2,{})})]}),e.jsx(L1,{})]}),e.jsxs(T1,{children:[e.jsx(c1,{cid:r1(s)}),e.jsx(o1,{children:e.jsx(i1,{children:e.jsx(v1,{children:e.jsx(C1,{})})})})]})]})})]}):null};export{v2 as NotePreview}; +import{j as e,r as o,R as D}from"./index-HRfeE_7B.js";import{F,e as $,g as q,b as f,p as O,m as U,L as S}from"./Markdown-tpcPSstc.js";import{c as g,a as X}from"./helper-Oi49T1hx.js";import{b as z,f as W,e as E,g as R,t as G,c as H}from"./LinkCard-gCgkDO82.js";import{e as l,f as N,M as P,c as K,r as w,R as C,a as Q,N as J,q as e1,h as t1,i as s1,P as n1,X as c1,g as r1,B as i1}from"./utils-DGmE6P1M.js";import{m as _,c as u}from"./spring-0AHu48BV.js";import{M as l1,k as a1,W as o1}from"./Gallery-32-V3LXo.js";import{u as m1}from"./FlexText-0MKUXZWJ.js";import{a as v,e as d1,j as h1,u as x1,D as h,f as x}from"./Divider-sIhvLlX0.js";import{s as u1}from"./index-iAcAeRlm.js";import{A as j1}from"./Collapse-JZfrBou4.js";import"./env-jTYMx4r5.js";import"./RichLink-6jHOm4uG.js";import"./customParseFormat-ePfR8DqR.js";const p1=t=>{const s=z(),n=W(),{id:r,type:a,className:m}=t;if(!s)return null;const c=n(`#/${a}/edit?id=${r}`);return c?e.jsxs("a",{href:c,"data-hide-print":!0,target:"_blank",className:g("flex h-8 w-8 rounded-full text-accent no-underline opacity-80 ring-1 ring-slate-200 duration-200 center hover:opacity-100 dark:ring-neutral-800",m),rel:"noreferrer",children:[e.jsx("i",{className:"icon-[mingcute--quill-pen-line]"}),e.jsx("span",{className:"sr-only",children:"编辑"})]}):null},M={"with-indent":"_with-indent_1n4mw_1","with-serif":"_with-serif_1n4mw_91"},f1=()=>{const t=l(n=>n==null?void 0:n.data.title),s=l(n=>n==null?void 0:n.data.id);return t?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mt-8 text-left font-bold text-base-content/95",children:t}),e.jsx(p1,{type:"notes",id:s,className:"absolute right-0 top-0"})]}):null},g1=()=>{const t=l(n=>n==null?void 0:n.data.created);if(!t)return null;const s=E(t).locale("zh-cn").format("YYYY 年 M 月 D 日 dddd");return e.jsxs("span",{className:"inline-flex items-center space-x-1",children:[e.jsx(P,{}),e.jsx("time",{className:"font-medium",suppressHydrationWarning:!0,children:s})]})},w1=()=>{const t=l(n=>({created:n==null?void 0:n.data.created,modified:n==null?void 0:n.data.modified}));if(!(t!=null&&t.created))return null;const s=`创建于 ${N(t.created,"YYYY 年 M 月 D 日 dddd")}${t.modified?`,修改于 ${N(t.modified,"YYYY 年 M 月 D 日 dddd")}`:""}`;return e.jsx(F,{as:"span",TriggerComponent:g1,children:s})},C1=()=>{const t=l(s=>s==null?void 0:s.data.text);return e.jsx($,{className:"mt-10",allowsScript:!0,renderers:N1,value:t})},v1=t=>{const s=l(n=>(n==null?void 0:n.data.images)||q);return e.jsx(l1,{images:s,children:t.children})},N1={text:{react(t,s,n){return e.jsx("span",{className:"indent",children:t.content},n==null?void 0:n.key)}}},M1=t=>e.jsx("article",{className:X("prose relative",M["with-indent"],M["with-serif"]),children:t.children}),Z1=t=>R()?e.jsx(e.Fragment,{children:t.children}):null,p=v(null),y1=o.memo(({noteId:t,children:s})=>{const n=d1(p);return m1(()=>{h1.set(p,t)}),o.useEffect(()=>{n(t)},[t]),s});y1.displayName="CurrentNoteIdProvider";const Y=()=>x1(p),Z={info:"bg-sky-50 dark:bg-sky-800 dark:text-white",warning:"bg-orange-100 dark:bg-orange-800 dark:text-white",error:"bg-rose-100 dark:bg-rose-800 dark:text-white",success:"bg-emerald-100 dark:bg-emerald-800 dark:text-white",secondary:"bg-sky-100 dark:bg-sky-800 dark:text-white"},k1=()=>{const t=l(n=>n==null?void 0:n.data.meta);let s=t==null?void 0:t.banner;if(s)return typeof s=="string"?{type:"info",message:s,className:Z.info}:(s={...s},s.type??(s.type="info"),s.className??(s.className=Z[s.type]),s)},L1=()=>{const t=k1();return t?e.jsx("div",{className:"mx-[var(--padding-h)] mb-4 mt-8 text-sm",children:e.jsx(B1,{...t})}):null},B1=t=>e.jsx("div",{className:g("flex justify-center p-4 leading-8",t.className),style:t.style,children:t.message}),T1=({children:t})=>{const s=l(c=>c==null?void 0:c.data.secret),n=l(c=>c==null?void 0:c.data.nid),r=o.useMemo(()=>new Date(s),[s]),a=s?E(s).isAfter(new Date):!1,m=z();if(o.useEffect(()=>{if(!n)return;let c;const i=+r-+new Date;return a&&i&&i<28&&(c=setTimeout(()=>{G("刷新以查看解锁的文章","info",{autoClose:!1})},i)),()=>{clearTimeout(c)}},[a,r,n]),!n)return null;if(a){const c=s?Intl.DateTimeFormat("zh-cn",{hour12:!1,hour:"numeric",minute:"numeric",year:"numeric",day:"numeric",month:"long"}).format(new Date(s)):"";return m?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"my-6 text-center",children:[e.jsxs("p",{children:["这是一篇非公开的文章。(将在 ",c," 解锁)"]}),e.jsx("p",{children:"现在处于登录状态,预览模式:"})]}),t]}):e.jsxs("div",{className:"my-6 text-center",children:["这篇文章暂时没有公开呢,将会在 ",c," 解锁,再等等哦"]})}return t};v(0);const A1=K({from:{translateX:-70,opacity:.001},to:{translateX:0,opacity:1}}),I1=o.memo(()=>Y()?e.jsx(D1,{}):null);I1.displayName="NoteTimeline";const b1={transition:{staggerChildren:.5}},D1=()=>{var m;const t=l(c=>{const i=c==null?void 0:c.data;return i?{id:i.id,nid:i.nid,title:i.title,created:i.created}:null}),s=Y(),n=t==null?void 0:t.id,{data:r}=f({queryKey:["note_timeline",n],queryFn:async({queryKey:c})=>{const[,i]=c;if(!i)throw"";return(await H.note.getMiddleList(i,10)).$serialized.data},enabled:n!==void 0,placeholderData:a1}),a=t?[{title:t.title,nid:t.nid,id:t.id,created:t.created}]:[];return e.jsx(j1,{children:e.jsx(_.ul,{className:"space-y-1 [&_i]:hover:text-accent",animate:b1,children:(m=r||a)==null?void 0:m.map(c=>{const i=c.nid===parseInt(s||"0");return e.jsx(V,{active:i,title:c.title,nid:c.nid},c.id)})})})},y=u1({base:"text-neutral-content min-w-0 truncate text-left opacity-50 transition-all tabular-nums hover:opacity-80",variants:{status:{active:"ml-2 opacity-100"}}}),k={opacity:1e-4},F1={opacity:1},V=o.memo(t=>{const{active:s,nid:n,title:r}=t;return e.jsxs(_.li,{layout:!0,className:"flex items-center",layoutId:`note-${n}`,initial:k,animate:F1,exit:k,children:[s&&e.jsx(A1,{as:"span",className:"inline-flex items-center",children:e.jsx("i",{className:"icon-[material-symbols--arrow-circle-right-outline-rounded] duration-200"})}),e.jsx(u,{onClick:O,prefetch:!1,className:g(s?y({status:"active"}):y()),href:w(C.Note,{id:n}),scroll:!1,children:r})]})});V.displayName="MemoedItem";function S1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m15.54 3.5l4.96 4.97l-1.43 1.41l-4.95-4.95l1.42-1.43M3.5 19.78l6.5-6.47c-.1-.31-.03-.7.23-.96c.39-.39 1.03-.39 1.42 0c.39.4.39 1.03 0 1.42c-.26.26-.65.33-.96.23l-6.47 6.5l10.61-3.55l3.53-6.36l-4.94-4.95l-6.37 3.53L3.5 19.78Z"})})}const z1={allowedTypes:["text","paragraph","codeInline","link","linkMailtoDetector","linkBareUrlDetector","linkAngleBraceStyleDetector","textStrikethroughed","textEmphasized","textBolded","textEscaped"],forceBlock:!0,wrapper:({children:t})=>e.jsx("div",{className:"leading-7",children:t})},L=t=>e.jsx(U,{options:z1,children:t.children}),E1=t=>{var c,i;const{topic:s}=t,{id:n}=s,{data:r,isLoading:a}=f({queryKey:[`topic-${n}`],queryFn:()=>H.note.getNoteByTopicId(n,1,1,{sortBy:"created",sortOrder:-1})});return R()?e.jsxs("div",{className:"flex w-[400px] flex-col",children:[e.jsx(u,{href:w(C.NoteTopic,{slug:s.slug}),children:e.jsx("h1",{className:"!m-0 inline-block pb-2 text-lg font-medium",children:s.name})}),e.jsx("div",{className:"line-clamp-2 break-all text-neutral-content",children:e.jsx(L,{children:s.introduce})}),s.description&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsx("div",{className:"text-gray-1 leading-8",children:e.jsx(L,{children:s.description})})]}),e.jsx(h,{}),a?e.jsx(S,{className:"my-4"}):(r==null?void 0:r.data[0])&&e.jsxs("p",{className:"flex items-center",children:[e.jsx(P,{}),e.jsx(x,{}),e.jsx("span",{className:"flex-shrink-0",children:"最近更新"}),e.jsx(x,{}),e.jsxs("span",{className:"inline-flex min-w-0 flex-shrink",children:[e.jsx(u,{href:`/data?.data/${r==null?void 0:r.data[0].nid}`,className:"truncate",children:(c=r==null?void 0:r.data[0])==null?void 0:c.title}),e.jsxs("span",{className:"flex-shrink-0",children:["(",e.jsx(Q,{date:(r==null?void 0:r.data[0].modified)||(r==null?void 0:r.data[0].created),displayAbsoluteTimeAfterDay:1/0}),")"]})]})]}),!a&&e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsxs("p",{className:"flex items-center",children:[e.jsx(S1,{}),e.jsx(x,{}),"共有文章:",(i=r==null?void 0:r.pagination)==null?void 0:i.total," 篇"]})]})]}):null},R1=()=>{const t=l(s=>s==null?void 0:s.data.topic);return t?e.jsx(u,{href:w(C.NoteTopic,{slug:t.slug}),children:e.jsx("span",{className:"flex-grow truncate opacity-80 hover:opacity-100",children:t.name})}):null},H1=o.memo(()=>{const t=l(s=>s==null?void 0:s.data.topic);return t?e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"!w-3/4"}),e.jsx("p",{className:"mb-1 flex min-w-0 flex-col overflow-hidden text-neutral-content/50",children:"此文章收录于专栏:"}),e.jsx(F,{placement:"right",strategy:"fixed",wrapperClassName:"flex flex-grow flex-shrink min-w-0",TriggerComponent:R1,children:e.jsx(E1,{topic:t})})]}):null});H1.displayName="NoteTopicInfo";function P1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",...t,children:e.jsx("path",{fill:"currentColor",d:"M7.651 11.628c-.406 0-.713-.149-.92-.445c-.209-.295-.312-.69-.312-1.182c0-1.084.41-1.627 1.232-1.627c.164 0 .342.055.534.164s.353.3.484.574l1.232-.64c-.492-.887-1.308-1.33-2.447-1.33c-.778 0-1.422.257-1.93.771c-.51.516-.765 1.211-.765 2.088c0 .898.253 1.6.756 2.103c.504.504 1.168.754 1.988.754a2.697 2.697 0 0 0 2.416-1.445l-1.135-.574c-.219.525-.597.789-1.133.789zm5.307 0c-.406 0-.713-.149-.92-.445c-.209-.295-.312-.69-.312-1.182c0-1.084.41-1.627 1.232-1.627c.174 0 .357.055.549.164c.192.11.353.3.486.574l1.215-.64c-.482-.887-1.293-1.33-2.432-1.33c-.777 0-1.42.257-1.93.771c-.509.516-.763 1.211-.763 2.088c0 .898.248 1.6.747 2.103c.498.504 1.163.754 1.996.754c.503 0 .97-.129 1.396-.384a2.831 2.831 0 0 0 1.02-1.06l-1.151-.575c-.219.525-.598.789-1.133.789zm3.855-8.444C14.954 1.328 12.679.4 9.987.4c-2.659 0-4.91.928-6.752 2.784C1.345 5.104.4 7.375.4 10c0 2.624.945 4.88 2.835 6.768c1.89 1.888 4.142 2.832 6.752 2.832c2.644 0 4.935-.952 6.874-2.856C18.687 14.936 19.6 12.688 19.6 10c0-2.688-.93-4.96-2.787-6.816zM15.61 15.496c-1.586 1.568-3.452 2.352-5.6 2.352c-2.146 0-3.996-.776-5.55-2.329c-1.554-1.551-2.33-3.391-2.33-5.52c0-2.127.784-3.983 2.354-5.567C5.99 2.896 7.832 2.127 10.01 2.127c2.18 0 4.03.769 5.552 2.305C17.101 5.952 17.87 7.807 17.87 10c0 2.208-.753 4.04-2.259 5.496z"})})}function B(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 256 256",...t,children:e.jsx("path",{fill:"currentColor",d:"M128 56a72 72 0 1 0 72 72a72.1 72.1 0 0 0-72-72Zm0 120a48 48 0 1 1 48-48a48 48 0 0 1-48 48ZM116 28V12a12 12 0 0 1 24 0v16a12 12 0 0 1-24 0Zm74.2 37.8a12 12 0 0 1 0-17l11.3-11.3a12 12 0 0 1 17 17l-11.3 11.3a12 12 0 0 1-8.5 3.5a12.2 12.2 0 0 1-8.5-3.5ZM256 128a12 12 0 0 1-12 12h-16a12 12 0 0 1 0-24h16a12 12 0 0 1 12 12Zm-37.5 73.5a12 12 0 0 1 0 17a11.6 11.6 0 0 1-8.5 3.5a12 12 0 0 1-8.5-3.5l-11.3-11.3a12 12 0 0 1 17-17ZM140 228v16a12 12 0 0 1-24 0v-16a12 12 0 0 1 24 0Zm-74.2-37.8a12 12 0 0 1 0 17l-11.3 11.3A12 12 0 0 1 46 222a11.6 11.6 0 0 1-8.5-3.5a12 12 0 0 1 0-17l11.3-11.3a12 12 0 0 1 17 0ZM28 140H12a12 12 0 0 1 0-24h16a12 12 0 0 1 0 24Zm9.5-85.5a12 12 0 0 1 17-17l11.3 11.3a12 12 0 0 1 0 17a12.2 12.2 0 0 1-8.5 3.5a12 12 0 0 1-8.5-3.5Z"})})}function T(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M11 15a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm10 0a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-9.2 3.4a1 1 0 1 0-1.6 1.2c.69.92 2.688 2.4 5.8 2.4c3.112 0 5.11-1.48 5.8-2.4a1 1 0 0 0-1.6-1.2c-.31.413-1.712 1.6-4.2 1.6c-2.488 0-3.89-1.188-4.2-1.6Z"}),e.jsx("path",{d:"M4.763 5.423C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576c0 4.061-1.227 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.236-4.423C2.226 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.763-10.576Zm1.472 1.355C4.105 9.089 3 12.328 3 15.998c0 3.671 1.106 6.91 3.235 9.222c2.116 2.298 5.333 3.778 9.764 3.778c4.43 0 7.648-1.48 9.764-3.778c2.129-2.311 3.235-5.55 3.235-9.221c0-3.67-1.106-6.91-3.235-9.221C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778Z"})]})})}function _1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M9.07 9.988c-.594.563-.952 1.24-1.096 1.67a.5.5 0 1 1-.948-.316c.19-.57.631-1.392 1.355-2.08C9.113 8.567 10.148 8 11.5 8a.5.5 0 1 1 0 1c-1.048 0-1.846.433-2.43.988ZM14 15a3 3 0 1 1-6 0a3 3 0 0 1 6 0Zm-4 10a1.99 1.99 0 0 1-.619 1.446A2 2 0 0 1 6 25v-3a2 2 0 1 1 4 0v3Zm11-7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm-8.707 4.293a1 1 0 0 0 1.404 1.424l.008-.007a2.7 2.7 0 0 1 .492-.315c.378-.19.976-.395 1.803-.395s1.425.206 1.803.394a2.7 2.7 0 0 1 .492.316l.008.007a1 1 0 0 0 1.404-1.424l-.001-.002l-.002-.001l-.003-.003l-.008-.008l-.02-.02a3.347 3.347 0 0 0-.26-.215a4.69 4.69 0 0 0-.716-.438C18.075 21.294 17.173 21 16 21s-2.075.294-2.697.606a4.69 4.69 0 0 0-.716.438a3.347 3.347 0 0 0-.26.215l-.02.02l-.008.008l-.003.003l-.002.002h-.001ZM22.93 9.988c.594.563.952 1.24 1.096 1.67a.5.5 0 1 0 .948-.316c-.19-.57-.631-1.392-1.355-2.08C22.887 8.567 21.852 8 20.5 8a.5.5 0 1 0 0 1c1.048 0 1.846.433 2.43.988Z"}),e.jsx("path",{d:"M4.763 5.423C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576c0 4.061-1.227 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.236-4.423C2.226 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.763-10.576Zm1.472 1.355C4.105 9.089 3 12.328 3 15.998c0 2.879.68 5.492 2 7.6V25a3 3 0 0 0 4.463 2.62c1.78.875 3.952 1.378 6.536 1.378c4.43 0 7.648-1.48 9.764-3.778c2.129-2.311 3.235-5.55 3.235-9.221c0-3.67-1.106-6.91-3.235-9.221C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778Z"})]})})}function Y1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M14.211 19a4.442 4.442 0 0 1-3.68 1.95c-.452 0-.889-.067-1.301-.192a.147.147 0 0 0-.19.138a1.104 1.104 0 0 1-2.209 0V20a1 1 0 0 1 1-1h6.38Zm3.539 0a4.442 4.442 0 0 0 3.68 1.95c.452 0 .89-.067 1.302-.192c.093-.029.19.04.19.138a1.104 1.104 0 0 0 2.208 0V20a1 1 0 0 0-1-1h-6.38ZM10.016 7.404l.003-.016a.5.5 0 0 1 .986.165l-.493-.082l.493.083v.002l-.001.004l-.002.01a1.753 1.753 0 0 1-.033.151a4.498 4.498 0 0 1-.745 1.552c-.65.866-1.795 1.702-3.718 1.702a.5.5 0 0 1 0-1c1.583 0 2.44-.667 2.917-1.302a3.496 3.496 0 0 0 .575-1.194l.018-.075Zm12.007 0l-.003-.016v-.001a.5.5 0 0 0-.986.166l.493-.082l-.493.083v.002l.001.004l.002.01a1.753 1.753 0 0 0 .034.151a4.494 4.494 0 0 0 .745 1.552c.65.866 1.794 1.702 3.717 1.702a.5.5 0 1 0 0-1c-1.583 0-2.44-.667-2.917-1.302a3.497 3.497 0 0 1-.575-1.194a1.791 1.791 0 0 1-.018-.075Zm-8.506 15.031a.75.75 0 0 0-1.003 1.115c.926.834 2.25 1.206 3.506 1.206c1.254 0 2.58-.372 3.506-1.206a.75.75 0 1 0-1.004-1.115c-.576.518-1.504.822-2.502.822c-.999 0-1.927-.304-2.503-.822Zm1.3-6.15c0 .619-.152 1.202-.42 1.715H7.834a3.701 3.701 0 1 1 6.982-1.715Zm-1.288.054c.546-.378.614-1.226.151-1.894c-.462-.669-1.28-.904-1.826-.527c-.546.378-.614 1.227-.151 1.895c.462.668 1.28.904 1.826.526ZM17.565 18h6.561a3.701 3.701 0 1 0-6.561 0Zm5.446-1.66c-.546.377-1.364.141-1.826-.527c-.463-.668-.395-1.517.151-1.895c.547-.377 1.364-.142 1.827.527c.462.668.394 1.516-.152 1.894Z"}),e.jsx("path",{d:"M4.768 5.391C7.321 2.62 11.108.963 16.018.963s8.698 1.656 11.25 4.428c2.541 2.759 3.769 6.524 3.769 10.59c0 4.067-1.228 7.832-3.768 10.59C24.716 29.343 20.929 31 16.019 31S7.32 29.343 4.768 26.57C2.227 23.813 1 20.048 1 15.981c0-4.066 1.228-7.831 3.768-10.59ZM6.24 6.746C4.108 9.061 3 12.306 3 15.981c0 3.676 1.108 6.92 3.24 9.236C8.359 27.517 11.58 29 16.018 29c4.438 0 7.66-1.482 9.78-3.784c2.131-2.315 3.239-5.559 3.239-9.235c0-3.675-1.108-6.92-3.24-9.235c-2.12-2.301-5.341-3.783-9.779-3.783c-4.437 0-7.659 1.482-9.778 3.783Z"})]})})}function A(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M14.999 13.29a.75.75 0 0 0-.71-.789c-.828-.044-1.504-.241-2.039-.613c-.527-.367-.979-.948-1.289-1.876a.75.75 0 1 0-1.422.476c.394 1.18 1.019 2.049 1.854 2.63c.828.577 1.8.827 2.817.88a.75.75 0 0 0 .789-.708Zm2.002 0a.75.75 0 0 1 .709-.789c.83-.044 1.505-.241 2.04-.613c.526-.367.978-.948 1.289-1.876a.75.75 0 1 1 1.422.476c-.394 1.18-1.019 2.049-1.854 2.63c-.828.577-1.8.827-2.817.88a.75.75 0 0 1-.79-.708Zm-4.107 12.157C13.066 25.104 13.995 24 16 24s2.934 1.104 3.105 1.447a1 1 0 0 0 1.79-.894C20.398 23.563 18.794 22 16 22c-2.795 0-4.4 1.562-4.895 2.553a1 1 0 0 0 1.79.894ZM12 19a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm8 0a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),e.jsx("path",{d:"M15.999 29.998c9.334 0 13.999-6.268 13.999-14c0-7.73-4.665-13.998-14-13.998C6.665 2 2 8.268 2 15.999c0 7.731 4.664 13.999 13.999 13.999Zm11.999-14c0 3.476-1.046 6.455-2.97 8.545c-1.9 2.063-4.835 3.455-9.03 3.455c-4.193 0-7.128-1.393-9.028-3.455C5.046 22.453 4 19.473 4 15.999c0-3.475 1.046-6.454 2.97-8.544C8.87 5.392 11.805 4 16 4s7.129 1.392 9.028 3.455c1.925 2.09 2.97 5.07 2.97 8.544Z"})]})})}function V1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13 5.5a.5.5 0 0 0-1 0c0 .864-.32 1.476-.77 1.876c-.46.409-1.087.624-1.73.624a.5.5 0 0 0 0 1c.857 0 1.73-.285 2.395-.876C12.569 7.524 13 6.636 13 5.5Zm6.5-.5a.5.5 0 0 0-.5.5c0 1.136.43 2.024 1.105 2.624c.666.591 1.538.876 2.395.876a.5.5 0 0 0 0-1c-.643 0-1.27-.215-1.73-.624c-.45-.4-.77-1.012-.77-1.876a.5.5 0 0 0-.5-.5Zm4 19c.829 0 1.513-.677 1.377-1.494a9.002 9.002 0 0 0-17.754 0C6.987 23.323 7.671 24 8.5 24h15ZM8.106 10.553a1 1 0 0 1 1.341-.448l4 2a1 1 0 0 1 0 1.79l-4 2a1 1 0 1 1-.894-1.79L10.763 13l-2.21-1.106a1 1 0 0 1-.447-1.341Zm14.447-.448a1 1 0 0 1 .894 1.79L21.237 13l2.21 1.105a1 1 0 0 1-.894 1.79l-4-2a1 1 0 0 1 0-1.79l4-2Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function I(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[e.jsx("path",{fill:"currentColor",d:"M8 22v-3h16v3H8Zm3-7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm10 0a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.765 5.423C7.315 2.654 11.096 1 16 1c4.904 0 8.686 1.654 11.235 4.423C29.773 8.178 31 11.938 31 15.999c0 4.061-1.226 7.82-3.764 10.576c-2.55 2.769-6.331 4.423-11.235 4.423c-4.904 0-8.686-1.654-11.235-4.423C2.227 23.82 1 20.06 1 15.999c0-4.061 1.226-7.821 3.764-10.576Zm-1.726 9.41a17.66 17.66 0 0 0-.038 1.166c0 2.189.393 4.224 1.162 6.001H8v2h16v-2h3.837c.769-1.777 1.162-3.812 1.162-6.001c0-.394-.013-.783-.038-1.166L24 17.589V17H8v.589l-4.96-2.756Zm.283-2.131l5.593 3.107c.152-.092.318-.164.496-.212C11.073 15.153 13.876 14.5 16 14.5c2.124 0 4.927.653 6.589 1.097c.178.048.344.12.495.212l5.594-3.107c-.47-2.306-1.45-4.335-2.914-5.924C23.648 4.48 20.431 3 16 3c-4.43 0-7.648 1.48-9.764 3.778c-1.464 1.59-2.444 3.618-2.914 5.924ZM26.736 24h-2.759a1.868 1.868 0 0 1-1.181 1.484C21.22 26.076 18.379 27 16 27c-2.379 0-5.22-.924-6.796-1.516A1.868 1.868 0 0 1 8.023 24H5.264c.296.43.62.838.972 1.22c2.116 2.298 5.333 3.778 9.764 3.778c4.43 0 7.648-1.48 9.764-3.778c.352-.382.676-.79.972-1.22Z",clipRule:"evenodd"})]})}function $1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M6.235 6.778c-1.84 1.996-2.915 4.685-3.174 7.746l-2.053 2.053A19.92 19.92 0 0 1 1 16c0-4.061 1.226-7.821 3.763-10.576C7.313 2.654 11.095 1 16 1c4.904 0 8.686 1.654 11.235 4.423c2.537 2.755 3.764 6.515 3.764 10.576l-.003.332l-2.084-2.085c-.3-2.945-1.365-5.532-3.148-7.468C23.647 4.48 20.43 3 16 3S8.352 4.48 6.236 6.778ZM27.937 21.76a11.491 11.491 0 0 1-2.174 3.46c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778a11.47 11.47 0 0 1-2.14-3.38a3.138 3.138 0 0 1-2.175-.092c.624 1.803 1.568 3.442 2.843 4.827c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c1.25-1.358 2.183-2.96 2.807-4.722a3.135 3.135 0 0 1-2.104-.094Z"}),e.jsx("path",{d:"M22.669 16H9.58a3.107 3.107 0 0 1-.874 1.707l-1.21 1.211C8.302 21.547 10.424 25 16 25c5.712 0 7.8-3.626 8.561-6.274l-1.018-1.019A3.107 3.107 0 0 1 22.669 16ZM4.63 20.37L8 17a2.121 2.121 0 1 0-3-3l-3.37 3.37a2.121 2.121 0 0 0 3 3ZM24.25 17l3.37 3.37a2.121 2.121 0 1 0 3-3L27.25 14a2.121 2.121 0 0 0-3 3ZM9.349 10.412c-.21.228-.32.532-.367.779a1 1 0 0 1-1.964-.382c.089-.456.31-1.153.858-1.749C8.453 8.431 9.316 8 10.5 8c1.195 0 2.062.452 2.636 1.082c.544.597.77 1.292.85 1.747a1 1 0 0 1-1.971.342a1.546 1.546 0 0 0-.358-.742C11.47 10.222 11.142 10 10.5 10c-.653 0-.972.217-1.151.412Zm11.001 0c-.21.228-.32.532-.368.779a1 1 0 0 1-1.963-.382c.088-.456.31-1.153.857-1.749C19.453 8.431 20.316 8 21.5 8c1.196 0 2.062.452 2.636 1.082c.544.597.77 1.292.85 1.747a1 1 0 0 1-1.971.342a1.545 1.545 0 0 0-.358-.742C22.47 10.222 22.142 10 21.5 10c-.653 0-.971.217-1.15.412Z"})]})})}function b(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M12 16a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm8 0a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm.901 8.006c.11.542-.35.994-.902.994H12c-.552 0-1.01-.452-.901-.994a5.002 5.002 0 0 1 9.802 0Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function q1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm10-2a2 2 0 1 1-4 0a2 2 0 0 1 4 0ZM8.512 23.677A2.988 2.988 0 0 0 11 25h10a2.989 2.989 0 0 0 2.437-1.25A2.984 2.984 0 0 0 24 22c0-.699-.24-1.342-.64-1.852A2.995 2.995 0 0 0 21 19H11c-.906 0-1.718.401-2.268 1.036A2.988 2.988 0 0 0 8 22c0 .621.189 1.198.512 1.677ZM11 20h10a2 2 0 0 1 1.792 1.11a.998.998 0 0 1-.792.39H10a.998.998 0 0 1-.792-.39A2 2 0 0 1 11 20Zm11.792 2.89A2 2 0 0 1 21 24H11a2 2 0 0 1-1.792-1.11a.998.998 0 0 1 .792-.39h12c.322 0 .609.152.792.39Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function O1(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M9.07 8.988c-.594.562-.952 1.24-1.096 1.67a.5.5 0 1 1-.948-.316c.19-.57.631-1.392 1.355-2.08C9.113 7.567 10.148 7 11.5 7a.5.5 0 1 1 0 1c-1.048 0-1.846.433-2.43.988ZM14 14a2 2 0 1 1-4 0a2 2 0 0 1 4 0Zm-5 7c1.657 0 3-.895 3-2s-1.343-2-3-2s-3 .895-3 2s1.343 2 3 2Zm17-2c0 1.105-1.343 2-3 2s-3-.895-3-2s1.343-2 3-2s3 .895 3 2Zm-6-3a2 2 0 1 0 0-4a2 2 0 0 0 0 4Zm2.93-7.012c.594.562.952 1.24 1.096 1.67a.5.5 0 1 0 .948-.316c-.19-.57-.631-1.392-1.355-2.08C22.887 7.567 21.852 7 20.5 7a.5.5 0 1 0 0 1c1.048 0 1.846.433 2.43.988ZM13 23a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1Z"}),e.jsx("path",{d:"M15.999 1C11.095 1 7.313 2.654 4.763 5.423C2.226 8.178 1 11.938 1 15.999c0 4.061 1.226 7.82 3.763 10.576c2.55 2.769 6.332 4.423 11.236 4.423c4.904 0 8.686-1.654 11.235-4.423c2.537-2.755 3.764-6.515 3.764-10.576c0-4.061-1.227-7.821-3.764-10.576C24.684 2.654 20.903 1 16 1ZM3 15.999c0-3.67 1.106-6.91 3.235-9.221C8.35 4.48 11.568 3 15.999 3c4.43 0 7.648 1.48 9.764 3.778c2.129 2.311 3.235 5.55 3.235 9.22c0 3.671-1.106 6.91-3.235 9.222c-2.116 2.298-5.333 3.778-9.764 3.778c-4.43 0-7.648-1.48-9.764-3.778C4.105 22.91 3 19.67 3 16Z"})]})})}function U1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M9.984 5.06a6.5 6.5 0 1 1 11.286 6.436A5.5 5.5 0 0 1 17.5 21L9 20.999a8 8 0 1 1 .984-15.94zm2.071.544a8.026 8.026 0 0 1 4.403 4.495a5.529 5.529 0 0 1 3.12.307a4.5 4.5 0 0 0-7.522-4.802z"})})}function X1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M19.35 10.03A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.03A6.004 6.004 0 0 0 0 14a6 6 0 0 0 6 6h13a5 5 0 0 0 5-5c0-2.64-2.05-4.78-4.65-4.97Z"})})}function W1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m20.79 13.95l-2.33.62l-2-1.13v-2.88l2-1.13l2.33.62l.52-1.93l-1.77-.47l.46-1.77l-1.93-.52l-.62 2.33l-2 1.13L13 7.38V5.12l1.71-1.71L13.29 2L12 3.29L10.71 2L9.29 3.41L11 5.12v2.26L8.5 8.82l-2-1.13l-.58-2.33L4 5.88l.47 1.77l-1.77.47l.52 1.93l2.33-.62l2 1.13v2.89l-2 1.13l-2.33-.62l-.52 1.93l1.77.47L4 18.12l1.93.52l.62-2.33l2-1.13L11 16.62v2.26l-1.71 1.71L10.71 22L12 20.71L13.29 22l1.41-1.41l-1.7-1.71v-2.26l2.5-1.45l2 1.13l.62 2.33l1.88-.51l-.47-1.77l1.77-.47l-.51-1.93M9.5 10.56L12 9.11l2.5 1.45v2.88L12 14.89l-2.5-1.45v-2.88Z"})})}function G1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",...t,children:e.jsx("path",{fill:"currentColor",d:"M4.158 12.025a.5.5 0 0 1 .316.633l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-1 3a.5.5 0 1 1-.948-.316l1-3a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.317zm3 0a.5.5 0 0 1 .316.633l-1 3a.5.5 0 1 1-.948-.316l1-3a.5.5 0 0 1 .632-.317zm.247-6.998a5.001 5.001 0 0 0-9.499-1.004A3.5 3.5 0 1 0 3.5 11H13a3 3 0 0 0 .405-5.973z"})})}function K1(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",...t,children:e.jsx("path",{fill:"currentColor",d:"M2.658 11.026a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm9.5 0a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 0 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm-7.5 1.5a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 1 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm9.5 0a.5.5 0 0 1 .316.632l-.5 1.5a.5.5 0 0 1-.948-.316l.5-1.5a.5.5 0 0 1 .632-.316zm-7.105-1.25A.5.5 0 0 1 7.5 11h1a.5.5 0 0 1 .474.658l-.28.842H9.5a.5.5 0 0 1 .39.812l-2 2.5a.5.5 0 0 1-.875-.433L7.36 14H6.5a.5.5 0 0 1-.447-.724l1-2zm6.352-7.249a5.001 5.001 0 0 0-9.499-1.004A3.5 3.5 0 1 0 3.5 10H13a3 3 0 0 0 .405-5.973z"})})}const Q1=t=>{const s={晴:B,多云:U1,阴:X1,雪:W1,雨:G1,雷雨:K1};return D.createElement(s[t]||B)},J1=t=>{const s={开心:T,伤心:Y1,大哭:_1,生气:A,痛苦:V1,悲哀:I,不快:I,激动:$1,担心:b,可怕:q1,可恶:A,绝望:b,焦虑:O1};return D.createElement(s[t]||T)},d=e.jsx(x,{className:"!mx-2 scale-y-50"}),j="flex items-center space-x-1 flex-shrink-0",e2=()=>e.jsxs(e.Fragment,{children:[e.jsx(t2,{}),e.jsx(s2,{}),e.jsx(n2,{}),e.jsx(c2,{}),e.jsx(r2,{})]}),t2=()=>{const t=l(s=>s==null?void 0:s.data.weather);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[Q1(t),e.jsx("span",{className:"font-medium",children:t})]},"weather")]}):null},s2=()=>{const t=l(s=>s==null?void 0:s.data.mood);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[J1(t),e.jsx("span",{className:"font-medium",children:t})]},"mood")]}):null},n2=()=>{const t=l(s=>s==null?void 0:s.data.count.read);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[e.jsx("i",{className:"icon-[mingcute--book-6-line]"}),e.jsx("span",{className:"font-medium",children:t})]},"readcount")]}):null},c2=()=>{const t=l(s=>s==null?void 0:s.data.count.like);return t?e.jsxs(e.Fragment,{children:[d,e.jsxs("span",{className:j,children:[e.jsx("i",{className:"icon-[mingcute--heart-line]"}),e.jsx("span",{className:"font-medium",children:e.jsx(J,{children:t})})]},"linkcount")]}):null},r2=()=>e.jsxs(e.Fragment,{children:[d,e.jsx("span",{className:"inline-flex items-center",children:e.jsx("a",{href:"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh",target:"_blank",className:"inline-flex cursor-pointer items-center text-current",rel:"noreferrer",children:e.jsx("span",{title:"知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议",className:"inline-flex items-center",children:e.jsx(P1,{})})})},"cc")]}),v2=t=>{const{data:s,isLoading:n}=f({...e1.note.byNid(t.noteId.toString())}),r=o.useMemo(()=>v(null),[]);return n?e.jsx(S,{className:"w-full",useDefaultLoadingText:!0}):s?e.jsxs(t1,{overrideAtom:r,children:[e.jsx(s1,{data:s}),e.jsx(n1,{children:e.jsxs(M1,{children:[e.jsxs("header",{children:[e.jsx(f1,{}),e.jsxs("span",{className:"flex flex-wrap items-center text-sm text-neutral-content/60",children:[e.jsx(w1,{}),e.jsx(Z1,{children:e.jsx(e2,{})})]}),e.jsx(L1,{})]}),e.jsxs(T1,{children:[e.jsx(c1,{cid:r1(s)}),e.jsx(o1,{children:e.jsx(i1,{children:e.jsx(v1,{children:e.jsx(C1,{})})})})]})]})})]}):null};export{v2 as NotePreview}; diff --git a/assets/PinIconToggle-vlWhC9Tj.js b/assets/PinIconToggle-EjPj0VvX.js similarity index 91% rename from assets/PinIconToggle-vlWhC9Tj.js rename to assets/PinIconToggle-EjPj0VvX.js index 201c6abe19..bf8f903182 100644 --- a/assets/PinIconToggle-vlWhC9Tj.js +++ b/assets/PinIconToggle-EjPj0VvX.js @@ -1 +1 @@ -import{r as c,j as o}from"./index-Qg-bAq5J.js";import{u,b as m}from"./LinkCard-aLl-jjA_.js";import{M as h}from"./spring-hZ91AlwC.js";import{c as p}from"./utils-C0Upvd9p.js";import{c as x}from"./helper-Oi49T1hx.js";const g=p({from:{opacity:.001},to:{opacity:1}}),d=n=>{const{currentState:t,regularIcon:i,solidIcon:e}=n,r={solid:e,regular:i},[a,l]=c.useState(r[t]),s=u();return c.useEffect(()=>{s.start({opacity:.001}).then(()=>{l(r[t]),requestAnimationFrame(()=>{s.start({opacity:1})})})},[t]),o.jsx(g,{initial:!0,animate:s,transition:{duration:.2},children:a},t)},y=({className:n,pin:t,onPinChange:i})=>{const e=m(),r=async a=>{a.preventDefault(),a.stopPropagation(),i(!t)};return o.jsx(h,{"aria-label":"Pin this post",className:x("absolute bottom-0 right-0 top-[4px] z-[10] -m-5 box-content hidden h-5 w-5 items-center p-5",e&&"inline-flex cursor-pointer opacity-50 transition-opacity hover:opacity-100",!e&&t&&"pointer-events-none",t&&"!inline-flex text-uk-red-light opacity-100",n),onClick:r,children:o.jsx(d,{currentState:t?"solid":"regular",regularIcon:o.jsx(w,{}),solidIcon:o.jsx(f,{})})})};function f(n){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...n,children:o.jsx("path",{fill:"currentColor",d:"m232 107.3l-58.5 58.5c4.5 12.7 6.4 33.9-13.2 60a16.3 16.3 0 0 1-11.7 6.4h-1.1a16.1 16.1 0 0 1-11.3-4.7L88 179.3l-34.3 34.4a8.2 8.2 0 0 1-11.4 0a8.1 8.1 0 0 1 0-11.4L76.7 168l-48.4-48.4a15.9 15.9 0 0 1 1.3-23.8C55 75.3 79.3 79.4 90 82.7L148.7 24a16.1 16.1 0 0 1 22.6 0L232 84.7a15.9 15.9 0 0 1 0 22.6Z"})})}function w(n){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...n,children:o.jsx("path",{fill:"currentColor",d:"M236.7 96a15.9 15.9 0 0 0-4.7-11.3L171.3 24a16.1 16.1 0 0 0-22.6 0L90 82.7c-10.7-3.3-35-7.4-60.4 13.1a15.9 15.9 0 0 0-1.3 23.8L76.7 168l-34.4 34.3a8.1 8.1 0 0 0 0 11.4a8.2 8.2 0 0 0 11.4 0L88 179.3l48.2 48.2a16.1 16.1 0 0 0 11.3 4.7h1.1a16.3 16.3 0 0 0 11.7-6.4c19.6-26.1 17.7-47.3 13.2-60l58.5-58.5a15.9 15.9 0 0 0 4.7-11.3Zm-78.4 62.3a8.2 8.2 0 0 0-1.5 9.3c9.5 18.9-1.8 38.6-9.3 48.6L39.6 108.3C51.7 98.5 63.3 96 72.1 96s15.9 2.9 16.3 3.2a8.2 8.2 0 0 0 9.3-1.5L160 35.3L220.7 96Z"})})}export{y as P}; +import{r as c,j as o}from"./index-HRfeE_7B.js";import{u,b as m}from"./LinkCard-gCgkDO82.js";import{M as h}from"./spring-0AHu48BV.js";import{c as p}from"./utils-DGmE6P1M.js";import{c as x}from"./helper-Oi49T1hx.js";const g=p({from:{opacity:.001},to:{opacity:1}}),d=n=>{const{currentState:t,regularIcon:i,solidIcon:e}=n,r={solid:e,regular:i},[a,l]=c.useState(r[t]),s=u();return c.useEffect(()=>{s.start({opacity:.001}).then(()=>{l(r[t]),requestAnimationFrame(()=>{s.start({opacity:1})})})},[t]),o.jsx(g,{initial:!0,animate:s,transition:{duration:.2},children:a},t)},y=({className:n,pin:t,onPinChange:i})=>{const e=m(),r=async a=>{a.preventDefault(),a.stopPropagation(),i(!t)};return o.jsx(h,{"aria-label":"Pin this post",className:x("absolute bottom-0 right-0 top-[4px] z-[10] -m-5 box-content hidden h-5 w-5 items-center p-5",e&&"inline-flex cursor-pointer opacity-50 transition-opacity hover:opacity-100",!e&&t&&"pointer-events-none",t&&"!inline-flex text-uk-red-light opacity-100",n),onClick:r,children:o.jsx(d,{currentState:t?"solid":"regular",regularIcon:o.jsx(w,{}),solidIcon:o.jsx(f,{})})})};function f(n){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...n,children:o.jsx("path",{fill:"currentColor",d:"m232 107.3l-58.5 58.5c4.5 12.7 6.4 33.9-13.2 60a16.3 16.3 0 0 1-11.7 6.4h-1.1a16.1 16.1 0 0 1-11.3-4.7L88 179.3l-34.3 34.4a8.2 8.2 0 0 1-11.4 0a8.1 8.1 0 0 1 0-11.4L76.7 168l-48.4-48.4a15.9 15.9 0 0 1 1.3-23.8C55 75.3 79.3 79.4 90 82.7L148.7 24a16.1 16.1 0 0 1 22.6 0L232 84.7a15.9 15.9 0 0 1 0 22.6Z"})})}function w(n){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...n,children:o.jsx("path",{fill:"currentColor",d:"M236.7 96a15.9 15.9 0 0 0-4.7-11.3L171.3 24a16.1 16.1 0 0 0-22.6 0L90 82.7c-10.7-3.3-35-7.4-60.4 13.1a15.9 15.9 0 0 0-1.3 23.8L76.7 168l-34.4 34.3a8.1 8.1 0 0 0 0 11.4a8.2 8.2 0 0 0 11.4 0L88 179.3l48.2 48.2a16.1 16.1 0 0 0 11.3 4.7h1.1a16.3 16.3 0 0 0 11.7-6.4c19.6-26.1 17.7-47.3 13.2-60l58.5-58.5a15.9 15.9 0 0 0 4.7-11.3Zm-78.4 62.3a8.2 8.2 0 0 0-1.5 9.3c9.5 18.9-1.8 38.6-9.3 48.6L39.6 108.3C51.7 98.5 63.3 96 72.1 96s15.9 2.9 16.3 3.2a8.2 8.2 0 0 0 9.3-1.5L160 35.3L220.7 96Z"})})}export{y as P}; diff --git a/assets/PostPreview-kGe_h9w-.js b/assets/PostPreview-Ufc-M9kZ.js similarity index 94% rename from assets/PostPreview-kGe_h9w-.js rename to assets/PostPreview-Ufc-M9kZ.js index e0bbd86be2..66eb1a0e73 100644 --- a/assets/PostPreview-kGe_h9w-.js +++ b/assets/PostPreview-Ufc-M9kZ.js @@ -1,4 +1,4 @@ -import{R as c,j as e,r as u}from"./index-Qg-bAq5J.js";import{R as B,T as H,b as P,F as W,e as D,g as w,B as V,L as q}from"./Markdown-xk31dQ-T.js";import{r as L,R as S,M as O,a as p,N as X,u as h,q as Z,b as K,d as Q,P as G,X as J,g as U}from"./utils-C0Upvd9p.js";import{m as _,c as v}from"./spring-hZ91AlwC.js";import{c as $,a as y}from"./helper-Oi49T1hx.js";import{c as R,d as C,R as Y,e as b}from"./LinkCard-aLl-jjA_.js";import{M as ee,W as te}from"./Gallery-lvvI9ksR.js";import{a as E,u as se}from"./Divider-ZvsSiSkZ.js";import{A as I}from"./Collapse-gGRmuqb3.js";import{P as re}from"./PinIconToggle-vlWhC9Tj.js";import"./env-jTYMx4r5.js";import"./RichLink-sK7aRcsj.js";import"./customParseFormat-q3ZbyGZe.js";import"./index-iAcAeRlm.js";var ne=typeof window>"u",g=ne?c.useEffect:c.useLayoutEffect,ae=0,N=()=>++ae,k=!1;function le(){let[r,t]=c.useState(k?N:void 0);return g(()=>{r===void 0&&t(N()),k=!0},[]),r===void 0?r:`rwb-${r.toString(32)}`}function ie(){return c.useMemo(()=>"useId"in c?c.useId:le,[])()}var j="__wrap_b",x="__wrap_n",M="__wrap_o",T=(r,t,s)=>{s=s||document.querySelector(`[data-br="${r}"]`);let n=s.parentElement,l=f=>s.style.maxWidth=f+"px";s.style.maxWidth="";let a=n.clientWidth,i=n.clientHeight,o=a/2-.25,d=a+.5,m;if(a){for(l(o),o=Math.max(s.scrollWidth,o);o+1{self.__wrap_b(0,+s.dataset.brr,s)})).observe(n)},oe=T.toString(),ce='(self.CSS&&CSS.supports("text-wrap","balance")?1:2)',de=(r,t,s="")=>(s&&(s=`self.${x}!=1&&${s}`),c.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(r?"":`self.${x}=self.${x}||${ce};self.${j}=${oe};`)+s},nonce:t})),ue=c.createContext({preferNative:!0,hasProvider:!1}),z=({ratio:r=1,preferNative:t,nonce:s,children:n,...l})=>{let a=ie(),i=c.useRef(),o=c.useContext(ue),d=t??o.preferNative,m=l.as||"span";return g(()=>{d&&self[x]===1||i.current&&(self[j]=T)(0,r,i.current)},[n,d,r]),g(()=>{if(!(d&&self[x]===1))return()=>{if(!i.current)return;let f=i.current[M];f&&(f.disconnect(),delete i.current[M])}},[d]),c.createElement(c.Fragment,null,c.createElement(m,{...l,"data-br":a,"data-brr":r,ref:i,style:{display:"inline-block",verticalAlign:"top",textDecoration:"inherit",textWrap:d?"balance":"initial"},suppressHydrationWarning:!0},n),de(o.hasProvider,s,`self.${j}("${a}",${r})`))},me=z;function xe(r){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 15h4V9h-4v6Zm0 2v3a1 1 0 0 1-2 0v-3H5a1 1 0 0 1 0-2h3V9H5a1 1 0 1 1 0-2h3V4a1 1 0 1 1 2 0v3h4V4a1 1 0 0 1 2 0v3h3a1 1 0 0 1 0 2h-3v6h3a1 1 0 0 1 0 2h-3v3a1 1 0 0 1-2 0v-3h-4Z"})})}function fe(){return e.jsx("i",{className:"icon-[mingcute--thumb-up-line]"})}const he=()=>e.jsx("svg",{version:"1.1",x:"0px",y:"0px",width:"59.227px",height:"59.227px",viewBox:"0 0 59.227 59.227",className:"fill-current",children:e.jsx("g",{children:e.jsx("g",{children:e.jsx("path",{d:`M51.586,10.029c-0.333-0.475-0.897-0.689-1.449-0.607c-0.021-0.005-0.042-0.014-0.063-0.017L27.469,6.087 +import{R as c,j as e,r as u}from"./index-HRfeE_7B.js";import{R as B,T as H,b as P,F as W,e as D,g as w,B as V,L as q}from"./Markdown-tpcPSstc.js";import{r as L,R as S,M as O,a as p,N as X,u as h,q as Z,b as K,d as Q,P as G,X as J,g as U}from"./utils-DGmE6P1M.js";import{m as _,c as v}from"./spring-0AHu48BV.js";import{c as $,a as y}from"./helper-Oi49T1hx.js";import{c as R,d as C,R as Y,e as b}from"./LinkCard-gCgkDO82.js";import{M as ee,W as te}from"./Gallery-32-V3LXo.js";import{a as E,u as se}from"./Divider-sIhvLlX0.js";import{A as I}from"./Collapse-JZfrBou4.js";import{P as re}from"./PinIconToggle-EjPj0VvX.js";import"./env-jTYMx4r5.js";import"./RichLink-6jHOm4uG.js";import"./customParseFormat-ePfR8DqR.js";import"./index-iAcAeRlm.js";var ne=typeof window>"u",g=ne?c.useEffect:c.useLayoutEffect,ae=0,N=()=>++ae,k=!1;function le(){let[r,t]=c.useState(k?N:void 0);return g(()=>{r===void 0&&t(N()),k=!0},[]),r===void 0?r:`rwb-${r.toString(32)}`}function ie(){return c.useMemo(()=>"useId"in c?c.useId:le,[])()}var j="__wrap_b",x="__wrap_n",M="__wrap_o",T=(r,t,s)=>{s=s||document.querySelector(`[data-br="${r}"]`);let n=s.parentElement,l=f=>s.style.maxWidth=f+"px";s.style.maxWidth="";let a=n.clientWidth,i=n.clientHeight,o=a/2-.25,d=a+.5,m;if(a){for(l(o),o=Math.max(s.scrollWidth,o);o+1{self.__wrap_b(0,+s.dataset.brr,s)})).observe(n)},oe=T.toString(),ce='(self.CSS&&CSS.supports("text-wrap","balance")?1:2)',de=(r,t,s="")=>(s&&(s=`self.${x}!=1&&${s}`),c.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(r?"":`self.${x}=self.${x}||${ce};self.${j}=${oe};`)+s},nonce:t})),ue=c.createContext({preferNative:!0,hasProvider:!1}),z=({ratio:r=1,preferNative:t,nonce:s,children:n,...l})=>{let a=ie(),i=c.useRef(),o=c.useContext(ue),d=t??o.preferNative,m=l.as||"span";return g(()=>{d&&self[x]===1||i.current&&(self[j]=T)(0,r,i.current)},[n,d,r]),g(()=>{if(!(d&&self[x]===1))return()=>{if(!i.current)return;let f=i.current[M];f&&(f.disconnect(),delete i.current[M])}},[d]),c.createElement(c.Fragment,null,c.createElement(m,{...l,"data-br":a,"data-brr":r,ref:i,style:{display:"inline-block",verticalAlign:"top",textDecoration:"inherit",textWrap:d?"balance":"initial"},suppressHydrationWarning:!0},n),de(o.hasProvider,s,`self.${j}("${a}",${r})`))},me=z;function xe(r){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 15h4V9h-4v6Zm0 2v3a1 1 0 0 1-2 0v-3H5a1 1 0 0 1 0-2h3V9H5a1 1 0 1 1 0-2h3V4a1 1 0 1 1 2 0v3h4V4a1 1 0 0 1 2 0v3h3a1 1 0 0 1 0 2h-3v6h3a1 1 0 0 1 0 2h-3v3a1 1 0 0 1-2 0v-3h-4Z"})})}function fe(){return e.jsx("i",{className:"icon-[mingcute--thumb-up-line]"})}const he=()=>e.jsx("svg",{version:"1.1",x:"0px",y:"0px",width:"59.227px",height:"59.227px",viewBox:"0 0 59.227 59.227",className:"fill-current",children:e.jsx("g",{children:e.jsx("g",{children:e.jsx("path",{d:`M51.586,10.029c-0.333-0.475-0.897-0.689-1.449-0.607c-0.021-0.005-0.042-0.014-0.063-0.017L27.469,6.087 c-0.247-0.037-0.499-0.01-0.734,0.076L8.63,12.799c-0.008,0.003-0.015,0.008-0.023,0.011c-0.019,0.008-0.037,0.02-0.057,0.027 c-0.099,0.044-0.191,0.096-0.276,0.157c-0.026,0.019-0.051,0.038-0.077,0.059c-0.093,0.076-0.178,0.159-0.249,0.254 c-0.004,0.006-0.01,0.009-0.014,0.015L0.289,23.78c-0.293,0.401-0.369,0.923-0.202,1.391c0.167,0.469,0.556,0.823,1.038,0.947 diff --git a/assets/RichLink-sK7aRcsj.js b/assets/RichLink-6jHOm4uG.js similarity index 99% rename from assets/RichLink-sK7aRcsj.js rename to assets/RichLink-6jHOm4uG.js index 81df1acf33..3080776910 100644 --- a/assets/RichLink-sK7aRcsj.js +++ b/assets/RichLink-6jHOm4uG.js @@ -1 +1 @@ -import{j as e}from"./index-Qg-bAq5J.js";import{c as u}from"./helper-Oi49T1hx.js";import{i as x}from"./env-jTYMx4r5.js";const W=t=>t.pathname.split("/").pop(),c="github.com",I=t=>t.hostname===c&&t.pathname.startsWith("/")&&t.pathname.split("/").length===3,L=t=>t.hostname===c&&t.pathname.includes("/pull/"),M=t=>t.hostname==="www.youtube.com"&&t.pathname.startsWith("/watch"),N=t=>t.hostname==="gist.github.com",k=t=>{const[n,,,s]=t.pathname.split("/");return t.hostname===c&&s==="commit"},z=t=>t.hostname===c&&t.pathname.split("/").length===2,_=t=>{const[n,,,s]=t.pathname.split("/");return t.hostname===c&&s==="blob"},A=t=>o(t)&&t.pathname.startsWith("/"),P=t=>o(t)&&t.pathname.split("/").length===2,w=t=>t.hostname===c,o=t=>t.hostname==="twitter.com"||t.hostname==="x.com",d=t=>t.hostname==="t.me",S=t=>t.hostname==="codesandbox.io"&&t.pathname.split("/").length===3,C=t=>t.hostname.includes("bilibili.com"),R=t=>x?t.hostname===location.hostname&&["posts/","notes/"].some(n=>t.pathname.startsWith(n)):!1,l=t=>t.hostname==="www.zhihu.com",E=t=>l(t)&&t.pathname.startsWith("/people/"),g=t=>t.hostname.includes("wikipedia.org"),D=t=>{const[n,s,i]=t.pathname.split("/");return{owner:s,id:i}},V=t=>{const n=t.pathname.split("/"),[s,i,r,a,m]=n,p=n.slice(4).join("/");return{owner:i,repo:r,type:a,id:m,afterTypeString:p}},$=t=>{const[n,s,i]=t.pathname.split("/");return{type:s,id:i}},q=t=>{const[n,s,i,r,a]=t.pathname.split("/");return{owner:s,repo:i,type:r,pr:a}},v=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M7.172 2.757L10.414 6h3.171l3.243-3.242a1 1 0 1 1 1.415 1.414L16.414 6H18.5A3.5 3.5 0 0 1 22 9.5v8a3.5 3.5 0 0 1-3.5 3.5h-13A3.5 3.5 0 0 1 2 17.5v-8A3.5 3.5 0 0 1 5.5 6h2.085L5.757 4.171a1 1 0 0 1 1.415-1.414ZM18.5 8h-13a1.5 1.5 0 0 0-1.493 1.355L4 9.5v8a1.5 1.5 0 0 0 1.356 1.493L5.5 19h13a1.5 1.5 0 0 0 1.493-1.356L20 17.5v-8A1.5 1.5 0 0 0 18.5 8ZM8 11a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Zm8 0a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Z"})});function f(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 0C3.35625 0 0 3.35625 0 7.5C0 10.8187 2.14687 13.6219 5.12812 14.6156C5.50312 14.6813 5.64375 14.4563 5.64375 14.2594C5.64375 14.0813 5.63438 13.4906 5.63438 12.8625C3.75 13.2094 3.2625 12.4031 3.1125 11.9812C3.02812 11.7656 2.6625 11.1 2.34375 10.9219C2.08125 10.7812 1.70625 10.4344 2.33438 10.425C2.925 10.4156 3.34688 10.9687 3.4875 11.1937C4.1625 12.3281 5.24063 12.0094 5.67188 11.8125C5.7375 11.325 5.93437 10.9969 6.15 10.8094C4.48125 10.6219 2.7375 9.975 2.7375 7.10625C2.7375 6.29062 3.02813 5.61562 3.50625 5.09062C3.43125 4.90312 3.16875 4.13437 3.58125 3.10312C3.58125 3.10312 4.20938 2.90625 5.64375 3.87188C6.24375 3.70313 6.88125 3.61875 7.51875 3.61875C8.15625 3.61875 8.79375 3.70313 9.39375 3.87188C10.8281 2.89688 11.4563 3.10312 11.4563 3.10312C11.8688 4.13437 11.6063 4.90312 11.5313 5.09062C12.0094 5.61562 12.3 6.28125 12.3 7.10625C12.3 9.98437 10.5469 10.6219 8.87813 10.8094C9.15 11.0437 9.38438 11.4938 9.38438 12.1969C9.38438 13.2 9.375 14.0063 9.375 14.2594C9.375 14.4563 9.51563 14.6906 9.89063 14.6156C12.8531 13.6219 15 10.8094 15 7.5C15 3.35625 11.6438 0 7.5 0Z",fill:"currentColor"})})}function b(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19c-.14.75-.42 1-.68 1.03c-.58.05-1.02-.38-1.58-.75c-.88-.58-1.38-.94-2.23-1.5c-.99-.65-.35-1.01.22-1.59c.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02c-.09.02-1.49.95-4.22 2.79c-.4.27-.76.41-1.08.4c-.36-.01-1.04-.2-1.55-.37c-.63-.2-1.12-.31-1.08-.66c.02-.18.27-.36.74-.55c2.92-1.27 4.86-2.11 5.83-2.51c2.78-1.16 3.35-1.36 3.73-1.36c.08 0 .27.02.39.12c.1.08.13.19.14.27c-.01.06.01.24 0 .38z"})})}function j(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"})})}function U(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m14.97 18.95l-2.56-6.03c-1.02 1.99-2.14 4.08-3.1 6.03c-.01.01-.47 0-.47 0C7.37 15.5 5.85 12.1 4.37 8.68C4.03 7.84 2.83 6.5 2 6.5v-.45h5.06v.45c-.6 0-1.62.4-1.36 1.05c.72 1.54 3.24 7.51 3.93 9.03c.47-.94 1.8-3.42 2.37-4.47c-.45-.88-1.87-4.18-2.29-5c-.32-.54-1.13-.61-1.75-.61c0-.15.01-.25 0-.44l4.46.01v.4c-.61.03-1.18.24-.92.82c.6 1.24.95 2.13 1.5 3.28c.17-.34 1.07-2.19 1.5-3.16c.26-.65-.13-.91-1.21-.91c.01-.12.01-.33.01-.43c1.39-.01 3.48-.01 3.85-.02v.42c-.71.03-1.44.41-1.82.99L13.5 11.3c.18.51 1.96 4.46 2.15 4.9l3.85-8.83c-.3-.72-1.16-.87-1.5-.87v-.45l4 .03v.42c-.88 0-1.43.5-1.75 1.25c-.8 1.79-3.25 7.49-4.85 11.2h-.43Z"})})}function G(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M5.721 0C2.251 0 0 2.25 0 5.719V18.28C0 21.751 2.252 24 5.721 24h12.56C21.751 24 24 21.75 24 18.281V5.72C24 2.249 21.75 0 18.281 0zm1.964 4.078c-.271.73-.5 1.434-.68 2.11h4.587c.545-.006.445 1.168.445 1.171H9.384a58.104 58.104 0 0 1-.112 3.797h2.712c.388.023.393 1.251.393 1.266H9.183a9.223 9.223 0 0 1-.408 2.102l.757-.604c.452.456 1.512 1.712 1.906 2.177c.473.681.063 2.081.063 2.081l-2.794-3.382c-.653 2.518-1.845 3.607-1.845 3.607c-.523.468-1.58.82-2.64.516c2.218-1.73 3.44-3.917 3.667-6.497H4.491c0-.015.197-1.243.806-1.266h2.71c.024-.32.086-3.254.086-3.797H6.598c-.136.406-.158.447-.268.753c-.594 1.095-1.603 1.122-1.907 1.155c.906-1.821 1.416-3.6 1.591-4.064c.425-1.124 1.671-1.125 1.671-1.125zM13.078 6h6.377v11.33h-2.573l-2.184 1.373l-.401-1.373h-1.219zm1.313 1.219v8.86h.623l.263.937l1.455-.938h1.456v-8.86z"})})}const h={GH:e.jsx(f,{className:"text-[#1D2127] dark:text-[#FFFFFF]"}),TW:e.jsx(j,{className:"text-[#1DA1F2]"}),TG:e.jsx(b,{className:"text-[#2AABEE]"}),BL:e.jsx(v,{className:"text-[#469ECF]"}),ZH:e.jsx(G,{className:"text-[#0084FF]"}),WI:e.jsx(U,{className:"text-current"})},T=t=>{var s;return(s=[{type:"GH",test:w},{type:"TW",test:o},{type:"TG",test:d},{type:"BL",test:C},{type:"ZH",test:l},{type:"WI",test:g}].find(i=>i.test(t)))==null?void 0:s.type},y=t=>{const{source:n,href:s,className:i}=t;let r=n;try{if(s){const a=new URL(s);r=T(a)??n}}catch{}return h[r]?e.jsx("span",{className:u("mr-1 align-text-bottom [&_svg]:inline",i),children:h[r]}):null},B={GH:"https://github.com/",TW:"https://twitter.com/",TG:"https://t.me/",ZH:"https://www.zhihu.com/people/",WI:"https://zh.wikipedia.org/wiki/"},O=({name:t,source:n,href:s})=>{const i=B[n];return i?e.jsxs("span",{className:"mx-1 inline-flex items-center space-x-1 align-text-bottom",children:[e.jsx(y,{source:n}),e.jsx("a",{target:"_blank",rel:"noreferrer nofollow",href:s??`${i}${t}`,className:"underline-offset-2",children:t})]}):null};export{y as F,f as G,O as R,d as a,P as b,z as c,R as d,S as e,M as f,A as g,W as h,E as i,w as j,_ as k,V as l,k as m,L as n,q as o,$ as p,N as q,D as r,I as s}; +import{j as e}from"./index-HRfeE_7B.js";import{c as u}from"./helper-Oi49T1hx.js";import{i as x}from"./env-jTYMx4r5.js";const W=t=>t.pathname.split("/").pop(),c="github.com",I=t=>t.hostname===c&&t.pathname.startsWith("/")&&t.pathname.split("/").length===3,L=t=>t.hostname===c&&t.pathname.includes("/pull/"),M=t=>t.hostname==="www.youtube.com"&&t.pathname.startsWith("/watch"),N=t=>t.hostname==="gist.github.com",k=t=>{const[n,,,s]=t.pathname.split("/");return t.hostname===c&&s==="commit"},z=t=>t.hostname===c&&t.pathname.split("/").length===2,_=t=>{const[n,,,s]=t.pathname.split("/");return t.hostname===c&&s==="blob"},A=t=>o(t)&&t.pathname.startsWith("/"),P=t=>o(t)&&t.pathname.split("/").length===2,w=t=>t.hostname===c,o=t=>t.hostname==="twitter.com"||t.hostname==="x.com",d=t=>t.hostname==="t.me",S=t=>t.hostname==="codesandbox.io"&&t.pathname.split("/").length===3,C=t=>t.hostname.includes("bilibili.com"),R=t=>x?t.hostname===location.hostname&&["posts/","notes/"].some(n=>t.pathname.startsWith(n)):!1,l=t=>t.hostname==="www.zhihu.com",E=t=>l(t)&&t.pathname.startsWith("/people/"),g=t=>t.hostname.includes("wikipedia.org"),D=t=>{const[n,s,i]=t.pathname.split("/");return{owner:s,id:i}},V=t=>{const n=t.pathname.split("/"),[s,i,r,a,m]=n,p=n.slice(4).join("/");return{owner:i,repo:r,type:a,id:m,afterTypeString:p}},$=t=>{const[n,s,i]=t.pathname.split("/");return{type:s,id:i}},q=t=>{const[n,s,i,r,a]=t.pathname.split("/");return{owner:s,repo:i,type:r,pr:a}},v=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M7.172 2.757L10.414 6h3.171l3.243-3.242a1 1 0 1 1 1.415 1.414L16.414 6H18.5A3.5 3.5 0 0 1 22 9.5v8a3.5 3.5 0 0 1-3.5 3.5h-13A3.5 3.5 0 0 1 2 17.5v-8A3.5 3.5 0 0 1 5.5 6h2.085L5.757 4.171a1 1 0 0 1 1.415-1.414ZM18.5 8h-13a1.5 1.5 0 0 0-1.493 1.355L4 9.5v8a1.5 1.5 0 0 0 1.356 1.493L5.5 19h13a1.5 1.5 0 0 0 1.493-1.356L20 17.5v-8A1.5 1.5 0 0 0 18.5 8ZM8 11a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Zm8 0a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Z"})});function f(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 0C3.35625 0 0 3.35625 0 7.5C0 10.8187 2.14687 13.6219 5.12812 14.6156C5.50312 14.6813 5.64375 14.4563 5.64375 14.2594C5.64375 14.0813 5.63438 13.4906 5.63438 12.8625C3.75 13.2094 3.2625 12.4031 3.1125 11.9812C3.02812 11.7656 2.6625 11.1 2.34375 10.9219C2.08125 10.7812 1.70625 10.4344 2.33438 10.425C2.925 10.4156 3.34688 10.9687 3.4875 11.1937C4.1625 12.3281 5.24063 12.0094 5.67188 11.8125C5.7375 11.325 5.93437 10.9969 6.15 10.8094C4.48125 10.6219 2.7375 9.975 2.7375 7.10625C2.7375 6.29062 3.02813 5.61562 3.50625 5.09062C3.43125 4.90312 3.16875 4.13437 3.58125 3.10312C3.58125 3.10312 4.20938 2.90625 5.64375 3.87188C6.24375 3.70313 6.88125 3.61875 7.51875 3.61875C8.15625 3.61875 8.79375 3.70313 9.39375 3.87188C10.8281 2.89688 11.4563 3.10312 11.4563 3.10312C11.8688 4.13437 11.6063 4.90312 11.5313 5.09062C12.0094 5.61562 12.3 6.28125 12.3 7.10625C12.3 9.98437 10.5469 10.6219 8.87813 10.8094C9.15 11.0437 9.38438 11.4938 9.38438 12.1969C9.38438 13.2 9.375 14.0063 9.375 14.2594C9.375 14.4563 9.51563 14.6906 9.89063 14.6156C12.8531 13.6219 15 10.8094 15 7.5C15 3.35625 11.6438 0 7.5 0Z",fill:"currentColor"})})}function b(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19c-.14.75-.42 1-.68 1.03c-.58.05-1.02-.38-1.58-.75c-.88-.58-1.38-.94-2.23-1.5c-.99-.65-.35-1.01.22-1.59c.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02c-.09.02-1.49.95-4.22 2.79c-.4.27-.76.41-1.08.4c-.36-.01-1.04-.2-1.55-.37c-.63-.2-1.12-.31-1.08-.66c.02-.18.27-.36.74-.55c2.92-1.27 4.86-2.11 5.83-2.51c2.78-1.16 3.35-1.36 3.73-1.36c.08 0 .27.02.39.12c.1.08.13.19.14.27c-.01.06.01.24 0 .38z"})})}function j(t){return e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"})})}function U(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"m14.97 18.95l-2.56-6.03c-1.02 1.99-2.14 4.08-3.1 6.03c-.01.01-.47 0-.47 0C7.37 15.5 5.85 12.1 4.37 8.68C4.03 7.84 2.83 6.5 2 6.5v-.45h5.06v.45c-.6 0-1.62.4-1.36 1.05c.72 1.54 3.24 7.51 3.93 9.03c.47-.94 1.8-3.42 2.37-4.47c-.45-.88-1.87-4.18-2.29-5c-.32-.54-1.13-.61-1.75-.61c0-.15.01-.25 0-.44l4.46.01v.4c-.61.03-1.18.24-.92.82c.6 1.24.95 2.13 1.5 3.28c.17-.34 1.07-2.19 1.5-3.16c.26-.65-.13-.91-1.21-.91c.01-.12.01-.33.01-.43c1.39-.01 3.48-.01 3.85-.02v.42c-.71.03-1.44.41-1.82.99L13.5 11.3c.18.51 1.96 4.46 2.15 4.9l3.85-8.83c-.3-.72-1.16-.87-1.5-.87v-.45l4 .03v.42c-.88 0-1.43.5-1.75 1.25c-.8 1.79-3.25 7.49-4.85 11.2h-.43Z"})})}function G(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:e.jsx("path",{fill:"currentColor",d:"M5.721 0C2.251 0 0 2.25 0 5.719V18.28C0 21.751 2.252 24 5.721 24h12.56C21.751 24 24 21.75 24 18.281V5.72C24 2.249 21.75 0 18.281 0zm1.964 4.078c-.271.73-.5 1.434-.68 2.11h4.587c.545-.006.445 1.168.445 1.171H9.384a58.104 58.104 0 0 1-.112 3.797h2.712c.388.023.393 1.251.393 1.266H9.183a9.223 9.223 0 0 1-.408 2.102l.757-.604c.452.456 1.512 1.712 1.906 2.177c.473.681.063 2.081.063 2.081l-2.794-3.382c-.653 2.518-1.845 3.607-1.845 3.607c-.523.468-1.58.82-2.64.516c2.218-1.73 3.44-3.917 3.667-6.497H4.491c0-.015.197-1.243.806-1.266h2.71c.024-.32.086-3.254.086-3.797H6.598c-.136.406-.158.447-.268.753c-.594 1.095-1.603 1.122-1.907 1.155c.906-1.821 1.416-3.6 1.591-4.064c.425-1.124 1.671-1.125 1.671-1.125zM13.078 6h6.377v11.33h-2.573l-2.184 1.373l-.401-1.373h-1.219zm1.313 1.219v8.86h.623l.263.937l1.455-.938h1.456v-8.86z"})})}const h={GH:e.jsx(f,{className:"text-[#1D2127] dark:text-[#FFFFFF]"}),TW:e.jsx(j,{className:"text-[#1DA1F2]"}),TG:e.jsx(b,{className:"text-[#2AABEE]"}),BL:e.jsx(v,{className:"text-[#469ECF]"}),ZH:e.jsx(G,{className:"text-[#0084FF]"}),WI:e.jsx(U,{className:"text-current"})},T=t=>{var s;return(s=[{type:"GH",test:w},{type:"TW",test:o},{type:"TG",test:d},{type:"BL",test:C},{type:"ZH",test:l},{type:"WI",test:g}].find(i=>i.test(t)))==null?void 0:s.type},y=t=>{const{source:n,href:s,className:i}=t;let r=n;try{if(s){const a=new URL(s);r=T(a)??n}}catch{}return h[r]?e.jsx("span",{className:u("mr-1 align-text-bottom [&_svg]:inline",i),children:h[r]}):null},B={GH:"https://github.com/",TW:"https://twitter.com/",TG:"https://t.me/",ZH:"https://www.zhihu.com/people/",WI:"https://zh.wikipedia.org/wiki/"},O=({name:t,source:n,href:s})=>{const i=B[n];return i?e.jsxs("span",{className:"mx-1 inline-flex items-center space-x-1 align-text-bottom",children:[e.jsx(y,{source:n}),e.jsx("a",{target:"_blank",rel:"noreferrer nofollow",href:s??`${i}${t}`,className:"underline-offset-2",children:t})]}):null};export{y as F,f as G,O as R,d as a,P as b,z as c,R as d,S as e,M as f,A as g,W as h,E as i,w as j,_ as k,V as l,k as m,L as n,q as o,$ as p,N as q,D as r,I as s}; diff --git a/assets/Root-lR48gj-U.js b/assets/Root-_xDfetAB.js similarity index 96% rename from assets/Root-lR48gj-U.js rename to assets/Root-_xDfetAB.js index 6dab5a1f3f..c2a7e0c3b2 100644 --- a/assets/Root-lR48gj-U.js +++ b/assets/Root-_xDfetAB.js @@ -1,7 +1,7 @@ -var $e=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var y=(e,t,n)=>($e(e,t,"read from private field"),n?n.call(e):t.get(e)),fe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},me=(e,t,n,s)=>($e(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);var pe=(e,t,n)=>($e(e,t,"access private method"),n);import{r as c,c as wt,R as w,j as a,_ as fn}from"./index-Qg-bAq5J.js";import{s as At}from"./index-_qoN1KWb.js";import{b as Ce,c as ye,t as qe,n as mn,p as hn,q as gn,r as pn}from"./LinkCard-aLl-jjA_.js";import{u as It,a as xn,b as Cn,c as Fe,d as vn,e as it,f as bn,g as En,h as yn,i as Lt,M as wn,j as Ve,k as Rn,l as Sn,m as jn,s as ct,n as X,o as Xe,E as _n,p as Tn}from"./Comments-o-HIrYe0.js";import{p as Pe,j as On,I as kn,A as lt,k as Nn}from"./utils-C0Upvd9p.js";import{a as re,c as Te}from"./helper-Oi49T1hx.js";import{j as An,g as Je,I as Mt}from"./Gallery-lvvI9ksR.js";import{S as In,n as Pt,l as Dt,q as Ln,r as Mn,d as Pn,F as Ft,t as Dn}from"./Markdown-xk31dQ-T.js";import{g as Fn}from"./mutation-P8-Et3_d.js";import{u as ut,j as B,a as Vt,s as Vn,h as zn}from"./Divider-ZvsSiSkZ.js";import{A as Wn}from"./Collapse-gGRmuqb3.js";import{a as Un,e as Bn,g as $n,u as qn,h as Hn,f as Kn,i as Rt,m as De,S as St,M as Gn}from"./spring-hZ91AlwC.js";function Ze(e){const t=Un(()=>Bn(e)),{isStatic:n}=c.useContext($n);if(n){const[,s]=c.useState(e);c.useEffect(()=>t.on("change",s),[])}return t}function Yn(e,t){const n=Ze(t()),s=()=>n.set(t());return s(),qn(()=>{const r=()=>Kn.update(s,!1,!0),o=e.map(i=>i.on("change",r));return()=>{o.forEach(i=>i()),Hn(s)}}),n}function Qn(e,...t){const n=e.length;function s(){let r="";for(let o=0;o{var n,s,r,o,i,f,u,C;y(this,se)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((s=(n=y(this,se)).onSuccess)==null||s.call(n,t.data,y(this,U).variables,y(this,U).context),(o=(r=y(this,se)).onSettled)==null||o.call(r,t.data,null,y(this,U).variables,y(this,U).context)):(t==null?void 0:t.type)==="error"&&((f=(i=y(this,se)).onError)==null||f.call(i,t.error,y(this,U).variables,y(this,U).context),(C=(u=y(this,se)).onSettled)==null||C.call(u,void 0,t.error,y(this,U).variables,y(this,U).context))),this.listeners.forEach(v=>{v(y(this,U))})})},Nt);function Jn(e,t){const n=Dt(t),[s]=c.useState(()=>new Xn(n,e));c.useEffect(()=>{s.setOptions(e)},[s,e]);const r=c.useSyncExternalStore(c.useCallback(i=>s.subscribe(Pt.batchCalls(i)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=c.useCallback((i,f)=>{s.mutate(i,f).catch(Zn)},[s]);if(r.error&&Ln(s.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}function Zn(){}var zt=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ts=Object.getOwnPropertyNames,ns=Object.prototype.hasOwnProperty,ss=(e,t)=>{for(var n in t)zt(e,n,{get:t[n],enumerable:!0})},jt=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ts(t))!ns.call(e,r)&&r!==n&&zt(e,r,{get:()=>t[r],enumerable:!(s=es(t,r))||s.enumerable});return e},rs=(e,t,n)=>(jt(e,t,"default"),n&&jt(n,t,"default"));typeof window<"u"&&!window.global&&(window.global=typeof wt>"u"?window:wt);const os="Clerk: You must wrap your application in a component.",as=e=>`Clerk: You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,is=e=>t=>{try{return w.Children.only(e)}catch{throw new Error(as(t))}},cs=(e,t)=>(e||(e=t),typeof e=="string"&&(e=w.createElement("button",null,e)),e),ls=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)},ue=()=>{},$=ue(),Me=Object,h=e=>e===$,Y=e=>typeof e=="function",oe=(e,t)=>({...e,...t}),us=e=>Y(e.then),Ae=new WeakMap;let ds=0;const Se=e=>{const t=typeof e,n=e&&e.constructor,s=n==Date;let r,o;if(Me(e)===e&&!s&&n!=RegExp){if(r=Ae.get(e),r)return r;if(r=++ds+"~",Ae.set(e,r),n==Array){for(r="@",o=0;oze&&typeof window.requestAnimationFrame!=dt,ce=(e,t)=>{const n=J.get(e);return[()=>!h(t)&&e.get(t)||He,s=>{if(!h(t)){const r=e.get(t);t in Ie||(Ie[t]=r),n[5](t,oe(r,s),r||He)}},n[6],()=>!h(t)&&t in Ie?Ie[t]:!h(t)&&e.get(t)||He]};let nt=!0;const ms=()=>nt,[st,rt]=ze&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],hs=()=>{const e=tt&&document.visibilityState;return h(e)||e!=="hidden"},gs=e=>(tt&&document.addEventListener("visibilitychange",e),st("focus",e),()=>{tt&&document.removeEventListener("visibilitychange",e),rt("focus",e)}),ps=e=>{const t=()=>{nt=!0,e()},n=()=>{nt=!1};return st("online",t),st("offline",n),()=>{rt("online",t),rt("offline",n)}},xs={isOnline:ms,isVisible:hs},Cs={initFocus:gs,initReconnect:ps},_t=!w.useId,je=!ze||"Deno"in window,vs=e=>fs()?window.requestAnimationFrame(e):setTimeout(e,1),Re=je?c.useEffect:c.useLayoutEffect,Ke=typeof navigator<"u"&&navigator.connection,Tt=!je&&Ke&&(["slow-2g","2g"].includes(Ke.effectiveType)||Ke.saveData),de=e=>{if(Y(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Se(e):"",[e,t]};let bs=0;const ot=()=>++bs,Wt=0,Ut=1,Bt=2,Es=3;var we={__proto__:null,ERROR_REVALIDATE_EVENT:Es,FOCUS_EVENT:Wt,MUTATE_EVENT:Bt,RECONNECT_EVENT:Ut};async function $t(...e){const[t,n,s,r]=e,o=oe({populateCache:!0,throwOnError:!0},typeof r=="boolean"?{revalidate:r}:r||{});let i=o.populateCache;const f=o.rollbackOnError;let u=o.optimisticData;const C=o.revalidate!==!1,v=E=>typeof f=="function"?f(E):f!==!1,b=o.throwOnError;if(Y(n)){const E=n,x=[],R=t.keys();for(const A of R)!/^\$(inf|sub)\$/.test(A)&&E(t.get(A)._k)&&x.push(A);return Promise.all(x.map(l))}return l(n);async function l(E){const[x]=de(E);if(!x)return;const[R,A]=ce(t,x),[d,G,T,O]=J.get(t),I=d[x],z=()=>C&&(delete T[x],delete O[x],I&&I[0])?I[0](Bt).then(()=>R().data):R().data;if(e.length<3)return z();let m=s,g;const _=ot();G[x]=[_,0];const p=!h(u),L=R(),M=L.data,N=L._c,P=h(N)?M:N;if(p&&(u=Y(u)?u(P,M):u,A({data:u,_c:P})),Y(m))try{m=m(P)}catch(q){g=q}if(m&&us(m))if(m=await m.catch(q=>{g=q}),_!==G[x][0]){if(g)throw g;return m}else g&&p&&v(g)&&(i=!0,m=P,A({data:m,_c:$}));i&&(g||(Y(i)&&(m=i(m,P)),A({data:m,error:$,_c:$}))),G[x][1]=ot();const F=await z();if(A({_c:$}),g){if(b)throw g;return}return i?F:m}}const Ot=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},qt=(e,t)=>{if(!J.has(e)){const n=oe(Cs,t),s={},r=$t.bind($,e);let o=ue;const i={},f=(v,b)=>{const l=i[v]||[];return i[v]=l,l.push(b),()=>l.splice(l.indexOf(b),1)},u=(v,b,l)=>{e.set(v,b);const E=i[v];if(E)for(const x of E)x(b,l)},C=()=>{if(!J.has(e)&&(J.set(e,[s,{},{},{},r,u,f]),!je)){const v=n.initFocus(setTimeout.bind($,Ot.bind($,s,Wt))),b=n.initReconnect(setTimeout.bind($,Ot.bind($,s,Ut)));o=()=>{v&&v(),b&&b(),J.delete(e)}}};return C(),[e,r,C,o]}return[e,J.get(e)[4]]},ys=(e,t,n,s,r)=>{const o=n.errorRetryCount,i=r.retryCount,f=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!h(o)&&i>o||setTimeout(s,f,r)},ws=(e,t)=>Se(e)==Se(t),[We,Ht]=qt(new Map),Kt=oe({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:ys,onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Tt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Tt?5e3:3e3,compare:ws,isPaused:()=>!1,cache:We,mutate:Ht,fallback:{}},xs),Gt=(e,t)=>{const n=oe(e,t);if(t){const{use:s,fallback:r}=e,{use:o,fallback:i}=t;s&&o&&(n.use=s.concat(o)),r&&i&&(n.fallback=oe(r,i))}return n},at=c.createContext({}),Rs=e=>{const{value:t}=e,n=c.useContext(at),s=Y(t),r=c.useMemo(()=>s?t(n):t,[s,n,t]),o=c.useMemo(()=>s?r:Gt(n,r),[s,n,r]),i=r&&r.provider,f=c.useRef($);i&&!f.current&&(f.current=qt(i(o.cache||We),r));const u=f.current;return u&&(o.cache=u[0],o.mutate=u[1]),Re(()=>{if(u)return u[2]&&u[2](),u[3]},[]),c.createElement(at.Provider,oe(e,{value:o}))},Yt=ze&&window.__SWR_DEVTOOLS_USE__,Ss=Yt?window.__SWR_DEVTOOLS_USE__:[],js=()=>{Yt&&(window.__SWR_DEVTOOLS_REACT__=w)},Qt=e=>Y(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Xt=()=>oe(Kt,c.useContext(at)),_s=(e,t)=>{const[n,s]=de(e),[,,,r]=J.get(We);if(r[n])return r[n];const o=t(s);return r[n]=o,o},Ts=e=>(t,n,s)=>e(t,n&&((...o)=>{const[i]=de(t),[,,,f]=J.get(We),u=f[i];return h(u)?n(...o):(delete f[i],u)}),s),Os=Ss.concat(Ts),ks=e=>function(...n){const s=Xt(),[r,o,i]=Qt(n),f=Gt(s,i);let u=e;const{use:C}=f,v=(C||[]).concat(Os);for(let b=v.length;b--;)u=v[b](u);return u(r,o||f.fetcher||null,f)},Ns=(e,t,n)=>{const s=t[e]||(t[e]=[]);return s.push(n),()=>{const r=s.indexOf(n);r>=0&&(s[r]=s[s.length-1],s.pop())}},As=(e,t)=>(...n)=>{const[s,r,o]=Qt(n),i=(o.use||[]).concat(t);return e(s,r,{...o,use:i})};js();const Is=e=>de(e)[0],kt=w.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Ge={dedupe:!0},Ls=(e,t,n)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:f,revalidateIfStale:u,refreshInterval:C,refreshWhenHidden:v,refreshWhenOffline:b,keepPreviousData:l}=n,[E,x,R,A]=J.get(s),[d,G]=de(e),T=c.useRef(!1),O=c.useRef(!1),I=c.useRef(d),z=c.useRef(t),m=c.useRef(n),g=()=>m.current,_=()=>g().isVisible()&&g().isOnline(),[p,L,M,N]=ce(s,d),P=c.useRef({}).current,F=h(i)?n.fallback[d]:i,q=(S,j)=>{for(const V in P){const k=V;if(k==="data"){if(!r(S[k],j[k])&&(!h(S[k])||!r(Ne,j[k])))return!1}else if(j[k]!==S[k])return!1}return!0},be=c.useMemo(()=>{const S=!d||!t?!1:h(f)?g().isPaused()||o?!1:h(u)?!0:u:f,j=W=>{const te=oe(W);return delete te._k,S?{isValidating:!0,isLoading:!0,...te}:te},V=p(),k=N(),Q=j(V),ge=V===k?Q:j(k);let D=Q;return[()=>{const W=j(p());return q(W,D)?(D.data=W.data,D.isLoading=W.isLoading,D.isValidating=W.isValidating,D.error=W.error,D):(D=W,W)},()=>ge]},[s,d]),ae=At.useSyncExternalStore(c.useCallback(S=>M(d,(j,V)=>{q(V,j)||S()}),[s,d]),be[0],be[1]),Oe=!T.current,Z=E[d]&&E[d].length>0,ie=ae.data,ee=h(ie)?F:ie,ke=ae.error,pt=c.useRef(ee),Ne=l?h(ie)?pt.current:ie:ee,xt=Z&&!h(ke)?!1:Oe&&!h(f)?f:g().isPaused()?!1:o?h(ee)?!1:u:h(ee)||u,Ct=!!(d&&t&&Oe&&xt),ln=h(ae.isValidating)?Ct:ae.isValidating,un=h(ae.isLoading)?Ct:ae.isLoading,Ee=c.useCallback(async S=>{const j=z.current;if(!d||!j||O.current||g().isPaused())return!1;let V,k,Q=!0;const ge=S||{},D=!R[d]||!ge.dedupe,W=()=>_t?!O.current&&d===I.current&&T.current:d===I.current,te={isValidating:!1,isLoading:!1},bt=()=>{L(te)},Et=()=>{const K=R[d];K&&K[1]===k&&delete R[d]},yt={isValidating:!0};h(p().data)&&(yt.isLoading=!0);try{if(D&&(L(yt),n.loadingTimeout&&h(p().data)&&setTimeout(()=>{Q&&W()&&g().onLoadingSlow(d,n)},n.loadingTimeout),R[d]=[j(G),ot()]),[V,k]=R[d],V=await V,D&&setTimeout(Et,n.dedupingInterval),!R[d]||R[d][1]!==k)return D&&W()&&g().onDiscarded(d),!1;te.error=$;const K=x[d];if(!h(K)&&(k<=K[0]||k<=K[1]||K[1]===0))return bt(),D&&W()&&g().onDiscarded(d),!1;const ne=p().data;te.data=r(ne,V)?ne:V,D&&W()&&g().onSuccess(V,d,n)}catch(K){Et();const ne=g(),{shouldRetryOnError:Ue}=ne;ne.isPaused()||(te.error=K,D&&W()&&(ne.onError(K,d,ne),(Ue===!0||Y(Ue)&&Ue(K))&&_()&&ne.onErrorRetry(K,d,ne,dn=>{const Be=E[d];Be&&Be[0]&&Be[0](we.ERROR_REVALIDATE_EVENT,dn)},{retryCount:(ge.retryCount||0)+1,dedupe:!0})))}return Q=!1,bt(),!0},[d,s]),vt=c.useCallback((...S)=>$t(s,I.current,...S),[]);if(Re(()=>{z.current=t,m.current=n,h(ie)||(pt.current=ie)}),Re(()=>{if(!d)return;const S=Ee.bind($,Ge);let j=0;const k=Ns(d,E,(Q,ge={})=>{if(Q==we.FOCUS_EVENT){const D=Date.now();g().revalidateOnFocus&&D>j&&_()&&(j=D+g().focusThrottleInterval,S())}else if(Q==we.RECONNECT_EVENT)g().revalidateOnReconnect&&_()&&S();else{if(Q==we.MUTATE_EVENT)return Ee();if(Q==we.ERROR_REVALIDATE_EVENT)return Ee(ge)}});return O.current=!1,I.current=d,T.current=!0,L({_k:G}),xt&&(h(ee)||je?S():vs(S)),()=>{O.current=!0,k()}},[d]),Re(()=>{let S;function j(){const k=Y(C)?C(p().data):C;k&&S!==-1&&(S=setTimeout(V,k))}function V(){!p().error&&(v||g().isVisible())&&(b||g().isOnline())?Ee(Ge).then(j):j()}return j(),()=>{S&&(clearTimeout(S),S=-1)}},[C,v,b,d]),c.useDebugValue(Ne),o&&h(ee)&&d){if(!_t&&je)throw new Error("Fallback data is required when using suspense in SSR.");z.current=t,m.current=n,O.current=!1;const S=A[d];if(!h(S)){const j=vt(S);kt(j)}if(h(ke)){const j=Ee(Ge);h(Ne)||(j.status="fulfilled",j.value=!0),kt(j)}else throw ke}return{mutate:vt,get data(){return P.data=!0,Ne},get error(){return P.error=!0,ke},get isValidating(){return P.isValidating=!0,ln},get isLoading(){return P.isLoading=!0,un}}},Jt=Me.defineProperty(Rs,"defaultValue",{value:Kt}),ft=ks(Ls),Ms=Object.freeze(Object.defineProperty({__proto__:null,SWRConfig:Jt,default:ft,mutate:Ht,preload:_s,unstable_serialize:Is,useSWRConfig:Xt},Symbol.toStringTag,{value:"Module"})),Ps="$inf$",Ds=e=>de(e?e(0,null):null)[0],Ye=Promise.resolve(),Fs=e=>(t,n,s)=>{const r=c.useRef(!1),{cache:o,initialSize:i=1,revalidateAll:f=!1,persistSize:u=!1,revalidateFirstPage:C=!0,revalidateOnMount:v=!1,parallel:b=!1}=s;let l;try{l=Ds(t),l&&(l=Ps+l)}catch{}const[E,x,R]=ce(o,l),A=c.useCallback(()=>h(E()._l)?i:E()._l,[o,l,i]);At.useSyncExternalStore(c.useCallback(m=>l?R(l,()=>{m()}):()=>{},[o,l]),A,A);const d=c.useCallback(()=>{const m=E()._l;return h(m)?i:m},[l,i]),G=c.useRef(d());Re(()=>{if(!r.current){r.current=!0;return}l&&x({_l:u?G.current:d()})},[l,o]);const T=v&&!r.current,O=e(l,async m=>{const g=E()._i,_=[],p=d(),[L]=ce(o,m),M=L().data,N=[];let P=null;for(let F=0;F{Z=await n(be),Oe({data:Z,_k:be}),_[F]=Z};b?N.push(ee):await ee()}else _[F]=Z;b||(P=Z)}return b&&await Promise.all(N.map(F=>F())),x({_i:$}),_},s),I=c.useCallback(function(m,g){const _=typeof g=="boolean"?{revalidate:g}:g||{},p=_.revalidate!==!1;return l?(p&&(h(m)?x({_i:!0}):x({_i:!1})),arguments.length?O.mutate(m,{..._,revalidate:p}):O.mutate()):Ye},[l,o]),z=c.useCallback(m=>{if(!l)return Ye;const[,g]=ce(o,l);let _;if(Y(m)?_=m(d()):typeof m=="number"&&(_=m),typeof _!="number")return Ye;g({_l:_}),G.current=_;const p=[],[L]=ce(o,l);let M=null;for(let N=0;N<_;++N){const[P]=de(t(N,M)),[F]=ce(o,P),q=P?F().data:$;if(h(q))return I(L().data);p.push(q),M=q}return I(p)},[l,o,I,d]);return{size:d(),setSize:z,mutate:I,get data(){return O.data},get error(){return O.error},get isValidating(){return O.isValidating},get isLoading(){return O.isLoading}}},Vs=As(ft,Fs);function zs(e,t){if(!e)throw typeof t=="string"?new Error(t):new Error(`${t.displayName} not found`)}var ve=(e,t)=>{const{assertCtxFn:n=zs}=t||{},s=w.createContext(void 0);return s.displayName=e,[s,()=>{const i=w.useContext(s);return n(i,`${e} not found`),i.value},()=>{const i=w.useContext(s);return i?i.value:{}}]},Zt={};ss(Zt,{SWRConfig:()=>Jt,useSWR:()=>ft,useSWRInfinite:()=>Vs});rs(Zt,Ms);var[Ws,Us]=ve("ClerkInstanceContext"),[Lr,Bs]=ve("UserContext");ve("ClientContext");ve("SessionContext");ve("OrganizationContext");typeof window<"u"?w.useLayoutEffect:w.useEffect;const[Mr,$s]=[Ws,Us];function qs(e){if(!e)throw new Error(os)}const Hs=Object.freeze({noGuarantees:Object.freeze({guaranteedLoaded:!1}),guaranteedLoaded:Object.freeze({guaranteedLoaded:!0})}),mt=w.createContext(void 0);mt.displayName="StructureContext";const Ks=()=>{const e=w.useContext(mt);return qs(e),e},Gs=({children:e})=>Ks().guaranteedLoaded?w.createElement(w.Fragment,null,e):w.createElement(mt.Provider,{value:Hs.guaranteedLoaded},e),he=(e,t)=>{t=t||e.displayName||e.name||"Component",e.displayName=t;const n=s=>{const r=$s();return r.loaded?w.createElement(Gs,null,w.createElement(e,{...s,clerk:r})):null};return n.displayName=`withClerk(${t})`,n},[Pr,en]=ve("AuthContext");function tn(){const e=Bs();return e===void 0?{isLoaded:!1,isSignedIn:void 0,user:void 0}:e===null?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}const Ys=({children:e})=>{const{userId:t}=en();return t?w.createElement(w.Fragment,null,e):null},Qs=({children:e})=>{const{userId:t}=en();return t===null?w.createElement(w.Fragment,null,e):null};he(({clerk:e,...t})=>{const{client:n,session:s}=e,{__unstable__environment:r}=e,o=n.activeSessions&&n.activeSessions.length>0;return w.useEffect(()=>{if(s===null&&o&&r){const{afterSignOutOneUrl:i}=r.displayConfig;e.navigate(i)}else e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");he(({clerk:e,...t})=>(w.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");he(({clerk:e})=>(w.useEffect(()=>{e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");he(({clerk:e})=>(w.useEffect(()=>{e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");he(({clerk:e})=>(w.useEffect(()=>{e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");he(({clerk:e,...t})=>(w.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");const Xs=he(({clerk:e,children:t,...n})=>{const{afterSignInUrl:s,afterSignUpUrl:r,redirectUrl:o,mode:i,...f}=n;t=cs(t,"Sign in");const u=is(t)("SignInButton"),C=()=>{const l={afterSignInUrl:s,afterSignUpUrl:r,redirectUrl:o};return i==="modal"?e.openSignIn(l):e.redirectToSignIn(l)},b={...f,onClick:async l=>(await ls(u.props.onClick)(l),C())};return w.cloneElement(u,b)},"SignInButton"),Js=Ys,Zs=Qs;function er({className:e}){return a.jsx("i",{className:re("icon-[mingcute--send-plane-line]",e)})}const tr=()=>{const e=yn(),t=Lt();return a.jsxs("span",{className:re("font-mono text-[10px]",e?"text-red-500":"text-zinc-500"),children:[t.length,"/",wn]})},nr=()=>{const e=Ce(),t=it(),n=ut(Fe().isWhisper),s=Ve();return e||t?null:a.jsxs("label",{className:"label mx-2 flex items-center",children:[a.jsx("input",{className:"checkbox-accent checkbox checkbox-sm mr-2",checked:n,type:"checkbox",onChange:r=>{const o=r.target.checked;s("isWhisper",o)}}),a.jsx("span",{className:"label-text text-sm",children:"悄悄话"})]})},sr=()=>{const e=Ce(),t=ut(Fe().syncToRecently),n=Ve(),s=it();return!e||s?null:a.jsxs("label",{className:"label mx-2 flex items-center",children:[a.jsx("input",{className:"checkbox-accent checkbox checkbox-sm mr-2",checked:t,type:"checkbox",onChange:r=>{const o=r.target.checked;n("syncToRecently",o)}}),a.jsx("span",{className:"label-text text-sm",children:"同步到碎碎念"})]})},ht=({className:e})=>{const t=It();return a.jsxs("footer",{className:Te("mt-3 flex h-5 w-full min-w-0 items-center justify-between",e),children:[a.jsxs("span",{className:re("flex-1 select-none text-[10px] text-zinc-500 transition-opacity"),children:[a.jsxs("span",{className:"hidden md:inline",children:["支持 ",a.jsx("b",{children:"Markdown"})," 与"," ",a.jsx(Mn,{href:"https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax",children:"GFM"})]}),a.jsx(xn,{})]}),a.jsx(Wn,{children:t&&a.jsxs(De.aside,{initial:{opacity:0,scale:.96,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:8},className:"flex select-none items-center gap-2.5",children:[a.jsx(tr,{}),a.jsx(nr,{}),a.jsx(sr,{}),a.jsx(rr,{})]},"send-button-wrapper")})]})},rr=()=>{const e=Cn(),{text:t,author:n,mail:s,url:r,source:o,avatar:i,isWhisper:f,syncToRecently:u}=Fe(),{afterSubmit:C}=vn(),v=Ce(),b=Dt(),l=it(),E=bn(),x=En(),R=T=>(x==null||x(T),T),{mutate:A,isPending:d}=Jn({mutationFn:async T=>{const O=B.get(t),I=B.get(n),z=B.get(s),m=B.get(i),g=B.get(o),_=B.get(r),p={text:O,author:I,mail:z,avatar:m,source:g,url:_};if(v&&(delete p.source,delete p.avatar),Object.keys(p).forEach(N=>{p[N]===""&&delete p[N]}),l)return v?ye.comment.proxy.master.reply(T).post({data:{text:O}}).then(R):ye.comment.reply(T,p).then(R);const L=B.get(f),M=B.get(u);return v?ye.comment.proxy.master.comment(T).post({data:{text:O}}).then(async N=>(M&&ye.recently.proxy.post({data:{content:O,ref:T}}).then(()=>{qe.success("已同步到碎碎念")}),N)).then(R):(p.isWhispers=L,ye.comment.comment(T,p).then(R))},mutationKey:[e,"comment"],onError(T){qe.error(mn(T))},onSuccess(T){C==null||C();const O=v?"发表成功啦~":l?"感谢你的回复!":"感谢你的评论!",I=Rn(E);qe.success(O),B.set(t,""),b.setQueryData(I,z=>z&&(l?Pe(z,m=>{const g=(p,L,M)=>{if(p.id===L)return p.children||(p.children=[]),p.children.push({...M,new:!0}),!0;if(p.children){for(const N of p.children)if(g(N,L,M))return!0;return!1}},_={...T,new:!0};for(const p of m.pages)for(const L of p.data)if(g(L,e,_))break}):Pe(z,m=>{m.pages[0].data.unshift({...T,new:!0})})))}}),G=()=>{A(e)};return a.jsxs(De.button,{className:"flex appearance-none items-center space-x-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",whileHover:{scale:1.05},whileTap:{scale:.95},type:"button",disabled:d,onClick:G,children:[a.jsx(er,{className:"h-5 w-5 text-zinc-800 dark:text-zinc-200"}),a.jsx(De.span,{className:"text-sm",layout:"size",children:d?"送信...":"送信"})]})},or=()=>{const e="bg-gray-200/50 dark:bg-zinc-800/50";return a.jsxs("div",{className:"flex animate-pulse gap-4",children:[a.jsx("div",{className:re("h-12 w-12 self-end overflow-hidden rounded-full",e)}),a.jsx("div",{className:re("h-[150px] w-full rounded-lg",e)})]})},nn=c.forwardRef((e,t)=>{const{className:n,children:s,...r}=e,o=Ze(0),i=Ze(0),f=c.useCallback(({clientX:b,clientY:l,currentTarget:E})=>{const x=E.getBoundingClientRect();o.set(b-x.left),i.set(l-x.top)},[o,i]),u=Qn`radial-gradient(320px circle at ${o}px ${i}px, var(--spotlight-color) 0%, transparent 85%)`,C=hn(),v=On(e);return a.jsxs("div",{className:"group relative h-full [--spotlight-color:hsl(var(--a)_/_0.05)]",onMouseMove:f,children:[!C&&a.jsx(De.div,{className:"pointer-events-none absolute left-0 right-0 top-0 z-0 h-[150px] rounded-xl opacity-0 transition-opacity duration-500 group-hover:opacity-100",style:{background:u},"aria-hidden":"true"}),a.jsx("textarea",{ref:t,className:Te("h-full w-full resize-none bg-transparent","overflow-auto px-3 py-4","text-neutral-900/80 dark:text-slate-100/80",n),...r,...v}),s]})});nn.displayName="TextArea";const ar=Pn(()=>fn(()=>import("./EmojiPicker-Z2csmeIh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(e=>e.EmojiPicker)),gt=()=>{const e=Je(()=>Sn()),t=Ve(),n=Lt(),s=c.useRef(null),r=c.useCallback(o=>{if(!s.current)return;const i=s.current,f=i.selectionStart,u=i.selectionEnd;i.value=`${i.value.substring(0,f)} ${o} ${i.value.substring(u,i.value.length)}`,t("text",i.value),requestAnimationFrame(()=>{const C=f+o.length+2;i.selectionStart=C,i.selectionEnd=C,i.focus()})},[]);return c.useEffect(()=>{const o=s.current;o&&n!==o.value&&(o.value=n)},[n]),c.useLayoutEffect(()=>{const o=s.current;o&&(o.selectionStart=o.selectionEnd=o.value.length,o.focus())},[]),a.jsx(nn,{ref:s,defaultValue:n,onChange:o=>t("text",o.target.value),placeholder:e,children:a.jsx(jn,{children:a.jsx(Ft,{trigger:"click",TriggerComponent:ir,headless:!0,children:a.jsx(ar,{onEmojiSelect:r})})})})},ir=()=>a.jsxs("button",{className:"ml-0 inline-flex h-5 w-5 translate-y-1 text-base center md:ml-4",onClick:gn,children:[a.jsx("i",{className:"icon-[mingcute--emoji-2-line]"}),a.jsx("span",{className:"sr-only",children:"表情"})]}),cr=()=>{const{user:e}=tn(),t=Ve(),n=e?e.fullName||e.lastName||e.firstName||"Anonymous":"";return c.useEffect(()=>{var s;e&&(t("author",n),t("avatar",e.profileImageUrl),t("mail",((s=e.primaryEmailAddress)==null?void 0:s.emailAddress)||""))},[n,e]),e?a.jsxs("div",{className:"flex space-x-4",children:[a.jsx("div",{className:re("mb-2 flex-shrink-0 select-none self-end overflow-hidden rounded-full",'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',"ml-[2px] backface-hidden"),children:a.jsx(Mt,{className:"rounded-full object-cover",src:e.profileImageUrl,alt:`${n}'s avatar`,width:48,height:48})}),a.jsx("div",{className:"relative h-[150px] w-full rounded-lg bg-gray-200/50 pb-5 dark:bg-zinc-800/50",children:a.jsx(gt,{})}),a.jsx(ht,{className:"absolute bottom-0 left-12 right-0 mb-2 ml-4 w-auto px-4"})]}):a.jsx(or,{})};Vt({});const sn=c.createContext(null),rn=c.createContext(null),on=()=>c.useContext(sn),lr=()=>c.useContext(rn),ur=e=>{const{showErrorMessage:t=!0,...n}=e,s=Je(()=>Vt({}));return a.jsx(sn.Provider,{value:Je(()=>({showErrorMessage:t,fields:s,getField:r=>B.get(s)[r],addField:(r,o)=>{B.set(s,i=>({...i,[r]:o}))},removeField:r=>{B.set(s,o=>{const i={...o};return delete i[r],i})}})),children:a.jsx(rn.Provider,{value:c.useMemo(()=>({showErrorMessage:t}),[t]),children:a.jsx(dr,{...n})})})},dr=e=>{const{onSubmit:t,...n}=e,s=on().fields,r=c.useCallback(async o=>{o.preventDefault();const i=B.get(s);for await(const[f,u]of Object.entries(i)){const C=u.$ref;if(!C)continue;const v=C.value,b=u.rules;for(let l=0;lPe(R,A=>{A[f].rules[l].status="error"}));return}}catch(x){console.error("validate function throw error",x);return}}}t==null||t(o)},[t]);return a.jsx("form",{onSubmit:r,...n,children:e.children})},an=c.memo(({className:e,rules:t,onKeyDown:n,...s})=>{const r=on();if(!r)throw new Error("FormInput must be used inside ");const{showErrorMessage:o}=lr(),{addField:i,removeField:f,fields:u}=r,C=c.useRef(null),v=ut(Vn(u,c.useCallback(l=>{var E,x;if(s.name)return(x=(E=l[s.name])==null?void 0:E.rules.find(R=>R.status==="error"))==null?void 0:x.message},[s.name])));c.useEffect(()=>{const l=s.name;if(t&&l)return i(l,{rules:t,$ref:C.current}),()=>{f(l)}},[s.name,t]);const b=c.useCallback(l=>{n&&n(l),B.set(u,E=>Pe(E,x=>{s.name&&x[s.name].rules.forEach(R=>{R.status==="error"&&(R.status="success")})}))},[u,n,s.name]);return a.jsxs(a.Fragment,{children:[a.jsx(kn,{ref:C,className:Te(!!v&&"ring-2 ring-red-400 dark:ring-orange-700","w-full",e),type:"text",onKeyDown:b,...s}),o&&a.jsx(lt,{duration:.2,children:a.jsx("p",{className:"text-left text-sm text-red-400 dark:text-orange-700",children:v})})]})});an.displayName="FormInput";const fr=()=>Ce()?a.jsx(gr,{}):a.jsx(hr,{}),cn="relative h-[150px] w-full rounded-lg bg-gray-200/50 pb-5 dark:bg-zinc-800/50",mr={author:"昵称",mail:"邮箱",url:"网址"},Qe=e=>{const{fieldKey:t,required:n}=e,[s,r]=zn(Fe()[t]);return a.jsx(an,{type:"text",value:s,onChange:o=>r(o.target.value),required:n,placeholder:mr[t]+(n?" *":""),className:"border-0 bg-gray-200/50 dark:bg-zinc-800/50"})},hr=()=>a.jsxs(ur,{className:"flex flex-col space-y-4 px-2 pt-2",showErrorMessage:!1,children:[a.jsxs("div",{className:"flex flex-col space-x-0 space-y-4 md:flex-row md:space-x-4 md:space-y-0",children:[a.jsx(Qe,{fieldKey:"author",required:!0}),a.jsx(Qe,{fieldKey:"mail",required:!0}),a.jsx(Qe,{fieldKey:"url"})]}),a.jsx("div",{className:Te(cn,"pb-8"),children:a.jsx(gt,{})}),a.jsx(ht,{className:"absolute bottom-4 left-0 right-4 mb-2 ml-4 w-auto px-4"})]}),gr=()=>{const e=pn(t=>t.user);return a.jsxs("div",{className:"flex space-x-4",children:[a.jsx("div",{className:re("mb-2 flex-shrink-0 select-none self-end overflow-hidden rounded-full",'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',"ml-[2px] backface-hidden"),children:a.jsx(Mt,{className:"rounded-full object-cover",src:e.avatar,alt:`${e.name||e.username}'s avatar`,width:48,height:48})}),a.jsx("div",{className:cn,children:a.jsx(gt,{})}),a.jsx(ht,{className:"absolute bottom-0 left-12 right-0 mb-2 ml-4 w-auto px-4"})]})};function pr(e){return a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:a.jsx("path",{d:"M11 15H7C4.79086 15 3 16.7909 3 19C3 20.1046 3.89543 21 5 21H15M16.8744 13C16.2164 13.4935 15.6221 14.066 15.1049 14.7043C15.035 14.7906 15 14.8953 15 15M16.8744 17C16.2164 16.5065 15.6221 15.934 15.1049 15.2957C15.035 15.2094 15 15.1047 15 15M15 15H21M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function xr(){const e=Dn();return a.jsxs("div",{className:"flex h-[150px] w-full space-x-4 rounded-lg bg-gray-100/80 center dark:bg-zinc-900/80",children:[a.jsx(St,{variant:"secondary",type:"button",onClick:()=>{ct(X.legacy)},children:"免登录评论"}),a.jsx(Xs,{mode:"modal",redirectUrl:Nn(e).href,children:a.jsxs(St,{variant:"primary",type:"button",children:[a.jsx(pr,{className:"mr-1 h-5 w-5"}),"登录后才可以留言噢"]})})]})}const Cr=()=>{const e=Xe(),t=`转换到${e===X.legacy?"新":"旧"}版评论`,n=It(),s=!!tn(),r=c.useRef(function(){const f=Xe();return a.jsxs(a.Fragment,{children:[a.jsx("i",{className:re(f===X.legacy?"icon-[mingcute--user-4-line]":"icon-[material-symbols--dynamic-form-outline]")}),a.jsx("span",{className:"sr-only",children:t})]})}).current;return Ce()?null:a.jsx(Gn,{className:re("absolute left-0 top-0 z-10 rounded-full text-sm","h-6 w-6 border border-slate-200 dark:border-neutral-800","bg-slate-100 dark:bg-neutral-900","flex cursor-pointer text-base-100/50 center","text-base-content/50","opacity-0 transition-opacity duration-200 group-[:hover]:opacity-100",e===X.legacy&&"bottom-0 top-auto",n||s&&e===X["with-auth"]&&"invisible opacity-0"),onClick:()=>{ct(e===X.legacy?X["with-auth"]:X.legacy)},children:a.jsx(Ft,{TriggerComponent:r,children:t})})},Dr=e=>{const{refId:t,className:n,afterSubmit:s,initialValue:r}=e,o=Xe(),i=Ce();return c.useEffect(()=>{i&&ct(X.legacy)},[i]),a.jsx(_n,{children:a.jsx(Tn,{refId:t,afterSubmit:s,initialValue:r,children:a.jsxs("div",{className:Te("group relative w-full min-w-0",n),"data-hide-print":!0,children:[a.jsx(Cr,{}),a.jsx("div",{className:"relative w-full",children:o===X.legacy?a.jsx(vr,{}):a.jsx(br,{})})]})})})},vr=()=>a.jsx(lt,{children:a.jsx(fr,{})}),br=()=>a.jsxs(lt,{children:[a.jsx(Zs,{children:a.jsx(xr,{})}),a.jsx(Js,{children:a.jsx(cr,{})})]});export{Dr as C}; +var $e=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var y=(e,t,n)=>($e(e,t,"read from private field"),n?n.call(e):t.get(e)),fe=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},me=(e,t,n,s)=>($e(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);var pe=(e,t,n)=>($e(e,t,"access private method"),n);import{r as c,c as wt,R as w,j as a,_ as fn}from"./index-HRfeE_7B.js";import{s as At}from"./index-GZJTCUEG.js";import{b as Ce,c as ye,t as qe,n as mn,p as hn,q as gn,r as pn}from"./LinkCard-gCgkDO82.js";import{u as It,a as xn,b as Cn,c as Fe,d as vn,e as it,f as bn,g as En,h as yn,i as Lt,M as wn,j as Ve,k as Rn,l as Sn,m as jn,s as ct,n as X,o as Xe,E as _n,p as Tn}from"./Comments-g86CJBuN.js";import{p as Pe,j as On,I as kn,A as lt,k as Nn}from"./utils-DGmE6P1M.js";import{a as re,c as Te}from"./helper-Oi49T1hx.js";import{j as An,g as Je,I as Mt}from"./Gallery-32-V3LXo.js";import{S as In,n as Pt,l as Dt,q as Ln,r as Mn,d as Pn,F as Ft,t as Dn}from"./Markdown-tpcPSstc.js";import{g as Fn}from"./mutation-qwHfn3Jw.js";import{u as ut,j as B,a as Vt,s as Vn,h as zn}from"./Divider-sIhvLlX0.js";import{A as Wn}from"./Collapse-JZfrBou4.js";import{a as Un,e as Bn,g as $n,u as qn,h as Hn,f as Kn,i as Rt,m as De,S as St,M as Gn}from"./spring-0AHu48BV.js";function Ze(e){const t=Un(()=>Bn(e)),{isStatic:n}=c.useContext($n);if(n){const[,s]=c.useState(e);c.useEffect(()=>t.on("change",s),[])}return t}function Yn(e,t){const n=Ze(t()),s=()=>n.set(t());return s(),qn(()=>{const r=()=>Kn.update(s,!1,!0),o=e.map(i=>i.on("change",r));return()=>{o.forEach(i=>i()),Hn(s)}}),n}function Qn(e,...t){const n=e.length;function s(){let r="";for(let o=0;o{var n,s,r,o,i,f,u,C;y(this,se)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((s=(n=y(this,se)).onSuccess)==null||s.call(n,t.data,y(this,U).variables,y(this,U).context),(o=(r=y(this,se)).onSettled)==null||o.call(r,t.data,null,y(this,U).variables,y(this,U).context)):(t==null?void 0:t.type)==="error"&&((f=(i=y(this,se)).onError)==null||f.call(i,t.error,y(this,U).variables,y(this,U).context),(C=(u=y(this,se)).onSettled)==null||C.call(u,void 0,t.error,y(this,U).variables,y(this,U).context))),this.listeners.forEach(v=>{v(y(this,U))})})},Nt);function Jn(e,t){const n=Dt(t),[s]=c.useState(()=>new Xn(n,e));c.useEffect(()=>{s.setOptions(e)},[s,e]);const r=c.useSyncExternalStore(c.useCallback(i=>s.subscribe(Pt.batchCalls(i)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=c.useCallback((i,f)=>{s.mutate(i,f).catch(Zn)},[s]);if(r.error&&Ln(s.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}function Zn(){}var zt=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ts=Object.getOwnPropertyNames,ns=Object.prototype.hasOwnProperty,ss=(e,t)=>{for(var n in t)zt(e,n,{get:t[n],enumerable:!0})},jt=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ts(t))!ns.call(e,r)&&r!==n&&zt(e,r,{get:()=>t[r],enumerable:!(s=es(t,r))||s.enumerable});return e},rs=(e,t,n)=>(jt(e,t,"default"),n&&jt(n,t,"default"));typeof window<"u"&&!window.global&&(window.global=typeof wt>"u"?window:wt);const os="Clerk: You must wrap your application in a component.",as=e=>`Clerk: You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,is=e=>t=>{try{return w.Children.only(e)}catch{throw new Error(as(t))}},cs=(e,t)=>(e||(e=t),typeof e=="string"&&(e=w.createElement("button",null,e)),e),ls=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)},ue=()=>{},$=ue(),Me=Object,h=e=>e===$,Y=e=>typeof e=="function",oe=(e,t)=>({...e,...t}),us=e=>Y(e.then),Ae=new WeakMap;let ds=0;const Se=e=>{const t=typeof e,n=e&&e.constructor,s=n==Date;let r,o;if(Me(e)===e&&!s&&n!=RegExp){if(r=Ae.get(e),r)return r;if(r=++ds+"~",Ae.set(e,r),n==Array){for(r="@",o=0;oze&&typeof window.requestAnimationFrame!=dt,ce=(e,t)=>{const n=J.get(e);return[()=>!h(t)&&e.get(t)||He,s=>{if(!h(t)){const r=e.get(t);t in Ie||(Ie[t]=r),n[5](t,oe(r,s),r||He)}},n[6],()=>!h(t)&&t in Ie?Ie[t]:!h(t)&&e.get(t)||He]};let nt=!0;const ms=()=>nt,[st,rt]=ze&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],hs=()=>{const e=tt&&document.visibilityState;return h(e)||e!=="hidden"},gs=e=>(tt&&document.addEventListener("visibilitychange",e),st("focus",e),()=>{tt&&document.removeEventListener("visibilitychange",e),rt("focus",e)}),ps=e=>{const t=()=>{nt=!0,e()},n=()=>{nt=!1};return st("online",t),st("offline",n),()=>{rt("online",t),rt("offline",n)}},xs={isOnline:ms,isVisible:hs},Cs={initFocus:gs,initReconnect:ps},_t=!w.useId,je=!ze||"Deno"in window,vs=e=>fs()?window.requestAnimationFrame(e):setTimeout(e,1),Re=je?c.useEffect:c.useLayoutEffect,Ke=typeof navigator<"u"&&navigator.connection,Tt=!je&&Ke&&(["slow-2g","2g"].includes(Ke.effectiveType)||Ke.saveData),de=e=>{if(Y(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Se(e):"",[e,t]};let bs=0;const ot=()=>++bs,Wt=0,Ut=1,Bt=2,Es=3;var we={__proto__:null,ERROR_REVALIDATE_EVENT:Es,FOCUS_EVENT:Wt,MUTATE_EVENT:Bt,RECONNECT_EVENT:Ut};async function $t(...e){const[t,n,s,r]=e,o=oe({populateCache:!0,throwOnError:!0},typeof r=="boolean"?{revalidate:r}:r||{});let i=o.populateCache;const f=o.rollbackOnError;let u=o.optimisticData;const C=o.revalidate!==!1,v=E=>typeof f=="function"?f(E):f!==!1,b=o.throwOnError;if(Y(n)){const E=n,x=[],R=t.keys();for(const A of R)!/^\$(inf|sub)\$/.test(A)&&E(t.get(A)._k)&&x.push(A);return Promise.all(x.map(l))}return l(n);async function l(E){const[x]=de(E);if(!x)return;const[R,A]=ce(t,x),[d,G,T,O]=J.get(t),I=d[x],z=()=>C&&(delete T[x],delete O[x],I&&I[0])?I[0](Bt).then(()=>R().data):R().data;if(e.length<3)return z();let m=s,g;const _=ot();G[x]=[_,0];const p=!h(u),L=R(),M=L.data,N=L._c,P=h(N)?M:N;if(p&&(u=Y(u)?u(P,M):u,A({data:u,_c:P})),Y(m))try{m=m(P)}catch(q){g=q}if(m&&us(m))if(m=await m.catch(q=>{g=q}),_!==G[x][0]){if(g)throw g;return m}else g&&p&&v(g)&&(i=!0,m=P,A({data:m,_c:$}));i&&(g||(Y(i)&&(m=i(m,P)),A({data:m,error:$,_c:$}))),G[x][1]=ot();const F=await z();if(A({_c:$}),g){if(b)throw g;return}return i?F:m}}const Ot=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},qt=(e,t)=>{if(!J.has(e)){const n=oe(Cs,t),s={},r=$t.bind($,e);let o=ue;const i={},f=(v,b)=>{const l=i[v]||[];return i[v]=l,l.push(b),()=>l.splice(l.indexOf(b),1)},u=(v,b,l)=>{e.set(v,b);const E=i[v];if(E)for(const x of E)x(b,l)},C=()=>{if(!J.has(e)&&(J.set(e,[s,{},{},{},r,u,f]),!je)){const v=n.initFocus(setTimeout.bind($,Ot.bind($,s,Wt))),b=n.initReconnect(setTimeout.bind($,Ot.bind($,s,Ut)));o=()=>{v&&v(),b&&b(),J.delete(e)}}};return C(),[e,r,C,o]}return[e,J.get(e)[4]]},ys=(e,t,n,s,r)=>{const o=n.errorRetryCount,i=r.retryCount,f=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!h(o)&&i>o||setTimeout(s,f,r)},ws=(e,t)=>Se(e)==Se(t),[We,Ht]=qt(new Map),Kt=oe({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:ys,onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Tt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Tt?5e3:3e3,compare:ws,isPaused:()=>!1,cache:We,mutate:Ht,fallback:{}},xs),Gt=(e,t)=>{const n=oe(e,t);if(t){const{use:s,fallback:r}=e,{use:o,fallback:i}=t;s&&o&&(n.use=s.concat(o)),r&&i&&(n.fallback=oe(r,i))}return n},at=c.createContext({}),Rs=e=>{const{value:t}=e,n=c.useContext(at),s=Y(t),r=c.useMemo(()=>s?t(n):t,[s,n,t]),o=c.useMemo(()=>s?r:Gt(n,r),[s,n,r]),i=r&&r.provider,f=c.useRef($);i&&!f.current&&(f.current=qt(i(o.cache||We),r));const u=f.current;return u&&(o.cache=u[0],o.mutate=u[1]),Re(()=>{if(u)return u[2]&&u[2](),u[3]},[]),c.createElement(at.Provider,oe(e,{value:o}))},Yt=ze&&window.__SWR_DEVTOOLS_USE__,Ss=Yt?window.__SWR_DEVTOOLS_USE__:[],js=()=>{Yt&&(window.__SWR_DEVTOOLS_REACT__=w)},Qt=e=>Y(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Xt=()=>oe(Kt,c.useContext(at)),_s=(e,t)=>{const[n,s]=de(e),[,,,r]=J.get(We);if(r[n])return r[n];const o=t(s);return r[n]=o,o},Ts=e=>(t,n,s)=>e(t,n&&((...o)=>{const[i]=de(t),[,,,f]=J.get(We),u=f[i];return h(u)?n(...o):(delete f[i],u)}),s),Os=Ss.concat(Ts),ks=e=>function(...n){const s=Xt(),[r,o,i]=Qt(n),f=Gt(s,i);let u=e;const{use:C}=f,v=(C||[]).concat(Os);for(let b=v.length;b--;)u=v[b](u);return u(r,o||f.fetcher||null,f)},Ns=(e,t,n)=>{const s=t[e]||(t[e]=[]);return s.push(n),()=>{const r=s.indexOf(n);r>=0&&(s[r]=s[s.length-1],s.pop())}},As=(e,t)=>(...n)=>{const[s,r,o]=Qt(n),i=(o.use||[]).concat(t);return e(s,r,{...o,use:i})};js();const Is=e=>de(e)[0],kt=w.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Ge={dedupe:!0},Ls=(e,t,n)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:f,revalidateIfStale:u,refreshInterval:C,refreshWhenHidden:v,refreshWhenOffline:b,keepPreviousData:l}=n,[E,x,R,A]=J.get(s),[d,G]=de(e),T=c.useRef(!1),O=c.useRef(!1),I=c.useRef(d),z=c.useRef(t),m=c.useRef(n),g=()=>m.current,_=()=>g().isVisible()&&g().isOnline(),[p,L,M,N]=ce(s,d),P=c.useRef({}).current,F=h(i)?n.fallback[d]:i,q=(S,j)=>{for(const V in P){const k=V;if(k==="data"){if(!r(S[k],j[k])&&(!h(S[k])||!r(Ne,j[k])))return!1}else if(j[k]!==S[k])return!1}return!0},be=c.useMemo(()=>{const S=!d||!t?!1:h(f)?g().isPaused()||o?!1:h(u)?!0:u:f,j=W=>{const te=oe(W);return delete te._k,S?{isValidating:!0,isLoading:!0,...te}:te},V=p(),k=N(),Q=j(V),ge=V===k?Q:j(k);let D=Q;return[()=>{const W=j(p());return q(W,D)?(D.data=W.data,D.isLoading=W.isLoading,D.isValidating=W.isValidating,D.error=W.error,D):(D=W,W)},()=>ge]},[s,d]),ae=At.useSyncExternalStore(c.useCallback(S=>M(d,(j,V)=>{q(V,j)||S()}),[s,d]),be[0],be[1]),Oe=!T.current,Z=E[d]&&E[d].length>0,ie=ae.data,ee=h(ie)?F:ie,ke=ae.error,pt=c.useRef(ee),Ne=l?h(ie)?pt.current:ie:ee,xt=Z&&!h(ke)?!1:Oe&&!h(f)?f:g().isPaused()?!1:o?h(ee)?!1:u:h(ee)||u,Ct=!!(d&&t&&Oe&&xt),ln=h(ae.isValidating)?Ct:ae.isValidating,un=h(ae.isLoading)?Ct:ae.isLoading,Ee=c.useCallback(async S=>{const j=z.current;if(!d||!j||O.current||g().isPaused())return!1;let V,k,Q=!0;const ge=S||{},D=!R[d]||!ge.dedupe,W=()=>_t?!O.current&&d===I.current&&T.current:d===I.current,te={isValidating:!1,isLoading:!1},bt=()=>{L(te)},Et=()=>{const K=R[d];K&&K[1]===k&&delete R[d]},yt={isValidating:!0};h(p().data)&&(yt.isLoading=!0);try{if(D&&(L(yt),n.loadingTimeout&&h(p().data)&&setTimeout(()=>{Q&&W()&&g().onLoadingSlow(d,n)},n.loadingTimeout),R[d]=[j(G),ot()]),[V,k]=R[d],V=await V,D&&setTimeout(Et,n.dedupingInterval),!R[d]||R[d][1]!==k)return D&&W()&&g().onDiscarded(d),!1;te.error=$;const K=x[d];if(!h(K)&&(k<=K[0]||k<=K[1]||K[1]===0))return bt(),D&&W()&&g().onDiscarded(d),!1;const ne=p().data;te.data=r(ne,V)?ne:V,D&&W()&&g().onSuccess(V,d,n)}catch(K){Et();const ne=g(),{shouldRetryOnError:Ue}=ne;ne.isPaused()||(te.error=K,D&&W()&&(ne.onError(K,d,ne),(Ue===!0||Y(Ue)&&Ue(K))&&_()&&ne.onErrorRetry(K,d,ne,dn=>{const Be=E[d];Be&&Be[0]&&Be[0](we.ERROR_REVALIDATE_EVENT,dn)},{retryCount:(ge.retryCount||0)+1,dedupe:!0})))}return Q=!1,bt(),!0},[d,s]),vt=c.useCallback((...S)=>$t(s,I.current,...S),[]);if(Re(()=>{z.current=t,m.current=n,h(ie)||(pt.current=ie)}),Re(()=>{if(!d)return;const S=Ee.bind($,Ge);let j=0;const k=Ns(d,E,(Q,ge={})=>{if(Q==we.FOCUS_EVENT){const D=Date.now();g().revalidateOnFocus&&D>j&&_()&&(j=D+g().focusThrottleInterval,S())}else if(Q==we.RECONNECT_EVENT)g().revalidateOnReconnect&&_()&&S();else{if(Q==we.MUTATE_EVENT)return Ee();if(Q==we.ERROR_REVALIDATE_EVENT)return Ee(ge)}});return O.current=!1,I.current=d,T.current=!0,L({_k:G}),xt&&(h(ee)||je?S():vs(S)),()=>{O.current=!0,k()}},[d]),Re(()=>{let S;function j(){const k=Y(C)?C(p().data):C;k&&S!==-1&&(S=setTimeout(V,k))}function V(){!p().error&&(v||g().isVisible())&&(b||g().isOnline())?Ee(Ge).then(j):j()}return j(),()=>{S&&(clearTimeout(S),S=-1)}},[C,v,b,d]),c.useDebugValue(Ne),o&&h(ee)&&d){if(!_t&&je)throw new Error("Fallback data is required when using suspense in SSR.");z.current=t,m.current=n,O.current=!1;const S=A[d];if(!h(S)){const j=vt(S);kt(j)}if(h(ke)){const j=Ee(Ge);h(Ne)||(j.status="fulfilled",j.value=!0),kt(j)}else throw ke}return{mutate:vt,get data(){return P.data=!0,Ne},get error(){return P.error=!0,ke},get isValidating(){return P.isValidating=!0,ln},get isLoading(){return P.isLoading=!0,un}}},Jt=Me.defineProperty(Rs,"defaultValue",{value:Kt}),ft=ks(Ls),Ms=Object.freeze(Object.defineProperty({__proto__:null,SWRConfig:Jt,default:ft,mutate:Ht,preload:_s,unstable_serialize:Is,useSWRConfig:Xt},Symbol.toStringTag,{value:"Module"})),Ps="$inf$",Ds=e=>de(e?e(0,null):null)[0],Ye=Promise.resolve(),Fs=e=>(t,n,s)=>{const r=c.useRef(!1),{cache:o,initialSize:i=1,revalidateAll:f=!1,persistSize:u=!1,revalidateFirstPage:C=!0,revalidateOnMount:v=!1,parallel:b=!1}=s;let l;try{l=Ds(t),l&&(l=Ps+l)}catch{}const[E,x,R]=ce(o,l),A=c.useCallback(()=>h(E()._l)?i:E()._l,[o,l,i]);At.useSyncExternalStore(c.useCallback(m=>l?R(l,()=>{m()}):()=>{},[o,l]),A,A);const d=c.useCallback(()=>{const m=E()._l;return h(m)?i:m},[l,i]),G=c.useRef(d());Re(()=>{if(!r.current){r.current=!0;return}l&&x({_l:u?G.current:d()})},[l,o]);const T=v&&!r.current,O=e(l,async m=>{const g=E()._i,_=[],p=d(),[L]=ce(o,m),M=L().data,N=[];let P=null;for(let F=0;F{Z=await n(be),Oe({data:Z,_k:be}),_[F]=Z};b?N.push(ee):await ee()}else _[F]=Z;b||(P=Z)}return b&&await Promise.all(N.map(F=>F())),x({_i:$}),_},s),I=c.useCallback(function(m,g){const _=typeof g=="boolean"?{revalidate:g}:g||{},p=_.revalidate!==!1;return l?(p&&(h(m)?x({_i:!0}):x({_i:!1})),arguments.length?O.mutate(m,{..._,revalidate:p}):O.mutate()):Ye},[l,o]),z=c.useCallback(m=>{if(!l)return Ye;const[,g]=ce(o,l);let _;if(Y(m)?_=m(d()):typeof m=="number"&&(_=m),typeof _!="number")return Ye;g({_l:_}),G.current=_;const p=[],[L]=ce(o,l);let M=null;for(let N=0;N<_;++N){const[P]=de(t(N,M)),[F]=ce(o,P),q=P?F().data:$;if(h(q))return I(L().data);p.push(q),M=q}return I(p)},[l,o,I,d]);return{size:d(),setSize:z,mutate:I,get data(){return O.data},get error(){return O.error},get isValidating(){return O.isValidating},get isLoading(){return O.isLoading}}},Vs=As(ft,Fs);function zs(e,t){if(!e)throw typeof t=="string"?new Error(t):new Error(`${t.displayName} not found`)}var ve=(e,t)=>{const{assertCtxFn:n=zs}=t||{},s=w.createContext(void 0);return s.displayName=e,[s,()=>{const i=w.useContext(s);return n(i,`${e} not found`),i.value},()=>{const i=w.useContext(s);return i?i.value:{}}]},Zt={};ss(Zt,{SWRConfig:()=>Jt,useSWR:()=>ft,useSWRInfinite:()=>Vs});rs(Zt,Ms);var[Ws,Us]=ve("ClerkInstanceContext"),[Lr,Bs]=ve("UserContext");ve("ClientContext");ve("SessionContext");ve("OrganizationContext");typeof window<"u"?w.useLayoutEffect:w.useEffect;const[Mr,$s]=[Ws,Us];function qs(e){if(!e)throw new Error(os)}const Hs=Object.freeze({noGuarantees:Object.freeze({guaranteedLoaded:!1}),guaranteedLoaded:Object.freeze({guaranteedLoaded:!0})}),mt=w.createContext(void 0);mt.displayName="StructureContext";const Ks=()=>{const e=w.useContext(mt);return qs(e),e},Gs=({children:e})=>Ks().guaranteedLoaded?w.createElement(w.Fragment,null,e):w.createElement(mt.Provider,{value:Hs.guaranteedLoaded},e),he=(e,t)=>{t=t||e.displayName||e.name||"Component",e.displayName=t;const n=s=>{const r=$s();return r.loaded?w.createElement(Gs,null,w.createElement(e,{...s,clerk:r})):null};return n.displayName=`withClerk(${t})`,n},[Pr,en]=ve("AuthContext");function tn(){const e=Bs();return e===void 0?{isLoaded:!1,isSignedIn:void 0,user:void 0}:e===null?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}const Ys=({children:e})=>{const{userId:t}=en();return t?w.createElement(w.Fragment,null,e):null},Qs=({children:e})=>{const{userId:t}=en();return t===null?w.createElement(w.Fragment,null,e):null};he(({clerk:e,...t})=>{const{client:n,session:s}=e,{__unstable__environment:r}=e,o=n.activeSessions&&n.activeSessions.length>0;return w.useEffect(()=>{if(s===null&&o&&r){const{afterSignOutOneUrl:i}=r.displayConfig;e.navigate(i)}else e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");he(({clerk:e,...t})=>(w.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");he(({clerk:e})=>(w.useEffect(()=>{e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");he(({clerk:e})=>(w.useEffect(()=>{e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");he(({clerk:e})=>(w.useEffect(()=>{e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");he(({clerk:e,...t})=>(w.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");const Xs=he(({clerk:e,children:t,...n})=>{const{afterSignInUrl:s,afterSignUpUrl:r,redirectUrl:o,mode:i,...f}=n;t=cs(t,"Sign in");const u=is(t)("SignInButton"),C=()=>{const l={afterSignInUrl:s,afterSignUpUrl:r,redirectUrl:o};return i==="modal"?e.openSignIn(l):e.redirectToSignIn(l)},b={...f,onClick:async l=>(await ls(u.props.onClick)(l),C())};return w.cloneElement(u,b)},"SignInButton"),Js=Ys,Zs=Qs;function er({className:e}){return a.jsx("i",{className:re("icon-[mingcute--send-plane-line]",e)})}const tr=()=>{const e=yn(),t=Lt();return a.jsxs("span",{className:re("font-mono text-[10px]",e?"text-red-500":"text-zinc-500"),children:[t.length,"/",wn]})},nr=()=>{const e=Ce(),t=it(),n=ut(Fe().isWhisper),s=Ve();return e||t?null:a.jsxs("label",{className:"label mx-2 flex items-center",children:[a.jsx("input",{className:"checkbox-accent checkbox checkbox-sm mr-2",checked:n,type:"checkbox",onChange:r=>{const o=r.target.checked;s("isWhisper",o)}}),a.jsx("span",{className:"label-text text-sm",children:"悄悄话"})]})},sr=()=>{const e=Ce(),t=ut(Fe().syncToRecently),n=Ve(),s=it();return!e||s?null:a.jsxs("label",{className:"label mx-2 flex items-center",children:[a.jsx("input",{className:"checkbox-accent checkbox checkbox-sm mr-2",checked:t,type:"checkbox",onChange:r=>{const o=r.target.checked;n("syncToRecently",o)}}),a.jsx("span",{className:"label-text text-sm",children:"同步到碎碎念"})]})},ht=({className:e})=>{const t=It();return a.jsxs("footer",{className:Te("mt-3 flex h-5 w-full min-w-0 items-center justify-between",e),children:[a.jsxs("span",{className:re("flex-1 select-none text-[10px] text-zinc-500 transition-opacity"),children:[a.jsxs("span",{className:"hidden md:inline",children:["支持 ",a.jsx("b",{children:"Markdown"})," 与"," ",a.jsx(Mn,{href:"https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax",children:"GFM"})]}),a.jsx(xn,{})]}),a.jsx(Wn,{children:t&&a.jsxs(De.aside,{initial:{opacity:0,scale:.96,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:8},className:"flex select-none items-center gap-2.5",children:[a.jsx(tr,{}),a.jsx(nr,{}),a.jsx(sr,{}),a.jsx(rr,{})]},"send-button-wrapper")})]})},rr=()=>{const e=Cn(),{text:t,author:n,mail:s,url:r,source:o,avatar:i,isWhisper:f,syncToRecently:u}=Fe(),{afterSubmit:C}=vn(),v=Ce(),b=Dt(),l=it(),E=bn(),x=En(),R=T=>(x==null||x(T),T),{mutate:A,isPending:d}=Jn({mutationFn:async T=>{const O=B.get(t),I=B.get(n),z=B.get(s),m=B.get(i),g=B.get(o),_=B.get(r),p={text:O,author:I,mail:z,avatar:m,source:g,url:_};if(v&&(delete p.source,delete p.avatar),Object.keys(p).forEach(N=>{p[N]===""&&delete p[N]}),l)return v?ye.comment.proxy.master.reply(T).post({data:{text:O}}).then(R):ye.comment.reply(T,p).then(R);const L=B.get(f),M=B.get(u);return v?ye.comment.proxy.master.comment(T).post({data:{text:O}}).then(async N=>(M&&ye.recently.proxy.post({data:{content:O,ref:T}}).then(()=>{qe.success("已同步到碎碎念")}),N)).then(R):(p.isWhispers=L,ye.comment.comment(T,p).then(R))},mutationKey:[e,"comment"],onError(T){qe.error(mn(T))},onSuccess(T){C==null||C();const O=v?"发表成功啦~":l?"感谢你的回复!":"感谢你的评论!",I=Rn(E);qe.success(O),B.set(t,""),b.setQueryData(I,z=>z&&(l?Pe(z,m=>{const g=(p,L,M)=>{if(p.id===L)return p.children||(p.children=[]),p.children.push({...M,new:!0}),!0;if(p.children){for(const N of p.children)if(g(N,L,M))return!0;return!1}},_={...T,new:!0};for(const p of m.pages)for(const L of p.data)if(g(L,e,_))break}):Pe(z,m=>{m.pages[0].data.unshift({...T,new:!0})})))}}),G=()=>{A(e)};return a.jsxs(De.button,{className:"flex appearance-none items-center space-x-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",whileHover:{scale:1.05},whileTap:{scale:.95},type:"button",disabled:d,onClick:G,children:[a.jsx(er,{className:"h-5 w-5 text-zinc-800 dark:text-zinc-200"}),a.jsx(De.span,{className:"text-sm",layout:"size",children:d?"送信...":"送信"})]})},or=()=>{const e="bg-gray-200/50 dark:bg-zinc-800/50";return a.jsxs("div",{className:"flex animate-pulse gap-4",children:[a.jsx("div",{className:re("h-12 w-12 self-end overflow-hidden rounded-full",e)}),a.jsx("div",{className:re("h-[150px] w-full rounded-lg",e)})]})},nn=c.forwardRef((e,t)=>{const{className:n,children:s,...r}=e,o=Ze(0),i=Ze(0),f=c.useCallback(({clientX:b,clientY:l,currentTarget:E})=>{const x=E.getBoundingClientRect();o.set(b-x.left),i.set(l-x.top)},[o,i]),u=Qn`radial-gradient(320px circle at ${o}px ${i}px, var(--spotlight-color) 0%, transparent 85%)`,C=hn(),v=On(e);return a.jsxs("div",{className:"group relative h-full [--spotlight-color:hsl(var(--a)_/_0.05)]",onMouseMove:f,children:[!C&&a.jsx(De.div,{className:"pointer-events-none absolute left-0 right-0 top-0 z-0 h-[150px] rounded-xl opacity-0 transition-opacity duration-500 group-hover:opacity-100",style:{background:u},"aria-hidden":"true"}),a.jsx("textarea",{ref:t,className:Te("h-full w-full resize-none bg-transparent","overflow-auto px-3 py-4","text-neutral-900/80 dark:text-slate-100/80",n),...r,...v}),s]})});nn.displayName="TextArea";const ar=Pn(()=>fn(()=>import("./EmojiPicker-Nt7QcEYg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(e=>e.EmojiPicker)),gt=()=>{const e=Je(()=>Sn()),t=Ve(),n=Lt(),s=c.useRef(null),r=c.useCallback(o=>{if(!s.current)return;const i=s.current,f=i.selectionStart,u=i.selectionEnd;i.value=`${i.value.substring(0,f)} ${o} ${i.value.substring(u,i.value.length)}`,t("text",i.value),requestAnimationFrame(()=>{const C=f+o.length+2;i.selectionStart=C,i.selectionEnd=C,i.focus()})},[]);return c.useEffect(()=>{const o=s.current;o&&n!==o.value&&(o.value=n)},[n]),c.useLayoutEffect(()=>{const o=s.current;o&&(o.selectionStart=o.selectionEnd=o.value.length,o.focus())},[]),a.jsx(nn,{ref:s,defaultValue:n,onChange:o=>t("text",o.target.value),placeholder:e,children:a.jsx(jn,{children:a.jsx(Ft,{trigger:"click",TriggerComponent:ir,headless:!0,children:a.jsx(ar,{onEmojiSelect:r})})})})},ir=()=>a.jsxs("button",{className:"ml-0 inline-flex h-5 w-5 translate-y-1 text-base center md:ml-4",onClick:gn,children:[a.jsx("i",{className:"icon-[mingcute--emoji-2-line]"}),a.jsx("span",{className:"sr-only",children:"表情"})]}),cr=()=>{const{user:e}=tn(),t=Ve(),n=e?e.fullName||e.lastName||e.firstName||"Anonymous":"";return c.useEffect(()=>{var s;e&&(t("author",n),t("avatar",e.profileImageUrl),t("mail",((s=e.primaryEmailAddress)==null?void 0:s.emailAddress)||""))},[n,e]),e?a.jsxs("div",{className:"flex space-x-4",children:[a.jsx("div",{className:re("mb-2 flex-shrink-0 select-none self-end overflow-hidden rounded-full",'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',"ml-[2px] backface-hidden"),children:a.jsx(Mt,{className:"rounded-full object-cover",src:e.profileImageUrl,alt:`${n}'s avatar`,width:48,height:48})}),a.jsx("div",{className:"relative h-[150px] w-full rounded-lg bg-gray-200/50 pb-5 dark:bg-zinc-800/50",children:a.jsx(gt,{})}),a.jsx(ht,{className:"absolute bottom-0 left-12 right-0 mb-2 ml-4 w-auto px-4"})]}):a.jsx(or,{})};Vt({});const sn=c.createContext(null),rn=c.createContext(null),on=()=>c.useContext(sn),lr=()=>c.useContext(rn),ur=e=>{const{showErrorMessage:t=!0,...n}=e,s=Je(()=>Vt({}));return a.jsx(sn.Provider,{value:Je(()=>({showErrorMessage:t,fields:s,getField:r=>B.get(s)[r],addField:(r,o)=>{B.set(s,i=>({...i,[r]:o}))},removeField:r=>{B.set(s,o=>{const i={...o};return delete i[r],i})}})),children:a.jsx(rn.Provider,{value:c.useMemo(()=>({showErrorMessage:t}),[t]),children:a.jsx(dr,{...n})})})},dr=e=>{const{onSubmit:t,...n}=e,s=on().fields,r=c.useCallback(async o=>{o.preventDefault();const i=B.get(s);for await(const[f,u]of Object.entries(i)){const C=u.$ref;if(!C)continue;const v=C.value,b=u.rules;for(let l=0;lPe(R,A=>{A[f].rules[l].status="error"}));return}}catch(x){console.error("validate function throw error",x);return}}}t==null||t(o)},[t]);return a.jsx("form",{onSubmit:r,...n,children:e.children})},an=c.memo(({className:e,rules:t,onKeyDown:n,...s})=>{const r=on();if(!r)throw new Error("FormInput must be used inside ");const{showErrorMessage:o}=lr(),{addField:i,removeField:f,fields:u}=r,C=c.useRef(null),v=ut(Vn(u,c.useCallback(l=>{var E,x;if(s.name)return(x=(E=l[s.name])==null?void 0:E.rules.find(R=>R.status==="error"))==null?void 0:x.message},[s.name])));c.useEffect(()=>{const l=s.name;if(t&&l)return i(l,{rules:t,$ref:C.current}),()=>{f(l)}},[s.name,t]);const b=c.useCallback(l=>{n&&n(l),B.set(u,E=>Pe(E,x=>{s.name&&x[s.name].rules.forEach(R=>{R.status==="error"&&(R.status="success")})}))},[u,n,s.name]);return a.jsxs(a.Fragment,{children:[a.jsx(kn,{ref:C,className:Te(!!v&&"ring-2 ring-red-400 dark:ring-orange-700","w-full",e),type:"text",onKeyDown:b,...s}),o&&a.jsx(lt,{duration:.2,children:a.jsx("p",{className:"text-left text-sm text-red-400 dark:text-orange-700",children:v})})]})});an.displayName="FormInput";const fr=()=>Ce()?a.jsx(gr,{}):a.jsx(hr,{}),cn="relative h-[150px] w-full rounded-lg bg-gray-200/50 pb-5 dark:bg-zinc-800/50",mr={author:"昵称",mail:"邮箱",url:"网址"},Qe=e=>{const{fieldKey:t,required:n}=e,[s,r]=zn(Fe()[t]);return a.jsx(an,{type:"text",value:s,onChange:o=>r(o.target.value),required:n,placeholder:mr[t]+(n?" *":""),className:"border-0 bg-gray-200/50 dark:bg-zinc-800/50"})},hr=()=>a.jsxs(ur,{className:"flex flex-col space-y-4 px-2 pt-2",showErrorMessage:!1,children:[a.jsxs("div",{className:"flex flex-col space-x-0 space-y-4 md:flex-row md:space-x-4 md:space-y-0",children:[a.jsx(Qe,{fieldKey:"author",required:!0}),a.jsx(Qe,{fieldKey:"mail",required:!0}),a.jsx(Qe,{fieldKey:"url"})]}),a.jsx("div",{className:Te(cn,"pb-8"),children:a.jsx(gt,{})}),a.jsx(ht,{className:"absolute bottom-4 left-0 right-4 mb-2 ml-4 w-auto px-4"})]}),gr=()=>{const e=pn(t=>t.user);return a.jsxs("div",{className:"flex space-x-4",children:[a.jsx("div",{className:re("mb-2 flex-shrink-0 select-none self-end overflow-hidden rounded-full",'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',"ml-[2px] backface-hidden"),children:a.jsx(Mt,{className:"rounded-full object-cover",src:e.avatar,alt:`${e.name||e.username}'s avatar`,width:48,height:48})}),a.jsx("div",{className:cn,children:a.jsx(gt,{})}),a.jsx(ht,{className:"absolute bottom-0 left-12 right-0 mb-2 ml-4 w-auto px-4"})]})};function pr(e){return a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:a.jsx("path",{d:"M11 15H7C4.79086 15 3 16.7909 3 19C3 20.1046 3.89543 21 5 21H15M16.8744 13C16.2164 13.4935 15.6221 14.066 15.1049 14.7043C15.035 14.7906 15 14.8953 15 15M16.8744 17C16.2164 16.5065 15.6221 15.934 15.1049 15.2957C15.035 15.2094 15 15.1047 15 15M15 15H21M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function xr(){const e=Dn();return a.jsxs("div",{className:"flex h-[150px] w-full space-x-4 rounded-lg bg-gray-100/80 center dark:bg-zinc-900/80",children:[a.jsx(St,{variant:"secondary",type:"button",onClick:()=>{ct(X.legacy)},children:"免登录评论"}),a.jsx(Xs,{mode:"modal",redirectUrl:Nn(e).href,children:a.jsxs(St,{variant:"primary",type:"button",children:[a.jsx(pr,{className:"mr-1 h-5 w-5"}),"登录后才可以留言噢"]})})]})}const Cr=()=>{const e=Xe(),t=`转换到${e===X.legacy?"新":"旧"}版评论`,n=It(),s=!!tn(),r=c.useRef(function(){const f=Xe();return a.jsxs(a.Fragment,{children:[a.jsx("i",{className:re(f===X.legacy?"icon-[mingcute--user-4-line]":"icon-[material-symbols--dynamic-form-outline]")}),a.jsx("span",{className:"sr-only",children:t})]})}).current;return Ce()?null:a.jsx(Gn,{className:re("absolute left-0 top-0 z-10 rounded-full text-sm","h-6 w-6 border border-slate-200 dark:border-neutral-800","bg-slate-100 dark:bg-neutral-900","flex cursor-pointer text-base-100/50 center","text-base-content/50","opacity-0 transition-opacity duration-200 group-[:hover]:opacity-100",e===X.legacy&&"bottom-0 top-auto",n||s&&e===X["with-auth"]&&"invisible opacity-0"),onClick:()=>{ct(e===X.legacy?X["with-auth"]:X.legacy)},children:a.jsx(Ft,{TriggerComponent:r,children:t})})},Dr=e=>{const{refId:t,className:n,afterSubmit:s,initialValue:r}=e,o=Xe(),i=Ce();return c.useEffect(()=>{i&&ct(X.legacy)},[i]),a.jsx(_n,{children:a.jsx(Tn,{refId:t,afterSubmit:s,initialValue:r,children:a.jsxs("div",{className:Te("group relative w-full min-w-0",n),"data-hide-print":!0,children:[a.jsx(Cr,{}),a.jsx("div",{className:"relative w-full",children:o===X.legacy?a.jsx(vr,{}):a.jsx(br,{})})]})})})},vr=()=>a.jsx(lt,{children:a.jsx(fr,{})}),br=()=>a.jsxs(lt,{children:[a.jsx(Zs,{children:a.jsx(xr,{})}),a.jsx(Js,{children:a.jsx(cr,{})})]});export{Dr as C}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./EmojiPicker-Z2csmeIh.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./Markdown-xk31dQ-T.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./LinkCard-aLl-jjA_.js","./Divider-ZvsSiSkZ.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Collapse-gGRmuqb3.js","./Gallery-lvvI9ksR.js","./Gallery-cCMf-PmV.css","./RichLink-sK7aRcsj.js","./Markdown-nufn1r_q.css"] + __vite__mapDeps.viteFileDeps = ["./EmojiPicker-Nt7QcEYg.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./Markdown-tpcPSstc.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./LinkCard-gCgkDO82.js","./Divider-sIhvLlX0.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Collapse-JZfrBou4.js","./Gallery-32-V3LXo.js","./Gallery-cCMf-PmV.css","./RichLink-6jHOm4uG.js","./Markdown-nufn1r_q.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/Tweet-jnYP4Kiq.js b/assets/Tweet-lNU6kk5E.js similarity index 58% rename from assets/Tweet-jnYP4Kiq.js rename to assets/Tweet-lNU6kk5E.js index 2fddab5bb8..565a460bcd 100644 --- a/assets/Tweet-jnYP4Kiq.js +++ b/assets/Tweet-lNU6kk5E.js @@ -1,7 +1,7 @@ -import{_ as m,j as e}from"./index-Qg-bAq5J.js";import{I as a}from"./Gallery-lvvI9ksR.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";const s={AvatarImg:t=>e.jsx(a,{...t,alt:"avatar",className:"!m-0"}),MediaImg:t=>e.jsx(a,{...t,fill:!0,unoptimized:!0,alt:"tweet-media",className:"!m-0 object-cover"})};async function p({id:t}){const{Tweet:r}=await m(()=>import("./index.client-MRAendKS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return e.jsx("span",{className:"flex justify-center",children:e.jsx(r,{id:t,components:s})})}export{p as default}; +import{_ as m,j as e}from"./index-HRfeE_7B.js";import{I as a}from"./Gallery-32-V3LXo.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";const s={AvatarImg:t=>e.jsx(a,{...t,alt:"avatar",className:"!m-0"}),MediaImg:t=>e.jsx(a,{...t,fill:!0,unoptimized:!0,alt:"tweet-media",className:"!m-0 object-cover"})};async function p({id:t}){const{Tweet:r}=await m(()=>import("./index.client-ZMZX_aB9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return e.jsx("span",{className:"flex justify-center",children:e.jsx(r,{id:t,components:s})})}export{p as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index.client-MRAendKS.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./index-_qoN1KWb.js","./LinkCard-aLl-jjA_.js","./Divider-ZvsSiSkZ.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./index-75n5Qq-a.css"] + __vite__mapDeps.viteFileDeps = ["./index.client-ZMZX_aB9.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./index-GZJTCUEG.js","./LinkCard-gCgkDO82.js","./Divider-sIhvLlX0.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./index-75n5Qq-a.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/arc-suLvkwOy.js b/assets/arc-l0axwUh0.js similarity index 98% rename from assets/arc-suLvkwOy.js rename to assets/arc-l0axwUh0.js index 5c9c815768..b06b719ce7 100644 --- a/assets/arc-suLvkwOy.js +++ b/assets/arc-l0axwUh0.js @@ -1 +1 @@ -import{w as ln,c as K}from"./path-aUcfwwLI.js";import{H as rn,I as Q,J as I,K as an,L as y,M as on,N as B,O as _,P as un,Q as t,R as sn,S as tn,T as fn}from"./mermaid.core-uOCfdc17.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,q,O,v,R,L,r){var D=q-l,i=O-h,n=L-v,m=r-R,a=m*D-n*i;if(!(a*au*u+N*N&&(H=w,J=d),{cx:H,cy:J,x01:-n,y01:-m,x11:H*(v/T-1),y11:J*(v/T-1)}}function vn(){var l=cn,h=yn,q=K(0),O=null,v=gn,R=mn,L=pn,r=null,D=ln(i);function i(){var n,m,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,M=un(c-f),o=c>f;if(r||(r=n=D()),sy))r.moveTo(0,0);else if(M>on-y)r.moveTo(s*Q(f),s*I(f)),r.arc(0,0,s,f,c,!o),a>y&&(r.moveTo(a*Q(c),a*I(c)),r.arc(0,0,a,c,f,o));else{var p=f,g=c,A=f,T=c,P=M,E=M,H=L.apply(this,arguments)/2,J=H>y&&(O?+O.apply(this,arguments):B(a*a+s*s)),w=_(un(s-a)/2,+q.apply(this,arguments)),d=w,x=w,e,u;if(J>y){var N=sn(J/a*I(H)),C=sn(J/s*I(H));(P-=N*2)>y?(N*=o?1:-1,A+=N,T-=N):(P=0,A=T=(f+c)/2),(E-=C*2)>y?(C*=o?1:-1,p+=C,g-=C):(E=0,p=g=(f+c)/2)}var j=s*Q(p),z=s*I(p),F=a*Q(T),G=a*I(T);if(w>y){var U=s*Q(g),V=s*I(g),X=a*Q(A),Y=a*I(A),S;if(My?x>y?(e=W(X,Y,j,z,s,x,o),u=W(U,V,F,G,s,x,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?r.lineTo(F,G):d>y?(e=W(F,G,U,V,a,-d,o),u=W(j,z,X,Y,a,-d,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),du*u+N*N&&(H=w,J=d),{cx:H,cy:J,x01:-n,y01:-m,x11:H*(v/T-1),y11:J*(v/T-1)}}function vn(){var l=cn,h=yn,q=K(0),O=null,v=gn,R=mn,L=pn,r=null,D=ln(i);function i(){var n,m,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,M=un(c-f),o=c>f;if(r||(r=n=D()),sy))r.moveTo(0,0);else if(M>on-y)r.moveTo(s*Q(f),s*I(f)),r.arc(0,0,s,f,c,!o),a>y&&(r.moveTo(a*Q(c),a*I(c)),r.arc(0,0,a,c,f,o));else{var p=f,g=c,A=f,T=c,P=M,E=M,H=L.apply(this,arguments)/2,J=H>y&&(O?+O.apply(this,arguments):B(a*a+s*s)),w=_(un(s-a)/2,+q.apply(this,arguments)),d=w,x=w,e,u;if(J>y){var N=sn(J/a*I(H)),C=sn(J/s*I(H));(P-=N*2)>y?(N*=o?1:-1,A+=N,T-=N):(P=0,A=T=(f+c)/2),(E-=C*2)>y?(C*=o?1:-1,p+=C,g-=C):(E=0,p=g=(f+c)/2)}var j=s*Q(p),z=s*I(p),F=a*Q(T),G=a*I(T);if(w>y){var U=s*Q(g),V=s*I(g),X=a*Q(A),Y=a*I(A),S;if(My?x>y?(e=W(X,Y,j,z,s,x,o),u=W(U,V,F,G,s,x,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?r.lineTo(F,G):d>y?(e=W(F,G,U,V,a,-d,o),u=W(j,z,X,Y,a,-d,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),d"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var ke=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ae()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>Ee&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: +import{s as Ce,g as we,a as Oe,b as Te,c as Dt,d as ue,e as Re,f as wt,h as Nt,l as le,i as De,w as Se,j as Kt,k as oe,m as Pe}from"./mermaid.core-YsxFu0Y0.js";import{d as Me,g as Le}from"./svgDrawCommon-ad5ef572-6JSuLc9B.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,Ee=2,ae=1,ve=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var ke=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ae()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>Ee&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},ke&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ve)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},me=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` diff --git a/assets/classDiagram-48ab76fb-hx-EVz8F.js b/assets/classDiagram-48ab76fb-3Hn8dqdv.js similarity index 96% rename from assets/classDiagram-48ab76fb-hx-EVz8F.js rename to assets/classDiagram-48ab76fb-3Hn8dqdv.js index 38b14107e6..ebd18964ce 100644 --- a/assets/classDiagram-48ab76fb-hx-EVz8F.js +++ b/assets/classDiagram-48ab76fb-3Hn8dqdv.js @@ -1,2 +1,2 @@ -import{p as A,d as S,s as G}from"./styles-4ba6ed67-4o_0kKs1.js";import{c as v,l as y,h as B,i as W,B as $,u as M,C as I}from"./mermaid.core-uOCfdc17.js";import{G as O,l as P}from"./layout-TzcvurS1.js";import"./LinkCard-aLl-jjA_.js";import{l as X}from"./line-MxgoxcWE.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` +import{p as A,d as S,s as G}from"./styles-4ba6ed67-iT2JB7rU.js";import{c as v,l as y,h as B,i as W,B as $,u as M,C as I}from"./mermaid.core-YsxFu0Y0.js";import{G as O,l as P}from"./layout-or5_ZLqg.js";import"./LinkCard-gCgkDO82.js";import{l as X}from"./line-aMz7DiQ_.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` `);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},dt={parser:A,db:S,renderer:U,styles:G,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{dt as diagram}; diff --git a/assets/classDiagram-v2-8ecb0bfc-SWmKP9NA.js b/assets/classDiagram-v2-8ecb0bfc--VaB5bI_.js similarity index 90% rename from assets/classDiagram-v2-8ecb0bfc-SWmKP9NA.js rename to assets/classDiagram-v2-8ecb0bfc--VaB5bI_.js index c6680f6d37..93479e4e43 100644 --- a/assets/classDiagram-v2-8ecb0bfc-SWmKP9NA.js +++ b/assets/classDiagram-v2-8ecb0bfc--VaB5bI_.js @@ -1,2 +1,2 @@ -import{p as M,d as N,s as $}from"./styles-4ba6ed67-4o_0kKs1.js";import{l as d,c,h as w,u as R,U as B,V as E,W as _,X as G,j as C}from"./mermaid.core-uOCfdc17.js";import{G as z}from"./layout-TzcvurS1.js";import{r as P}from"./index-67a42d7d-g0Z27jYt.js";import"./LinkCard-aLl-jjA_.js";import"./index-Qg-bAq5J.js";import"./edges-80f1ebb6-FlrRuN4S.js";import"./createText-aebacdfe-SYhAe-WO.js";import"./line-MxgoxcWE.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const S=s=>C.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const V=function(s,t,y,n){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),A(l.classes,t,y,n,l.id),d.info("setNode",p)})},A=function(s,t,y,n,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const a=s[o],p=a.cssClasses.join(" "),f={labelStyle:"",style:""},h=a.label??a.id,b=0,m="class_box",u={labelStyle:f.labelStyle,shape:m,labelText:S(h),classData:a,rx:b,ry:b,class:p,style:f.style,id:a.id,domId:a.domId,tooltip:n.db.getTooltip(a.id,e)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(a.id,u),e&&t.setParent(a.id,e),d.info("setNode",u)})},W=function(s,t,y,n){d.info(s),s.forEach(function(e,i){var o,r;const l=e,a="",p={labelStyle:"",style:""},f=l.text,h=0,b="note",m={labelStyle:p.labelStyle,shape:b,labelText:S(f),noteData:l,rx:h,ry:h,class:a,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in n))return;const u=y+i,g={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,_)};t.setEdge(l.id,l.class,g,u)})},q=function(s,t){const y=c().flowchart;let n=0;s.forEach(function(e){var i;n++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+n,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:D(e.relation.type1),arrowTypeEnd:D(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,_)};if(d.info(o,e),e.style!==void 0){const r=G(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(C.lineBreakRegex,` +import{p as M,d as N,s as $}from"./styles-4ba6ed67-iT2JB7rU.js";import{l as d,c,h as w,u as R,U as B,V as E,W as _,X as G,j as C}from"./mermaid.core-YsxFu0Y0.js";import{G as z}from"./layout-or5_ZLqg.js";import{r as P}from"./index-67a42d7d-z0cWI9_8.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./edges-80f1ebb6-rGuwxB-z.js";import"./createText-aebacdfe-H6z3pXul.js";import"./line-aMz7DiQ_.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const S=s=>C.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const V=function(s,t,y,n){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),A(l.classes,t,y,n,l.id),d.info("setNode",p)})},A=function(s,t,y,n,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const a=s[o],p=a.cssClasses.join(" "),f={labelStyle:"",style:""},h=a.label??a.id,b=0,m="class_box",u={labelStyle:f.labelStyle,shape:m,labelText:S(h),classData:a,rx:b,ry:b,class:p,style:f.style,id:a.id,domId:a.domId,tooltip:n.db.getTooltip(a.id,e)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(a.id,u),e&&t.setParent(a.id,e),d.info("setNode",u)})},W=function(s,t,y,n){d.info(s),s.forEach(function(e,i){var o,r;const l=e,a="",p={labelStyle:"",style:""},f=l.text,h=0,b="note",m={labelStyle:p.labelStyle,shape:b,labelText:S(f),noteData:l,rx:h,ry:h,class:a,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in n))return;const u=y+i,g={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,_)};t.setEdge(l.id,l.class,g,u)})},q=function(s,t){const y=c().flowchart;let n=0;s.forEach(function(e){var i;n++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+n,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:D(e.relation.type1),arrowTypeEnd:D(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,_)};if(d.info(o,e),e.style!==void 0){const r=G(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(C.lineBreakRegex,` `),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,n)})},F=function(s){k={...k,...s}},H=async function(s,t,y,n){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new z({multigraph:!0,compound:!0}).setGraph({rankdir:n.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=n.db.getNamespaces(),p=n.db.getClasses(),f=n.db.getRelations(),h=n.db.getNotes();d.info(f),V(a,l,t,n),A(p,l,t,n),q(f,l),W(h,l,f.length+1,p);let b;i==="sandbox"&&(b=w("#i"+t));const m=i==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),u=m.select(`[id="${t}"]`),g=m.select("#"+t+" g");if(await P(g,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),R.insertTitle(u,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,n.db.getDiagramTitle()),B(l,u,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?b.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const x of I){const L=x.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),x.insertBefore(v,x.firstChild)}}};function D(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const U={setConf:F,draw:H},re={parser:M,db:N,renderer:U,styles:$,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,N.clear()}};export{re as diagram}; diff --git a/assets/createText-aebacdfe-SYhAe-WO.js b/assets/createText-aebacdfe-H6z3pXul.js similarity index 99% rename from assets/createText-aebacdfe-SYhAe-WO.js rename to assets/createText-aebacdfe-H6z3pXul.js index 164fd8f724..3cbb9fbafc 100644 --- a/assets/createText-aebacdfe-SYhAe-WO.js +++ b/assets/createText-aebacdfe-H6z3pXul.js @@ -1,4 +1,4 @@ -import{l as At,G as zt,ao as It}from"./mermaid.core-uOCfdc17.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++uu?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++tl))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(b(e),k=T;kF;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||Z(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(f,-m),$n(x,m),l={type:m>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=G(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=G(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=G(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=G(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=G(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Gn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),y}function y(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?m(c):C(c)?n.attempt(ie,l,m)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function m(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,m){const c=m||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(b),n.exit(i),x):b===null||b===32||b===41||An(b)?t(b):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(b))}function x(b){return b===62?(n.enter(i),n.consume(b),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(n.exit("chunkString"),n.exit(a),x(b)):b===null||b===60||C(b)?t(b):(n.consume(b),b===92?A:h)}function A(b){return b===60||b===62||b===92?(n.consume(b),h):h(b)}function I(b){return!p&&(b===null||b===41||Z(b))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(b)):p999||h===null||h===91||h===93&&!m||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),m||(m=!z(h)),h===92?x:f)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,f):f(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,m):t(x)}function m(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),m(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?f:p)}function f(x){return x===l||x===92?(n.consume(x),p):p(x)}}function dn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:be},de={tokenize:ye,partial:!0};function be(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return Z(h)?dn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(de,f,f)(h)}function f(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function ye(n,r,t){return e;function e(a){return Z(a)?dn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||Z(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),m(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function m(p){return p===35?(n.consume(p),m):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||Z(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Jn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,m;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),f}function f(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const K="CDATA[";return s===K.charCodeAt(a++)?(n.consume(s),a===K.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||Z(s)){const K=s===47,hn=l.toLowerCase();return!K&&!i&&Jn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,K?(n.consume(s),b):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||v(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function b(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||v(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),m=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===m?(n.consume(s),m=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||Z(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),y):t(s)}function y(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),y):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),J):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const K=l.toLowerCase();return Jn.includes(K)?(n.consume(s),J):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),J):s===45&&u===2?(n.consume(s),o):S(s)}function J(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),m}function m(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function f(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=f,W(o)):(n.consume(o),f)}function x(o){return o===45?(n.consume(o),h):f(o)}function h(o){return o===62?U(o):o===45?x(o):f(o)}function A(o){const J="CDATA[";return o===J.charCodeAt(i++)?(n.consume(o),i===J.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),b):I(o)}function b(o){return o===62?U(o):o===93?(n.consume(o),b):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||v(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||v(o)?(n.consume(o),H):o===47||o===62||Z(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||v(o)?(n.consume(o),V):y(o)}function y(o){return o===61?(n.consume(o),S):C(o)?(l=y,W(o)):z(o)?(n.consume(o),y):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||Z(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||Z(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function m(c){return c===u?(n.consume(c),e++,m):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:ve,continuation:{tokenize:nr},exit:er},Ke={tokenize:rr,partial:!0},Xe={tokenize:tr,partial:!0};function ve(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(bn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)}function m(h){return zn(h)&&++l<10?(n.consume(h),m):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Ke,x,f))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function f(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Xe,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Kn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,f;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){f=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||f)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,m,"lineSuffix")(c):m(c))}function m(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),m}function m(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),m)}function c(p){if(p===null)return!0;const f=u[p];let x=-1;if(f)for(;++x-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function mr(n,r){let t=-1;const e=[];let u;for(;++tu?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++tl))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(b(e),k=T;kF;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||Z(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(f,-m),$n(x,m),l={type:m>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=G(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=G(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=G(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=G(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=G(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Gn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),y}function y(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?m(c):C(c)?n.attempt(ie,l,m)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function m(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,m){const c=m||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(b),n.exit(i),x):b===null||b===32||b===41||An(b)?t(b):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(b))}function x(b){return b===62?(n.enter(i),n.consume(b),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(n.exit("chunkString"),n.exit(a),x(b)):b===null||b===60||C(b)?t(b):(n.consume(b),b===92?A:h)}function A(b){return b===60||b===62||b===92?(n.consume(b),h):h(b)}function I(b){return!p&&(b===null||b===41||Z(b))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(b)):p999||h===null||h===91||h===93&&!m||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),m||(m=!z(h)),h===92?x:f)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,f):f(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,m):t(x)}function m(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),m(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?f:p)}function f(x){return x===l||x===92?(n.consume(x),p):p(x)}}function dn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:be},de={tokenize:ye,partial:!0};function be(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return Z(h)?dn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(de,f,f)(h)}function f(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function ye(n,r,t){return e;function e(a){return Z(a)?dn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||Z(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),m(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function m(p){return p===35?(n.consume(p),m):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||Z(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Jn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,m;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),f}function f(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const K="CDATA[";return s===K.charCodeAt(a++)?(n.consume(s),a===K.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||Z(s)){const K=s===47,hn=l.toLowerCase();return!K&&!i&&Jn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,K?(n.consume(s),b):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||v(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function b(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||v(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),m=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===m?(n.consume(s),m=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||Z(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),y):t(s)}function y(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),y):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),J):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const K=l.toLowerCase();return Jn.includes(K)?(n.consume(s),J):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),J):s===45&&u===2?(n.consume(s),o):S(s)}function J(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),m}function m(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function f(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=f,W(o)):(n.consume(o),f)}function x(o){return o===45?(n.consume(o),h):f(o)}function h(o){return o===62?U(o):o===45?x(o):f(o)}function A(o){const J="CDATA[";return o===J.charCodeAt(i++)?(n.consume(o),i===J.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),b):I(o)}function b(o){return o===62?U(o):o===93?(n.consume(o),b):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||v(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||v(o)?(n.consume(o),H):o===47||o===62||Z(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||v(o)?(n.consume(o),V):y(o)}function y(o){return o===61?(n.consume(o),S):C(o)?(l=y,W(o)):z(o)?(n.consume(o),y):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||Z(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||Z(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function m(c){return c===u?(n.consume(c),e++,m):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:ve,continuation:{tokenize:nr},exit:er},Ke={tokenize:rr,partial:!0},Xe={tokenize:tr,partial:!0};function ve(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(bn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)}function m(h){return zn(h)&&++l<10?(n.consume(h),m):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Ke,x,f))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function f(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Xe,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Kn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,f;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){f=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||f)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,m,"lineSuffix")(c):m(c))}function m(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),m}function m(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),m)}function c(p){if(p===null)return!0;const f=u[p];let x=-1;if(f)for(;++x-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function mr(n,r){let t=-1;const e=[];let u;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tr(n){return n.replace(Ir,Br)}function Br(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return pt(t.slice(i?2:1),i?16:10)}return On(t)||n}function yn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?vn(n.position):"start"in n||"end"in n?vn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return nt(n&&n.line)+":"+nt(n&&n.column)}function vn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function nt(n){return n&&typeof n=="number"?n:1}const ft={}.hasOwnProperty,mt=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Lr(t)(zr(wr(t).document().write(Ar()(n,r,!0))))};function Lr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Hn),autolinkProtocol:y,autolinkEmail:y,atxHeading:a(jn),blockQuote:a(Fn),characterEscape:y,characterReference:y,codeFenced:a(Mn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(Mn,m),codeText:a(kt,m),codeTextData:y,data:y,codeFlowValue:y,definition:a(dt),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(bt),hardBreakEscape:a(Rn),hardBreakTrailing:a(Rn),htmlFlow:a(qn,m),htmlFlowData:y,htmlText:a(qn,m),htmlTextData:y,image:a(yt),label:m,link:a(Hn),listItem:a(St),listItemValue:A,listOrdered:a(Nn,h),listUnordered:a(Nn),paragraph:a(Ft),reference:hn,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(jn),strong:a(Et),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:mn,autolinkProtocol:fn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:b,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(w),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:J,labelText:o,lineEnding:P,link:p(Y),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:K,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};xt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:c,exit:f,buffer:m,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L0){const X=E.tokenStack[E.tokenStack.length-1];(X[1]||tt).call(E,void 0,X[0])}for(d.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L68?1900:2e3)},o=function(t){return function(r){this[t]=+r}},k=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(r){if(!r||r==="Z")return 0;var n=r.match(/([+-]|\d\d)/g),e=60*n[1]+(+n[2]||0);return e===0?0:n[0]==="+"?-e:e}(t)}],F=function(t){var r=m[t];return r&&(r.indexOf?r:r.s.concat(r.f))},X=function(t,r){var n,e=m.meridiem;if(e){for(var f=1;f<=24;f+=1)if(t.indexOf(e(f,0,r))>-1){n=f>12;break}}else n=t===(r?"pm":"PM");return n},q={A:[y,function(t){this.afternoon=X(t,!1)}],a:[y,function(t){this.afternoon=X(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[$,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[$,o("day")],Do:[y,function(t){var r=m.ordinal,n=t.match(/\d+/);if(this.day=n[0],r)for(var e=1;e<=31;e+=1)r(e).replace(/\[|\]/g,"")===t&&(this.day=e)}],M:[i,o("month")],MM:[$,o("month")],MMM:[y,function(t){var r=F("months"),n=(F("monthsShort")||r.map(function(e){return e.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[y,function(t){var r=F("months").indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],Y:[/[+-]?\d+/,o("year")],YY:[$,function(t){this.year=U(t)}],YYYY:[/\d{4}/,o("year")],Z:k,ZZ:k};function B(t){var r,n;r=t,n=m&&m.formats;for(var e=(t=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,l,c){var s=c&&c.toUpperCase();return l||n[c]||j[c]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,Y,D){return Y||D.slice(1)})})).match(Z),f=e.length,h=0;h-1)return new Date((L==="X"?1e3:1)*S);var a=B(L)(S),x=a.year,A=a.month,I=a.day,J=a.hours,K=a.minutes,N=a.seconds,Q=a.milliseconds,_=a.zone,C=new Date,H=I||(x||A?1:C.getDate()),O=x||C.getFullYear(),T=0;x&&!A||(T=A>0?A-1:C.getMonth());var P=J||0,z=K||0,E=N||0,b=Q||0;return _?new Date(Date.UTC(O,T,H,P,z,E,b+60*_.offset*1e3)):g?new Date(Date.UTC(O,T,H,P,z,E,b)):new Date(O,T,H,P,z,E,b)}catch{return new Date("")}}(w,d,p),this.init(),s&&s!==!0&&(this.$L=this.locale(s).$L),c&&w!=this.format(d)&&(this.$d=new Date("")),m={}}else if(d instanceof Array)for(var M=d.length,Y=1;Y<=M;Y+=1){u[1]=d[Y-1];var D=n.apply(this,u);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}Y===M&&(this.$d=new Date(""))}else f.call(this,h)}}})})(G);var tt=G.exports;const ot=W(tt);export{ot as d}; +import{c as R,g as W}from"./index-HRfeE_7B.js";var G={exports:{}};(function(V,rt){(function(j,Z){V.exports=Z()})(R,function(){var j={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Z=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,$=/\d\d/,i=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,m={},U=function(t){return(t=+t)+(t>68?1900:2e3)},o=function(t){return function(r){this[t]=+r}},k=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(r){if(!r||r==="Z")return 0;var n=r.match(/([+-]|\d\d)/g),e=60*n[1]+(+n[2]||0);return e===0?0:n[0]==="+"?-e:e}(t)}],F=function(t){var r=m[t];return r&&(r.indexOf?r:r.s.concat(r.f))},X=function(t,r){var n,e=m.meridiem;if(e){for(var f=1;f<=24;f+=1)if(t.indexOf(e(f,0,r))>-1){n=f>12;break}}else n=t===(r?"pm":"PM");return n},q={A:[y,function(t){this.afternoon=X(t,!1)}],a:[y,function(t){this.afternoon=X(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[$,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[$,o("day")],Do:[y,function(t){var r=m.ordinal,n=t.match(/\d+/);if(this.day=n[0],r)for(var e=1;e<=31;e+=1)r(e).replace(/\[|\]/g,"")===t&&(this.day=e)}],M:[i,o("month")],MM:[$,o("month")],MMM:[y,function(t){var r=F("months"),n=(F("monthsShort")||r.map(function(e){return e.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[y,function(t){var r=F("months").indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],Y:[/[+-]?\d+/,o("year")],YY:[$,function(t){this.year=U(t)}],YYYY:[/\d{4}/,o("year")],Z:k,ZZ:k};function B(t){var r,n;r=t,n=m&&m.formats;for(var e=(t=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,l,c){var s=c&&c.toUpperCase();return l||n[c]||j[c]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,Y,D){return Y||D.slice(1)})})).match(Z),f=e.length,h=0;h-1)return new Date((L==="X"?1e3:1)*S);var a=B(L)(S),x=a.year,A=a.month,I=a.day,J=a.hours,K=a.minutes,N=a.seconds,Q=a.milliseconds,_=a.zone,C=new Date,H=I||(x||A?1:C.getDate()),O=x||C.getFullYear(),T=0;x&&!A||(T=A>0?A-1:C.getMonth());var P=J||0,z=K||0,E=N||0,b=Q||0;return _?new Date(Date.UTC(O,T,H,P,z,E,b+60*_.offset*1e3)):g?new Date(Date.UTC(O,T,H,P,z,E,b)):new Date(O,T,H,P,z,E,b)}catch{return new Date("")}}(w,d,p),this.init(),s&&s!==!0&&(this.$L=this.locale(s).$L),c&&w!=this.format(d)&&(this.$d=new Date("")),m={}}else if(d instanceof Array)for(var M=d.length,Y=1;Y<=M;Y+=1){u[1]=d[Y-1];var D=n.apply(this,u);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}Y===M&&(this.$d=new Date(""))}else f.call(this,h)}}})})(G);var tt=G.exports;const ot=W(tt);export{ot as d}; diff --git a/assets/edges-80f1ebb6-FlrRuN4S.js b/assets/edges-80f1ebb6-rGuwxB-z.js similarity index 99% rename from assets/edges-80f1ebb6-FlrRuN4S.js rename to assets/edges-80f1ebb6-rGuwxB-z.js index 9f2cc1eab0..112c6bcb23 100644 --- a/assets/edges-80f1ebb6-FlrRuN4S.js +++ b/assets/edges-80f1ebb6-rGuwxB-z.js @@ -1,4 +1,4 @@ -import{F as $,c as w,d as J,G as Q,h as M,l as x,u as j,B as nt}from"./mermaid.core-uOCfdc17.js";import{c as at}from"./createText-aebacdfe-SYhAe-WO.js";import{l as lt}from"./line-MxgoxcWE.js";const ct=(a,t,r,n)=>{t.forEach(e=>{ut[e](a,r,n)})},ht=(a,t,r)=>{x.trace("Making markers for ",r),a.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},ot=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},yt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},xt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},bt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},gt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},ut={extension:ht,composition:ot,aggregation:ft,dependency:pt,lollipop:yt,point:dt,circle:xt,cross:bt,barb:gt},rr=ct;function wt(a,t){t&&a.attr("style",t)}function mt(a){const t=M(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=a.label,e=a.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),wt(r,a.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const kt=(a,t,r,n)=>{let e=a||"";if(typeof e=="object"&&(e=e[0]),$(w().flowchart.htmlLabels)){e=e.replace(/\\n|\n/g,"
"),x.info("vertexText"+e);const i={isNode:n,label:Q(e).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t.replace("fill:","color:")};return mt(i)}else{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof e=="string"?s=e.split(/\\n|\n|/gi):Array.isArray(e)?s=e:s=[];for(const l of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),i.appendChild(c)}return i}},I=kt,_=async(a,t,r,n)=>{let e;const i=t.useHtmlLabels||$(w().flowchart.htmlLabels);r?e=r:e="node default";const s=a.insert("g").attr("class",e).attr("id",t.domId||t.id),l=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=l.node();let h;t.labelType==="markdown"?h=at(l,J(Q(c),w()),{useHtmlLabels:i,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(I(J(Q(c),w()),t.labelStyle,!1,n));let f=h.getBBox();const y=t.padding/2;if($(w().flowchart.htmlLabels)){const p=h.children[0],u=M(h),k=p.getElementsByTagName("img");if(k){const g=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(d=>new Promise(b=>{function E(){if(d.style.display="flex",d.style.flexDirection="column",g){const C=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,X=5;d.style.width=parseInt(C,10)*X+"px"}else d.style.width="100%";b(d)}setTimeout(()=>{d.complete&&E()}),d.addEventListener("error",E),d.addEventListener("load",E)})))}f=p.getBoundingClientRect(),u.attr("width",f.width),u.attr("height",f.height)}return i?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:f,halfPadding:y,label:l}},v=(a,t)=>{const r=t.node().getBBox();a.width=r.width,a.height=r.height};function N(a,t,r,n){return a.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function vt(a,t){return a.intersect(t)}function et(a,t,r,n){var e=a.x,i=a.y,s=e-n.x,l=i-n.y,c=Math.sqrt(t*t*l*l+r*r*s*s),o=Math.abs(t*r*s/c);n.x0}function Bt(a,t,r){var n=a.x,e=a.y,i=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(u){s=Math.min(s,u.x),l=Math.min(l,u.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));for(var c=n-a.width/2-s,o=e-a.height/2-l,h=0;h1&&i.sort(function(u,k){var g=u.x-r.x,d=u.y-r.y,b=Math.sqrt(g*g+d*d),E=k.x-r.x,C=k.y-r.y,X=Math.sqrt(E*E+C*C);return b{var r=a.x,n=a.y,e=t.x-r,i=t.y-n,s=a.width/2,l=a.height/2,c,o;return Math.abs(i)*s>Math.abs(e)*l?(i<0&&(l=-l),c=i===0?0:l*e/i,o=l):(e<0&&(s=-s),c=s,o=e===0?0:s*i/e),{x:r+c,y:n+o}},Mt=Et,m={node:vt,circle:Lt,ellipse:et,polygon:Bt,rect:Mt},_t=async(a,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:n,bbox:e,halfPadding:i}=await _(a,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const s=n.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2-i).attr("y",-e.height/2-i).attr("width",e.width+t.padding).attr("height",e.height+t.padding),v(t,s),t.intersect=function(l){return m.rect(t,l)},n},Ct=_t,G=a=>a?" "+a:"",R=(a,t)=>`${t||"node default"}${G(a.classes)} ${G(a.class)}`,K=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=e+i,l=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];x.info("Question main (Circle)");const c=N(r,s,s,l);return c.attr("style",t.style),v(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,l,o)},r},Tt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,e=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",e.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return m.circle(t,14,s)},r},Rt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=4,i=n.height+t.padding,s=i/e,l=n.width+2*s+t.padding,c=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-i/2},{x:l-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],o=N(r,l,i,c);return o.attr("style",t.style),v(t,o),t.intersect=function(h){return m.polygon(t,c,h)},r},It=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-i/2,y:0},{x:e,y:0},{x:e,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return N(r,e,i,s).attr("style",t.style),t.width=e+i,t.height=i,t.intersect=function(c){return m.polygon(t,s,c)},r},$t=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-2*i/6,y:0},{x:e-i/6,y:0},{x:e+2*i/6,y:-i},{x:i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ht=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:2*i/6,y:0},{x:e+i/6,y:0},{x:e-2*i/6,y:-i},{x:-i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Nt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-2*i/6,y:0},{x:e+2*i/6,y:0},{x:e-i/6,y:-i},{x:i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ot=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:i/6,y:0},{x:e-i/6,y:0},{x:e+2*i/6,y:-i},{x:-2*i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Xt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:0,y:0},{x:e+i/2,y:0},{x:e,y:-i/2},{x:e+i/2,y:-i},{x:0,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Yt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=e/2,s=i/(2.5+e/50),l=n.height+s+t.padding,c="M 0,"+s+" a "+i+","+s+" 0,0,0 "+e+" 0 a "+i+","+s+" 0,0,0 "+-e+" 0 l 0,"+l+" a "+i+","+s+" 0,0,0 "+e+" 0 l 0,"+-l,o=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-e/2+","+-(l/2+s)+")");return v(t,o),t.intersect=function(h){const f=m.rect(t,h),y=f.x-t.x;if(i!=0&&(Math.abs(y)t.height/2-s)){let p=s*s*(1-y*y/(i*i));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},r},Wt=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,"node "+t.classes+" "+t.class,!0),i=r.insert("rect",":first-child"),s=n.width+t.padding,l=n.height+t.padding;if(i.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-e).attr("y",-n.height/2-e).attr("width",s).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(st(i,t.props.borders,s,l),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return v(t,i),t.intersect=function(c){return m.rect(t,c)},r},Dt=async(a,t)=>{const{shapeSvg:r}=await _(a,t,"label",!0);x.trace("Classes = ",t.class);const n=r.insert("rect",":first-child"),e=0,i=0;if(n.attr("width",e).attr("height",i),r.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(st(n,t.props.borders,e,i),s.delete("borders")),s.forEach(l=>{x.warn(`Unknown node property ${l}`)})}return v(t,n),t.intersect=function(s){return m.rect(t,s)},r};function st(a,t,r,n){const e=[],i=l=>{e.push(l,0)},s=l=>{e.push(0,l)};t.includes("t")?(x.debug("add top border"),i(r)):s(r),t.includes("r")?(x.debug("add right border"),i(n)):s(n),t.includes("b")?(x.debug("add bottom border"),i(r)):s(r),t.includes("l")?(x.debug("add left border"),i(n)):s(n),a.attr("stroke-dasharray",e.join(" "))}const jt=(a,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const n=a.insert("g").attr("class",r).attr("id",t.domId||t.id),e=n.insert("rect",":first-child"),i=n.insert("line"),s=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,x.info("Label text abc79",c,l,typeof l=="object");const o=s.node().appendChild(I(c,t.labelStyle,!0,!0));let h={width:0,height:0};if($(w().flowchart.htmlLabels)){const k=o.children[0],g=M(o);h=k.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",l);const f=l.slice(1,l.length);let y=o.getBBox();const p=s.node().appendChild(I(f.join?f.join("
"):f,t.labelStyle,!0,!0));if($(w().flowchart.htmlLabels)){const k=p.children[0],g=M(p);h=k.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const u=t.padding/2;return M(p).attr("transform","translate( "+(h.width>y.width?0:(y.width-h.width)/2)+", "+(y.height+u+5)+")"),M(o).attr("transform","translate( "+(h.width{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.height+t.padding,i=n.width+e/4+t.padding,s=r.insert("rect",":first-child").attr("style",t.style).attr("rx",e/2).attr("ry",e/2).attr("x",-i/2).attr("y",-e/2).attr("width",i).attr("height",e);return v(t,s),t.intersect=function(l){return m.rect(t,l)},r},Ut=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,R(t,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("Circle main"),v(t,i),t.intersect=function(s){return x.info("Circle intersect",t,n.width/2+e,s),m.circle(t,n.width/2+e,s)},r},zt=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,R(t,void 0),!0),i=5,s=r.insert("g",":first-child"),l=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e+i).attr("width",n.width+t.padding+i*2).attr("height",n.height+t.padding+i*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("DoubleCircle main"),v(t,l),t.intersect=function(o){return x.info("DoubleCircle intersect",t,n.width/2+e+i,o),m.circle(t,n.width/2+e+i,o)},r},Zt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:0,y:0},{x:e,y:0},{x:e,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ft=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),v(t,n),t.intersect=function(e){return m.circle(t,7,e)},r},P=(a,t,r)=>{const n=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let e=70,i=10;r==="LR"&&(e=10,i=70);const s=n.append("rect").attr("x",-1*e/2).attr("y",-1*i/2).attr("width",e).attr("height",i).attr("class","fork-join");return v(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return m.rect(t,l)},n},Qt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child"),e=r.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),v(t,e),t.intersect=function(i){return m.circle(t,7,i)},r},Vt=(a,t)=>{const r=t.padding/2,n=4,e=8;let i;t.classes?i="node "+t.classes:i="node default";const s=a.insert("g").attr("class",i).attr("id",t.domId||t.id),l=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,f=n;const y=s.insert("g").attr("class","label");let p=0;const u=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=y.node().appendChild(I(k,t.labelStyle,!0,!0));let d=g.getBBox();if($(w().flowchart.htmlLabels)){const L=g.children[0],S=M(g);d=L.getBoundingClientRect(),S.attr("width",d.width),S.attr("height",d.height)}t.classData.annotations[0]&&(f+=d.height+n,h+=d.width);let b=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?b+="<"+t.classData.type+">":b+="<"+t.classData.type+">");const E=y.node().appendChild(I(b,t.labelStyle,!0,!0));M(E).attr("class","classTitle");let C=E.getBBox();if($(w().flowchart.htmlLabels)){const L=E.children[0],S=M(E);C=L.getBoundingClientRect(),S.attr("width",C.width),S.attr("height",C.height)}f+=C.height+n,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(L=>{const S=L.getDisplayDetails();let Y=S.displayText;w().flowchart.htmlLabels&&(Y=Y.replace(//g,">"));const H=y.node().appendChild(I(Y,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let T=H.getBBox();if($(w().flowchart.htmlLabels)){const F=H.children[0],D=M(H);T=F.getBoundingClientRect(),D.attr("width",T.width),D.attr("height",T.height)}T.width>h&&(h=T.width),f+=T.height+n,X.push(H)}),f+=e;const V=[];if(t.classData.methods.forEach(L=>{const S=L.getDisplayDetails();let Y=S.displayText;w().flowchart.htmlLabels&&(Y=Y.replace(//g,">"));const H=y.node().appendChild(I(Y,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let T=H.getBBox();if($(w().flowchart.htmlLabels)){const F=H.children[0],D=M(H);T=F.getBoundingClientRect(),D.attr("width",T.width),D.attr("height",T.height)}T.width>h&&(h=T.width),f+=T.height+n,V.push(H)}),f+=e,u){let L=(h-d.width)/2;M(g).attr("transform","translate( "+(-1*h/2+L)+", "+-1*f/2+")"),p=d.height+n}let it=(h-C.width)/2;return M(E).attr("transform","translate( "+(-1*h/2+it)+", "+(-1*f/2+p)+")"),p+=C.height+n,c.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-f/2-r+e+p).attr("y2",-f/2-r+e+p),p+=e,X.forEach(L=>{M(L).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+e/2)+")");const S=L==null?void 0:L.getBBox();p+=((S==null?void 0:S.height)??0)+n}),p+=e,o.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-f/2-r+e+p).attr("y2",-f/2-r+e+p),p+=e,V.forEach(L=>{M(L).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")");const S=L==null?void 0:L.getBBox();p+=((S==null?void 0:S.height)??0)+n}),l.attr("class","outer title-state").attr("x",-h/2-r).attr("y",-(f/2)-r).attr("width",h+t.padding).attr("height",f+t.padding),v(t,l),t.intersect=function(L){return m.rect(t,L)},s},tt={rhombus:K,question:K,rect:Wt,labelRect:Dt,rectWithTitle:jt,choice:Tt,circle:Ut,doublecircle:zt,stadium:At,hexagon:Rt,rect_left_inv_arrow:It,lean_right:$t,lean_left:Ht,trapezoid:Nt,inv_trapezoid:Ot,rect_right_inv_arrow:Xt,cylinder:Yt,start:Ft,end:Qt,note:Ct,subroutine:Zt,fork:P,join:P,class_box:Vt};let W={};const ar=async(a,t,r)=>{let n,e;if(t.link){let i;w().securityLevel==="sandbox"?i="_top":t.linkTarget&&(i=t.linkTarget||"_blank"),n=a.insert("svg:a").attr("xlink:href",t.link).attr("target",i),e=await tt[t.shape](n,t,r)}else e=await tt[t.shape](a,t,r),n=e;return t.tooltip&&e.attr("title",t.tooltip),t.class&&e.attr("class","node default "+t.class),W[t.id]=n,t.haveCallback&&W[t.id].attr("class",W[t.id].attr("class")+" clickable"),n},er=(a,t)=>{W[t.id]=a},sr=()=>{W={}},ir=a=>{const t=W[a.id];x.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const r=8,n=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+n-a.width/2)+", "+(a.y-a.height/2-r)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),n},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function A(a,t){a=z(a),t=z(t);const[r,n]=[a.x,a.y],[e,i]=[t.x,t.y],s=e-r,l=i-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}const z=a=>Array.isArray(a)?{x:a[0],y:a[1]}:a,Jt=a=>({x:function(t,r,n){let e=0;if(r===0&&Object.hasOwn(O,a.arrowTypeStart)){const{angle:i,deltaX:s}=A(n[0],n[1]);e=O[a.arrowTypeStart]*Math.cos(i)*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(O,a.arrowTypeEnd)){const{angle:i,deltaX:s}=A(n[n.length-1],n[n.length-2]);e=O[a.arrowTypeEnd]*Math.cos(i)*(s>=0?1:-1)}return z(t).x+e},y:function(t,r,n){let e=0;if(r===0&&Object.hasOwn(O,a.arrowTypeStart)){const{angle:i,deltaY:s}=A(n[0],n[1]);e=O[a.arrowTypeStart]*Math.abs(Math.sin(i))*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(O,a.arrowTypeEnd)){const{angle:i,deltaY:s}=A(n[n.length-1],n[n.length-2]);e=O[a.arrowTypeEnd]*Math.abs(Math.sin(i))*(s>=0?1:-1)}return z(t).y+e}});let Z={},B={};const nr=()=>{Z={},B={}},lr=(a,t)=>{const r=$(w().flowchart.htmlLabels),n=t.labelType==="markdown"?at(a,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0}):I(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const e=a.insert("g").attr("class","edgeLabel"),i=e.insert("g").attr("class","label");i.node().appendChild(n);let s=n.getBBox();if(r){const c=n.children[0],o=M(n);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Z[t.id]=e,t.width=s.width,t.height=s.height;let l;if(t.startLabelLeft){const c=I(t.startLabelLeft,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),B[t.id]||(B[t.id]={}),B[t.id].startLeft=o,U(l,t.startLabelLeft)}if(t.startLabelRight){const c=I(t.startLabelRight,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),B[t.id]||(B[t.id]={}),B[t.id].startRight=o,U(l,t.startLabelRight)}if(t.endLabelLeft){const c=I(t.endLabelLeft,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),B[t.id]||(B[t.id]={}),B[t.id].endLeft=o,U(l,t.endLabelLeft)}if(t.endLabelRight){const c=I(t.endLabelRight,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),B[t.id]||(B[t.id]={}),B[t.id].endRight=o,U(l,t.endLabelRight)}return n};function U(a,t){w().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const cr=(a,t)=>{x.info("Moving label abc78 ",a.id,a.label,Z[a.id]);let r=t.updatedPath?t.updatedPath:t.originalPath;if(a.label){const n=Z[a.id];let e=a.x,i=a.y;if(r){const s=j.calcLabelPosition(r);x.info("Moving label "+a.label+" from (",e,",",i,") to (",s.x,",",s.y,") abc78"),t.updatedPath&&(e=s.x,i=s.y)}n.attr("transform","translate("+e+", "+i+")")}if(a.startLabelLeft){const n=B[a.id].startLeft;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.startLabelRight){const n=B[a.id].startRight;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.endLabelLeft){const n=B[a.id].endLeft;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.endLabelRight){const n=B[a.id].endRight;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}},qt=(a,t)=>{const r=a.x,n=a.y,e=Math.abs(t.x-r),i=Math.abs(t.y-n),s=a.width/2,l=a.height/2;return e>=s||i>=l},Gt=(a,t,r)=>{x.warn(`intersection calc abc89: +import{F as $,c as w,d as J,G as Q,h as M,l as x,u as j,B as nt}from"./mermaid.core-YsxFu0Y0.js";import{c as at}from"./createText-aebacdfe-H6z3pXul.js";import{l as lt}from"./line-aMz7DiQ_.js";const ct=(a,t,r,n)=>{t.forEach(e=>{ut[e](a,r,n)})},ht=(a,t,r)=>{x.trace("Making markers for ",r),a.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},ot=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},yt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},xt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},bt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},gt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},ut={extension:ht,composition:ot,aggregation:ft,dependency:pt,lollipop:yt,point:dt,circle:xt,cross:bt,barb:gt},rr=ct;function wt(a,t){t&&a.attr("style",t)}function mt(a){const t=M(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=a.label,e=a.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),wt(r,a.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const kt=(a,t,r,n)=>{let e=a||"";if(typeof e=="object"&&(e=e[0]),$(w().flowchart.htmlLabels)){e=e.replace(/\\n|\n/g,"
"),x.info("vertexText"+e);const i={isNode:n,label:Q(e).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t.replace("fill:","color:")};return mt(i)}else{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof e=="string"?s=e.split(/\\n|\n|/gi):Array.isArray(e)?s=e:s=[];for(const l of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),i.appendChild(c)}return i}},I=kt,_=async(a,t,r,n)=>{let e;const i=t.useHtmlLabels||$(w().flowchart.htmlLabels);r?e=r:e="node default";const s=a.insert("g").attr("class",e).attr("id",t.domId||t.id),l=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=l.node();let h;t.labelType==="markdown"?h=at(l,J(Q(c),w()),{useHtmlLabels:i,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(I(J(Q(c),w()),t.labelStyle,!1,n));let f=h.getBBox();const y=t.padding/2;if($(w().flowchart.htmlLabels)){const p=h.children[0],u=M(h),k=p.getElementsByTagName("img");if(k){const g=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(d=>new Promise(b=>{function E(){if(d.style.display="flex",d.style.flexDirection="column",g){const C=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,X=5;d.style.width=parseInt(C,10)*X+"px"}else d.style.width="100%";b(d)}setTimeout(()=>{d.complete&&E()}),d.addEventListener("error",E),d.addEventListener("load",E)})))}f=p.getBoundingClientRect(),u.attr("width",f.width),u.attr("height",f.height)}return i?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:f,halfPadding:y,label:l}},v=(a,t)=>{const r=t.node().getBBox();a.width=r.width,a.height=r.height};function N(a,t,r,n){return a.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function vt(a,t){return a.intersect(t)}function et(a,t,r,n){var e=a.x,i=a.y,s=e-n.x,l=i-n.y,c=Math.sqrt(t*t*l*l+r*r*s*s),o=Math.abs(t*r*s/c);n.x0}function Bt(a,t,r){var n=a.x,e=a.y,i=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(u){s=Math.min(s,u.x),l=Math.min(l,u.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));for(var c=n-a.width/2-s,o=e-a.height/2-l,h=0;h1&&i.sort(function(u,k){var g=u.x-r.x,d=u.y-r.y,b=Math.sqrt(g*g+d*d),E=k.x-r.x,C=k.y-r.y,X=Math.sqrt(E*E+C*C);return b{var r=a.x,n=a.y,e=t.x-r,i=t.y-n,s=a.width/2,l=a.height/2,c,o;return Math.abs(i)*s>Math.abs(e)*l?(i<0&&(l=-l),c=i===0?0:l*e/i,o=l):(e<0&&(s=-s),c=s,o=e===0?0:s*i/e),{x:r+c,y:n+o}},Mt=Et,m={node:vt,circle:Lt,ellipse:et,polygon:Bt,rect:Mt},_t=async(a,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:n,bbox:e,halfPadding:i}=await _(a,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const s=n.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2-i).attr("y",-e.height/2-i).attr("width",e.width+t.padding).attr("height",e.height+t.padding),v(t,s),t.intersect=function(l){return m.rect(t,l)},n},Ct=_t,G=a=>a?" "+a:"",R=(a,t)=>`${t||"node default"}${G(a.classes)} ${G(a.class)}`,K=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=e+i,l=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];x.info("Question main (Circle)");const c=N(r,s,s,l);return c.attr("style",t.style),v(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,l,o)},r},Tt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,e=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",e.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return m.circle(t,14,s)},r},Rt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=4,i=n.height+t.padding,s=i/e,l=n.width+2*s+t.padding,c=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-i/2},{x:l-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],o=N(r,l,i,c);return o.attr("style",t.style),v(t,o),t.intersect=function(h){return m.polygon(t,c,h)},r},It=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-i/2,y:0},{x:e,y:0},{x:e,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return N(r,e,i,s).attr("style",t.style),t.width=e+i,t.height=i,t.intersect=function(c){return m.polygon(t,s,c)},r},$t=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-2*i/6,y:0},{x:e-i/6,y:0},{x:e+2*i/6,y:-i},{x:i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ht=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:2*i/6,y:0},{x:e+i/6,y:0},{x:e-2*i/6,y:-i},{x:-i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Nt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-2*i/6,y:0},{x:e+2*i/6,y:0},{x:e-i/6,y:-i},{x:i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ot=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:i/6,y:0},{x:e-i/6,y:0},{x:e+2*i/6,y:-i},{x:-2*i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Xt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:0,y:0},{x:e+i/2,y:0},{x:e,y:-i/2},{x:e+i/2,y:-i},{x:0,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Yt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=e/2,s=i/(2.5+e/50),l=n.height+s+t.padding,c="M 0,"+s+" a "+i+","+s+" 0,0,0 "+e+" 0 a "+i+","+s+" 0,0,0 "+-e+" 0 l 0,"+l+" a "+i+","+s+" 0,0,0 "+e+" 0 l 0,"+-l,o=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-e/2+","+-(l/2+s)+")");return v(t,o),t.intersect=function(h){const f=m.rect(t,h),y=f.x-t.x;if(i!=0&&(Math.abs(y)t.height/2-s)){let p=s*s*(1-y*y/(i*i));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},r},Wt=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,"node "+t.classes+" "+t.class,!0),i=r.insert("rect",":first-child"),s=n.width+t.padding,l=n.height+t.padding;if(i.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-e).attr("y",-n.height/2-e).attr("width",s).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(st(i,t.props.borders,s,l),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return v(t,i),t.intersect=function(c){return m.rect(t,c)},r},Dt=async(a,t)=>{const{shapeSvg:r}=await _(a,t,"label",!0);x.trace("Classes = ",t.class);const n=r.insert("rect",":first-child"),e=0,i=0;if(n.attr("width",e).attr("height",i),r.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(st(n,t.props.borders,e,i),s.delete("borders")),s.forEach(l=>{x.warn(`Unknown node property ${l}`)})}return v(t,n),t.intersect=function(s){return m.rect(t,s)},r};function st(a,t,r,n){const e=[],i=l=>{e.push(l,0)},s=l=>{e.push(0,l)};t.includes("t")?(x.debug("add top border"),i(r)):s(r),t.includes("r")?(x.debug("add right border"),i(n)):s(n),t.includes("b")?(x.debug("add bottom border"),i(r)):s(r),t.includes("l")?(x.debug("add left border"),i(n)):s(n),a.attr("stroke-dasharray",e.join(" "))}const jt=(a,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const n=a.insert("g").attr("class",r).attr("id",t.domId||t.id),e=n.insert("rect",":first-child"),i=n.insert("line"),s=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,x.info("Label text abc79",c,l,typeof l=="object");const o=s.node().appendChild(I(c,t.labelStyle,!0,!0));let h={width:0,height:0};if($(w().flowchart.htmlLabels)){const k=o.children[0],g=M(o);h=k.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",l);const f=l.slice(1,l.length);let y=o.getBBox();const p=s.node().appendChild(I(f.join?f.join("
"):f,t.labelStyle,!0,!0));if($(w().flowchart.htmlLabels)){const k=p.children[0],g=M(p);h=k.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const u=t.padding/2;return M(p).attr("transform","translate( "+(h.width>y.width?0:(y.width-h.width)/2)+", "+(y.height+u+5)+")"),M(o).attr("transform","translate( "+(h.width{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.height+t.padding,i=n.width+e/4+t.padding,s=r.insert("rect",":first-child").attr("style",t.style).attr("rx",e/2).attr("ry",e/2).attr("x",-i/2).attr("y",-e/2).attr("width",i).attr("height",e);return v(t,s),t.intersect=function(l){return m.rect(t,l)},r},Ut=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,R(t,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("Circle main"),v(t,i),t.intersect=function(s){return x.info("Circle intersect",t,n.width/2+e,s),m.circle(t,n.width/2+e,s)},r},zt=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,R(t,void 0),!0),i=5,s=r.insert("g",":first-child"),l=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e+i).attr("width",n.width+t.padding+i*2).attr("height",n.height+t.padding+i*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("DoubleCircle main"),v(t,l),t.intersect=function(o){return x.info("DoubleCircle intersect",t,n.width/2+e+i,o),m.circle(t,n.width/2+e+i,o)},r},Zt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:0,y:0},{x:e,y:0},{x:e,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ft=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),v(t,n),t.intersect=function(e){return m.circle(t,7,e)},r},P=(a,t,r)=>{const n=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let e=70,i=10;r==="LR"&&(e=10,i=70);const s=n.append("rect").attr("x",-1*e/2).attr("y",-1*i/2).attr("width",e).attr("height",i).attr("class","fork-join");return v(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return m.rect(t,l)},n},Qt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child"),e=r.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),v(t,e),t.intersect=function(i){return m.circle(t,7,i)},r},Vt=(a,t)=>{const r=t.padding/2,n=4,e=8;let i;t.classes?i="node "+t.classes:i="node default";const s=a.insert("g").attr("class",i).attr("id",t.domId||t.id),l=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,f=n;const y=s.insert("g").attr("class","label");let p=0;const u=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=y.node().appendChild(I(k,t.labelStyle,!0,!0));let d=g.getBBox();if($(w().flowchart.htmlLabels)){const L=g.children[0],S=M(g);d=L.getBoundingClientRect(),S.attr("width",d.width),S.attr("height",d.height)}t.classData.annotations[0]&&(f+=d.height+n,h+=d.width);let b=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?b+="<"+t.classData.type+">":b+="<"+t.classData.type+">");const E=y.node().appendChild(I(b,t.labelStyle,!0,!0));M(E).attr("class","classTitle");let C=E.getBBox();if($(w().flowchart.htmlLabels)){const L=E.children[0],S=M(E);C=L.getBoundingClientRect(),S.attr("width",C.width),S.attr("height",C.height)}f+=C.height+n,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(L=>{const S=L.getDisplayDetails();let Y=S.displayText;w().flowchart.htmlLabels&&(Y=Y.replace(//g,">"));const H=y.node().appendChild(I(Y,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let T=H.getBBox();if($(w().flowchart.htmlLabels)){const F=H.children[0],D=M(H);T=F.getBoundingClientRect(),D.attr("width",T.width),D.attr("height",T.height)}T.width>h&&(h=T.width),f+=T.height+n,X.push(H)}),f+=e;const V=[];if(t.classData.methods.forEach(L=>{const S=L.getDisplayDetails();let Y=S.displayText;w().flowchart.htmlLabels&&(Y=Y.replace(//g,">"));const H=y.node().appendChild(I(Y,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let T=H.getBBox();if($(w().flowchart.htmlLabels)){const F=H.children[0],D=M(H);T=F.getBoundingClientRect(),D.attr("width",T.width),D.attr("height",T.height)}T.width>h&&(h=T.width),f+=T.height+n,V.push(H)}),f+=e,u){let L=(h-d.width)/2;M(g).attr("transform","translate( "+(-1*h/2+L)+", "+-1*f/2+")"),p=d.height+n}let it=(h-C.width)/2;return M(E).attr("transform","translate( "+(-1*h/2+it)+", "+(-1*f/2+p)+")"),p+=C.height+n,c.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-f/2-r+e+p).attr("y2",-f/2-r+e+p),p+=e,X.forEach(L=>{M(L).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+e/2)+")");const S=L==null?void 0:L.getBBox();p+=((S==null?void 0:S.height)??0)+n}),p+=e,o.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-f/2-r+e+p).attr("y2",-f/2-r+e+p),p+=e,V.forEach(L=>{M(L).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")");const S=L==null?void 0:L.getBBox();p+=((S==null?void 0:S.height)??0)+n}),l.attr("class","outer title-state").attr("x",-h/2-r).attr("y",-(f/2)-r).attr("width",h+t.padding).attr("height",f+t.padding),v(t,l),t.intersect=function(L){return m.rect(t,L)},s},tt={rhombus:K,question:K,rect:Wt,labelRect:Dt,rectWithTitle:jt,choice:Tt,circle:Ut,doublecircle:zt,stadium:At,hexagon:Rt,rect_left_inv_arrow:It,lean_right:$t,lean_left:Ht,trapezoid:Nt,inv_trapezoid:Ot,rect_right_inv_arrow:Xt,cylinder:Yt,start:Ft,end:Qt,note:Ct,subroutine:Zt,fork:P,join:P,class_box:Vt};let W={};const ar=async(a,t,r)=>{let n,e;if(t.link){let i;w().securityLevel==="sandbox"?i="_top":t.linkTarget&&(i=t.linkTarget||"_blank"),n=a.insert("svg:a").attr("xlink:href",t.link).attr("target",i),e=await tt[t.shape](n,t,r)}else e=await tt[t.shape](a,t,r),n=e;return t.tooltip&&e.attr("title",t.tooltip),t.class&&e.attr("class","node default "+t.class),W[t.id]=n,t.haveCallback&&W[t.id].attr("class",W[t.id].attr("class")+" clickable"),n},er=(a,t)=>{W[t.id]=a},sr=()=>{W={}},ir=a=>{const t=W[a.id];x.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const r=8,n=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+n-a.width/2)+", "+(a.y-a.height/2-r)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),n},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function A(a,t){a=z(a),t=z(t);const[r,n]=[a.x,a.y],[e,i]=[t.x,t.y],s=e-r,l=i-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}const z=a=>Array.isArray(a)?{x:a[0],y:a[1]}:a,Jt=a=>({x:function(t,r,n){let e=0;if(r===0&&Object.hasOwn(O,a.arrowTypeStart)){const{angle:i,deltaX:s}=A(n[0],n[1]);e=O[a.arrowTypeStart]*Math.cos(i)*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(O,a.arrowTypeEnd)){const{angle:i,deltaX:s}=A(n[n.length-1],n[n.length-2]);e=O[a.arrowTypeEnd]*Math.cos(i)*(s>=0?1:-1)}return z(t).x+e},y:function(t,r,n){let e=0;if(r===0&&Object.hasOwn(O,a.arrowTypeStart)){const{angle:i,deltaY:s}=A(n[0],n[1]);e=O[a.arrowTypeStart]*Math.abs(Math.sin(i))*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(O,a.arrowTypeEnd)){const{angle:i,deltaY:s}=A(n[n.length-1],n[n.length-2]);e=O[a.arrowTypeEnd]*Math.abs(Math.sin(i))*(s>=0?1:-1)}return z(t).y+e}});let Z={},B={};const nr=()=>{Z={},B={}},lr=(a,t)=>{const r=$(w().flowchart.htmlLabels),n=t.labelType==="markdown"?at(a,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0}):I(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const e=a.insert("g").attr("class","edgeLabel"),i=e.insert("g").attr("class","label");i.node().appendChild(n);let s=n.getBBox();if(r){const c=n.children[0],o=M(n);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Z[t.id]=e,t.width=s.width,t.height=s.height;let l;if(t.startLabelLeft){const c=I(t.startLabelLeft,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),B[t.id]||(B[t.id]={}),B[t.id].startLeft=o,U(l,t.startLabelLeft)}if(t.startLabelRight){const c=I(t.startLabelRight,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),B[t.id]||(B[t.id]={}),B[t.id].startRight=o,U(l,t.startLabelRight)}if(t.endLabelLeft){const c=I(t.endLabelLeft,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),B[t.id]||(B[t.id]={}),B[t.id].endLeft=o,U(l,t.endLabelLeft)}if(t.endLabelRight){const c=I(t.endLabelRight,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),B[t.id]||(B[t.id]={}),B[t.id].endRight=o,U(l,t.endLabelRight)}return n};function U(a,t){w().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const cr=(a,t)=>{x.info("Moving label abc78 ",a.id,a.label,Z[a.id]);let r=t.updatedPath?t.updatedPath:t.originalPath;if(a.label){const n=Z[a.id];let e=a.x,i=a.y;if(r){const s=j.calcLabelPosition(r);x.info("Moving label "+a.label+" from (",e,",",i,") to (",s.x,",",s.y,") abc78"),t.updatedPath&&(e=s.x,i=s.y)}n.attr("transform","translate("+e+", "+i+")")}if(a.startLabelLeft){const n=B[a.id].startLeft;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.startLabelRight){const n=B[a.id].startRight;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.endLabelLeft){const n=B[a.id].endLeft;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.endLabelRight){const n=B[a.id].endRight;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}},qt=(a,t)=>{const r=a.x,n=a.y,e=Math.abs(t.x-r),i=Math.abs(t.y-n),s=a.width/2,l=a.height/2;return e>=s||i>=l},Gt=(a,t,r)=>{x.warn(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(r)} node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);const n=a.x,e=a.y,i=Math.abs(n-r.x),s=a.width/2;let l=r.xMath.abs(n-t.x)*c){let f=r.y{x.warn("abc88 cutPathAtIntersect",a,t);let r=[],n=a[0],e=!1;return a.forEach(i=>{if(x.info("abc88 checking point",i,t),!qt(t,i)&&!e){const s=Gt(t,n,i);x.warn("abc88 inside",i,n,s),x.warn("abc88 intersection",s);let l=!1;r.forEach(c=>{l=l||c.x===s.x&&c.y===s.y}),r.some(c=>c.x===s.x&&c.y===s.y)?x.warn("abc88 no intersect",s,r):r.push(s),e=!0}else x.warn("abc88 outside",i,n),n=i,e||r.push(i)}),x.warn("abc88 returning points",r),r},hr=function(a,t,r,n,e,i,s){let l=r.points,c=!1;const o=i.node(t.v);var h=i.node(t.w);x.info("abc88 InsertEdge: ",r),h.intersect&&o.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(o.intersect(l[0])),x.info("Last point",l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),r.toCluster&&(x.info("to cluster abc88",n[r.toCluster]),l=rt(r.points,n[r.toCluster].node),c=!0),r.fromCluster&&(x.info("from cluster abc88",n[r.fromCluster]),l=rt(l.reverse(),n[r.fromCluster].node).reverse(),c=!0);const f=l.filter(C=>!Number.isNaN(C.y));let y=nt;r.curve&&(e==="graph"||e==="flowchart")&&(y=r.curve);const{x:p,y:u}=Jt(r),k=lt().x(p).y(u).curve(y);let g;switch(r.thickness){case"normal":g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-thick";break;default:g=""}switch(r.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed";break}const d=a.append("path").attr("d",k(f)).attr("id",r.id).attr("class"," "+g+(r.classes?" "+r.classes:"")).attr("style",r.style);let b="";switch((w().flowchart.arrowMarkerAbsolute||w().state.arrowMarkerAbsolute)&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/\(/g,"\\("),b=b.replace(/\)/g,"\\)")),x.info("arrowTypeStart",r.arrowTypeStart),x.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-crossStart)");break;case"arrow_point":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-pointStart)");break;case"arrow_barb":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-barbStart)");break;case"arrow_circle":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-circleStart)");break;case"aggregation":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-aggregationStart)");break;case"extension":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-extensionStart)");break;case"composition":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-compositionStart)");break;case"dependency":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-dependencyStart)");break;case"lollipop":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-lollipopStart)");break}switch(r.arrowTypeEnd){case"arrow_cross":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-crossEnd)");break;case"arrow_point":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-pointEnd)");break;case"arrow_barb":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-barbEnd)");break;case"arrow_circle":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-circleEnd)");break;case"aggregation":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-aggregationEnd)");break;case"extension":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-extensionEnd)");break;case"composition":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-compositionEnd)");break;case"dependency":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-dependencyEnd)");break;case"lollipop":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-lollipopEnd)");break}let E={};return c&&(E.updatedPath=l),E.originalPath=r.points,E};export{ar as a,lr as b,hr as c,cr as d,sr as e,nr as f,I as g,Mt as h,rr as i,Jt as j,_ as l,ir as p,er as s,v as u}; diff --git a/assets/erDiagram-9cfc3649-M5W9FlY_.js b/assets/erDiagram-9cfc3649-JOF84bEc.js similarity index 99% rename from assets/erDiagram-9cfc3649-M5W9FlY_.js rename to assets/erDiagram-9cfc3649-JOF84bEc.js index 8f499c2b7d..b8ebdfb83d 100644 --- a/assets/erDiagram-9cfc3649-M5W9FlY_.js +++ b/assets/erDiagram-9cfc3649-JOF84bEc.js @@ -1,4 +1,4 @@ -import{c as Z,s as Et,g as mt,b as gt,a as kt,o as xt,p as Rt,l as V,q as Ot,h as rt,u as bt,i as Nt,B as Tt,C as At}from"./mermaid.core-uOCfdc17.js";import{G as Mt,l as St}from"./layout-TzcvurS1.js";import"./LinkCard-aLl-jjA_.js";import{l as wt}from"./line-MxgoxcWE.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const It=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&It.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function vt(t,e=0){return A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]}function Lt(t){if(!Dt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Bt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ft(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=it(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Wt=Yt("v5",80,Ft),Ut=Wt;var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,ft=2,ot=1,yt=i.slice.call(arguments,1),b=Object.create(this.lexer),H={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(H.yy[J]=this.yy[J]);b.setInput(a,H.yy),H.yy.lexer=b,H.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var $=b.yylloc;i.push($);var pt=b.options&&b.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||b.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,z,D,tt,G={},q,P,lt,j;;){if(z=c[c.length-1],this.defaultActions[z]?D=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=_t()),D=K[z]&&K[z][w]),typeof D>"u"||!D.length||!D[0]){var et="";j=[];for(q in K[z])this.terminals_[q]&&q>ft&&j.push("'"+this.terminals_[q]+"'");b.showPosition?et="Parse error on line "+(Q+1)+`: +import{c as Z,s as Et,g as mt,b as gt,a as kt,o as xt,p as Rt,l as V,q as Ot,h as rt,u as bt,i as Nt,B as Tt,C as At}from"./mermaid.core-YsxFu0Y0.js";import{G as Mt,l as St}from"./layout-or5_ZLqg.js";import"./LinkCard-gCgkDO82.js";import{l as wt}from"./line-aMz7DiQ_.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const It=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&It.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function vt(t,e=0){return A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]}function Lt(t){if(!Dt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Bt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ft(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=it(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Wt=Yt("v5",80,Ft),Ut=Wt;var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,ft=2,ot=1,yt=i.slice.call(arguments,1),b=Object.create(this.lexer),H={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(H.yy[J]=this.yy[J]);b.setInput(a,H.yy),H.yy.lexer=b,H.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var $=b.yylloc;i.push($);var pt=b.options&&b.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||b.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,z,D,tt,G={},q,P,lt,j;;){if(z=c[c.length-1],this.defaultActions[z]?D=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=_t()),D=K[z]&&K[z][w]),typeof D>"u"||!D.length||!D[0]){var et="";j=[];for(q in K[z])this.terminals_[q]&&q>ft&&j.push("'"+this.terminals_[q]+"'");b.showPosition?et="Parse error on line "+(Q+1)+`: `+b.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(w==ot?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:$,expected:j})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(D[0]){case 1:c.push(w),E.push(b.yytext),i.push(b.yylloc),c.push(D[1]),w=null,st=b.yyleng,s=b.yytext,Q=b.yylineno,$=b.yylloc;break;case 2:if(P=this.productions_[D[1]][1],G.$=E[E.length-P],G._$={first_line:i[i.length-(P||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(P||1)].first_column,last_column:i[i.length-1].last_column},pt&&(G._$.range=[i[i.length-(P||1)].range[0],i[i.length-1].range[1]]),tt=this.performAction.apply(G,[s,st,Q,H.yy,D[1],E,i].concat(yt)),typeof tt<"u")return tt;P&&(c=c.slice(0,-1*P*2),E=E.slice(0,-1*P),i=i.slice(0,-1*P)),c.push(this.productions_[D[1]][0]),E.push(G.$),i.push(G._$),lt=K[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},O=function(){var S={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/assets/flowDb-170db09d-7If00yRB.js b/assets/flowDb-170db09d-yEiXM5xZ.js similarity index 99% rename from assets/flowDb-170db09d-7If00yRB.js rename to assets/flowDb-170db09d-yEiXM5xZ.js index 0e0592d04d..db96df2e26 100644 --- a/assets/flowDb-170db09d-7If00yRB.js +++ b/assets/flowDb-170db09d-yEiXM5xZ.js @@ -1,4 +1,4 @@ -import{c as ft,E as ye,s as me,g as ve,a as Ve,b as Le,o as Ie,p as Re,l as Z1,u as At,q as Ne,j as Oe,h as N1}from"./mermaid.core-uOCfdc17.js";var ht=function(){var e=function(h1,a,o,p){for(o=o||{},p=h1.length;p--;o[h1[p]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],O=[1,16],z=[1,23],c1=[1,25],f1=[1,26],A1=[1,27],S=[1,49],k=[1,48],o1=[1,29],w1=[1,30],U1=[1,31],G1=[1,32],M1=[1,33],B=[1,44],x=[1,46],y=[1,42],m=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],K1=[1,34],j1=[1,35],Y1=[1,36],X1=[1,37],L1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],H=[1,61],W=[1,60],Q=[1,62],z1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],B1=[1,95],x1=[1,86],q1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],Bt=[1,136],xt=[1,137],yt=[1,138],mt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],Ot=[1,134],Pt=[1,129],wt=[1,133],Ut=[1,131],it=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],f=[1,169],P=[1,165],w=[1,166],A=[1,170],d=[1,167],E=[1,168],y1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],l1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Z=[1,235],J=[1,233],$=[1,237],t1=[1,231],e1=[1,232],s1=[1,234],u1=[1,236],i1=[1,238],m1=[1,255],Kt=[8,9,11,103],q=[8,9,10,11,58,81,102,103,106,107,108,109],rt={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeperator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,verticeStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,p,r,C,t,R1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var j=r.destructLink(t[s],t[s-2]);this.$={type:j.type,stroke:j.stroke,length:j.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var j=r.destructLink(t[s]);this.$={type:j.type,stroke:j.stroke,length:j.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:L1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:H,9:W,11:Q,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:H,9:W,11:Q,21:66},{8:H,9:W,11:Q,21:67},{8:H,9:W,11:Q,21:68},{8:H,9:W,11:Q,21:69},{8:H,9:W,11:Q,21:70},{8:H,9:W,10:[1,71],11:Q,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(z1,[2,46],{18:75,10:L1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(q1,[2,47]),e(q1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:L1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:Bt,77:[1,124],78:[1,125],80:135,81:xt,82:yt,83:mt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:Ot,111:Pt,112:wt,113:Ut},e(it,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(z1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:171,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:174,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:175,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:176,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:181,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:182,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:183,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(z1,[2,43],{18:184,10:L1}),e(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(y1,[2,73]),e(y1,[2,75]),e(y1,[2,76]),e(y1,[2,161]),e(y1,[2,162]),{8:H,9:W,10:gt,11:Q,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:Bt,80:135,81:xt,82:yt,83:mt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:Ot,111:Pt,112:wt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,193],33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},{10:L1,18:194},{10:[1,195],42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(q1,[2,50],{110:109,42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:f,79:208,113:A,114:d,115:E},e(l1,[2,79]),e(l1,[2,81]),e(l1,[2,82]),e(l1,[2,146]),e(l1,[2,147]),e(l1,[2,148]),e(l1,[2,149]),{47:[1,209],65:f,79:208,113:A,114:d,115:E},{30:210,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{49:[1,211],65:f,79:208,113:A,114:d,115:E},{51:[1,212],65:f,79:208,113:A,114:d,115:E},{53:[1,213],65:f,79:208,113:A,114:d,115:E},{55:[1,214],65:f,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:f,79:208,113:A,114:d,115:E},{64:[1,217],65:f,79:208,113:A,114:d,115:E},{30:218,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{31:[1,219],65:f,79:208,113:A,114:d,115:E},{65:f,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:f,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(z1,[2,44],{42:Gt}),e(I1,[2,70]),e(I1,[2,69]),{60:[1,224],65:f,79:208,113:A,114:d,115:E},e(I1,[2,72]),e(y1,[2,74]),{30:225,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(it,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{10:Z,58:J,81:$,89:228,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:239,101:[1,240],102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:241,101:[1,242],102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{102:[1,243]},{10:Z,58:J,81:$,89:244,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{42:S,45:245,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(l1,[2,80]),e(N,[2,52]),{49:[1,250],65:f,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:f,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:f,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,254],33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},e(q1,[2,48]),e(T,[2,114],{103:m1}),e(Kt,[2,123],{105:256,10:Z,58:J,81:$,102:t1,106:e1,107:s1,108:u1,109:i1}),e(q,[2,125]),e(q,[2,127]),e(q,[2,128]),e(q,[2,129]),e(q,[2,130]),e(q,[2,131]),e(q,[2,132]),e(q,[2,133]),e(q,[2,134]),e(T,[2,115],{103:m1}),{10:[1,257]},e(T,[2,116],{103:m1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:m1}),e(T,[2,99],{110:109,42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:H,9:W,11:Q,21:264},e(b,[2,34]),{10:Z,58:J,81:$,102:t1,104:265,105:230,106:e1,107:s1,108:u1,109:i1},e(q,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(N,[2,61]),e(it,l,{5:270}),e(Kt,[2,124],{105:256,10:Z,58:J,81:$,102:t1,106:e1,107:s1,108:u1,109:i1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,107]),{31:[1,273],65:f,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,274],33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},{10:Z,58:J,81:$,89:275,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:276,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:m1}),e(T,[2,118],{103:m1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var p=new Error(a);throw p.hash=o,p}},parse:function(a){var o=this,p=[0],r=[],C=[null],t=[],R1=this.table,s="",j=0,jt=0,Se=2,Yt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(d1.yy[at]=this.yy[at]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ct=_.yylloc;t.push(ct);var Be=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var n1;return n1=r.pop()||_.lex()||Yt,typeof n1!="number"&&(n1 instanceof Array&&(r=n1,n1=r.pop()),n1=o.symbols_[n1]||n1),n1}for(var G,E1,Y,ot,v1={},H1,r1,Xt,W1;;){if(E1=p[p.length-1],this.defaultActions[E1]?Y=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=xe()),Y=R1[E1]&&R1[E1][G]),typeof Y>"u"||!Y.length||!Y[0]){var lt="";W1=[];for(H1 in R1[E1])this.terminals_[H1]&&H1>Se&&W1.push("'"+this.terminals_[H1]+"'");_.showPosition?lt="Parse error on line "+(j+1)+`: +import{c as ft,E as ye,s as me,g as ve,a as Ve,b as Le,o as Ie,p as Re,l as Z1,u as At,q as Ne,j as Oe,h as N1}from"./mermaid.core-YsxFu0Y0.js";var ht=function(){var e=function(h1,a,o,p){for(o=o||{},p=h1.length;p--;o[h1[p]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],O=[1,16],z=[1,23],c1=[1,25],f1=[1,26],A1=[1,27],S=[1,49],k=[1,48],o1=[1,29],w1=[1,30],U1=[1,31],G1=[1,32],M1=[1,33],B=[1,44],x=[1,46],y=[1,42],m=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],K1=[1,34],j1=[1,35],Y1=[1,36],X1=[1,37],L1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],H=[1,61],W=[1,60],Q=[1,62],z1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],B1=[1,95],x1=[1,86],q1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],Bt=[1,136],xt=[1,137],yt=[1,138],mt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],Ot=[1,134],Pt=[1,129],wt=[1,133],Ut=[1,131],it=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],f=[1,169],P=[1,165],w=[1,166],A=[1,170],d=[1,167],E=[1,168],y1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],l1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Z=[1,235],J=[1,233],$=[1,237],t1=[1,231],e1=[1,232],s1=[1,234],u1=[1,236],i1=[1,238],m1=[1,255],Kt=[8,9,11,103],q=[8,9,10,11,58,81,102,103,106,107,108,109],rt={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeperator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,verticeStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,p,r,C,t,R1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var j=r.destructLink(t[s],t[s-2]);this.$={type:j.type,stroke:j.stroke,length:j.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var j=r.destructLink(t[s]);this.$={type:j.type,stroke:j.stroke,length:j.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:L1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:H,9:W,11:Q,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:H,9:W,11:Q,21:66},{8:H,9:W,11:Q,21:67},{8:H,9:W,11:Q,21:68},{8:H,9:W,11:Q,21:69},{8:H,9:W,11:Q,21:70},{8:H,9:W,10:[1,71],11:Q,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(z1,[2,46],{18:75,10:L1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(q1,[2,47]),e(q1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:L1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:Bt,77:[1,124],78:[1,125],80:135,81:xt,82:yt,83:mt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:Ot,111:Pt,112:wt,113:Ut},e(it,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(z1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:171,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:174,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:175,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:176,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:181,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:182,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:183,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(z1,[2,43],{18:184,10:L1}),e(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(y1,[2,73]),e(y1,[2,75]),e(y1,[2,76]),e(y1,[2,161]),e(y1,[2,162]),{8:H,9:W,10:gt,11:Q,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:Bt,80:135,81:xt,82:yt,83:mt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:Ot,111:Pt,112:wt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,193],33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},{10:L1,18:194},{10:[1,195],42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(q1,[2,50],{110:109,42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:f,79:208,113:A,114:d,115:E},e(l1,[2,79]),e(l1,[2,81]),e(l1,[2,82]),e(l1,[2,146]),e(l1,[2,147]),e(l1,[2,148]),e(l1,[2,149]),{47:[1,209],65:f,79:208,113:A,114:d,115:E},{30:210,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{49:[1,211],65:f,79:208,113:A,114:d,115:E},{51:[1,212],65:f,79:208,113:A,114:d,115:E},{53:[1,213],65:f,79:208,113:A,114:d,115:E},{55:[1,214],65:f,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:f,79:208,113:A,114:d,115:E},{64:[1,217],65:f,79:208,113:A,114:d,115:E},{30:218,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{31:[1,219],65:f,79:208,113:A,114:d,115:E},{65:f,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:f,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(z1,[2,44],{42:Gt}),e(I1,[2,70]),e(I1,[2,69]),{60:[1,224],65:f,79:208,113:A,114:d,115:E},e(I1,[2,72]),e(y1,[2,74]),{30:225,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(it,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{10:Z,58:J,81:$,89:228,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:239,101:[1,240],102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:241,101:[1,242],102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{102:[1,243]},{10:Z,58:J,81:$,89:244,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{42:S,45:245,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(l1,[2,80]),e(N,[2,52]),{49:[1,250],65:f,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:f,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:f,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,254],33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},e(q1,[2,48]),e(T,[2,114],{103:m1}),e(Kt,[2,123],{105:256,10:Z,58:J,81:$,102:t1,106:e1,107:s1,108:u1,109:i1}),e(q,[2,125]),e(q,[2,127]),e(q,[2,128]),e(q,[2,129]),e(q,[2,130]),e(q,[2,131]),e(q,[2,132]),e(q,[2,133]),e(q,[2,134]),e(T,[2,115],{103:m1}),{10:[1,257]},e(T,[2,116],{103:m1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:m1}),e(T,[2,99],{110:109,42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:H,9:W,11:Q,21:264},e(b,[2,34]),{10:Z,58:J,81:$,102:t1,104:265,105:230,106:e1,107:s1,108:u1,109:i1},e(q,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(N,[2,61]),e(it,l,{5:270}),e(Kt,[2,124],{105:256,10:Z,58:J,81:$,102:t1,106:e1,107:s1,108:u1,109:i1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,107]),{31:[1,273],65:f,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,274],33:24,34:c1,36:f1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},{10:Z,58:J,81:$,89:275,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:276,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:m1}),e(T,[2,118],{103:m1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var p=new Error(a);throw p.hash=o,p}},parse:function(a){var o=this,p=[0],r=[],C=[null],t=[],R1=this.table,s="",j=0,jt=0,Se=2,Yt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(d1.yy[at]=this.yy[at]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ct=_.yylloc;t.push(ct);var Be=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var n1;return n1=r.pop()||_.lex()||Yt,typeof n1!="number"&&(n1 instanceof Array&&(r=n1,n1=r.pop()),n1=o.symbols_[n1]||n1),n1}for(var G,E1,Y,ot,v1={},H1,r1,Xt,W1;;){if(E1=p[p.length-1],this.defaultActions[E1]?Y=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=xe()),Y=R1[E1]&&R1[E1][G]),typeof Y>"u"||!Y.length||!Y[0]){var lt="";W1=[];for(H1 in R1[E1])this.terminals_[H1]&&H1>Se&&W1.push("'"+this.terminals_[H1]+"'");_.showPosition?lt="Parse error on line "+(j+1)+`: `+_.showPosition()+` Expecting `+W1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":lt="Parse error on line "+(j+1)+": Unexpected "+(G==Yt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(lt,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:ct,expected:W1})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(Y[0]){case 1:p.push(G),C.push(_.yytext),t.push(_.yylloc),p.push(Y[1]),G=null,jt=_.yyleng,s=_.yytext,j=_.yylineno,ct=_.yylloc;break;case 2:if(r1=this.productions_[Y[1]][1],v1.$=C[C.length-r1],v1._$={first_line:t[t.length-(r1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(r1||1)].first_column,last_column:t[t.length-1].last_column},Be&&(v1._$.range=[t[t.length-(r1||1)].range[0],t[t.length-1].range[1]]),ot=this.performAction.apply(v1,[s,jt,j,d1.yy,Y[1],C,t].concat(_e)),typeof ot<"u")return ot;r1&&(p=p.slice(0,-1*r1*2),C=C.slice(0,-1*r1),t=t.slice(0,-1*r1)),p.push(this.productions_[Y[1]][0]),C.push(v1.$),t.push(v1._$),Xt=R1[p[p.length-2]][p[p.length-1]],p.push(Xt);break;case 3:return!0}}return!0}},Ce=function(){var h1={EOF:1,parseError:function(o,p){if(this.yy.parser)this.yy.parser.parseError(o,p);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,p=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/assets/flowDiagram-61eb444c-wBFqk1LD.js b/assets/flowDiagram-61eb444c-5tOIE6Jg.js similarity index 97% rename from assets/flowDiagram-61eb444c-wBFqk1LD.js rename to assets/flowDiagram-61eb444c-5tOIE6Jg.js index e399569297..3c18f1f7a2 100644 --- a/assets/flowDiagram-61eb444c-wBFqk1LD.js +++ b/assets/flowDiagram-61eb444c-5tOIE6Jg.js @@ -1,4 +1,4 @@ -import{p as St,f as W}from"./flowDb-170db09d-7If00yRB.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as M,f as tt,G as Nt}from"./layout-TzcvurS1.js";import{h as x,W as P,X as z,F as et,c as J,j as rt,l as R,V,U as At}from"./mermaid.core-uOCfdc17.js";import{b as N,c as at,i as nt,d as _,e as st,g as it,f as Ct,a as It,s as Bt}from"./styles-b966c4ae-YImdFhsJ.js";import{l as Mt}from"./line-MxgoxcWE.js";import"./LinkCard-aLl-jjA_.js";import"./index-Qg-bAq5J.js";import"./index-67a42d7d-g0Z27jYt.js";import"./edges-80f1ebb6-FlrRuN4S.js";import"./createText-aebacdfe-SYhAe-WO.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Rt(r,e){return fetch(r,e).then(Dt)}function Gt(r){return(e,t)=>Rt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Pt=Gt("image/svg+xml"),X={normal:$t,vee:Wt,undirected:Vt};function Ut(r){X=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Xt(r,e){for(var t=r.append("text"),n=Yt(e.label).split(` +import{p as St,f as W}from"./flowDb-170db09d-yEiXM5xZ.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as M,f as tt,G as Nt}from"./layout-or5_ZLqg.js";import{h as x,W as P,X as z,F as et,c as J,j as rt,l as R,V,U as At}from"./mermaid.core-YsxFu0Y0.js";import{b as N,c as at,i as nt,d as _,e as st,g as it,f as Ct,a as It,s as Bt}from"./styles-b966c4ae-isWPc7ie.js";import{l as Mt}from"./line-aMz7DiQ_.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./index-67a42d7d-z0cWI9_8.js";import"./edges-80f1ebb6-rGuwxB-z.js";import"./createText-aebacdfe-H6z3pXul.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Rt(r,e){return fetch(r,e).then(Dt)}function Gt(r){return(e,t)=>Rt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Pt=Gt("image/svg+xml"),X={normal:$t,vee:Wt,undirected:Vt};function Ut(r){X=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Xt(r,e){for(var t=r.append("text"),n=Yt(e.label).split(` `),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(p,g){var f=p.x-t.x,y=p.y-t.y,k=Math.sqrt(f*f+y*y),I=g.x-t.x,E=g.y-t.y,U=Math.sqrt(I*I+E*E);return kMath.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var Q={rect:ie,ellipse:oe,circle:le,diamond:ce};function se(r){Q=r}function ie(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function oe(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return lt(t,n,a,i)},s}function le(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ae(t,n,s)},a}function ce(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function de(){var r=function(e,t){fe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=H(D(n,"edgeLabels"),t),o=q(D(n,"nodes"),t,Q);Tt(t),re(o,t),ee(i,t),F(s,t,X);var c=Y(a,t);te(c,t),pe(t)};return r.createNodes=function(e){return arguments.length?(jt(e),r):q},r.createClusters=function(e){return arguments.length?(Ht(e),r):Y},r.createEdgeLabels=function(e){return arguments.length?(Ft(e),r):H},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):F},r.shapes=function(e){return arguments.length?(se(e),r):Q},r.arrows=function(e){return arguments.length?(Ut(e),r):X},r}var he={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},ue={arrowhead:"normal",curve:P};function fe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,he),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,ue)})}function pe(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ct(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function dt(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ht(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function mt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function wt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ve(r){r.shapes().question=ct,r.shapes().hexagon=dt,r.shapes().stadium=gt,r.shapes().subroutine=mt,r.shapes().cylinder=wt,r.shapes().rect_left_inv_arrow=ht,r.shapes().lean_right=ut,r.shapes().lean_left=ft,r.shapes().trapezoid=pt,r.shapes().inv_trapezoid=vt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:ct}),r({hexagon:dt}),r({stadium:gt}),r({subroutine:mt}),r({cylinder:wt}),r({rect_left_inv_arrow:ht}),r({lean_right:ut}),r({lean_left:ft}),r({trapezoid:pt}),r({inv_trapezoid:vt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const ge={addToRender:ve,addToRenderV2:ye},xt={},me=function(r){const e=Object.keys(r);for(const t of e)xt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document;Object.keys(r).forEach(function(d){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=z(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(J().flowchart.htmlLabels)){const y={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};p=at(i,y).node(),p.parentNode.removeChild(p)}else{const y=o.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(rt.lineBreakRegex);for(const I of k){const E=o.createElementNS("http://www.w3.org/2000/svg","tspan");E.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),E.setAttribute("dy","1em"),E.setAttribute("x","1"),E.textContent=I,y.appendChild(E)}p=y}let g=0,f="";switch(l.type){case"round":g=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:g,ry:g,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})})},kt=function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=z(r.defaultStyle);a=i.style,s=i.labelStyle}r.forEach(function(i){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=z(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=V(i.interpolate,P):r.defaultInterpolate!==void 0?l.curve=V(r.defaultInterpolate,P):l.curve=V(xt.curve,P),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(J().flowchart.htmlLabels)?(l.labelType="html",l.label=`${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``)}`):(l.labelType="text",l.label=i.text.replace(rt.lineBreakRegex,` `),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},we=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},xe=function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=J();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Nt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let m=p.length-1;m>=0;m--)u=p[m],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const g=n.db.getVertices();R.warn("Get vertices",g);const f=n.db.getEdges();let y=0;for(y=p.length-1;y>=0;y--){u=p[y],Bt("cluster").append("text");for(let m=0;m{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{$e as diagram}; diff --git a/assets/flowDiagram-v2-2f8f667a-2ERX0VqJ.js b/assets/flowDiagram-v2-2f8f667a-2ERX0VqJ.js new file mode 100644 index 0000000000..757fbe6098 --- /dev/null +++ b/assets/flowDiagram-v2-2f8f667a-2ERX0VqJ.js @@ -0,0 +1 @@ +import{p as e,f as o}from"./flowDb-170db09d-yEiXM5xZ.js";import{f as t,a}from"./styles-b966c4ae-isWPc7ie.js";import{n as i}from"./mermaid.core-YsxFu0Y0.js";import"./layout-or5_ZLqg.js";import"./LinkCard-gCgkDO82.js";import"./index-67a42d7d-z0cWI9_8.js";import"./edges-80f1ebb6-rGuwxB-z.js";import"./createText-aebacdfe-H6z3pXul.js";import"./line-aMz7DiQ_.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram}; diff --git a/assets/flowDiagram-v2-2f8f667a-k9Nn7Pzb.js b/assets/flowDiagram-v2-2f8f667a-k9Nn7Pzb.js deleted file mode 100644 index 7cc39159dd..0000000000 --- a/assets/flowDiagram-v2-2f8f667a-k9Nn7Pzb.js +++ /dev/null @@ -1 +0,0 @@ -import{p as e,f as o}from"./flowDb-170db09d-7If00yRB.js";import{f as t,a}from"./styles-b966c4ae-YImdFhsJ.js";import{n as i}from"./mermaid.core-uOCfdc17.js";import"./layout-TzcvurS1.js";import"./LinkCard-aLl-jjA_.js";import"./index-67a42d7d-g0Z27jYt.js";import"./edges-80f1ebb6-FlrRuN4S.js";import"./createText-aebacdfe-SYhAe-WO.js";import"./line-MxgoxcWE.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram}; diff --git a/assets/flowchart-elk-definition-e097735e-RPHEm9d7.js b/assets/flowchart-elk-definition-e097735e-l4fCEAHS.js similarity index 99% rename from assets/flowchart-elk-definition-e097735e-RPHEm9d7.js rename to assets/flowchart-elk-definition-e097735e-l4fCEAHS.js index e5db6bc0cb..a4427176a2 100644 --- a/assets/flowchart-elk-definition-e097735e-RPHEm9d7.js +++ b/assets/flowchart-elk-definition-e097735e-l4fCEAHS.js @@ -1,4 +1,4 @@ -import{d as bMe,p as wMe}from"./flowDb-170db09d-7If00yRB.js";import{l as K1,h as lI,a2 as OH,U as gMe,X as V1n,V as X1n,W as IH,j as pMe}from"./mermaid.core-uOCfdc17.js";import{i as vMe,a as mMe,l as kMe,b as yMe,j as jMe}from"./edges-80f1ebb6-FlrRuN4S.js";import{c as Hee,g as EMe}from"./index-Qg-bAq5J.js";import"./LinkCard-aLl-jjA_.js";import{l as CMe}from"./line-MxgoxcWE.js";import"./createText-aebacdfe-SYhAe-WO.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function PH(Ae){throw new Error('Could not dynamically require "'+Ae+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uee={exports:{}};(function(Ae,At){(function(ft){Ae.exports=ft()})(function(){return function(){function ft(dt,Vt,Et){function y(Bt,qt){if(!Vt[Bt]){if(!dt[Bt]){var Ge=typeof PH=="function"&&PH;if(!qt&&Ge)return Ge(Bt,!0);if(Ht)return Ht(Bt,!0);var Ki=new Error("Cannot find module '"+Bt+"'");throw Ki.code="MODULE_NOT_FOUND",Ki}var Ii=Vt[Bt]={exports:{}};dt[Bt][0].call(Ii.exports,function(An){var Uc=dt[Bt][1][An];return y(Uc||An)},Ii,Ii.exports,ft,dt,Vt,Et)}return Vt[Bt].exports}for(var Ht=typeof PH=="function"&&PH,Lc=0;Lc0&&arguments[0]!==void 0?arguments[0]:{},Ki=Ge.defaultLayoutOptions,Ii=Ki===void 0?{}:Ki,An=Ge.algorithms,Uc=An===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:An,Nc=Ge.workerFactory,ju=Ge.workerUrl;if(y(this,Bt),this.defaultLayoutOptions=Ii,this.initialized=!1,typeof ju>"u"&&typeof Nc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var vr=Nc;typeof ju<"u"&&typeof Nc>"u"&&(vr=function(q1){return new Worker(q1)});var Jo=vr(ju);if(typeof Jo.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Lc(Jo),this.worker.postMessage({cmd:"register",algorithms:Uc}).then(function(H1){return qt.initialized=!0}).catch(console.err)}return Et(Bt,[{key:"layout",value:function(Ge){var Ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ii=Ki.layoutOptions,An=Ii===void 0?this.defaultLayoutOptions:Ii,Uc=Ki.logging,Nc=Uc===void 0?!1:Uc,ju=Ki.measureExecutionTime,vr=ju===void 0?!1:ju;return Ge?this.worker.postMessage({cmd:"layout",graph:Ge,layoutOptions:An,options:{logging:Nc,measureExecutionTime:vr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Bt}();Vt.default=Ht;var Lc=function(){function Bt(qt){var Ge=this;if(y(this,Bt),qt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=qt,this.worker.onmessage=function(Ki){setTimeout(function(){Ge.receive(Ge,Ki)},0)}}return Et(Bt,[{key:"postMessage",value:function(Ge){var Ki=this.id||0;this.id=Ki+1,Ge.id=Ki;var Ii=this;return new Promise(function(An,Uc){Ii.resolvers[Ki]=function(Nc,ju){Nc?(Ii.convertGwtStyleError(Nc),Uc(Nc)):An(ju)},Ii.worker.postMessage(Ge)})}},{key:"receive",value:function(Ge,Ki){var Ii=Ki.data,An=Ge.resolvers[Ii.id];An&&(delete Ge.resolvers[Ii.id],Ii.error?An(Ii.error):An(null,Ii.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ge){if(Ge){var Ki=Ge.__java$exception;Ki&&(Ki.cause&&Ki.cause.backingJsObject&&(Ge.cause=Ki.cause.backingJsObject,this.convertGwtStyleError(Ge.cause)),delete Ge.__java$exception)}}}]),Bt}()},{}],2:[function(ft,dt,Vt){(function(Et){(function(){var y;typeof window<"u"?y=window:typeof Et<"u"?y=Et:typeof self<"u"&&(y=self);var Ht;function Lc(){}function Bt(){}function qt(){}function Ge(){}function Ki(){}function Ii(){}function An(){}function Uc(){}function Nc(){}function ju(){}function vr(){}function Jo(){}function H1(){}function q1(){}function ww(){}function Np(){}function G1(){}function Th(){}function Q1n(){}function J1n(){}function zy(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function Xg(){}function N(){}function tln(){}function aI(){}function iln(){}function rln(){}function cln(){}function uln(){}function DH(){}function sln(){}function oln(){}function fln(){}function z1(){}function U1(){}function dI(){}function hln(){}function lln(){}function aln(){}function $H(){}function dln(){}function bln(){}function Vg(){}function Qg(){}function wln(){}function gln(){}function pln(){}function vln(){}function FH(){}function W1(){}function Jg(){}function Yg(){}function mln(){}function Vee(){}function bI(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function Fln(){}function xln(){}function Lln(){}function Nln(){}function Bln(){}function Rln(){}function _ln(){}function Kln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Wln(){}function Xln(){}function Vln(){}function Qln(){}function Jln(){}function Yln(){}function xH(){}function Zln(){}function nan(){}function ean(){}function tan(){}function wI(){}function gI(){}function Uy(){}function ian(){}function ran(){}function pI(){}function can(){}function uan(){}function san(){}function Wy(){}function oan(){}function fan(){}function han(){}function lan(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function LH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function NH(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function Oan(){}function Dan(){}function $an(){}function Fan(){}function xan(){}function vI(){}function Lan(){}function Nan(){}function Ban(){}function Ran(){}function _an(){}function BH(){}function Kan(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Wan(){}function Xan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function odn(){}function fdn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function Fdn(){}function xdn(){}function Ldn(){}function Ndn(){}function Bdn(){}function Rdn(){}function _dn(){}function Kdn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Wdn(){}function Xdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function o0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function RH(){}function $0n(){}function F0n(){}function x0n(){}function L0n(){}function N0n(){}function B0n(){}function R0n(){}function _0n(){}function K0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function W0n(){}function X0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function obn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function Fbn(){}function xbn(){}function Lbn(){}function Nbn(){}function Bbn(){}function Rbn(){}function _bn(){}function Kbn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function _H(){}function Ubn(){}function Wbn(){}function Xbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function swn(){}function own(){}function fwn(){}function hwn(){}function lwn(){}function KH(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function HH(){}function qH(){}function vwn(){}function GH(){}function zH(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function UH(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function Fwn(){}function xwn(){}function Lwn(){}function Nwn(){}function Bwn(){}function Rwn(){}function _wn(){}function Kwn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Wwn(){}function Xwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function ogn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function Fgn(){}function xgn(){}function Lgn(){}function Ngn(){}function Bgn(){}function Rgn(){}function _gn(){}function Kgn(){}function mI(){}function kI(){}function yI(){}function Hgn(){}function qgn(){}function Ggn(){}function zgn(){}function Ugn(){}function WH(){}function Wgn(){}function Xgn(){}function Qee(){}function Vgn(){}function Qgn(){}function Jgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function Zl(){}function t2n(){}function Zg(){}function XH(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function o2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function dn(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function jI(){}function F2n(){}function x2n(){}function L2n(){}function N2n(){}function B2n(){}function VH(){}function Xy(){}function Vy(){}function R2n(){}function QH(){}function Qy(){}function _2n(){}function K2n(){}function H2n(){}function q2n(){}function G2n(){}function z2n(){}function Jy(){}function U2n(){}function W2n(){}function X2n(){}function Yy(){}function V2n(){}function JH(){}function Q2n(){}function EI(){}function YH(){}function J2n(){}function Y2n(){}function Z2n(){}function npn(){}function Jee(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function opn(){}function fpn(){}function hpn(){}function Bp(){}function CI(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function Fpn(){}function xpn(){}function Lpn(){}function Npn(){}function Bpn(){}function Rpn(){}function _pn(){}function Kpn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Wpn(){}function Xpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function s3n(){}function o3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function F3n(){}function x3n(){}function L3n(){}function N3n(){}function B3n(){}function R3n(){}function _3n(){}function K3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function W3n(){}function X3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function ZH(){}function r4n(){}function c4n(){}function TI(){Rv()}function u4n(){pF()}function s4n(){a6()}function o4n(){WT()}function f4n(){YJ()}function h4n(){Go()}function l4n(){fJ()}function a4n(){C7()}function d4n(){q9()}function b4n(){H9()}function w4n(){w8()}function g4n(){v7n()}function p4n(){x2()}function v4n(){Sj()}function m4n(){PSn()}function k4n(){HIn()}function y4n(){sPn()}function j4n(){CMn()}function E4n(){V3()}function C4n(){yl()}function T4n(){qIn()}function M4n(){pAn()}function A4n(){zZ()}function S4n(){IFn()}function P4n(){TMn()}function I4n(){nn()}function O4n(){EMn()}function D4n(){GIn()}function $4n(){WOn()}function F4n(){AMn()}function x4n(){aPn()}function L4n(){m7n()}function N4n(){$Y()}function B4n(){gb()}function R4n(){pOn()}function _4n(){S7()}function K4n(){Ux()}function H4n(){ZF()}function q4n(){Zd()}function G4n(){PV()}function z4n(){MMn()}function U4n(){BBn()}function W4n(){IY()}function X4n(){Bx()}function V4n(){DC()}function Q4n(){nM()}function nq(){Xe()}function J4n(){wT()}function Y4n(){NQ()}function eq(){mM()}function Fo(){dEn()}function tq(){eF()}function Z4n(){pZ()}function iq(n){_n(n)}function nvn(n){this.a=n}function Zy(n){this.a=n}function evn(n){this.a=n}function tvn(n){this.a=n}function ivn(n){this.a=n}function rvn(n){this.a=n}function cvn(n){this.a=n}function uvn(n){this.a=n}function rq(n){this.a=n}function cq(n){this.a=n}function svn(n){this.a=n}function MI(n){this.a=n}function ovn(n){this.a=n}function AI(n){this.a=n}function fvn(n){this.a=n}function SI(n){this.a=n}function hvn(n){this.a=n}function PI(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function uq(n){this.b=n}function bvn(n){this.c=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function Evn(n){this.a=n}function Cvn(n){this.a=n}function Tvn(n){this.a=n}function Mvn(n){this.a=n}function Avn(n){this.a=n}function sq(n){this.a=n}function oq(n){this.a=n}function nj(n){this.a=n}function M9(n){this.a=n}function na(){this.a=[]}function Svn(n,e){n.a=e}function Yee(n,e){n.a=e}function Zee(n,e){n.b=e}function nte(n,e){n.b=e}function ete(n,e){n.b=e}function fq(n,e){n.j=e}function tte(n,e){n.g=e}function ite(n,e){n.i=e}function rte(n,e){n.c=e}function cte(n,e){n.d=e}function ute(n,e){n.d=e}function ste(n,e){n.c=e}function ea(n,e){n.k=e}function ote(n,e){n.c=e}function hq(n,e){n.c=e}function lq(n,e){n.a=e}function fte(n,e){n.a=e}function hte(n,e){n.f=e}function lte(n,e){n.a=e}function ate(n,e){n.b=e}function II(n,e){n.d=e}function ej(n,e){n.i=e}function aq(n,e){n.o=e}function dte(n,e){n.r=e}function bte(n,e){n.a=e}function wte(n,e){n.b=e}function Pvn(n,e){n.e=e}function gte(n,e){n.f=e}function dq(n,e){n.g=e}function pte(n,e){n.e=e}function vte(n,e){n.f=e}function mte(n,e){n.f=e}function kte(n,e){n.n=e}function yte(n,e){n.a=e}function jte(n,e){n.a=e}function Ete(n,e){n.c=e}function Cte(n,e){n.c=e}function Tte(n,e){n.d=e}function Mte(n,e){n.e=e}function Ate(n,e){n.g=e}function Ste(n,e){n.a=e}function Pte(n,e){n.c=e}function Ite(n,e){n.d=e}function Ote(n,e){n.e=e}function Dte(n,e){n.f=e}function $te(n,e){n.j=e}function Fte(n,e){n.a=e}function xte(n,e){n.b=e}function Lte(n,e){n.a=e}function Ivn(n){n.b=n.a}function Ovn(n){n.c=n.d.d}function $v(n){this.d=n}function ta(n){this.a=n}function Rp(n){this.a=n}function bq(n){this.a=n}function Mh(n){this.a=n}function A9(n){this.a=n}function Dvn(n){this.a=n}function wq(n){this.a=n}function S9(n){this.a=n}function gq(n){this.a=n}function pq(n){this.a=n}function vq(n){this.a=n}function L0(n){this.a=n}function P9(n){this.a=n}function I9(n){this.a=n}function mq(n){this.b=n}function _p(n){this.b=n}function Kp(n){this.b=n}function OI(n){this.a=n}function $vn(n){this.a=n}function kq(n){this.a=n}function DI(n){this.c=n}function E(n){this.c=n}function Fvn(n){this.c=n}function yq(n){this.a=n}function jq(n){this.a=n}function Eq(n){this.a=n}function Cq(n){this.a=n}function ut(n){this.a=n}function xvn(n){this.a=n}function Tq(n){this.a=n}function Mq(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function Fv(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function _vn(n){this.a=n}function Kvn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Wvn(n){this.a=n}function Xvn(n){this.a=n}function Vvn(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function n5n(n){this.a=n}function O9(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function tj(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function Hp(n){this.a=n}function Aq(n){this.a=n}function c5n(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function o5n(n){this.a=n}function f5n(n){this.a=n}function Sq(n){this.a=n}function Pq(n){this.a=n}function Iq(n){this.a=n}function ij(n){this.a=n}function rj(n){this.e=n}function qp(n){this.a=n}function h5n(n){this.a=n}function n2(n){this.a=n}function Oq(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function Dq(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function F5n(n){this.a=n}function x5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function _5n(n){this.a=n}function K5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function W5n(n){this.a=n}function X5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.a=n}function e6n(n){this.a=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.c=n}function u6n(n){this.b=n}function s6n(n){this.a=n}function o6n(n){this.a=n}function f6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function X1(n){this.a=n}function e2(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function F6n(n){this.a=n}function x6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function _6n(n){this.a=n}function K6n(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function cj(n){this.a=n}function W6n(n){this.a=n}function X6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function omn(n){this.a=n}function fmn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function gmn(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function $q(n){this.a=n}function kt(n){this.b=n}function ymn(n){this.f=n}function Fq(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.a=n}function Amn(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.a=n}function D9(n){this.a=n}function Imn(n){this.a=n}function Omn(n){this.b=n}function xq(n){this.c=n}function uj(n){this.e=n}function Dmn(n){this.a=n}function sj(n){this.a=n}function oj(n){this.a=n}function $I(n){this.a=n}function $mn(n){this.a=n}function Fmn(n){this.d=n}function Lq(n){this.a=n}function Nq(n){this.a=n}function cd(n){this.e=n}function Nte(){this.a=0}function gw(){dyn(this)}function X(){RO(this)}function we(){Cu(this)}function FI(){pTn(this)}function xmn(){}function ud(){this.c=p1n}function Bte(n,e){e.Wb(n)}function Lmn(n,e){n.b+=e}function Nmn(n){n.b=new JI}function T(n){return n.e}function Rte(n){return n.a}function _te(n){return n.a}function Kte(n){return n.a}function Hte(n){return n.a}function qte(n){return n.a}function Gte(){return null}function zte(){return null}function Ute(){EG(),iTe()}function Wte(n){n.b.tf(n.e)}function xv(n,e){n.b=e-n.b}function Lv(n,e){n.a=e-n.a}function Bmn(n,e){e.ad(n.a)}function Xte(n,e){si(e,n)}function Vte(n,e,t){n.Od(t,e)}function $9(n,e){n.e=e,e.b=n}function Bq(n){$f(),this.a=n}function Rmn(n){$f(),this.a=n}function _mn(n){$f(),this.a=n}function Rq(n){nb(),this.a=n}function Kmn(n){k3(),aR.be(n)}function ia(){Qyn.call(this)}function _q(){Qyn.call(this)}function Kq(){ia.call(this)}function xI(){ia.call(this)}function Hmn(){ia.call(this)}function F9(){ia.call(this)}function fu(){ia.call(this)}function Nv(){ia.call(this)}function ye(){ia.call(this)}function vs(){ia.call(this)}function qmn(){ia.call(this)}function ic(){ia.call(this)}function Gmn(){ia.call(this)}function zmn(){this.a=this}function fj(){this.Bb|=256}function Umn(){this.b=new Xkn}function Hq(){Hq=N,new we}function qq(){Kq.call(this)}function Wmn(n,e){n.length=e}function hj(n,e){W(n.a,e)}function Qte(n,e){nY(n.c,e)}function Jte(n,e){ci(n.b,e)}function Yte(n,e){KT(n.a,e)}function Zte(n,e){MF(n.a,e)}function Gp(n,e){et(n.e,e)}function t2(n){iM(n.c,n.b)}function nie(n,e){n.kc().Nb(e)}function Gq(n){this.a=Yge(n)}function hi(){this.a=new we}function Xmn(){this.a=new we}function lj(){this.a=new X}function LI(){this.a=new X}function zq(){this.a=new X}function Ns(){this.a=new Oln}function ra(){this.a=new TSn}function Uq(){this.a=new LH}function Wq(){this.a=new h7n}function Vmn(){this.a=new YMn}function Xq(){this.a=new bMn}function Vq(){this.a=new Bjn}function Qmn(){this.a=new X}function Qq(){this.a=new X}function Jmn(){this.a=new X}function Ymn(){this.a=new X}function Zmn(){this.d=new X}function n9n(){this.a=new hi}function e9n(){this.a=new we}function t9n(){this.b=new we}function i9n(){this.b=new X}function Jq(){this.e=new X}function r9n(){this.d=new X}function c9n(){this.a=new C4n}function u9n(){X.call(this)}function Yq(){lj.call(this)}function s9n(){kE.call(this)}function o9n(){Qq.call(this)}function NI(){Bv.call(this)}function Bv(){xmn.call(this)}function i2(){xmn.call(this)}function Zq(){i2.call(this)}function f9n(){zTn.call(this)}function h9n(){zTn.call(this)}function l9n(){uG.call(this)}function a9n(){uG.call(this)}function d9n(){uG.call(this)}function b9n(){sG.call(this)}function hu(){Tt.call(this)}function nG(){B2n.call(this)}function eG(){B2n.call(this)}function w9n(){O9n.call(this)}function g9n(){O9n.call(this)}function p9n(){we.call(this)}function v9n(){we.call(this)}function m9n(){we.call(this)}function k9n(){hi.call(this)}function BI(){RIn.call(this)}function y9n(){fj.call(this)}function RI(){Oz.call(this)}function _I(){Oz.call(this)}function tG(){we.call(this)}function KI(){we.call(this)}function j9n(){we.call(this)}function iG(){Yy.call(this)}function E9n(){Yy.call(this)}function C9n(){iG.call(this)}function T9n(){ZH.call(this)}function M9n(n){hIn.call(this,n)}function A9n(n){hIn.call(this,n)}function rG(n){rq.call(this,n)}function cG(n){n7n.call(this,n)}function eie(n){cG.call(this,n)}function tie(n){n7n.call(this,n)}function zp(){this.a=new Tt}function uG(){this.a=new hi}function sG(){this.a=new we}function S9n(){this.a=new X}function P9n(){this.j=new X}function oG(){this.a=new Rgn}function I9n(){this.a=new T8n}function O9n(){this.a=new X2n}function HI(){HI=N,uR=new V9n}function qI(){qI=N,cR=new X9n}function Rv(){Rv=N,rR=new Bt}function aj(){aj=N,fR=new Xyn}function iie(n){cG.call(this,n)}function rie(n){cG.call(this,n)}function D9n(n){m$.call(this,n)}function $9n(n){m$.call(this,n)}function F9n(n){uEn.call(this,n)}function GI(n){C5e.call(this,n)}function sd(n){_0.call(this,n)}function _v(n){Cj.call(this,n)}function fG(n){Cj.call(this,n)}function x9n(n){Cj.call(this,n)}function _r(n){kCn.call(this,n)}function L9n(n){_r.call(this,n)}function r2(){M9.call(this,{})}function dj(n){c3(),this.a=n}function Kv(n){n.b=null,n.c=0}function cie(n,e){n.e=e,NNn(n,e)}function uie(n,e){n.a=e,h6e(n)}function zI(n,e,t){n.a[e.g]=t}function sie(n,e,t){M4e(t,n,e)}function oie(n,e){$ue(e.i,n.n)}function N9n(n,e){Fwe(n).td(e)}function fie(n,e){return n*n/e}function B9n(n,e){return n.g-e.g}function hie(n){return new nj(n)}function lie(n){return new Z0(n)}function bj(n){_r.call(this,n)}function mr(n){_r.call(this,n)}function R9n(n){_r.call(this,n)}function UI(n){kCn.call(this,n)}function WI(n){AV(),this.a=n}function _9n(n){aEn(),this.a=n}function N0(n){ED(),this.f=n}function XI(n){ED(),this.f=n}function Up(n){_r.call(this,n)}function Hn(n){_r.call(this,n)}function $r(n){_r.call(this,n)}function K9n(n){_r.call(this,n)}function c2(n){_r.call(this,n)}function on(n){return _n(n),n}function K(n){return _n(n),n}function x9(n){return _n(n),n}function hG(n){return _n(n),n}function aie(n){return _n(n),n}function Hv(n){return n.b==n.c}function B0(n){return!!n&&n.b}function die(n){return!!n&&n.k}function bie(n){return!!n&&n.j}function Hu(n){_n(n),this.a=n}function lG(n){return ja(n),n}function qv(n){EW(n,n.length)}function t1(n){_r.call(this,n)}function Sf(n){_r.call(this,n)}function VI(n){_r.call(this,n)}function pw(n){_r.call(this,n)}function Gv(n){_r.call(this,n)}function Ee(n){_r.call(this,n)}function QI(n){Vz.call(this,n,0)}function JI(){iX.call(this,12,3)}function aG(){aG=N,din=new Q1n}function H9n(){H9n=N,ain=new Lc}function wj(){wj=N,dm=new H1}function q9n(){q9n=N,vzn=new ww}function G9n(){throw T(new ye)}function dG(){throw T(new ye)}function z9n(){throw T(new ye)}function wie(){throw T(new ye)}function gie(){throw T(new ye)}function pie(){throw T(new ye)}function YI(){this.a=Ce(pe(Ji))}function u2(n){$f(),this.a=pe(n)}function U9n(n,e){n.Td(e),e.Sd(n)}function vie(n,e){n.a.ec().Mc(e)}function mie(n,e,t){n.c.lf(e,t)}function bG(n){mr.call(this,n)}function Pf(n){Hn.call(this,n)}function i1(){A9.call(this,"")}function zv(){A9.call(this,"")}function V1(){A9.call(this,"")}function R0(){A9.call(this,"")}function wG(n){mr.call(this,n)}function Wp(n){_p.call(this,n)}function ZI(n){lE.call(this,n)}function W9n(n){Wp.call(this,n)}function X9n(){AI.call(this,null)}function V9n(){AI.call(this,null)}function gj(){gj=N,k3()}function Q9n(){Q9n=N,Szn=Z4e()}function J9n(n){return n.a?n.b:0}function kie(n){return n.a?n.b:0}function yie(n,e){return n.a-e.a}function jie(n,e){return n.a-e.a}function Eie(n,e){return n.a-e.a}function pj(n,e){return WX(n,e)}function M(n,e){return pMn(n,e)}function Cie(n,e){return e in n.a}function Y9n(n,e){return n.f=e,n}function Tie(n,e){return n.b=e,n}function Z9n(n,e){return n.c=e,n}function Mie(n,e){return n.g=e,n}function gG(n,e){return n.a=e,n}function pG(n,e){return n.f=e,n}function Aie(n,e){return n.k=e,n}function vG(n,e){return n.a=e,n}function Sie(n,e){return n.e=e,n}function mG(n,e){return n.e=e,n}function Pie(n,e){return n.f=e,n}function Iie(n,e){n.b=!0,n.d=e}function Oie(n,e){n.b=new kr(e)}function Die(n,e,t){e.td(n.a[t])}function $ie(n,e,t){e.we(n.a[t])}function Fie(n,e){return n.b-e.b}function xie(n,e){return n.g-e.g}function Lie(n,e){return n.s-e.s}function Nie(n,e){return n?0:e-1}function n8n(n,e){return n?0:e-1}function Bie(n,e){return n?e-1:0}function Rie(n,e){return e.Yf(n)}function od(n,e){return n.b=e,n}function vj(n,e){return n.a=e,n}function fd(n,e){return n.c=e,n}function hd(n,e){return n.d=e,n}function ld(n,e){return n.e=e,n}function kG(n,e){return n.f=e,n}function Uv(n,e){return n.a=e,n}function Xp(n,e){return n.b=e,n}function Vp(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function Dn(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function _ie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function e8n(n,e){return n.k=e,n}function Kie(n,e){return n.j=e,n}function Hie(n,e){yl(),Hr(e,n)}function qie(n,e,t){Nfe(n.a,e,t)}function t8n(n){mTn.call(this,n)}function yG(n){mTn.call(this,n)}function mj(n){uD.call(this,n)}function i8n(n){u2e.call(this,n)}function Q1(n){Ld.call(this,n)}function r8n(n){XD.call(this,n)}function c8n(n){XD.call(this,n)}function u8n(){Mz.call(this,"")}function Li(){this.a=0,this.b=0}function s8n(){this.b=0,this.a=0}function o8n(n,e){n.b=0,hb(n,e)}function Gie(n,e){n.c=e,n.b=!0}function f8n(n,e){return n.c._b(e)}function xo(n){return n.e&&n.e()}function nO(n){return n?n.d:null}function h8n(n,e){return LDn(n.b,e)}function zie(n){return n?n.g:null}function Uie(n){return n?n.i:null}function J1(n){return Ph(n),n.o}function ad(){ad=N,Mne=h4e()}function l8n(){l8n=N,mi=jve()}function Qp(){Qp=N,g1n=a4e()}function a8n(){a8n=N,hee=l4e()}function jG(){jG=N,oc=s6e()}function EG(){EG=N,Wl=N3()}function d8n(){throw T(new ye)}function b8n(){throw T(new ye)}function w8n(){throw T(new ye)}function g8n(){throw T(new ye)}function p8n(){throw T(new ye)}function v8n(){throw T(new ye)}function kj(n){this.a=new s2(n)}function CG(n){d_n(),gTe(this,n)}function Y1(n){this.a=new AD(n)}function vw(n,e){for(;n.ye(e););}function TG(n,e){for(;n.sd(e););}function mw(n,e){return n.a+=e,n}function eO(n,e){return n.a+=e,n}function r1(n,e){return n.a+=e,n}function dd(n,e){return n.a+=e,n}function Wv(n){return fl(n),n.a}function yj(n){return n.b!=n.d.c}function m8n(n){return n.l|n.m<<22}function MG(n,e){return n.d[e.p]}function k8n(n,e){return Q8e(n,e)}function AG(n,e,t){n.splice(e,t)}function y8n(n){n.c?rBn(n):cBn(n)}function jj(n){this.a=0,this.b=n}function j8n(){this.a=new B7(Pon)}function E8n(){this.b=new B7(won)}function C8n(){this.b=new B7(OK)}function T8n(){this.b=new B7(OK)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function O8n(){throw T(new ye)}function D8n(){throw T(new ye)}function $8n(){throw T(new ye)}function F8n(){throw T(new ye)}function x8n(){throw T(new ye)}function Wie(){throw T(new ic)}function Xie(){throw T(new ic)}function L9(n){this.a=new L8n(n)}function L8n(n){cbe(this,n,cve())}function N9(n){return!n||iTn(n)}function B9(n){return Mf[n]!=-1}function Vie(){_A!=0&&(_A=0),KA=-1}function N8n(){iR==null&&(iR=[])}function Qie(n,e){$x(R(n.a),e)}function Jie(n,e){$x(R(n.a),e)}function R9(n,e){Sw.call(this,n,e)}function Jp(n,e){R9.call(this,n,e)}function SG(n,e){this.b=n,this.c=e}function B8n(n,e){this.b=n,this.a=e}function R8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.a=n,this.b=e}function q8n(n,e){this.a=n,this.b=e}function G8n(n,e){this.a=n,this.b=e}function z8n(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.b=e}function W8n(n,e){this.b=n,this.a=e}function X8n(n,e){this.b=n,this.a=e}function V8n(n,e){this.b=n,this.a=e}function Q8n(n,e){this.b=n,this.a=e}function Oe(n,e){this.f=n,this.g=e}function Yp(n,e){this.e=n,this.d=e}function bd(n,e){this.g=n,this.i=e}function tO(n,e){this.a=n,this.b=e}function J8n(n,e){this.a=n,this.f=e}function Y8n(n,e){this.b=n,this.c=e}function Yie(n,e){this.a=n,this.b=e}function Z8n(n,e){this.a=n,this.b=e}function iO(n,e){this.a=n,this.b=e}function n7n(n){Bz(n.dc()),this.c=n}function Ej(n){this.b=u(pe(n),83)}function e7n(n){this.a=u(pe(n),83)}function _0(n){this.a=u(pe(n),15)}function t7n(n){this.a=u(pe(n),15)}function Cj(n){this.b=u(pe(n),47)}function Tj(){this.q=new y.Date}function nh(){nh=N,Sin=new tln}function Zp(){Zp=N,X4=new nln}function Xv(n){return n.f.c+n.g.c}function _9(n,e){return n.b.Hc(e)}function i7n(n,e){return n.b.Ic(e)}function r7n(n,e){return n.b.Qc(e)}function c7n(n,e){return n.b.Hc(e)}function u7n(n,e){return n.c.uc(e)}function Ah(n,e){return n.a._b(e)}function s7n(n,e){return tt(n.c,e)}function o7n(n,e){return Uu(n.b,e)}function f7n(n,e){return n>e&&e0}function cO(n,e){return fc(n,e)<0}function n5(n,e){return n.a.get(e)}function lre(n,e){return e.split(n)}function S7n(n,e){return Uu(n.e,e)}function LG(n){return _n(n),!1}function xj(n){xn.call(this,n,21)}function are(n,e){cMn.call(this,n,e)}function Lj(n,e){Oe.call(this,n,e)}function uO(n,e){Oe.call(this,n,e)}function NG(n){_D(),uEn.call(this,n)}function BG(n,e){fCn(n,n.length,e)}function z9(n,e){BCn(n,n.length,e)}function dre(n,e,t){e.ud(n.a.Ge(t))}function bre(n,e,t){e.we(n.a.Fe(t))}function wre(n,e,t){e.td(n.a.Kb(t))}function gre(n,e,t){n.Mb(t)&&e.td(t)}function e5(n,e,t){n.splice(e,0,t)}function pre(n,e){return au(n.e,e)}function Nj(n,e){this.d=n,this.e=e}function P7n(n,e){this.b=n,this.a=e}function I7n(n,e){this.b=n,this.a=e}function RG(n,e){this.b=n,this.a=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function F7n(n,e){this.a=n,this.b=e}function f2(n,e){this.a=n,this.b=e}function _G(n,e){this.b=n,this.a=e}function KG(n,e){this.b=n,this.a=e}function Bj(n,e){Oe.call(this,n,e)}function Rj(n,e){Oe.call(this,n,e)}function HG(n,e){Oe.call(this,n,e)}function qG(n,e){Oe.call(this,n,e)}function kw(n,e){Oe.call(this,n,e)}function sO(n,e){Oe.call(this,n,e)}function oO(n,e){Oe.call(this,n,e)}function fO(n,e){Oe.call(this,n,e)}function _j(n,e){Oe.call(this,n,e)}function GG(n,e){Oe.call(this,n,e)}function hO(n,e){Oe.call(this,n,e)}function U9(n,e){Oe.call(this,n,e)}function Kj(n,e){Oe.call(this,n,e)}function lO(n,e){Oe.call(this,n,e)}function t5(n,e){Oe.call(this,n,e)}function zG(n,e){Oe.call(this,n,e)}function zt(n,e){Oe.call(this,n,e)}function Hj(n,e){Oe.call(this,n,e)}function x7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function R7n(n,e){this.a=n,this.b=e}function _7n(n,e){this.a=n,this.b=e}function K7n(n,e){this.a=n,this.b=e}function H7n(n,e){this.a=n,this.b=e}function q7n(n,e){this.a=n,this.b=e}function UG(n,e){this.b=n,this.a=e}function G7n(n,e){this.b=n,this.a=e}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.b=n,this.a=e}function t3(n,e){this.c=n,this.d=e}function W7n(n,e){this.e=n,this.d=e}function X7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.b=e,this.c=n}function qj(n,e){Oe.call(this,n,e)}function W9(n,e){Oe.call(this,n,e)}function aO(n,e){Oe.call(this,n,e)}function i5(n,e){Oe.call(this,n,e)}function WG(n,e){Oe.call(this,n,e)}function dO(n,e){Oe.call(this,n,e)}function bO(n,e){Oe.call(this,n,e)}function X9(n,e){Oe.call(this,n,e)}function XG(n,e){Oe.call(this,n,e)}function wO(n,e){Oe.call(this,n,e)}function r5(n,e){Oe.call(this,n,e)}function VG(n,e){Oe.call(this,n,e)}function c5(n,e){Oe.call(this,n,e)}function u5(n,e){Oe.call(this,n,e)}function H0(n,e){Oe.call(this,n,e)}function gO(n,e){Oe.call(this,n,e)}function pO(n,e){Oe.call(this,n,e)}function QG(n,e){Oe.call(this,n,e)}function s5(n,e){Oe.call(this,n,e)}function vO(n,e){Oe.call(this,n,e)}function Gj(n,e){Oe.call(this,n,e)}function V9(n,e){Oe.call(this,n,e)}function Q9(n,e){Oe.call(this,n,e)}function h2(n,e){Oe.call(this,n,e)}function mO(n,e){Oe.call(this,n,e)}function JG(n,e){Oe.call(this,n,e)}function kO(n,e){Oe.call(this,n,e)}function yO(n,e){Oe.call(this,n,e)}function YG(n,e){Oe.call(this,n,e)}function jO(n,e){Oe.call(this,n,e)}function EO(n,e){Oe.call(this,n,e)}function CO(n,e){Oe.call(this,n,e)}function TO(n,e){Oe.call(this,n,e)}function ZG(n,e){Oe.call(this,n,e)}function Q7n(n,e){this.b=n,this.a=e}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function nz(n,e){Oe.call(this,n,e)}function ez(n,e){Oe.call(this,n,e)}function ekn(n,e){this.b=n,this.d=e}function tz(n,e){Oe.call(this,n,e)}function iz(n,e){Oe.call(this,n,e)}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function zj(n,e){Oe.call(this,n,e)}function o5(n,e){Oe.call(this,n,e)}function rz(n,e){Oe.call(this,n,e)}function cz(n,e){Oe.call(this,n,e)}function uz(n,e){Oe.call(this,n,e)}function MO(n,e){Oe.call(this,n,e)}function sz(n,e){Oe.call(this,n,e)}function AO(n,e){Oe.call(this,n,e)}function Uj(n,e){Oe.call(this,n,e)}function SO(n,e){Oe.call(this,n,e)}function PO(n,e){Oe.call(this,n,e)}function J9(n,e){Oe.call(this,n,e)}function IO(n,e){Oe.call(this,n,e)}function oz(n,e){Oe.call(this,n,e)}function Y9(n,e){Oe.call(this,n,e)}function fz(n,e){Oe.call(this,n,e)}function vre(n,e){return au(n.c,e)}function mre(n,e){return au(e.b,n)}function kre(n,e){return-n.b.Je(e)}function hz(n,e){return au(n.g,e)}function Z9(n,e){Oe.call(this,n,e)}function l2(n,e){Oe.call(this,n,e)}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function fn(n,e){this.a=n,this.b=e}function f5(n,e){Oe.call(this,n,e)}function h5(n,e){Oe.call(this,n,e)}function n8(n,e){Oe.call(this,n,e)}function OO(n,e){Oe.call(this,n,e)}function Wj(n,e){Oe.call(this,n,e)}function l5(n,e){Oe.call(this,n,e)}function DO(n,e){Oe.call(this,n,e)}function Xj(n,e){Oe.call(this,n,e)}function yw(n,e){Oe.call(this,n,e)}function e8(n,e){Oe.call(this,n,e)}function a5(n,e){Oe.call(this,n,e)}function d5(n,e){Oe.call(this,n,e)}function t8(n,e){Oe.call(this,n,e)}function Vj(n,e){Oe.call(this,n,e)}function jw(n,e){Oe.call(this,n,e)}function Qj(n,e){Oe.call(this,n,e)}function ukn(n,e){this.a=n,this.b=e}function skn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function Si(n,e){this.a=n,this.b=e}function Jj(n,e){Oe.call(this,n,e)}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.a=n,this.b=e}function bkn(n,e){this.a=n,this.b=e}function wkn(n,e){this.a=n,this.b=e}function gkn(n,e){this.a=n,this.b=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.b=n,this.a=e}function mkn(n,e){this.b=n,this.a=e}function kkn(n,e){this.b=n,this.a=e}function ykn(n,e){this.b=n,this.a=e}function jkn(n,e){this.a=n,this.b=e}function Ekn(n,e){this.a=n,this.b=e}function yre(n,e){J9e(n.a,u(e,56))}function Ckn(n,e){f0e(n.a,u(e,11))}function jre(n,e){return h3(),e!=n}function Tkn(){return Q9n(),new Szn}function Mkn(){c$(),this.b=new hi}function Akn(){hM(),this.a=new hi}function Skn(){tX(),lW.call(this)}function a2(n,e){Oe.call(this,n,e)}function Pkn(n,e){this.a=n,this.b=e}function Ikn(n,e){this.a=n,this.b=e}function Yj(n,e){this.a=n,this.b=e}function Okn(n,e){this.a=n,this.b=e}function Dkn(n,e){this.a=n,this.b=e}function $kn(n,e){this.a=n,this.b=e}function Fkn(n,e){this.d=n,this.b=e}function lz(n,e){this.d=n,this.e=e}function xkn(n,e){this.f=n,this.c=e}function i8(n,e){this.b=n,this.c=e}function az(n,e){this.i=n,this.g=e}function Lkn(n,e){this.e=n,this.a=e}function Nkn(n,e){this.a=n,this.b=e}function dz(n,e){n.i=null,nT(n,e)}function Ere(n,e){n&&it($y,n,e)}function Bkn(n,e){return NF(n.a,e)}function Zj(n){return g7(n.c,n.b)}function Vr(n){return n?n.dd():null}function B(n){return n??null}function q0(n){return typeof n===X2}function G0(n){return typeof n===UZ}function ki(n){return typeof n===EL}function el(n,e){return n.Hd().Xb(e)}function nE(n,e){return Rbe(n.Kc(),e)}function gd(n,e){return fc(n,e)==0}function Cre(n,e){return fc(n,e)>=0}function b5(n,e){return fc(n,e)!=0}function Tre(n){return""+(_n(n),n)}function r8(n,e){return n.substr(e)}function Rkn(n){return Fu(n),n.d.gc()}function $O(n){return yme(n,n.c),n}function eE(n){return A5(n==null),n}function w5(n,e){return n.a+=""+e,n}function dr(n,e){return n.a+=""+e,n}function g5(n,e){return n.a+=""+e,n}function rc(n,e){return n.a+=""+e,n}function De(n,e){return n.a+=""+e,n}function bz(n,e){return n.a+=""+e,n}function _kn(n,e){Kt(n,e,n.a,n.a.a)}function ua(n,e){Kt(n,e,n.c.b,n.c)}function Mre(n,e,t){VFn(e,Mx(n,t))}function Are(n,e,t){VFn(e,Mx(n,t))}function Sre(n,e){k0e(new ie(n),e)}function Kkn(n,e){n.q.setTime($d(e))}function Hkn(n,e){kW.call(this,n,e)}function qkn(n,e){kW.call(this,n,e)}function FO(n,e){kW.call(this,n,e)}function Gkn(n){Cu(this),Z5(this,n)}function wz(n){return Ln(n,0),null}function Lo(n){return n.a=0,n.b=0,n}function zkn(n,e){return n.a=e.g+1,n}function Pre(n,e){return n.j[e.p]==2}function gz(n){return lhe(u(n,79))}function Ukn(){Ukn=N,jUn=Fe(qF())}function Wkn(){Wkn=N,RWn=Fe(PNn())}function Xkn(){this.b=new s2(sb(12))}function Vkn(){this.b=0,this.a=!1}function Qkn(){this.b=0,this.a=!1}function p5(n){this.a=n,TI.call(this)}function Jkn(n){this.a=n,TI.call(this)}function In(n,e){ri.call(this,n,e)}function xO(n,e){V0.call(this,n,e)}function Ew(n,e){az.call(this,n,e)}function LO(n,e){H3.call(this,n,e)}function Ykn(n,e){c8.call(this,n,e)}function He(n,e){$j(),it(eI,n,e)}function NO(n,e){return Zu(n.a,0,e)}function Zkn(n,e){return n.a.a.a.cc(e)}function nyn(n,e){return B(n)===B(e)}function Ire(n,e){return ni(n.a,e.a)}function Ore(n,e){return Wc(n.a,e.a)}function Dre(n,e){return xCn(n.a,e.a)}function If(n,e){return n.indexOf(e)}function pd(n,e){return n==e?0:n?1:-1}function tE(n){return n<10?"0"+n:""+n}function $re(n){return pe(n),new p5(n)}function eyn(n){return Bc(n.l,n.m,n.h)}function i3(n){return Gt((_n(n),n))}function Fre(n){return Gt((_n(n),n))}function tyn(n,e){return Wc(n.g,e.g)}function Fr(n){return typeof n===UZ}function xre(n){return n==b0||n==Hb}function Lre(n){return n==b0||n==Kb}function pz(n){return xr(n.b.b,n,0)}function iyn(n){this.a=Tkn(),this.b=n}function ryn(n){this.a=Tkn(),this.b=n}function Nre(n,e){return W(n.a,e),e}function Bre(n,e){return W(n.c,e),n}function cyn(n,e){return cs(n.a,e),n}function Rre(n,e){return wo(),e.a+=n}function _re(n,e){return wo(),e.a+=n}function Kre(n,e){return wo(),e.c+=n}function vz(n,e){S3(n,0,n.length,e)}function Sh(){Tq.call(this,new ba)}function uyn(){xE.call(this,0,0,0,0)}function d2(){ys.call(this,0,0,0,0)}function kr(n){this.a=n.a,this.b=n.b}function tl(n){return n==Zs||n==Ao}function r3(n){return n==Yh||n==Jh}function syn(n){return n==xg||n==Fg}function Cw(n){return n!=Ef&&n!=ql}function qu(n){return n.Lg()&&n.Mg()}function oyn(n){return JE(u(n,118))}function iE(n){return cs(new li,n)}function fyn(n,e){return new H3(e,n)}function Hre(n,e){return new H3(e,n)}function mz(n,e,t){UC(n,e),WC(n,t)}function rE(n,e,t){Rd(n,e),Bd(n,t)}function Yo(n,e,t){nu(n,e),eu(n,t)}function cE(n,e,t){D3(n,e),F3(n,t)}function uE(n,e,t){$3(n,e),x3(n,t)}function BO(n,e){X3(n,e),L3(n,n.D)}function kz(n){xkn.call(this,n,!0)}function hyn(n,e,t){fU.call(this,n,e,t)}function il(n){jl(),qbe.call(this,n)}function lyn(){Lj.call(this,"Head",1)}function ayn(){Lj.call(this,"Tail",3)}function RO(n){n.c=F(Zn,rn,1,0,5,1)}function dyn(n){n.a=F(Zn,rn,1,8,5,1)}function byn(n){Zc(n.xf(),new t5n(n))}function Tw(n){return n!=null?mt(n):0}function qre(n,e){return ob(e,ef(n))}function Gre(n,e){return ob(e,ef(n))}function zre(n,e){return n[n.length]=e}function Ure(n,e){return n[n.length]=e}function yz(n){return zoe(n.b.Kc(),n.a)}function Wre(n,e){return ZC(BD(n.d),e)}function Xre(n,e){return ZC(BD(n.g),e)}function Vre(n,e){return ZC(BD(n.j),e)}function tr(n,e){ri.call(this,n.b,e)}function vd(n){xE.call(this,n,n,n,n)}function jz(n){return n.b&&uL(n),n.a}function Ez(n){return n.b&&uL(n),n.c}function Qre(n,e){vf||(n.b=e)}function _O(n,e,t){return St(n,e,t),t}function wyn(n,e,t){St(n.c[e.g],e.g,t)}function Jre(n,e,t){u(n.c,69).Xh(e,t)}function Yre(n,e,t){Yo(t,t.i+n,t.j+e)}function Zre(n,e){me(bc(n.a),PMn(e))}function nce(n,e){me(Du(n.a),IMn(e))}function v5(n){Je(),cd.call(this,n)}function ece(n){return n==null?0:mt(n)}function gyn(){gyn=N,hK=new f6(cH)}function je(){je=N,new pyn,new X}function pyn(){new we,new we,new we}function Cz(){Cz=N,Hq(),bin=new we}function Zo(){Zo=N,y.Math.log(2)}function ms(){ms=N,Ch=(E7n(),Dne)}function tce(){throw T(new t1(izn))}function ice(){throw T(new t1(izn))}function rce(){throw T(new t1(rzn))}function cce(){throw T(new t1(rzn))}function vyn(n){this.a=n,HU.call(this,n)}function KO(n){this.a=n,Ej.call(this,n)}function HO(n){this.a=n,Ej.call(this,n)}function wi(n,e){mD(n.c,n.c.length,e)}function Kr(n){return n.ae?1:0}function kyn(n,e){return fc(n,e)>0?n:e}function Bc(n,e,t){return{l:n,m:e,h:t}}function uce(n,e){n.a!=null&&Ckn(e,n.a)}function yyn(n){n.a=new aI,n.c=new aI}function sE(n){this.b=n,this.a=new X}function jyn(n){this.b=new san,this.a=n}function Mz(n){vU.call(this),this.a=n}function Eyn(){Lj.call(this,"Range",2)}function Cyn(){kJ(),this.a=new B7(Hrn)}function sce(n,e){pe(e),Iw(n).Jc(new ju)}function oce(n,e){return ns(),e.n.b+=n}function fce(n,e,t){return it(n.g,t,e)}function hce(n,e,t){return it(n.k,t,e)}function lce(n,e){return it(n.a,e.a,e)}function Mw(n,e,t){return _Q(e,t,n.c)}function Az(n){return new fn(n.c,n.d)}function ace(n){return new fn(n.c,n.d)}function Qr(n){return new fn(n.a,n.b)}function Tyn(n,e){return xEe(n.a,e,null)}function dce(n){Hi(n,null),Ci(n,null)}function Myn(n){s$(n,null),o$(n,null)}function Ayn(){c8.call(this,null,null)}function Syn(){wE.call(this,null,null)}function Sz(n){this.a=n,we.call(this)}function bce(n){this.b=(Pn(),new DI(n))}function oE(n){n.j=F(Ain,q,310,0,0,1)}function wce(n,e,t){n.c.Vc(e,u(t,133))}function gce(n,e,t){n.c.ji(e,u(t,133))}function Pyn(n,e){de(n),n.Gc(u(e,15))}function m5(n,e){return Jje(n.c,n.b,e)}function pce(n,e){return new Jyn(n.Kc(),e)}function qO(n,e){return gwe(n.Kc(),e)!=-1}function Pz(n,e){return n.a.Bc(e)!=null}function fE(n){return n.Ob()?n.Pb():null}function Iyn(n){return Hs(n,0,n.length)}function I(n,e){return n!=null&&WF(n,e)}function vce(n,e){n.q.setHours(e),S6(n,e)}function Oyn(n,e){n.c&&(ZU(e),iMn(e))}function mce(n,e,t){u(n.Kb(t),164).Nb(e)}function kce(n,e,t){return SEe(n,e,t),t}function Dyn(n,e,t){n.a=e^1502,n.b=t^tN}function GO(n,e,t){return n.a[e.g][t.g]}function nf(n,e){return n.a[e.c.p][e.p]}function yce(n,e){return n.e[e.c.p][e.p]}function jce(n,e){return n.c[e.c.p][e.p]}function Ece(n,e){return n.j[e.p]=D9e(e)}function Cce(n,e){return DX(n.f,e.tg())}function Tce(n,e){return DX(n.b,e.tg())}function Mce(n,e){return n.a0?e*e/n:e*e*100}function Jce(n,e){return n>0?e/(n*n):e*100}function Yce(n,e,t){return W(e,e$n(n,t))}function Zce(n,e,t){DC(),n.Xe(e)&&t.td(n)}function s3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function U0(n,e,t){return n.a+=e,n.b+=t,n}function nue(n,e,t){return n.a*=e,n.b*=t,n}function o8(n,e,t){return n.a-=e,n.b-=t,n}function Zz(n,e){return n.a=e.a,n.b=e.b,n}function vE(n){return n.a=-n.a,n.b=-n.b,n}function fjn(n){this.c=n,this.a=1,this.b=1}function hjn(n){this.c=n,nu(n,0),eu(n,0)}function ljn(n){Tt.call(this),V5(this,n)}function ajn(n){yL(),Nmn(this),this.mf(n)}function djn(n,e){Zv(),c8.call(this,n,e)}function nU(n,e){c1(),wE.call(this,n,e)}function bjn(n,e){c1(),wE.call(this,n,e)}function wjn(n,e){c1(),nU.call(this,n,e)}function Gu(n,e,t){Xu.call(this,n,e,t,2)}function JO(n,e){ms(),FE.call(this,n,e)}function gjn(n,e){ms(),JO.call(this,n,e)}function eU(n,e){ms(),JO.call(this,n,e)}function pjn(n,e){ms(),eU.call(this,n,e)}function tU(n,e){ms(),FE.call(this,n,e)}function vjn(n,e){ms(),tU.call(this,n,e)}function mjn(n,e){ms(),FE.call(this,n,e)}function eue(n,e){return n.c.Fc(u(e,133))}function iU(n,e,t){return jM(G8(n,e),t)}function tue(n,e,t){return e.Qk(n.e,n.c,t)}function iue(n,e,t){return e.Rk(n.e,n.c,t)}function YO(n,e){return pl(n.e,u(e,49))}function rue(n,e,t){s6(Du(n.a),e,IMn(t))}function cue(n,e,t){s6(bc(n.a),e,PMn(t))}function rU(n,e){e.$modCount=n.$modCount}function C5(){C5=N,Xm=new kt("root")}function o3(){o3=N,xy=new w9n,new g9n}function kjn(){this.a=new Od,this.b=new Od}function cU(){RIn.call(this),this.Bb|=Yi}function yjn(){Oe.call(this,"GROW_TREE",0)}function uue(n){return n==null?null:CCe(n)}function sue(n){return n==null?null:D5e(n)}function oue(n){return n==null?null:Nr(n)}function fue(n){return n==null?null:Nr(n)}function Ph(n){n.o==null&&u9e(n)}function sn(n){return A5(n==null||q0(n)),n}function Y(n){return A5(n==null||G0(n)),n}function Ce(n){return A5(n==null||ki(n)),n}function uU(n){this.q=new y.Date($d(n))}function f8(n,e){this.c=n,Yp.call(this,n,e)}function mE(n,e){this.a=n,f8.call(this,n,e)}function hue(n,e){this.d=n,Ovn(this),this.b=e}function sU(n,e){P$.call(this,n),this.a=e}function oU(n,e){P$.call(this,n),this.a=e}function lue(n){xQ.call(this,0,0),this.f=n}function fU(n,e,t){IC.call(this,n,e,t,null)}function jjn(n,e,t){IC.call(this,n,e,t,null)}function aue(n,e,t){return n.ue(e,t)<=0?t:e}function due(n,e,t){return n.ue(e,t)<=0?e:t}function bue(n,e){return u(xd(n.b,e),149)}function wue(n,e){return u(xd(n.c,e),229)}function ZO(n){return u(un(n.a,n.b),287)}function Ejn(n){return new fn(n.c,n.d+n.a)}function Cjn(n){return ns(),syn(u(n,197))}function W0(){W0=N,prn=Cn((Qu(),id))}function gue(n,e){e.a?e7e(n,e):zO(n.a,e.b)}function Tjn(n,e){vf||W(n.a,e)}function pue(n,e){return H9(),K3(e.d.i,n)}function vue(n,e){return x2(),new ABn(e,n)}function Df(n,e){return T8(e,ann),n.f=e,n}function hU(n,e,t){return t=os(n,e,3,t),t}function lU(n,e,t){return t=os(n,e,6,t),t}function aU(n,e,t){return t=os(n,e,9,t),t}function h8(n,e,t){++n.j,n.Ki(),A$(n,e,t)}function Mjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function Ajn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Sjn(n,e,t){return MZ(n.c,n.b,e,t)}function dU(n,e){return(e&nt)%n.d.length}function ri(n,e){kt.call(this,n),this.a=e}function bU(n,e){xq.call(this,n),this.a=e}function nD(n,e){xq.call(this,n),this.a=e}function Pjn(n,e){this.c=n,Ld.call(this,e)}function Ijn(n,e){this.a=n,Omn.call(this,e)}function l8(n,e){this.a=n,Omn.call(this,e)}function Ojn(n){this.a=(rs(n,Pb),new Pc(n))}function Djn(n){this.a=(rs(n,Pb),new Pc(n))}function a8(n){return!n.a&&(n.a=new vr),n.a}function $jn(n){return n>8?0:n+1}function mue(n,e){return qn(),n==e?0:n?1:-1}function wU(n,e,t){return m2(n,u(e,22),t)}function kue(n,e,t){return n.apply(e,t)}function Fjn(n,e,t){return n.a+=Hs(e,0,t),n}function gU(n,e){var t;return t=n.e,n.e=e,t}function yue(n,e){var t;t=n[eN],t.call(n,e)}function jue(n,e){var t;t=n[eN],t.call(n,e)}function X0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function xjn(n){Cu(n.e),n.d.b=n.d,n.d.a=n.d}function d8(n){n.b?d8(n.b):n.f.c.zc(n.e,n.d)}function Eue(n,e,t){ca(),Svn(n,e.Ce(n.a,t))}function Cue(n,e){return nO(p$n(n.a,e,!0))}function Tue(n,e){return nO(v$n(n.a,e,!0))}function bo(n,e){return pj(new Array(e),n)}function eD(n){return String.fromCharCode(n)}function Mue(n){return n==null?null:n.message}function Ljn(){this.a=new X,this.b=new X}function Njn(){this.a=new LH,this.b=new Umn}function Bjn(){this.b=new Li,this.c=new X}function pU(){this.d=new Li,this.e=new Li}function vU(){this.n=new Li,this.o=new Li}function kE(){this.n=new i2,this.i=new d2}function Rjn(){this.a=new v4n,this.b=new cwn}function _jn(){this.a=new X,this.d=new X}function Kjn(){this.b=new hi,this.a=new hi}function Hjn(){this.b=new we,this.a=new we}function qjn(){this.b=new E8n,this.a=new sgn}function Gjn(){kE.call(this),this.a=new Li}function T5(n){Jbe.call(this,n,(FC(),vR))}function mU(n,e,t,i){xE.call(this,n,e,t,i)}function Aue(n,e,t){t!=null&&JC(e,rx(n,t))}function Sue(n,e,t){t!=null&&YC(e,rx(n,t))}function kU(n,e,t){return t=os(n,e,11,t),t}function st(n,e){return n.a+=e.a,n.b+=e.b,n}function yi(n,e){return n.a-=e.a,n.b-=e.b,n}function Pue(n,e){return n.n.a=(_n(e),e+10)}function Iue(n,e){return n.n.a=(_n(e),e+10)}function Oue(n,e){return e==n||o4(sM(e),n)}function zjn(n,e){return it(n.a,e,"")==null}function Due(n,e){return H9(),!K3(e.d.i,n)}function $ue(n,e){tl(n.f)?Qme(n,e):Fve(n,e)}function Fue(n,e){var t;return t=e.Hh(n.a),t}function V0(n,e){mr.call(this,rm+n+Ra+e)}function g2(n,e,t,i){V.call(this,n,e,t,i)}function yU(n,e,t,i){V.call(this,n,e,t,i)}function Ujn(n,e,t,i){yU.call(this,n,e,t,i)}function Wjn(n,e,t,i){zE.call(this,n,e,t,i)}function tD(n,e,t,i){zE.call(this,n,e,t,i)}function jU(n,e,t,i){zE.call(this,n,e,t,i)}function Xjn(n,e,t,i){tD.call(this,n,e,t,i)}function EU(n,e,t,i){tD.call(this,n,e,t,i)}function Fn(n,e,t,i){jU.call(this,n,e,t,i)}function Vjn(n,e,t,i){EU.call(this,n,e,t,i)}function Qjn(n,e,t,i){yW.call(this,n,e,t,i)}function Jjn(n,e,t){this.a=n,Vz.call(this,e,t)}function Yjn(n,e,t){this.c=e,this.b=t,this.a=n}function xue(n,e,t){return n.d=u(e.Kb(t),164)}function CU(n,e){return n.Aj().Nh().Kh(n,e)}function TU(n,e){return n.Aj().Nh().Ih(n,e)}function Zjn(n,e){return _n(n),B(n)===B(e)}function Mn(n,e){return _n(n),B(n)===B(e)}function iD(n,e){return nO(p$n(n.a,e,!1))}function rD(n,e){return nO(v$n(n.a,e,!1))}function Lue(n,e){return n.b.sd(new D7n(n,e))}function Nue(n,e){return n.b.sd(new $7n(n,e))}function nEn(n,e){return n.b.sd(new F7n(n,e))}function MU(n,e,t){return n.lastIndexOf(e,t)}function Bue(n,e,t){return ni(n[e.b],n[t.b])}function Rue(n,e){return H(e,(nn(),Jk),n)}function _ue(n,e){return Wc(e.a.d.p,n.a.d.p)}function Kue(n,e){return Wc(n.a.d.p,e.a.d.p)}function Hue(n,e){return ni(n.c-n.s,e.c-e.s)}function eEn(n){return n.c?xr(n.c.a,n,0):-1}function que(n){return n<100?null:new Q1(n)}function p2(n){return n==td||n==Eh||n==Ac}function tEn(n,e){return I(e,15)&&oBn(n.c,e)}function Gue(n,e){vf||e&&(n.d=e)}function cD(n,e){var t;return t=e,!!VV(n,t)}function AU(n,e){this.c=n,DD.call(this,n,e)}function iEn(n){this.c=n,FO.call(this,IM,0)}function rEn(n,e){Voe.call(this,n,n.length,e)}function zue(n,e,t){return u(n.c,69).lk(e,t)}function yE(n,e,t){return u(n.c,69).mk(e,t)}function Uue(n,e,t){return tue(n,u(e,332),t)}function SU(n,e,t){return iue(n,u(e,332),t)}function Wue(n,e,t){return txn(n,u(e,332),t)}function cEn(n,e,t){return zve(n,u(e,332),t)}function M5(n,e){return e==null?null:ab(n.b,e)}function PU(n){return G0(n)?(_n(n),n):n.ke()}function jE(n){return!isNaN(n)&&!isFinite(n)}function uEn(n){$f(),this.a=(Pn(),new Wp(n))}function b8(n){h3(),this.d=n,this.a=new gw}function ks(n,e,t){this.a=n,this.b=e,this.c=t}function sEn(n,e,t){this.a=n,this.b=e,this.c=t}function oEn(n,e,t){this.d=n,this.b=t,this.a=e}function uD(n){yyn(this),_s(this),Vi(this,n)}function du(n){RO(this),GU(this.c,0,n.Pc())}function fEn(n){Wu(n.a),uPn(n.c,n.b),n.b=null}function hEn(n){this.a=n,nh(),tu(Date.now())}function lEn(){lEn=N,Xin=new Lc,XA=new Lc}function sD(){sD=N,Rin=new iln,Pzn=new rln}function aEn(){aEn=N,Nne=F(Zn,rn,1,0,5,1)}function dEn(){dEn=N,eee=F(Zn,rn,1,0,5,1)}function IU(){IU=N,tee=F(Zn,rn,1,0,5,1)}function $f(){$f=N,new Bq((Pn(),Pn(),cr))}function Xue(n){return FC(),$e((pPn(),Dzn),n)}function Vue(n){return lf(),$e((LSn(),Bzn),n)}function Que(n){return $T(),$e((qAn(),Gzn),n)}function Jue(n){return RC(),$e((GAn(),zzn),n)}function Yue(n){return dM(),$e((IOn(),Uzn),n)}function Zue(n){return _o(),$e(($Sn(),Vzn),n)}function nse(n){return Tu(),$e((FSn(),Jzn),n)}function ese(n){return Yc(),$e((xSn(),Zzn),n)}function tse(n){return SM(),$e((Ukn(),jUn),n)}function ise(n){return Hd(),$e((mPn(),CUn),n)}function rse(n){return K2(),$e((kPn(),MUn),n)}function cse(n){return d6(),$e((yPn(),PUn),n)}function use(n){return Aj(),$e((yAn(),IUn),n)}function sse(n){return _C(),$e((zAn(),WUn),n)}function ose(n){return W5(),$e((NSn(),bWn),n)}function fse(n){return Qi(),$e((JPn(),vWn),n)}function hse(n){return G3(),$e((vPn(),EWn),n)}function lse(n){return qd(),$e((BSn(),PWn),n)}function OU(n,e){if(!n)throw T(new Hn(e))}function ase(n){return Qn(),$e((vIn(),$Wn),n)}function DU(n){xE.call(this,n.d,n.c,n.a,n.b)}function oD(n){xE.call(this,n.d,n.c,n.a,n.b)}function $U(n,e,t){this.b=n,this.c=e,this.a=t}function EE(n,e,t){this.b=n,this.a=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function FU(n,e,t){this.a=n,this.b=e,this.c=t}function wEn(n,e,t){this.a=n,this.b=e,this.c=t}function xU(n,e,t){this.a=n,this.b=e,this.c=t}function gEn(n,e,t){this.b=n,this.a=e,this.c=t}function CE(n,e,t){this.e=e,this.b=n,this.d=t}function dse(n,e,t){return ca(),n.a.Od(e,t),e}function fD(n){var e;return e=new Dln,e.e=n,e}function LU(n){var e;return e=new Zmn,e.b=n,e}function w8(){w8=N,sS=new Fdn,oS=new xdn}function wo(){wo=N,WWn=new pbn,XWn=new vbn}function bse(n){return aT(),$e((EPn(),HWn),n)}function wse(n){return hf(),$e((TPn(),JWn),n)}function gse(n){return lM(),$e((mOn(),cXn),n)}function pse(n){return q2(),$e((yIn(),uXn),n)}function vse(n){return OC(),$e((JAn(),sXn),n)}function mse(n){return F2(),$e((RSn(),oXn),n)}function kse(n){return Vw(),$e((UPn(),ZWn),n)}function yse(n){return Kd(),$e((HSn(),rXn),n)}function jse(n){return VC(),$e((_Sn(),fXn),n)}function Ese(n){return Pa(),$e((GPn(),hXn),n)}function Cse(n){return V8(),$e((WAn(),lXn),n)}function Tse(n){return ya(),$e((KSn(),dXn),n)}function Mse(n){return eM(),$e((TIn(),bXn),n)}function Ase(n){return K8(),$e((XAn(),wXn),n)}function Sse(n){return A7(),$e((EIn(),gXn),n)}function Pse(n){return h4(),$e((jIn(),pXn),n)}function Ise(n){return or(),$e((zOn(),vXn),n)}function Ose(n){return q3(),$e((GSn(),mXn),n)}function Dse(n){return Nh(),$e((qSn(),yXn),n)}function $se(n){return kC(),$e((YAn(),jXn),n)}function Fse(n){return Ss(),$e((WPn(),EXn),n)}function xse(n){return JT(),$e((CIn(),BQn),n)}function Lse(n){return i6(),$e((zSn(),RQn),n)}function Nse(n){return wb(),$e((MPn(),_Qn),n)}function Bse(n){return ur(),$e((XSn(),UQn),n)}function Rse(n){return Zw(),$e((vOn(),HQn),n)}function _se(n){return Rh(),$e((WSn(),qQn),n)}function Kse(n){return z8(),$e((QAn(),GQn),n)}function Hse(n){return oT(),$e((USn(),WQn),n)}function qse(n){return b6(),$e((zPn(),KQn),n)}function Gse(n){return x8(),$e((VAn(),XQn),n)}function zse(n){return Q3(),$e((QSn(),VQn),n)}function Use(n){return uT(),$e((JSn(),QQn),n)}function Wse(n){return dT(),$e((VSn(),JQn),n)}function Xse(n){return _d(),$e((YSn(),hJn),n)}function Vse(n){return z5(),$e((nSn(),wJn),n)}function Qse(n){return xf(),$e((eSn(),jJn),n)}function Jse(n){return tf(),$e((tSn(),CJn),n)}function Yse(n){return No(),$e((ZAn(),RJn),n)}function Zse(n){return Id(),$e((iSn(),UJn),n)}function noe(n){return c4(),$e((jPn(),WJn),n)}function eoe(n){return k6(),$e((MIn(),VJn),n)}function toe(n){return aC(),$e((uSn(),fYn),n)}function ioe(n){return iT(),$e((cSn(),wYn),n)}function roe(n){return gC(),$e((rSn(),hYn),n)}function coe(n){return CT(),$e((ZSn(),pYn),n)}function uoe(n){return $C(),$e((sSn(),vYn),n)}function soe(n){return f7(),$e((nPn(),mYn),n)}function ooe(n){return qT(),$e((CPn(),FYn),n)}function foe(n){return sT(),$e((tPn(),xYn),n)}function hoe(n){return ET(),$e((ePn(),LYn),n)}function loe(n){return g4(),$e((QPn(),tZn),n)}function aoe(n){return w7(),$e((iPn(),iZn),n)}function doe(n){return Pj(),$e((mAn(),rZn),n)}function boe(n){return Ij(),$e((vAn(),uZn),n)}function woe(n){return L8(),$e((fSn(),sZn),n)}function goe(n){return P7(),$e((XPn(),oZn),n)}function poe(n){return Jv(),$e((kAn(),CZn),n)}function voe(n){return c7(),$e((oSn(),TZn),n)}function moe(n){return Ho(),$e((VPn(),OZn),n)}function koe(n){return y1(),$e((kOn(),$Zn),n)}function yoe(n){return fh(),$e((kIn(),FZn),n)}function joe(n){return vb(),$e((mIn(),_Zn),n)}function Eoe(n){return rr(),$e((Wkn(),RWn),n)}function Coe(n){return B3(),$e((UAn(),BWn),n)}function Toe(n){return sr(),$e((YPn(),ene),n)}function Moe(n){return of(),$e((cPn(),tne),n)}function Aoe(n){return Hh(),$e((PPn(),ine),n)}function Soe(n){return ZT(),$e((SIn(),rne),n)}function Poe(n){return _h(),$e((rPn(),une),n)}function Ioe(n){return us(),$e((SPn(),one),n)}function Ooe(n){return jb(),$e((POn(),fne),n)}function Doe(n){return qw(),$e((ZPn(),hne),n)}function $oe(n){return Mi(),$e((bIn(),lne),n)}function Foe(n){return Mu(),$e((AIn(),ane),n)}function xoe(n){return Qu(),$e((OPn(),vne),n)}function Loe(n){return Lu(),$e((UOn(),mne),n)}function Noe(n){return J(),$e((nIn(),dne),n)}function Boe(n){return AT(),$e((IPn(),kne),n)}function Roe(n){return Vu(),$e((APn(),Ene),n)}function _oe(n){return d4(),$e((yOn(),Lne),n)}function Koe(n,e){return _n(n),n+(_n(e),e)}function Hoe(n,e){return nh(),me(R(n.a),e)}function qoe(n,e){return nh(),me(R(n.a),e)}function hD(n,e){this.c=n,this.a=e,this.b=e-n}function pEn(n,e,t){this.a=n,this.b=e,this.c=t}function NU(n,e,t){this.a=n,this.b=e,this.c=t}function BU(n,e,t){this.a=n,this.b=e,this.c=t}function vEn(n,e,t){this.a=n,this.b=e,this.c=t}function mEn(n,e,t){this.a=n,this.b=e,this.c=t}function s1(n,e,t){this.e=n,this.a=e,this.c=t}function kEn(n,e,t){ms(),QW.call(this,n,e,t)}function lD(n,e,t){ms(),FW.call(this,n,e,t)}function RU(n,e,t){ms(),FW.call(this,n,e,t)}function _U(n,e,t){ms(),FW.call(this,n,e,t)}function yEn(n,e,t){ms(),lD.call(this,n,e,t)}function KU(n,e,t){ms(),lD.call(this,n,e,t)}function jEn(n,e,t){ms(),KU.call(this,n,e,t)}function EEn(n,e,t){ms(),RU.call(this,n,e,t)}function CEn(n,e,t){ms(),_U.call(this,n,e,t)}function g8(n,e){return pe(n),pe(e),new z8n(n,e)}function v2(n,e){return pe(n),pe(e),new NEn(n,e)}function Goe(n,e){return pe(n),pe(e),new BEn(n,e)}function zoe(n,e){return pe(n),pe(e),new W8n(n,e)}function u(n,e){return A5(n==null||WF(n,e)),n}function f3(n){var e;return e=new X,_$(e,n),e}function Uoe(n){var e;return e=new hi,_$(e,n),e}function TEn(n){var e;return e=new Wq,nF(e,n),e}function p8(n){var e;return e=new Tt,nF(e,n),e}function Woe(n){return!n.e&&(n.e=new X),n.e}function Xoe(n){return!n.c&&(n.c=new Bp),n.c}function W(n,e){return n.c[n.c.length]=e,!0}function MEn(n,e){this.c=n,this.b=e,this.a=!1}function HU(n){this.d=n,Ovn(this),this.b=_fe(n.d)}function AEn(){this.a=";,;",this.b="",this.c=""}function Voe(n,e,t){SCn.call(this,e,t),this.a=n}function SEn(n,e,t){this.b=n,Hkn.call(this,e,t)}function qU(n,e,t){this.c=n,Nj.call(this,e,t)}function GU(n,e,t){aY(t,0,n,e,t.length,!1)}function th(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Qoe(n,e){e&&(n.b=e,n.a=(fl(e),e.a))}function zU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function UU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function WU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function XU(n){return bl(the(Fr(n)?Ks(n):n))}function Joe(n,e){return Wc(GEn(n.d),GEn(e.d))}function Yoe(n,e){return e==(J(),Gn)?n.c:n.d}function h3(){h3=N,don=(J(),Gn),dP=Vn}function PEn(){this.b=K(Y(cn((Go(),xR))))}function IEn(n){return ca(),F(Zn,rn,1,n,5,1)}function Zoe(n){return new fn(n.c+n.b,n.d+n.a)}function nfe(n,e){return Sj(),Wc(n.d.p,e.d.p)}function aD(n){return ne(n.b!=0),Ts(n,n.a.a)}function efe(n){return ne(n.b!=0),Ts(n,n.c.b)}function VU(n,e){if(!n)throw T(new R9n(e))}function TE(n,e){if(!n)throw T(new Hn(e))}function QU(n,e,t){t3.call(this,n,e),this.b=t}function v8(n,e,t){lz.call(this,n,e),this.c=t}function OEn(n,e,t){oIn.call(this,e,t),this.d=n}function JU(n){IU(),Yy.call(this),this.th(n)}function DEn(n,e,t){this.a=n,Ew.call(this,e,t)}function $En(n,e,t){this.a=n,Ew.call(this,e,t)}function ME(n,e,t){lz.call(this,n,e),this.c=t}function FEn(){T3(),khe.call(this,(Z1(),uo))}function xEn(n){return n!=null&&!$F(n,a9,d9)}function tfe(n,e){return(GDn(n)<<4|GDn(e))&Ut}function ife(n,e){return QE(),ex(n,e),new oTn(n,e)}function sa(n,e){var t;n.n&&(t=e,W(n.f,t))}function l3(n,e,t){var i;i=new Z0(t),Ro(n,e,i)}function rfe(n,e){var t;return t=n.c,wV(n,e),t}function YU(n,e){return e<0?n.g=-1:n.g=e,n}function AE(n,e){return H0e(n),n.a*=e,n.b*=e,n}function LEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Kt(n,e,n.c.b,n.c),!0}function ZU(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function dD(n){this.b=n,this.a=Ed(this.b.a).Ed()}function NEn(n,e){this.b=n,this.a=e,TI.call(this)}function BEn(n,e){this.a=n,this.b=e,TI.call(this)}function REn(n,e){SCn.call(this,e,1040),this.a=n}function m8(n){return n==0||isNaN(n)?n:n<0?-1:1}function cfe(n){return C2(),hh(n)==Pt(ml(n))}function ufe(n){return C2(),ml(n)==Pt(hh(n))}function jd(n,e){return v6(n,new t3(e.a,e.b))}function sfe(n){return!Xi(n)&&n.c.i.c==n.d.i.c}function SE(n){var e;return e=n.n,n.a.b+e.d+e.a}function _En(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function KEn(n){return Je(),new ih(0,n)}function ofe(n){return n.a?n.a:WD(n)}function A5(n){if(!n)throw T(new Up(null))}function HEn(){HEn=N,mH=(Pn(),new OI(XB))}function PE(){PE=N,new JQ((HI(),uR),(qI(),cR))}function qEn(){qEn=N,jin=F(Wi,q,19,256,0,1)}function bD(n,e,t,i){MQ.call(this,n,e,t,i,0,0)}function ffe(n,e,t){return it(n.b,u(t.b,17),e)}function hfe(n,e,t){return it(n.b,u(t.b,17),e)}function lfe(n,e){return W(n,new fn(e.a,e.b))}function afe(n,e){return n.c=e)throw T(new qq)}function Xfe(n,e,t){return St(e,0,rW(e[0],t[0])),e}function Vfe(n,e,t){e.Ye(t,K(Y(te(n.b,t)))*n.a)}function ACn(n,e,t){return eg(),R3(n,e)&&R3(n,t)}function D5(n){return Mu(),!n.Hc(n1)&&!n.Hc(Gl)}function qE(n){return new fn(n.c+n.b/2,n.d+n.a/2)}function MD(n,e){return e.kh()?pl(n.b,u(e,49)):e}function kW(n,e){this.e=n,this.d=e&64?e|Bf:e}function SCn(n,e){this.c=0,this.d=n,this.b=e|64|Bf}function GE(n){this.b=new Pc(11),this.a=(Ow(),n)}function AD(n){this.b=null,this.a=(Ow(),n||Lin)}function PCn(n){this.a=Y$n(n.a),this.b=new du(n.b)}function ICn(n){this.b=n,b2.call(this,n),$yn(this)}function OCn(n){this.b=n,u8.call(this,n),Fyn(this)}function Y0(n,e,t){this.a=n,g2.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,Yt.call(this,e,t,i)}function gi(n,e,t,i,r){D$.call(this,n,e,t,i,r,-1)}function $5(n,e,t,i,r){R8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){Yt.call(this,n,e,t),this.b=i}function zE(n,e,t,i){v8.call(this,n,e,t),this.b=i}function DCn(n){xkn.call(this,n,!1),this.a=!1}function $Cn(n,e){this.b=n,bvn.call(this,n.b),this.a=e}function FCn(n,e){nb(),Yie.call(this,n,mT(new Hu(e)))}function UE(n,e){return Je(),new xW(n,e,0)}function SD(n,e){return Je(),new xW(6,n,e)}function Qfe(n,e){return Mn(n.substr(0,e.length),e)}function Uu(n,e){return ki(e)?QD(n,e):!!Sr(n.f,e)}function Oi(n,e){for(_n(e);n.Ob();)e.td(n.Pb())}function Pw(n,e,t){jl(),this.e=n,this.d=e,this.a=t}function o1(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function jW(n){var e;for(e=n;e.f;)e=e.f;return e}function y2(n){var e;return e=t6(n),ne(e!=null),e}function Jfe(n){var e;return e=Lge(n),ne(e!=null),e}function d3(n,e){var t;return t=n.a.gc(),$X(e,t),t-e}function EW(n,e){var t;for(t=0;t0?y.Math.log(n/e):-100}function xCn(n,e){return fc(n,e)<0?-1:fc(n,e)>0?1:0}function SW(n,e,t){return MRn(n,u(e,46),u(t,167))}function LCn(n,e){return u(vW(Ed(n.a)).Xb(e),42).cd()}function uhe(n,e){return P0e(e,n.length),new REn(n,e)}function DD(n,e){this.d=n,ie.call(this,n),this.e=e}function Cd(n){this.d=(_n(n),n),this.a=0,this.c=IM}function PW(n,e){cd.call(this,1),this.a=n,this.b=e}function NCn(n,e){return n.c?NCn(n.c,e):W(n.b,e),n}function she(n,e,t){var i;return i=ub(n,e),g$(n,e,t),i}function IW(n,e){var t;return t=n.slice(0,e),WX(t,n)}function BCn(n,e,t){var i;for(i=0;i=n.g}function KD(n,e,t){var i;return i=Y$(n,e,t),rZ(n,i)}function j2(n,e){var t;t=n.a.length,ub(n,t),g$(n,t,e)}function ZCn(n,e){var t;t=console[n],t.call(console,e)}function nTn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function mhe(n,e,t){u(e.b,65),Zc(e.a,new NU(n,t,e))}function FW(n,e,t){uj.call(this,e),this.a=n,this.b=t}function xW(n,e,t){cd.call(this,n),this.a=e,this.b=t}function LW(n,e,t){this.a=n,xq.call(this,e),this.b=t}function eTn(n,e,t){this.a=n,aX.call(this,8,e,null,t)}function khe(n){this.a=(_n(xe),xe),this.b=n,new tG}function tTn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function NW(n){this.c=n,this.b=n.a.d.a,rU(n.a.e,this)}function Wu(n){z0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function L5(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function Md(n,e){return a3(e,n.a.c.length),un(n.a,e)}function Ff(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function yhe(n){return 0>=n?new PG:sbe(n-1)}function jhe(n){return aw?QD(aw,n):!1}function iTn(n){return n?n.dc():!n.Kc().Ob()}function Gi(n){return!n.a&&n.c?n.c.b:n.a}function Ehe(n){return!n.a&&(n.a=new Yt(zl,n,4)),n.a}function Ad(n){return!n.d&&(n.d=new Yt(ar,n,1)),n.d}function _n(n){if(n==null)throw T(new Nv);return n}function N5(n){n.c?n.c.He():(n.d=!0,S8e(n))}function fl(n){n.c?fl(n.c):(Ta(n),n.d=!0)}function rTn(n){KW(n.a),n.b=F(Zn,rn,1,n.b.length,5,1)}function Che(n,e){return Wc(e.j.c.length,n.j.c.length)}function The(n,e){n.c<0||n.b.b=0?n.Bh(t):bY(n,e)}function cTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function Ahe(n){if(n.p!=4)throw T(new fu);return n.e}function She(n){if(n.p!=3)throw T(new fu);return n.e}function Phe(n){if(n.p!=6)throw T(new fu);return n.f}function Ihe(n){if(n.p!=6)throw T(new fu);return n.k}function Ohe(n){if(n.p!=3)throw T(new fu);return n.j}function Dhe(n){if(n.p!=4)throw T(new fu);return n.j}function BW(n){return!n.b&&(n.b=new sj(new KI)),n.b}function Sd(n){return n.c==-2&&Pte(n,Qve(n.g,n.b)),n.c}function g3(n,e){var t;return t=LD("",n),t.n=e,t.i=1,t}function $he(n,e){yD(u(e.b,65),n),Zc(e.a,new Aq(n))}function Fhe(n,e){me((!n.a&&(n.a=new l8(n,n)),n.a),e)}function uTn(n,e){this.b=n,DD.call(this,n,e),$yn(this)}function sTn(n,e){this.b=n,AU.call(this,n,e),Fyn(this)}function RW(n,e,t,i){bd.call(this,n,e),this.d=t,this.a=i}function VE(n,e,t,i){bd.call(this,n,t),this.a=e,this.f=i}function oTn(n,e){bce.call(this,obe(pe(n),pe(e))),this.a=e}function fTn(){UJ.call(this,Ka,(a8n(),hee)),tEe(this)}function hTn(){UJ.call(this,Vs,(Qp(),g1n)),lje(this)}function lTn(){Oe.call(this,"DELAUNAY_TRIANGULATION",0)}function xhe(n){return String.fromCharCode.apply(null,n)}function it(n,e,t){return ki(e)?yr(n,e,t):_c(n.f,e,t)}function _W(n){return Pn(),n?n.ve():(Ow(),Ow(),Bin)}function Lhe(n,e,t){return L2(),t.pg(n,u(e.cd(),146))}function aTn(n,e){return PE(),new JQ(new Wyn(n),new Uyn(e))}function Nhe(n){return rs(n,AL),KC(qi(qi(5,n),n/10|0))}function QE(){QE=N,fzn=new GI(A(M(Ha,1),OM,42,0,[]))}function dTn(n){return!n.d&&(n.d=new _p(n.c.Cc())),n.d}function p3(n){return!n.a&&(n.a=new W9n(n.c.vc())),n.a}function bTn(n){return!n.b&&(n.b=new Wp(n.c.ec())),n.b}function ch(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function pc(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function Bhe(n,e){return qn(),u(e.b,19).ai&&++i,i}function Oh(n){var e,t;return t=(e=new ud,e),O3(t,n),t}function UD(n){var e,t;return t=(e=new ud,e),VJ(t,n),t}function Zhe(n,e){var t;return t=te(n.f,e),MV(e,t),null}function WD(n){var e;return e=hbe(n),e||null}function CTn(n){return!n.b&&(n.b=new V(bi,n,12,3)),n.b}function n1e(n){return n!=null&&_9(tI,n.toLowerCase())}function e1e(n,e){return ni(bu(n)*zu(n),bu(e)*zu(e))}function t1e(n,e){return ni(bu(n)*zu(n),bu(e)*zu(e))}function i1e(n,e){return ni(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function r1e(n,e){return ni(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function TTn(n,e,t){t.a?eu(n,e.b-n.f/2):nu(n,e.a-n.g/2)}function MTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ATn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ha(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function STn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function PTn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function ITn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function OTn(n,e){this.a=n,hue.call(this,n,u(n.d,15).Zc(e))}function XD(n){this.f=n,this.c=this.f.e,n.f>0&&qFn(this)}function DTn(n,e,t,i){this.b=n,this.c=i,FO.call(this,e,t)}function $Tn(n){return ne(n.b=0&&Mn(n.substr(t,e.length),e)}function hl(n,e,t,i,r,c,o){return new v$(n.e,e,t,i,r,c,o)}function QTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function JTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function YTn(n,e){this.g=n,this.d=A(M(mh,1),E1,10,0,[e])}function f1(n,e){this.e=n,this.a=Zn,this.b=yBn(e),this.c=e}function ZTn(n,e){kE.call(this),eV(this),this.a=n,this.c=e}function M8(n,e,t,i){St(n.c[e.g],t.g,i),St(n.c[t.g],e.g,i)}function ZD(n,e,t,i){St(n.c[e.g],e.g,t),St(n.b[e.g],e.g,i)}function M1e(){return x8(),A(M(ron,1),z,376,0,[uK,iy])}function A1e(){return K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])}function S1e(){return V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])}function P1e(){return OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])}function I1e(){return kC(),A(M(fun,1),z,420,0,[j_,oun])}function O1e(){return z8(),A(M(non,1),z,421,0,[iK,rK])}function D1e(){return z5(),A(M(bJn,1),z,523,0,[Hm,Km])}function $1e(){return No(),A(M(BJn,1),z,520,0,[tw,Bl])}function F1e(){return xf(),A(M(yJn,1),z,516,0,[M0,I1])}function x1e(){return tf(),A(M(EJn,1),z,515,0,[Ja,yf])}function L1e(){return Id(),A(M(zJn,1),z,455,0,[Rl,Lg])}function N1e(){return gC(),A(M(Son,1),z,425,0,[yK,Aon])}function B1e(){return aC(),A(M(Mon,1),z,480,0,[kK,Ton])}function R1e(){return iT(),A(M(Pon,1),z,495,0,[EP,mv])}function _1e(){return $C(),A(M(Oon,1),z,426,0,[Ion,TK])}function K1e(){return c7(),A(M(Ffn,1),z,429,0,[DP,$fn])}function H1e(){return L8(),A(M(afn,1),z,430,0,[FK,IP])}function q1e(){return $T(),A(M(Jin,1),z,428,0,[yR,Qin])}function G1e(){return RC(),A(M(Zin,1),z,427,0,[Yin,jR])}function z1e(){return _C(),A(M(Arn,1),z,424,0,[$R,tS])}function U1e(){return B3(),A(M(NWn,1),z,511,0,[_k,UR])}function sC(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function n$(n){return n.b.b==0?n.a.$e():aD(n.b)}function W1e(n){if(n.p!=5)throw T(new fu);return ge(n.f)}function X1e(n){if(n.p!=5)throw T(new fu);return ge(n.k)}function VW(n){return B(n.a)===B((eF(),gH))&&Vje(n),n.a}function nMn(n){this.a=u(pe(n),271),this.b=(Pn(),new Hz(n))}function eMn(n,e){bte(this,new fn(n.a,n.b)),wte(this,p8(e))}function Id(){Id=N,Rl=new iz(Y2,0),Lg=new iz(Z2,1)}function xf(){xf=N,M0=new ez(Z2,0),I1=new ez(Y2,1)}function Od(){rie.call(this,new s2(sb(12))),Bz(!0),this.a=2}function e$(n,e,t){Je(),cd.call(this,n),this.b=e,this.a=t}function QW(n,e,t){ms(),uj.call(this,e),this.a=n,this.b=t}function tMn(n){kE.call(this),eV(this),this.a=n,this.c=!0}function iMn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function oC(n){var e;ebe(n.a),byn(n.a),e=new tj(n.a),TQ(e)}function V1e(n,e){aBn(n,!0),Zc(n.e.wf(),new $U(n,!0,e))}function fC(n,e){return LAn(e),Y0e(n,F(be,Le,25,e,15,1),e)}function Q1e(n,e){return C2(),n==Pt(hh(e))||n==Pt(ml(e))}function vc(n,e){return e==null?Vr(Sr(n.f,null)):n5(n.g,e)}function J1e(n){return n.b==0?null:(ne(n.b!=0),Ts(n,n.a.a))}function Gt(n){return Math.max(Math.min(n,nt),-2147483648)|0}function Y1e(n,e){var t=lR[n.charCodeAt(0)];return t??n}function hC(n,e){return tC(n,"set1"),tC(e,"set2"),new Z8n(n,e)}function Z1e(n,e){var t;return t=W0e(n.f,e),st(vE(t),n.f.d)}function R5(n,e){var t,i;return t=e,i=new dI,n_n(n,t,i),i.d}function t$(n,e,t,i){var r;r=new Gjn,e.a[t.g]=r,m2(n.b,i,r)}function JW(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):_Y(n,e,t)}function Dw(n,e,t){dC(),n&&it(dH,n,e),n&&it($y,n,t)}function rMn(n,e,t){this.i=new X,this.b=n,this.g=e,this.a=t}function lC(n,e,t){this.c=new X,this.e=n,this.f=e,this.b=t}function YW(n,e,t){this.a=new X,this.e=n,this.f=e,this.c=t}function cMn(n,e){oE(this),this.f=e,this.g=n,eC(this),this._d()}function A8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),S6(n,t)}function uMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function sMn(n){var e;return e=new kj(sb(n.length)),qV(e,n),e}function nle(n){function e(){}return e.prototype=n||{},new e}function ele(n,e){return LOn(n,e)?(FIn(n),!0):!1}function Dh(n,e){if(e==null)throw T(new Nv);return Y2e(n,e)}function tle(n){if(n.qe())return null;var e=n.n;return RA[e]}function S8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function ef(n){return n.Db>>16!=9?null:u(n.Cb,33)}function oMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function fMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function hMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function Pt(n){return n.Db>>16!=11?null:u(n.Cb,33)}function lMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):Ox(n,e)}function aMn(n,e){var t;return t=new iW(e),dxn(t,n),new du(t)}function ZW(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function dMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function i$(n,e){return y.Math.abs(n)0}function bMn(){this.a=new Sh,this.e=new hi,this.g=0,this.i=0}function wMn(n){this.a=n,this.b=F(lJn,q,1944,n.e.length,0,2)}function r$(n,e,t){var i;i=tDn(n,e,t),n.b=new tT(i.c.length)}function tf(){tf=N,Ja=new nz(hN,0),yf=new nz("UP",1)}function aC(){aC=N,kK=new rz(PHn,0),Ton=new rz("FAN",1)}function dC(){dC=N,dH=new we,$y=new we,Ere(Azn,new z2n)}function rle(n){if(n.p!=0)throw T(new fu);return b5(n.f,0)}function cle(n){if(n.p!=0)throw T(new fu);return b5(n.k,0)}function gMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function y3(n){return n.Db>>16!=6?null:u(n.Cb,235)}function eb(n){return n.Db>>16!=17?null:u(n.Cb,26)}function pMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function ule(n,e){var t;return t=n.a.get(e),t??new Array}function sle(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),S6(n,t)}function yr(n,e,t){return e==null?_c(n.f,null,t):Gd(n.g,e,t)}function _5(n,e,t,i,r,c){return new Lh(n.e,e,n.aj(),t,i,r,c)}function P8(n,e,t){return n.a=Zu(n.a,0,e)+(""+t)+r8(n.a,e),n}function ole(n,e,t){return W(n.a,(QE(),ex(e,t),new bd(e,t))),n}function nX(n){return _z(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vMn(n){return _z(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function Ci(n,e){n.d&&Jc(n.d.e,n),n.d=e,n.d&&W(n.d.e,n)}function Hi(n,e){n.c&&Jc(n.c.g,n),n.c=e,n.c&&W(n.c.g,n)}function jr(n,e){n.c&&Jc(n.c.a,n),n.c=e,n.c&&W(n.c.a,n)}function Hr(n,e){n.i&&Jc(n.i.j,n),n.i=e,n.i&&W(n.i.j,n)}function mMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function kMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function yMn(n,e){this.a=n,this.c=Qr(this.a),this.b=new uC(e)}function fle(n){var e;return Ta(n),e=new hi,gt(n,new Vvn(e))}function tb(n,e){if(n<0||n>e)throw T(new mr(cnn+n+unn+e))}function eX(n,e){return lCn(n.a,e)?TW(n,u(e,22).g,null):null}function hle(n){return yF(),qn(),u(n.a,81).d.e!=0}function jMn(){jMn=N,azn=Fe((aj(),A(M(lzn,1),z,538,0,[fR])))}function EMn(){EMn=N,YQn=Eu(new li,(Qi(),Or),(rr(),Kk))}function tX(){tX=N,ZQn=Eu(new li,(Qi(),Or),(rr(),Kk))}function CMn(){CMn=N,eJn=Eu(new li,(Qi(),Or),(rr(),Kk))}function TMn(){TMn=N,gJn=Ze(new li,(Qi(),Or),(rr(),km))}function ns(){ns=N,mJn=Ze(new li,(Qi(),Or),(rr(),km))}function MMn(){MMn=N,kJn=Ze(new li,(Qi(),Or),(rr(),km))}function c$(){c$=N,TJn=Ze(new li,(Qi(),Or),(rr(),km))}function AMn(){AMn=N,lYn=Eu(new li,(c4(),Gm),(k6(),lK))}function aa(n,e,t,i){this.c=n,this.d=i,s$(this,e),o$(this,t)}function M2(n){this.c=new Tt,this.b=n.b,this.d=n.c,this.a=n.a}function u$(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function s$(n,e){n.a&&Jc(n.a.k,n),n.a=e,n.a&&W(n.a.k,n)}function o$(n,e){n.b&&Jc(n.b.f,n),n.b=e,n.b&&W(n.b.f,n)}function SMn(n,e){mhe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function lle(n,e){vQ(n,e),I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),2)}function f$(n,e){I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),4),Ic(n,e)}function bC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),Ic(n,e)}function mc(n,e){return er(),R$(e)?new IE(e,n):new i8(e,n)}function ale(n,e){var t,i;t=e.c,i=t!=null,i&&j2(n,new Z0(e.c))}function PMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function IMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function OMn(n,e){var t;return t=new Rs(n),e.c[e.c.length]=t,t}function DMn(n,e){var t;return t=u(ab(T2(n.a),e),14),t?t.gc():0}function $Mn(n){var e;return Ta(n),e=(Ow(),Ow(),Nin),qC(n,e)}function FMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function iX(n,e){tie.call(this,new s2(sb(n))),rs(e,W_n),this.a=e}function uh(n,e,t){KDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function xMn(n,e,t){var i;KDn(e,t,n.c.length),i=t-e,AG(n.c,e,i)}function dle(n,e){Dyn(n,ge(ui(cl(e,24),FM)),ge(ui(e,FM)))}function Ln(n,e){if(n<0||n>=e)throw T(new mr(cnn+n+unn+e))}function Te(n,e){if(n<0||n>=e)throw T(new wG(cnn+n+unn+e))}function xn(n,e){this.b=(_n(n),n),this.a=e&Ib?e:e|64|Bf}function LMn(n){dyn(this),Wmn(this.a,KV(y.Math.max(8,n))<<1)}function rf(n){return Gr(A(M(di,1),q,8,0,[n.i.n,n.n,n.a]))}function ble(){return lf(),A(M(Bu,1),z,132,0,[Win,ls,Rb])}function wle(){return _o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])}function gle(){return Tu(),A(M(Qzn,1),z,461,0,[Vf,Ol,Co])}function ple(){return Yc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])}function vle(){return qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])}function mle(){return W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])}function kle(){return i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])}function yle(){return F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])}function jle(){return VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])}function Ele(){return ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])}function Cle(){return Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])}function Tle(){return Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])}function Mle(){return q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])}function Ale(){return ur(),A(M(zQn,1),z,452,0,[Bm,Su,xc])}function Sle(){return Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])}function Ple(){return oT(),A(M(ion,1),z,375,0,[eon,cK,ton])}function Ile(){return dT(),A(M(hon,1),z,377,0,[fK,pv,ew])}function Ole(){return Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])}function Dle(){return uT(),A(M(fon,1),z,338,0,[oon,oK,son])}function $le(){return _d(),A(M(fJn,1),z,454,0,[ry,_m,aP])}function Fle(){return CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])}function xle(){return f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])}function Lle(){return ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])}function Nle(){return sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])}function Ble(){return w7(),A(M(OK,1),z,437,0,[AP,SP,PP])}function Rle(){return _h(),A(M(Khn,1),z,334,0,[HP,F1,i9])}function _le(){return of(),A(M(Phn,1),z,272,0,[jv,cw,Ev])}function Kle(n,e){return o9e(n,e,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Hle(n,e,t){var i;return i=O6(n,e,!1),i.b<=e&&i.a<=t}function NMn(n,e,t){var i;i=new Jwn,i.b=e,i.a=t,++e.b,W(n.d,i)}function qle(n,e){var t;return t=(_n(n),n).g,Yz(!!t),_n(e),t(e)}function rX(n,e){var t,i;return i=d3(n,e),t=n.a.Zc(i),new Y8n(n,t)}function Gle(n){return n.Db>>16!=6?null:u(Fx(n),235)}function zle(n){if(n.p!=2)throw T(new fu);return ge(n.f)&Ut}function Ule(n){if(n.p!=2)throw T(new fu);return ge(n.k)&Ut}function Wle(n){return n.a==(T3(),uI)&&Ste(n,C9e(n.g,n.b)),n.a}function A2(n){return n.d==(T3(),uI)&&Ite(n,pke(n.g,n.b)),n.d}function j(n){return ne(n.ai?1:0}function BMn(n,e){var t,i;return t=F$(e),i=t,u(te(n.c,i),19).a}function RMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function rAn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function rae(n){return!!n.a&&Du(n.a.a).i!=0&&!(n.b&&YF(n.b))}function cae(n){return!!n.u&&bc(n.u.a).i!=0&&!(n.n&&JF(n.n))}function cAn(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),16,new tvn(n))}function uae(n,e){return xCn(tu(n.q.getTime()),tu(e.q.getTime()))}function Lf(n){return u(af(n,F(GR,MN,17,n.c.length,0,1)),474)}function I8(n){return u(af(n,F(mh,E1,10,n.c.length,0,1)),193)}function sae(n){return ns(),!Xi(n)&&!(!Xi(n)&&n.c.i.c==n.d.i.c)}function uAn(n,e,t){var i;i=(pe(n),new du(n)),N3e(new mMn(i,e,t))}function O8(n,e,t){var i;i=(pe(n),new du(n)),B3e(new kMn(i,e,t))}function sAn(n,e){var t;return t=1-e,n.a[t]=eT(n.a[t],t),eT(n,e)}function oAn(n,e){var t;n.e=new oG,t=Cb(e),wi(t,n.c),eBn(n,t,0)}function Ti(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function po(n){var e,t,i;return e=new HCn,t=Zx(e,n),UEe(e),i=t,i}function hX(){var n,e,t;return e=(t=(n=new ud,n),t),W(M1n,e),e}function pC(n){return n.j.c=F(Zn,rn,1,0,5,1),KW(n.c),Khe(n.a),n}function $w(n){return Qv(),I(n.g,10)?u(n.g,10):null}function oae(n){return Iw(n).dc()?!1:(sce(n,new Np),!0)}function fae(n){if(!("stack"in n))try{throw n}catch{}return n}function D8(n,e){if(n<0||n>=e)throw T(new mr(j6e(n,e)));return n}function fAn(n,e,t){if(n<0||et)throw T(new mr(W5e(n,e,t)))}function d$(n,e){if(ci(n.a,e),e.d)throw T(new _r(wKn));e.d=n}function b$(n,e){if(e.$modCount!=n.$modCount)throw T(new vs)}function hAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function lAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function aAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function hae(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function $d(n){var e;return Fr(n)?(e=n,e==-0?0:e):m0e(n)}function vC(n){var e;return fl(n),e=new fln,vw(n.a,new Wvn(e)),e}function dAn(n){var e;return fl(n),e=new oln,vw(n.a,new Uvn(e)),e}function Pi(n,e){this.a=n,$v.call(this,n),tb(e,n.gc()),this.b=e}function lX(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function lae(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),273,new evn(n))}function mC(n){return new Pc((rs(n,AL),KC(qi(qi(5,n),n/10|0))))}function bAn(n){return u(af(n,F(FWn,UKn,11,n.c.length,0,1)),1943)}function aae(n,e,t){return t.f.c.length>0?SW(n.a,e,t):SW(n.b,e,t)}function dae(n,e,t){n.d&&Jc(n.d.e,n),n.d=e,n.d&&Q0(n.d.e,t,n)}function w$(n,e){uTe(e,n),WU(n.d),WU(u(k(n,(nn(),eP)),207))}function H5(n,e){cTe(e,n),UU(n.d),UU(u(k(n,(nn(),eP)),207))}function Fd(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.fe()),i}function j3(n,e){var t,i;return t=ub(n,e),i=null,t&&(i=t.ie()),i}function q5(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.ie()),i}function $h(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=tY(t)),i}function bae(n,e,t){var i;return i=i4(t),gM(n.g,i,e),gM(n.i,e,t),e}function wae(n,e,t){var i;i=q2e();try{return kue(n,e,t)}finally{Mae(i)}}function wAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function li(){P9n.call(this),this.j.c=F(Zn,rn,1,0,5,1),this.a=-1}function aX(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function gAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function dX(n,e,t){this.d=new r6n(this),this.e=n,this.i=e,this.f=t}function kC(){kC=N,j_=new QG(I4,0),oun=new QG("TOP_LEFT",1)}function pAn(){pAn=N,aon=aTn(Q(1),Q(4)),lon=aTn(Q(1),Q(2))}function vAn(){vAn=N,uZn=Fe((Ij(),A(M(cZn,1),z,551,0,[$K])))}function mAn(){mAn=N,rZn=Fe((Pj(),A(M(lfn,1),z,482,0,[DK])))}function kAn(){kAn=N,CZn=Fe((Jv(),A(M(Dfn,1),z,530,0,[hy])))}function yAn(){yAn=N,IUn=Fe((Aj(),A(M(krn,1),z,481,0,[SR])))}function gae(){return Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])}function pae(){return FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])}function vae(){return d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])}function mae(){return K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])}function kae(){return G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])}function yae(){return aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])}function jAn(n,e,t,i){return I(t,54)?new ojn(n,e,t,i):new pW(n,e,t,i)}function jae(){return hf(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])}function Eae(n){var e;return n.j==(J(),ae)&&(e=GLn(n),au(e,Vn))}function Cae(n,e){var t;t=e.a,Hi(t,e.c.d),Ci(t,e.d.d),fb(t.a,n.n)}function EAn(n,e){return u(yd(KE(u(ct(n.k,e),15).Oc(),jg)),113)}function CAn(n,e){return u(yd(HE(u(ct(n.k,e),15).Oc(),jg)),113)}function Tae(n){return new xn(jbe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function E3(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function S2(n){return Qv(),I(n.g,145)?u(n.g,145):null}function TAn(n){if(n.e.g!=n.b)throw T(new vs);return!!n.c&&n.d>0}function Re(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function bX(n,e){_n(e),St(n.a,n.c,e),n.c=n.c+1&n.a.length-1,MFn(n)}function ll(n,e){_n(e),n.b=n.b-1&n.a.length-1,St(n.a,n.b,e),MFn(n)}function MAn(n,e){var t;for(t=n.j.c.length;t0&&gc(n.g,0,e,0,n.i),e}function IAn(n,e){$j();var t;return t=u(te(eI,n),55),!t||t.wj(e)}function Bae(n){if(n.p!=1)throw T(new fu);return ge(n.f)<<24>>24}function Rae(n){if(n.p!=1)throw T(new fu);return ge(n.k)<<24>>24}function _ae(n){if(n.p!=7)throw T(new fu);return ge(n.k)<<16>>16}function Kae(n){if(n.p!=7)throw T(new fu);return ge(n.f)<<16>>16}function Fh(n){var e;for(e=0;n.Ob();)n.Pb(),e=qi(e,1);return KC(e)}function OAn(n,e){var t;return t=new R0,n.xd(t),t.a+="..",e.yd(t),t.a}function Hae(n,e,t){var i;i=u(te(n.g,t),57),W(n.a.c,new Si(e,i))}function qae(n,e,t){return TD(Y(Vr(Sr(n.f,e))),Y(Vr(Sr(n.f,t))))}function yC(n,e,t){return vM(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Gae(n,e,t){return m4(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function zae(n,e,t){return b9e(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function pX(n,e){return n==(Qn(),ii)&&e==ii?4:n==ii||e==ii?8:32}function DAn(n,e){return B(e)===B(n)?"(this Map)":e==null?ru:Nr(e)}function Uae(n,e){return u(e==null?Vr(Sr(n.f,null)):n5(n.g,e),281)}function $An(n,e,t){var i;return i=i4(t),it(n.b,i,e),it(n.c,e,t),e}function FAn(n,e){var t;for(t=e;t;)U0(n,t.i,t.j),t=Pt(t);return n}function vX(n,e){var t;return t=C8(f3(new x$(n,e))),DE(new x$(n,e)),t}function sh(n,e){er();var t;return t=u(n,66).Mj(),M5e(t,e),t.Ok(e)}function Wae(n,e,t,i,r){var c;c=m9e(r,t,i),W(e,p6e(r,c)),o5e(n,r,e)}function xAn(n,e,t){n.i=0,n.e=0,e!=t&&(uDn(n,e,t),cDn(n,e,t))}function mX(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+Tl),S6(n,t)}function Xae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function g$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function LAn(n){if(n<0)throw T(new K9n("Negative array size: "+n))}function bc(n){return n.n||(Ou(n),n.n=new wCn(n,ar,n),Ar(n)),n.n}function G5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function KAn(n,e){V3();var t;return t=n.j.g-e.j.g,t!=0?t:0}function HAn(n,e){return _n(e),n.a!=null?$fe(e.Kb(n.a)):UA}function jC(n){var e;return n?new iW(n):(e=new Sh,nF(e,n),e)}function ts(n,e){var t;return e.b.Kb(FPn(n,e.c.Ee(),(t=new Jvn(e),t)))}function EC(n){_J(),Dyn(this,ge(ui(cl(n,24),FM)),ge(ui(n,FM)))}function qAn(){qAn=N,Gzn=Fe(($T(),A(M(Jin,1),z,428,0,[yR,Qin])))}function GAn(){GAn=N,zzn=Fe((RC(),A(M(Zin,1),z,427,0,[Yin,jR])))}function zAn(){zAn=N,WUn=Fe((_C(),A(M(Arn,1),z,424,0,[$R,tS])))}function UAn(){UAn=N,BWn=Fe((B3(),A(M(NWn,1),z,511,0,[_k,UR])))}function WAn(){WAn=N,lXn=Fe((V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])))}function XAn(){XAn=N,wXn=Fe((K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])))}function VAn(){VAn=N,XQn=Fe((x8(),A(M(ron,1),z,376,0,[uK,iy])))}function QAn(){QAn=N,GQn=Fe((z8(),A(M(non,1),z,421,0,[iK,rK])))}function JAn(){JAn=N,sXn=Fe((OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])))}function YAn(){YAn=N,jXn=Fe((kC(),A(M(fun,1),z,420,0,[j_,oun])))}function ZAn(){ZAn=N,RJn=Fe((No(),A(M(BJn,1),z,520,0,[tw,Bl])))}function nSn(){nSn=N,wJn=Fe((z5(),A(M(bJn,1),z,523,0,[Hm,Km])))}function eSn(){eSn=N,jJn=Fe((xf(),A(M(yJn,1),z,516,0,[M0,I1])))}function tSn(){tSn=N,CJn=Fe((tf(),A(M(EJn,1),z,515,0,[Ja,yf])))}function iSn(){iSn=N,UJn=Fe((Id(),A(M(zJn,1),z,455,0,[Rl,Lg])))}function rSn(){rSn=N,hYn=Fe((gC(),A(M(Son,1),z,425,0,[yK,Aon])))}function cSn(){cSn=N,wYn=Fe((iT(),A(M(Pon,1),z,495,0,[EP,mv])))}function uSn(){uSn=N,fYn=Fe((aC(),A(M(Mon,1),z,480,0,[kK,Ton])))}function sSn(){sSn=N,vYn=Fe(($C(),A(M(Oon,1),z,426,0,[Ion,TK])))}function oSn(){oSn=N,TZn=Fe((c7(),A(M(Ffn,1),z,429,0,[DP,$fn])))}function fSn(){fSn=N,sZn=Fe((L8(),A(M(afn,1),z,430,0,[FK,IP])))}function z5(){z5=N,Hm=new ZG("UPPER",0),Km=new ZG("LOWER",1)}function Yae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function Zae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function nde(n,e){var t,i;i=!1;do t=JOn(n,e),i=i|t;while(t);return i}function jX(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function hSn(n,e){var t;for(t=e;t;)U0(n,-t.i,-t.j),t=Pt(t);return n}function $i(n,e){var t,i;for(_n(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function lSn(n,e){var t;return t=e.cd(),new bd(t,n.e.pc(t,u(e.dd(),14)))}function Kt(n,e,t,i){var r;r=new aI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function Es(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function ede(n,e,t){return u(e==null?_c(n.f,null,t):Gd(n.g,e,t),281)}function k$(n){return n.c&&n.d?cX(n.c)+"->"+cX(n.d):"e_"+md(n)}function C3(n,e){return(Ta(n),Wv(new $n(n,new UX(e,n.a)))).sd(V4)}function tde(){return Qi(),A(M(Hrn,1),z,356,0,[Qf,$l,Hc,Cc,Or])}function ide(){return J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])}function rde(n){return gj(),function(){return wae(n,this,arguments)}}function cde(){return Date.now?Date.now():new Date().getTime()}function Xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function aSn(n){if(!n.c.Sb())throw T(new ic);return n.a=!0,n.c.Ub()}function $8(n){n.i=0,z9(n.b,null),z9(n.c,null),n.a=null,n.e=null,++n.g}function EX(n){are.call(this,n==null?ru:Nr(n),I(n,78)?u(n,78):null)}function dSn(n){B_n(),Nmn(this),this.a=new Tt,QV(this,n),Ke(this.a,n)}function bSn(){RO(this),this.b=new fn(Ft,Ft),this.a=new fn(Qt,Qt)}function wSn(n,e){this.c=0,this.b=e,qkn.call(this,n,17493),this.a=this.c}function y$(n){CC(),!vf&&(this.c=n,this.e=!0,this.a=new X)}function CC(){CC=N,vf=!0,Fzn=!1,xzn=!1,Nzn=!1,Lzn=!1}function CX(n,e){return I(e,149)?Mn(n.c,u(e,149).c):!1}function TX(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function j$(n,e){var t;return t=u(xd(n.d,e),23),t||u(xd(n.e,e),23)}function gSn(n){this.b=n,ie.call(this,n),this.a=u(Rn(this.b.a,4),126)}function pSn(n){this.b=n,w2.call(this,n),this.a=u(Rn(this.b.a,4),126)}function Ou(n){return n.t||(n.t=new Amn(n),s6(new _9n(n),0,n.t)),n.t}function ude(){return sr(),A(M(e9,1),z,103,0,[kh,Ao,Zs,Jh,Yh])}function sde(){return qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])}function ode(){return Ho(),A(M($1,1),z,175,0,[Xn,vi,Zf,Ya,D1])}function fde(){return P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])}function hde(){return b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])}function lde(){return Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])}function ade(){return g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])}function dde(){return Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])}function bde(){return Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])}function T3(){T3=N;var n,e;cI=(Qp(),e=new fj,e),uI=(n=new BI,n)}function vSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function wde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function E$(n){var e,t,i;return e=n&Nu,t=n>>22&Nu,i=n<0?Wh:0,Bc(e,t,i)}function gde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?g$n(n,e):BNn(n,-e)}function MX(n,e){return e==0||n.e==0?n:e>0?BNn(n,e):g$n(n,-e)}function ve(n){if(Se(n))return n.c=n.a,n.a.Pb();throw T(new ic)}function kSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Qn(),Xt)&&t.k==Xt}function C$(n){var e;return e=new Pd,Pr(e,n),H(e,(nn(),Mr),null),e}function T$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Yd(n,e,t)}function AX(n,e,t,i){var r;for(r=0;re)throw T(new mr(fY(n,e,"index")));return n}function M$(n,e,t,i){var r;return r=F(be,Le,25,e,15,1),Pve(r,n,e,t,i),r}function vde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),S6(n,t)}function mde(n,e){return y.Math.min(al(e.a,n.d.d.c),al(e.b,n.d.d.c))}function O2(n,e){return ki(e)?e==null?MY(n.f,null):$On(n.g,e):MY(n.f,e)}function sf(n){this.c=n,this.a=new E(this.c.a),this.b=new E(this.c.b)}function TC(){this.e=new X,this.c=new X,this.d=new X,this.b=new X}function TSn(){this.g=new zq,this.b=new zq,this.a=new X,this.k=new X}function MSn(n,e,t){this.a=n,this.c=e,this.d=t,W(e.e,this),W(t.b,this)}function ASn(n,e){Hkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function SSn(n,e){qkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function FX(n,e){FO.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function MC(n,e,t){this.a=n,this.b=e,this.c=t,W(n.t,this),W(e.i,this)}function AC(){this.b=new Tt,this.a=new Tt,this.b=new Tt,this.a=new Tt}function SC(){SC=N,Ym=new kt("org.eclipse.elk.labels.labelManager")}function PSn(){PSn=N,$cn=new ri("separateLayerConnections",(aT(),QR))}function No(){No=N,tw=new tz("REGULAR",0),Bl=new tz("CRITICAL",1)}function x8(){x8=N,uK=new YG("STACKED",0),iy=new YG("SEQUENCED",1)}function L8(){L8=N,FK=new oz("FIXED",0),IP=new oz("CENTER_NODE",1)}function kde(n,e){var t;return t=CEe(n,e),n.b=new tT(t.c.length),Lje(n,t)}function yde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function ISn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function xX(n){if(n.a){if(n.e)return xX(n.e)}else return n;return null}function jde(n,e){return n.pe.p?-1:0}function PC(n,e){return _n(e),n.c=0,"Initial capacity must not be negative")}function $Sn(){$Sn=N,Vzn=Fe((_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])))}function FSn(){FSn=N,Jzn=Fe((Tu(),A(M(Qzn,1),z,461,0,[Vf,Ol,Co])))}function xSn(){xSn=N,Zzn=Fe((Yc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])))}function LSn(){LSn=N,Bzn=Fe((lf(),A(M(Bu,1),z,132,0,[Win,ls,Rb])))}function NSn(){NSn=N,bWn=Fe((W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])))}function BSn(){BSn=N,PWn=Fe((qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])))}function RSn(){RSn=N,oXn=Fe((F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])))}function _Sn(){_Sn=N,fXn=Fe((VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])))}function KSn(){KSn=N,dXn=Fe((ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])))}function HSn(){HSn=N,rXn=Fe((Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])))}function qSn(){qSn=N,yXn=Fe((Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])))}function GSn(){GSn=N,mXn=Fe((q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])))}function zSn(){zSn=N,RQn=Fe((i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])))}function USn(){USn=N,WQn=Fe((oT(),A(M(ion,1),z,375,0,[eon,cK,ton])))}function WSn(){WSn=N,qQn=Fe((Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])))}function XSn(){XSn=N,UQn=Fe((ur(),A(M(zQn,1),z,452,0,[Bm,Su,xc])))}function VSn(){VSn=N,JQn=Fe((dT(),A(M(hon,1),z,377,0,[fK,pv,ew])))}function QSn(){QSn=N,VQn=Fe((Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])))}function JSn(){JSn=N,QQn=Fe((uT(),A(M(fon,1),z,338,0,[oon,oK,son])))}function YSn(){YSn=N,hJn=Fe((_d(),A(M(fJn,1),z,454,0,[ry,_m,aP])))}function ZSn(){ZSn=N,pYn=Fe((CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])))}function nPn(){nPn=N,mYn=Fe((f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])))}function ePn(){ePn=N,LYn=Fe((ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])))}function tPn(){tPn=N,xYn=Fe((sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])))}function iPn(){iPn=N,iZn=Fe((w7(),A(M(OK,1),z,437,0,[AP,SP,PP])))}function rPn(){rPn=N,une=Fe((_h(),A(M(Khn,1),z,334,0,[HP,F1,i9])))}function cPn(){cPn=N,tne=Fe((of(),A(M(Phn,1),z,272,0,[jv,cw,Ev])))}function Pde(){return Mi(),A(M(Ghn,1),z,98,0,[ql,Ef,Tv,td,Eh,Ac])}function wa(n,e){return!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),NF(n.o,e)}function Ide(n){return!n.g&&(n.g=new Qy),!n.g.d&&(n.g.d=new Cmn(n)),n.g.d}function Ode(n){return!n.g&&(n.g=new Qy),!n.g.a&&(n.g.a=new Tmn(n)),n.g.a}function Dde(n){return!n.g&&(n.g=new Qy),!n.g.b&&(n.g.b=new Emn(n)),n.g.b}function N8(n){return!n.g&&(n.g=new Qy),!n.g.c&&(n.g.c=new Mmn(n)),n.g.c}function $de(n,e,t){var i,r;for(r=new H3(e,n),i=0;it||e=0?n._g(t,!0,!0):Yd(n,e,!0)}function Qde(n,e){return ni(K(Y(k(n,(G(),k0)))),K(Y(k(e,k0))))}function aPn(){aPn=N,aYn=Xd(Xd(Dj(new li,(c4(),qm)),(k6(),pP)),aK)}function Jde(n,e,t){var i;return i=tDn(n,e,t),n.b=new tT(i.c.length),JY(n,i)}function Yde(n){if(n.b<=0)throw T(new ic);return--n.b,n.a-=n.c.c,Q(n.a)}function Zde(n){var e;if(!n.a)throw T(new gTn);return e=n.a,n.a=Pt(n.a),e}function n0e(n){for(;!n.a;)if(!nEn(n.c,new Xvn(n)))return!1;return!0}function $2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new dvn(n)}function e0e(n){DC(),u(n.We((Xe(),rw)),174).Fc((Mu(),Ty)),n.Ye(eH,null)}function DC(){DC=N,SZn=new n2n,IZn=new e2n,PZn=Rwe((Xe(),eH),SZn,_l,IZn)}function $C(){$C=N,Ion=new sz("LEAF_NUMBER",0),TK=new sz("NODE_SIZE",1)}function t0e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),_s(n.d),n.e.a.c=F(Zn,rn,1,0,5,1)}function $$(n){n.a=F(be,Le,25,n.b+1,15,1),n.c=F(be,Le,25,n.b,15,1),n.d=0}function i0e(n,e){n.a.ue(e.d,n.b)>0&&(W(n.c,new QU(e.c,e.d,n.d)),n.b=e.d)}function zX(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.g[e]}function dPn(n,e,t){if(W3(n,t),t!=null&&!n.wj(t))throw T(new xI);return t}function bPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return gX(n)}function r0e(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function c0e(n,e){var t,i;return LAn(e),t=(i=n.slice(0,e),WX(i,n)),t.length=e,t}function S3(n,e,t,i){var r;i=(Ow(),i||Lin),r=n.slice(e,t),hY(r,n,e,t,-e,i)}function Cs(n,e,t,i,r){return e<0?Yd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function u0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Nr(n)}function s0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Nr(n)}function wPn(n,e){if(e.a)throw T(new _r(wKn));ci(n.a,e),e.a=n,!n.j&&(n.j=e)}function UX(n,e){FO.call(this,e.rd(),e.qd()&-16449),_n(n),this.a=n,this.c=e}function gPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),D2(n,i,t)}function Tu(){Tu=N,Vf=new oO(Y2,0),Ol=new oO(I4,1),Co=new oO(Z2,2)}function FC(){FC=N,vR=new Lj("All",0),qin=new lyn,Gin=new Eyn,zin=new ayn}function pPn(){pPn=N,Dzn=Fe((FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])))}function vPn(){vPn=N,EWn=Fe((G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])))}function mPn(){mPn=N,CUn=Fe((Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])))}function kPn(){kPn=N,MUn=Fe((K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])))}function yPn(){yPn=N,PUn=Fe((d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])))}function jPn(){jPn=N,WJn=Fe((c4(),A(M(won,1),z,393,0,[gP,qm,uy,Gm])))}function EPn(){EPn=N,HWn=Fe((aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])))}function CPn(){CPn=N,FYn=Fe((qT(),A(M(zon,1),z,340,0,[SK,qon,Gon,Hon])))}function TPn(){TPn=N,JWn=Fe((hf(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])))}function MPn(){MPn=N,_Qn=Fe((wb(),A(M(Z_,1),z,197,0,[fP,Y_,xg,Fg])))}function APn(){APn=N,Ene=Fe((Vu(),A(M(jne,1),z,396,0,[gs,Yhn,Jhn,Zhn])))}function SPn(){SPn=N,one=Fe((us(),A(M(sne,1),z,285,0,[Ey,yh,Kl,jy])))}function PPn(){PPn=N,ine=Fe((Hh(),A(M(cH,1),z,218,0,[rH,yy,Cv,Sp])))}function IPn(){IPn=N,kne=Fe((AT(),A(M(Qhn,1),z,311,0,[oH,Whn,Vhn,Xhn])))}function OPn(){OPn=N,vne=Fe((Qu(),A(M(o9,1),z,374,0,[Ay,id,My,uw])))}function DPn(){DPn=N,mM(),F1n=Ft,Tee=Qt,x1n=new S9(Ft),Mee=new S9(Qt)}function K8(){K8=N,Vcn=new VG(Xh,0),xS=new VG("IMPROVE_STRAIGHTNESS",1)}function o0e(n,e){return h3(),W(n,new Si(e,Q(e.e.c.length+e.g.c.length)))}function f0e(n,e){return h3(),W(n,new Si(e,Q(e.e.c.length+e.g.c.length)))}function WX(n,e){return U8(e)!=10&&A($u(e),e.hm,e.__elementTypeId$,U8(e),n),n}function Jc(n,e){var t;return t=xr(n,e,0),t==-1?!1:(h1(n,t),!0)}function $Pn(n,e){var t;return t=u(O2(n.e,e),387),t?(ZU(t),t.e):null}function P3(n){var e;return Fr(n)&&(e=0-n,!isNaN(e))?e:bl(z3(n))}function xr(n,e,t){for(;t=0?BT(n,t,!0,!0):Yd(n,e,!0)}function YX(n,e){Qv();var t,i;return t=S2(n),i=S2(e),!!t&&!!i&&!V$n(t.k,i.k)}function a0e(n,e){nu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function d0e(n,e){eu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function b0e(n,e){Rd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function w0e(n,e){Bd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function BPn(n){(this.q?this.q:(Pn(),Pn(),vh)).Ac(n.q?n.q:(Pn(),Pn(),vh))}function g0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function p0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function RPn(n,e){vrn=new Wy,AUn=e,gm=n,u(gm.b,65),BX(gm,vrn,null),DRn(gm)}function B$(n,e,t){var i;return i=n.g[e],k5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function BC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function R$(n){var e;return n.d!=n.r&&(e=qs(n),n.e=!!e&&e.Cj()==kGn,n.d=e),n.e}function _$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function xd(n,e){var t;return t=u(te(n.e,e),387),t?(Oyn(n,t),t.e):null}function _Pn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function qr(n,e){var t,i;return Ta(n),i=new FX(e,n.a),t=new iEn(i),new $n(n,t)}function ub(n,e){var t=n.a[e],i=(cF(),dR)[typeof t];return i?i(t):tQ(typeof t)}function v0e(n){switch(n.g){case 0:return nt;case 1:return-1;default:return 0}}function m0e(n){return mJ(n,(I3(),pin))<0?-xce(z3(n)):n.l+n.m*J2+n.h*$a}function U8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function K$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&J$(n,0),e}function KPn(n,e){for(;e[0]0&&arguments[0]!==void 0?arguments[0]:{},Ki=Ge.defaultLayoutOptions,Ii=Ki===void 0?{}:Ki,An=Ge.algorithms,Uc=An===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:An,Nc=Ge.workerFactory,ju=Ge.workerUrl;if(y(this,Bt),this.defaultLayoutOptions=Ii,this.initialized=!1,typeof ju>"u"&&typeof Nc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var vr=Nc;typeof ju<"u"&&typeof Nc>"u"&&(vr=function(q1){return new Worker(q1)});var Jo=vr(ju);if(typeof Jo.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Lc(Jo),this.worker.postMessage({cmd:"register",algorithms:Uc}).then(function(H1){return qt.initialized=!0}).catch(console.err)}return Et(Bt,[{key:"layout",value:function(Ge){var Ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ii=Ki.layoutOptions,An=Ii===void 0?this.defaultLayoutOptions:Ii,Uc=Ki.logging,Nc=Uc===void 0?!1:Uc,ju=Ki.measureExecutionTime,vr=ju===void 0?!1:ju;return Ge?this.worker.postMessage({cmd:"layout",graph:Ge,layoutOptions:An,options:{logging:Nc,measureExecutionTime:vr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Bt}();Vt.default=Ht;var Lc=function(){function Bt(qt){var Ge=this;if(y(this,Bt),qt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=qt,this.worker.onmessage=function(Ki){setTimeout(function(){Ge.receive(Ge,Ki)},0)}}return Et(Bt,[{key:"postMessage",value:function(Ge){var Ki=this.id||0;this.id=Ki+1,Ge.id=Ki;var Ii=this;return new Promise(function(An,Uc){Ii.resolvers[Ki]=function(Nc,ju){Nc?(Ii.convertGwtStyleError(Nc),Uc(Nc)):An(ju)},Ii.worker.postMessage(Ge)})}},{key:"receive",value:function(Ge,Ki){var Ii=Ki.data,An=Ge.resolvers[Ii.id];An&&(delete Ge.resolvers[Ii.id],Ii.error?An(Ii.error):An(null,Ii.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ge){if(Ge){var Ki=Ge.__java$exception;Ki&&(Ki.cause&&Ki.cause.backingJsObject&&(Ge.cause=Ki.cause.backingJsObject,this.convertGwtStyleError(Ge.cause)),delete Ge.__java$exception)}}}]),Bt}()},{}],2:[function(ft,dt,Vt){(function(Et){(function(){var y;typeof window<"u"?y=window:typeof Et<"u"?y=Et:typeof self<"u"&&(y=self);var Ht;function Lc(){}function Bt(){}function qt(){}function Ge(){}function Ki(){}function Ii(){}function An(){}function Uc(){}function Nc(){}function ju(){}function vr(){}function Jo(){}function H1(){}function q1(){}function ww(){}function Np(){}function G1(){}function Th(){}function Q1n(){}function J1n(){}function zy(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function Xg(){}function N(){}function tln(){}function aI(){}function iln(){}function rln(){}function cln(){}function uln(){}function DH(){}function sln(){}function oln(){}function fln(){}function z1(){}function U1(){}function dI(){}function hln(){}function lln(){}function aln(){}function $H(){}function dln(){}function bln(){}function Vg(){}function Qg(){}function wln(){}function gln(){}function pln(){}function vln(){}function FH(){}function W1(){}function Jg(){}function Yg(){}function mln(){}function Vee(){}function bI(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function Fln(){}function xln(){}function Lln(){}function Nln(){}function Bln(){}function Rln(){}function _ln(){}function Kln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Wln(){}function Xln(){}function Vln(){}function Qln(){}function Jln(){}function Yln(){}function xH(){}function Zln(){}function nan(){}function ean(){}function tan(){}function wI(){}function gI(){}function Uy(){}function ian(){}function ran(){}function pI(){}function can(){}function uan(){}function san(){}function Wy(){}function oan(){}function fan(){}function han(){}function lan(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function LH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function NH(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function Oan(){}function Dan(){}function $an(){}function Fan(){}function xan(){}function vI(){}function Lan(){}function Nan(){}function Ban(){}function Ran(){}function _an(){}function BH(){}function Kan(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Wan(){}function Xan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function odn(){}function fdn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function Fdn(){}function xdn(){}function Ldn(){}function Ndn(){}function Bdn(){}function Rdn(){}function _dn(){}function Kdn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Wdn(){}function Xdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function o0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function RH(){}function $0n(){}function F0n(){}function x0n(){}function L0n(){}function N0n(){}function B0n(){}function R0n(){}function _0n(){}function K0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function W0n(){}function X0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function obn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function Fbn(){}function xbn(){}function Lbn(){}function Nbn(){}function Bbn(){}function Rbn(){}function _bn(){}function Kbn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function _H(){}function Ubn(){}function Wbn(){}function Xbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function swn(){}function own(){}function fwn(){}function hwn(){}function lwn(){}function KH(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function HH(){}function qH(){}function vwn(){}function GH(){}function zH(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function UH(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function Fwn(){}function xwn(){}function Lwn(){}function Nwn(){}function Bwn(){}function Rwn(){}function _wn(){}function Kwn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Wwn(){}function Xwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function ogn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function Fgn(){}function xgn(){}function Lgn(){}function Ngn(){}function Bgn(){}function Rgn(){}function _gn(){}function Kgn(){}function mI(){}function kI(){}function yI(){}function Hgn(){}function qgn(){}function Ggn(){}function zgn(){}function Ugn(){}function WH(){}function Wgn(){}function Xgn(){}function Qee(){}function Vgn(){}function Qgn(){}function Jgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function Zl(){}function t2n(){}function Zg(){}function XH(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function o2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function dn(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function jI(){}function F2n(){}function x2n(){}function L2n(){}function N2n(){}function B2n(){}function VH(){}function Xy(){}function Vy(){}function R2n(){}function QH(){}function Qy(){}function _2n(){}function K2n(){}function H2n(){}function q2n(){}function G2n(){}function z2n(){}function Jy(){}function U2n(){}function W2n(){}function X2n(){}function Yy(){}function V2n(){}function JH(){}function Q2n(){}function EI(){}function YH(){}function J2n(){}function Y2n(){}function Z2n(){}function npn(){}function Jee(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function opn(){}function fpn(){}function hpn(){}function Bp(){}function CI(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function Fpn(){}function xpn(){}function Lpn(){}function Npn(){}function Bpn(){}function Rpn(){}function _pn(){}function Kpn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Wpn(){}function Xpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function s3n(){}function o3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function F3n(){}function x3n(){}function L3n(){}function N3n(){}function B3n(){}function R3n(){}function _3n(){}function K3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function W3n(){}function X3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function ZH(){}function r4n(){}function c4n(){}function TI(){Rv()}function u4n(){pF()}function s4n(){a6()}function o4n(){WT()}function f4n(){YJ()}function h4n(){Go()}function l4n(){fJ()}function a4n(){C7()}function d4n(){q9()}function b4n(){H9()}function w4n(){w8()}function g4n(){v7n()}function p4n(){x2()}function v4n(){Sj()}function m4n(){PSn()}function k4n(){HIn()}function y4n(){sPn()}function j4n(){CMn()}function E4n(){V3()}function C4n(){yl()}function T4n(){qIn()}function M4n(){pAn()}function A4n(){zZ()}function S4n(){IFn()}function P4n(){TMn()}function I4n(){nn()}function O4n(){EMn()}function D4n(){GIn()}function $4n(){WOn()}function F4n(){AMn()}function x4n(){aPn()}function L4n(){m7n()}function N4n(){$Y()}function B4n(){gb()}function R4n(){pOn()}function _4n(){S7()}function K4n(){Ux()}function H4n(){ZF()}function q4n(){Zd()}function G4n(){PV()}function z4n(){MMn()}function U4n(){BBn()}function W4n(){IY()}function X4n(){Bx()}function V4n(){DC()}function Q4n(){nM()}function nq(){Xe()}function J4n(){wT()}function Y4n(){NQ()}function eq(){mM()}function Fo(){dEn()}function tq(){eF()}function Z4n(){pZ()}function iq(n){_n(n)}function nvn(n){this.a=n}function Zy(n){this.a=n}function evn(n){this.a=n}function tvn(n){this.a=n}function ivn(n){this.a=n}function rvn(n){this.a=n}function cvn(n){this.a=n}function uvn(n){this.a=n}function rq(n){this.a=n}function cq(n){this.a=n}function svn(n){this.a=n}function MI(n){this.a=n}function ovn(n){this.a=n}function AI(n){this.a=n}function fvn(n){this.a=n}function SI(n){this.a=n}function hvn(n){this.a=n}function PI(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function uq(n){this.b=n}function bvn(n){this.c=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function Evn(n){this.a=n}function Cvn(n){this.a=n}function Tvn(n){this.a=n}function Mvn(n){this.a=n}function Avn(n){this.a=n}function sq(n){this.a=n}function oq(n){this.a=n}function nj(n){this.a=n}function M9(n){this.a=n}function na(){this.a=[]}function Svn(n,e){n.a=e}function Yee(n,e){n.a=e}function Zee(n,e){n.b=e}function nte(n,e){n.b=e}function ete(n,e){n.b=e}function fq(n,e){n.j=e}function tte(n,e){n.g=e}function ite(n,e){n.i=e}function rte(n,e){n.c=e}function cte(n,e){n.d=e}function ute(n,e){n.d=e}function ste(n,e){n.c=e}function ea(n,e){n.k=e}function ote(n,e){n.c=e}function hq(n,e){n.c=e}function lq(n,e){n.a=e}function fte(n,e){n.a=e}function hte(n,e){n.f=e}function lte(n,e){n.a=e}function ate(n,e){n.b=e}function II(n,e){n.d=e}function ej(n,e){n.i=e}function aq(n,e){n.o=e}function dte(n,e){n.r=e}function bte(n,e){n.a=e}function wte(n,e){n.b=e}function Pvn(n,e){n.e=e}function gte(n,e){n.f=e}function dq(n,e){n.g=e}function pte(n,e){n.e=e}function vte(n,e){n.f=e}function mte(n,e){n.f=e}function kte(n,e){n.n=e}function yte(n,e){n.a=e}function jte(n,e){n.a=e}function Ete(n,e){n.c=e}function Cte(n,e){n.c=e}function Tte(n,e){n.d=e}function Mte(n,e){n.e=e}function Ate(n,e){n.g=e}function Ste(n,e){n.a=e}function Pte(n,e){n.c=e}function Ite(n,e){n.d=e}function Ote(n,e){n.e=e}function Dte(n,e){n.f=e}function $te(n,e){n.j=e}function Fte(n,e){n.a=e}function xte(n,e){n.b=e}function Lte(n,e){n.a=e}function Ivn(n){n.b=n.a}function Ovn(n){n.c=n.d.d}function $v(n){this.d=n}function ta(n){this.a=n}function Rp(n){this.a=n}function bq(n){this.a=n}function Mh(n){this.a=n}function A9(n){this.a=n}function Dvn(n){this.a=n}function wq(n){this.a=n}function S9(n){this.a=n}function gq(n){this.a=n}function pq(n){this.a=n}function vq(n){this.a=n}function L0(n){this.a=n}function P9(n){this.a=n}function I9(n){this.a=n}function mq(n){this.b=n}function _p(n){this.b=n}function Kp(n){this.b=n}function OI(n){this.a=n}function $vn(n){this.a=n}function kq(n){this.a=n}function DI(n){this.c=n}function E(n){this.c=n}function Fvn(n){this.c=n}function yq(n){this.a=n}function jq(n){this.a=n}function Eq(n){this.a=n}function Cq(n){this.a=n}function ut(n){this.a=n}function xvn(n){this.a=n}function Tq(n){this.a=n}function Mq(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function Fv(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function _vn(n){this.a=n}function Kvn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Wvn(n){this.a=n}function Xvn(n){this.a=n}function Vvn(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function n5n(n){this.a=n}function O9(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function tj(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function Hp(n){this.a=n}function Aq(n){this.a=n}function c5n(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function o5n(n){this.a=n}function f5n(n){this.a=n}function Sq(n){this.a=n}function Pq(n){this.a=n}function Iq(n){this.a=n}function ij(n){this.a=n}function rj(n){this.e=n}function qp(n){this.a=n}function h5n(n){this.a=n}function n2(n){this.a=n}function Oq(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function Dq(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function F5n(n){this.a=n}function x5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function _5n(n){this.a=n}function K5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function W5n(n){this.a=n}function X5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.a=n}function e6n(n){this.a=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.c=n}function u6n(n){this.b=n}function s6n(n){this.a=n}function o6n(n){this.a=n}function f6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function X1(n){this.a=n}function e2(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function F6n(n){this.a=n}function x6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function _6n(n){this.a=n}function K6n(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function cj(n){this.a=n}function W6n(n){this.a=n}function X6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function omn(n){this.a=n}function fmn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function gmn(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function $q(n){this.a=n}function kt(n){this.b=n}function ymn(n){this.f=n}function Fq(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.a=n}function Amn(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.a=n}function D9(n){this.a=n}function Imn(n){this.a=n}function Omn(n){this.b=n}function xq(n){this.c=n}function uj(n){this.e=n}function Dmn(n){this.a=n}function sj(n){this.a=n}function oj(n){this.a=n}function $I(n){this.a=n}function $mn(n){this.a=n}function Fmn(n){this.d=n}function Lq(n){this.a=n}function Nq(n){this.a=n}function cd(n){this.e=n}function Nte(){this.a=0}function gw(){dyn(this)}function X(){RO(this)}function we(){Cu(this)}function FI(){pTn(this)}function xmn(){}function ud(){this.c=p1n}function Bte(n,e){e.Wb(n)}function Lmn(n,e){n.b+=e}function Nmn(n){n.b=new JI}function T(n){return n.e}function Rte(n){return n.a}function _te(n){return n.a}function Kte(n){return n.a}function Hte(n){return n.a}function qte(n){return n.a}function Gte(){return null}function zte(){return null}function Ute(){EG(),iTe()}function Wte(n){n.b.tf(n.e)}function xv(n,e){n.b=e-n.b}function Lv(n,e){n.a=e-n.a}function Bmn(n,e){e.ad(n.a)}function Xte(n,e){si(e,n)}function Vte(n,e,t){n.Od(t,e)}function $9(n,e){n.e=e,e.b=n}function Bq(n){$f(),this.a=n}function Rmn(n){$f(),this.a=n}function _mn(n){$f(),this.a=n}function Rq(n){nb(),this.a=n}function Kmn(n){k3(),aR.be(n)}function ia(){Qyn.call(this)}function _q(){Qyn.call(this)}function Kq(){ia.call(this)}function xI(){ia.call(this)}function Hmn(){ia.call(this)}function F9(){ia.call(this)}function fu(){ia.call(this)}function Nv(){ia.call(this)}function ye(){ia.call(this)}function vs(){ia.call(this)}function qmn(){ia.call(this)}function ic(){ia.call(this)}function Gmn(){ia.call(this)}function zmn(){this.a=this}function fj(){this.Bb|=256}function Umn(){this.b=new Xkn}function Hq(){Hq=N,new we}function qq(){Kq.call(this)}function Wmn(n,e){n.length=e}function hj(n,e){W(n.a,e)}function Qte(n,e){nY(n.c,e)}function Jte(n,e){ci(n.b,e)}function Yte(n,e){KT(n.a,e)}function Zte(n,e){MF(n.a,e)}function Gp(n,e){et(n.e,e)}function t2(n){iM(n.c,n.b)}function nie(n,e){n.kc().Nb(e)}function Gq(n){this.a=Yge(n)}function hi(){this.a=new we}function Xmn(){this.a=new we}function lj(){this.a=new X}function LI(){this.a=new X}function zq(){this.a=new X}function Ns(){this.a=new Oln}function ra(){this.a=new TSn}function Uq(){this.a=new LH}function Wq(){this.a=new h7n}function Vmn(){this.a=new YMn}function Xq(){this.a=new bMn}function Vq(){this.a=new Bjn}function Qmn(){this.a=new X}function Qq(){this.a=new X}function Jmn(){this.a=new X}function Ymn(){this.a=new X}function Zmn(){this.d=new X}function n9n(){this.a=new hi}function e9n(){this.a=new we}function t9n(){this.b=new we}function i9n(){this.b=new X}function Jq(){this.e=new X}function r9n(){this.d=new X}function c9n(){this.a=new C4n}function u9n(){X.call(this)}function Yq(){lj.call(this)}function s9n(){kE.call(this)}function o9n(){Qq.call(this)}function NI(){Bv.call(this)}function Bv(){xmn.call(this)}function i2(){xmn.call(this)}function Zq(){i2.call(this)}function f9n(){zTn.call(this)}function h9n(){zTn.call(this)}function l9n(){uG.call(this)}function a9n(){uG.call(this)}function d9n(){uG.call(this)}function b9n(){sG.call(this)}function hu(){Tt.call(this)}function nG(){B2n.call(this)}function eG(){B2n.call(this)}function w9n(){O9n.call(this)}function g9n(){O9n.call(this)}function p9n(){we.call(this)}function v9n(){we.call(this)}function m9n(){we.call(this)}function k9n(){hi.call(this)}function BI(){RIn.call(this)}function y9n(){fj.call(this)}function RI(){Oz.call(this)}function _I(){Oz.call(this)}function tG(){we.call(this)}function KI(){we.call(this)}function j9n(){we.call(this)}function iG(){Yy.call(this)}function E9n(){Yy.call(this)}function C9n(){iG.call(this)}function T9n(){ZH.call(this)}function M9n(n){hIn.call(this,n)}function A9n(n){hIn.call(this,n)}function rG(n){rq.call(this,n)}function cG(n){n7n.call(this,n)}function eie(n){cG.call(this,n)}function tie(n){n7n.call(this,n)}function zp(){this.a=new Tt}function uG(){this.a=new hi}function sG(){this.a=new we}function S9n(){this.a=new X}function P9n(){this.j=new X}function oG(){this.a=new Rgn}function I9n(){this.a=new T8n}function O9n(){this.a=new X2n}function HI(){HI=N,uR=new V9n}function qI(){qI=N,cR=new X9n}function Rv(){Rv=N,rR=new Bt}function aj(){aj=N,fR=new Xyn}function iie(n){cG.call(this,n)}function rie(n){cG.call(this,n)}function D9n(n){m$.call(this,n)}function $9n(n){m$.call(this,n)}function F9n(n){uEn.call(this,n)}function GI(n){C5e.call(this,n)}function sd(n){_0.call(this,n)}function _v(n){Cj.call(this,n)}function fG(n){Cj.call(this,n)}function x9n(n){Cj.call(this,n)}function _r(n){kCn.call(this,n)}function L9n(n){_r.call(this,n)}function r2(){M9.call(this,{})}function dj(n){c3(),this.a=n}function Kv(n){n.b=null,n.c=0}function cie(n,e){n.e=e,NNn(n,e)}function uie(n,e){n.a=e,h6e(n)}function zI(n,e,t){n.a[e.g]=t}function sie(n,e,t){M4e(t,n,e)}function oie(n,e){$ue(e.i,n.n)}function N9n(n,e){Fwe(n).td(e)}function fie(n,e){return n*n/e}function B9n(n,e){return n.g-e.g}function hie(n){return new nj(n)}function lie(n){return new Z0(n)}function bj(n){_r.call(this,n)}function mr(n){_r.call(this,n)}function R9n(n){_r.call(this,n)}function UI(n){kCn.call(this,n)}function WI(n){AV(),this.a=n}function _9n(n){aEn(),this.a=n}function N0(n){ED(),this.f=n}function XI(n){ED(),this.f=n}function Up(n){_r.call(this,n)}function Hn(n){_r.call(this,n)}function $r(n){_r.call(this,n)}function K9n(n){_r.call(this,n)}function c2(n){_r.call(this,n)}function on(n){return _n(n),n}function K(n){return _n(n),n}function x9(n){return _n(n),n}function hG(n){return _n(n),n}function aie(n){return _n(n),n}function Hv(n){return n.b==n.c}function B0(n){return!!n&&n.b}function die(n){return!!n&&n.k}function bie(n){return!!n&&n.j}function Hu(n){_n(n),this.a=n}function lG(n){return ja(n),n}function qv(n){EW(n,n.length)}function t1(n){_r.call(this,n)}function Sf(n){_r.call(this,n)}function VI(n){_r.call(this,n)}function pw(n){_r.call(this,n)}function Gv(n){_r.call(this,n)}function Ee(n){_r.call(this,n)}function QI(n){Vz.call(this,n,0)}function JI(){iX.call(this,12,3)}function aG(){aG=N,din=new Q1n}function H9n(){H9n=N,ain=new Lc}function wj(){wj=N,dm=new H1}function q9n(){q9n=N,vzn=new ww}function G9n(){throw T(new ye)}function dG(){throw T(new ye)}function z9n(){throw T(new ye)}function wie(){throw T(new ye)}function gie(){throw T(new ye)}function pie(){throw T(new ye)}function YI(){this.a=Ce(pe(Ji))}function u2(n){$f(),this.a=pe(n)}function U9n(n,e){n.Td(e),e.Sd(n)}function vie(n,e){n.a.ec().Mc(e)}function mie(n,e,t){n.c.lf(e,t)}function bG(n){mr.call(this,n)}function Pf(n){Hn.call(this,n)}function i1(){A9.call(this,"")}function zv(){A9.call(this,"")}function V1(){A9.call(this,"")}function R0(){A9.call(this,"")}function wG(n){mr.call(this,n)}function Wp(n){_p.call(this,n)}function ZI(n){lE.call(this,n)}function W9n(n){Wp.call(this,n)}function X9n(){AI.call(this,null)}function V9n(){AI.call(this,null)}function gj(){gj=N,k3()}function Q9n(){Q9n=N,Szn=Z4e()}function J9n(n){return n.a?n.b:0}function kie(n){return n.a?n.b:0}function yie(n,e){return n.a-e.a}function jie(n,e){return n.a-e.a}function Eie(n,e){return n.a-e.a}function pj(n,e){return WX(n,e)}function M(n,e){return pMn(n,e)}function Cie(n,e){return e in n.a}function Y9n(n,e){return n.f=e,n}function Tie(n,e){return n.b=e,n}function Z9n(n,e){return n.c=e,n}function Mie(n,e){return n.g=e,n}function gG(n,e){return n.a=e,n}function pG(n,e){return n.f=e,n}function Aie(n,e){return n.k=e,n}function vG(n,e){return n.a=e,n}function Sie(n,e){return n.e=e,n}function mG(n,e){return n.e=e,n}function Pie(n,e){return n.f=e,n}function Iie(n,e){n.b=!0,n.d=e}function Oie(n,e){n.b=new kr(e)}function Die(n,e,t){e.td(n.a[t])}function $ie(n,e,t){e.we(n.a[t])}function Fie(n,e){return n.b-e.b}function xie(n,e){return n.g-e.g}function Lie(n,e){return n.s-e.s}function Nie(n,e){return n?0:e-1}function n8n(n,e){return n?0:e-1}function Bie(n,e){return n?e-1:0}function Rie(n,e){return e.Yf(n)}function od(n,e){return n.b=e,n}function vj(n,e){return n.a=e,n}function fd(n,e){return n.c=e,n}function hd(n,e){return n.d=e,n}function ld(n,e){return n.e=e,n}function kG(n,e){return n.f=e,n}function Uv(n,e){return n.a=e,n}function Xp(n,e){return n.b=e,n}function Vp(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function Dn(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function _ie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function e8n(n,e){return n.k=e,n}function Kie(n,e){return n.j=e,n}function Hie(n,e){yl(),Hr(e,n)}function qie(n,e,t){Nfe(n.a,e,t)}function t8n(n){mTn.call(this,n)}function yG(n){mTn.call(this,n)}function mj(n){uD.call(this,n)}function i8n(n){u2e.call(this,n)}function Q1(n){Ld.call(this,n)}function r8n(n){XD.call(this,n)}function c8n(n){XD.call(this,n)}function u8n(){Mz.call(this,"")}function Li(){this.a=0,this.b=0}function s8n(){this.b=0,this.a=0}function o8n(n,e){n.b=0,hb(n,e)}function Gie(n,e){n.c=e,n.b=!0}function f8n(n,e){return n.c._b(e)}function xo(n){return n.e&&n.e()}function nO(n){return n?n.d:null}function h8n(n,e){return LDn(n.b,e)}function zie(n){return n?n.g:null}function Uie(n){return n?n.i:null}function J1(n){return Ph(n),n.o}function ad(){ad=N,Mne=h4e()}function l8n(){l8n=N,mi=jve()}function Qp(){Qp=N,g1n=a4e()}function a8n(){a8n=N,hee=l4e()}function jG(){jG=N,oc=s6e()}function EG(){EG=N,Wl=N3()}function d8n(){throw T(new ye)}function b8n(){throw T(new ye)}function w8n(){throw T(new ye)}function g8n(){throw T(new ye)}function p8n(){throw T(new ye)}function v8n(){throw T(new ye)}function kj(n){this.a=new s2(n)}function CG(n){d_n(),gTe(this,n)}function Y1(n){this.a=new AD(n)}function vw(n,e){for(;n.ye(e););}function TG(n,e){for(;n.sd(e););}function mw(n,e){return n.a+=e,n}function eO(n,e){return n.a+=e,n}function r1(n,e){return n.a+=e,n}function dd(n,e){return n.a+=e,n}function Wv(n){return fl(n),n.a}function yj(n){return n.b!=n.d.c}function m8n(n){return n.l|n.m<<22}function MG(n,e){return n.d[e.p]}function k8n(n,e){return Q8e(n,e)}function AG(n,e,t){n.splice(e,t)}function y8n(n){n.c?rBn(n):cBn(n)}function jj(n){this.a=0,this.b=n}function j8n(){this.a=new B7(Pon)}function E8n(){this.b=new B7(won)}function C8n(){this.b=new B7(OK)}function T8n(){this.b=new B7(OK)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function O8n(){throw T(new ye)}function D8n(){throw T(new ye)}function $8n(){throw T(new ye)}function F8n(){throw T(new ye)}function x8n(){throw T(new ye)}function Wie(){throw T(new ic)}function Xie(){throw T(new ic)}function L9(n){this.a=new L8n(n)}function L8n(n){cbe(this,n,cve())}function N9(n){return!n||iTn(n)}function B9(n){return Mf[n]!=-1}function Vie(){_A!=0&&(_A=0),KA=-1}function N8n(){iR==null&&(iR=[])}function Qie(n,e){$x(R(n.a),e)}function Jie(n,e){$x(R(n.a),e)}function R9(n,e){Sw.call(this,n,e)}function Jp(n,e){R9.call(this,n,e)}function SG(n,e){this.b=n,this.c=e}function B8n(n,e){this.b=n,this.a=e}function R8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.a=n,this.b=e}function q8n(n,e){this.a=n,this.b=e}function G8n(n,e){this.a=n,this.b=e}function z8n(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.b=e}function W8n(n,e){this.b=n,this.a=e}function X8n(n,e){this.b=n,this.a=e}function V8n(n,e){this.b=n,this.a=e}function Q8n(n,e){this.b=n,this.a=e}function Oe(n,e){this.f=n,this.g=e}function Yp(n,e){this.e=n,this.d=e}function bd(n,e){this.g=n,this.i=e}function tO(n,e){this.a=n,this.b=e}function J8n(n,e){this.a=n,this.f=e}function Y8n(n,e){this.b=n,this.c=e}function Yie(n,e){this.a=n,this.b=e}function Z8n(n,e){this.a=n,this.b=e}function iO(n,e){this.a=n,this.b=e}function n7n(n){Bz(n.dc()),this.c=n}function Ej(n){this.b=u(pe(n),83)}function e7n(n){this.a=u(pe(n),83)}function _0(n){this.a=u(pe(n),15)}function t7n(n){this.a=u(pe(n),15)}function Cj(n){this.b=u(pe(n),47)}function Tj(){this.q=new y.Date}function nh(){nh=N,Sin=new tln}function Zp(){Zp=N,X4=new nln}function Xv(n){return n.f.c+n.g.c}function _9(n,e){return n.b.Hc(e)}function i7n(n,e){return n.b.Ic(e)}function r7n(n,e){return n.b.Qc(e)}function c7n(n,e){return n.b.Hc(e)}function u7n(n,e){return n.c.uc(e)}function Ah(n,e){return n.a._b(e)}function s7n(n,e){return tt(n.c,e)}function o7n(n,e){return Uu(n.b,e)}function f7n(n,e){return n>e&&e0}function cO(n,e){return fc(n,e)<0}function n5(n,e){return n.a.get(e)}function lre(n,e){return e.split(n)}function S7n(n,e){return Uu(n.e,e)}function LG(n){return _n(n),!1}function xj(n){xn.call(this,n,21)}function are(n,e){cMn.call(this,n,e)}function Lj(n,e){Oe.call(this,n,e)}function uO(n,e){Oe.call(this,n,e)}function NG(n){_D(),uEn.call(this,n)}function BG(n,e){fCn(n,n.length,e)}function z9(n,e){BCn(n,n.length,e)}function dre(n,e,t){e.ud(n.a.Ge(t))}function bre(n,e,t){e.we(n.a.Fe(t))}function wre(n,e,t){e.td(n.a.Kb(t))}function gre(n,e,t){n.Mb(t)&&e.td(t)}function e5(n,e,t){n.splice(e,0,t)}function pre(n,e){return au(n.e,e)}function Nj(n,e){this.d=n,this.e=e}function P7n(n,e){this.b=n,this.a=e}function I7n(n,e){this.b=n,this.a=e}function RG(n,e){this.b=n,this.a=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function F7n(n,e){this.a=n,this.b=e}function f2(n,e){this.a=n,this.b=e}function _G(n,e){this.b=n,this.a=e}function KG(n,e){this.b=n,this.a=e}function Bj(n,e){Oe.call(this,n,e)}function Rj(n,e){Oe.call(this,n,e)}function HG(n,e){Oe.call(this,n,e)}function qG(n,e){Oe.call(this,n,e)}function kw(n,e){Oe.call(this,n,e)}function sO(n,e){Oe.call(this,n,e)}function oO(n,e){Oe.call(this,n,e)}function fO(n,e){Oe.call(this,n,e)}function _j(n,e){Oe.call(this,n,e)}function GG(n,e){Oe.call(this,n,e)}function hO(n,e){Oe.call(this,n,e)}function U9(n,e){Oe.call(this,n,e)}function Kj(n,e){Oe.call(this,n,e)}function lO(n,e){Oe.call(this,n,e)}function t5(n,e){Oe.call(this,n,e)}function zG(n,e){Oe.call(this,n,e)}function zt(n,e){Oe.call(this,n,e)}function Hj(n,e){Oe.call(this,n,e)}function x7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function R7n(n,e){this.a=n,this.b=e}function _7n(n,e){this.a=n,this.b=e}function K7n(n,e){this.a=n,this.b=e}function H7n(n,e){this.a=n,this.b=e}function q7n(n,e){this.a=n,this.b=e}function UG(n,e){this.b=n,this.a=e}function G7n(n,e){this.b=n,this.a=e}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.b=n,this.a=e}function t3(n,e){this.c=n,this.d=e}function W7n(n,e){this.e=n,this.d=e}function X7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.b=e,this.c=n}function qj(n,e){Oe.call(this,n,e)}function W9(n,e){Oe.call(this,n,e)}function aO(n,e){Oe.call(this,n,e)}function i5(n,e){Oe.call(this,n,e)}function WG(n,e){Oe.call(this,n,e)}function dO(n,e){Oe.call(this,n,e)}function bO(n,e){Oe.call(this,n,e)}function X9(n,e){Oe.call(this,n,e)}function XG(n,e){Oe.call(this,n,e)}function wO(n,e){Oe.call(this,n,e)}function r5(n,e){Oe.call(this,n,e)}function VG(n,e){Oe.call(this,n,e)}function c5(n,e){Oe.call(this,n,e)}function u5(n,e){Oe.call(this,n,e)}function H0(n,e){Oe.call(this,n,e)}function gO(n,e){Oe.call(this,n,e)}function pO(n,e){Oe.call(this,n,e)}function QG(n,e){Oe.call(this,n,e)}function s5(n,e){Oe.call(this,n,e)}function vO(n,e){Oe.call(this,n,e)}function Gj(n,e){Oe.call(this,n,e)}function V9(n,e){Oe.call(this,n,e)}function Q9(n,e){Oe.call(this,n,e)}function h2(n,e){Oe.call(this,n,e)}function mO(n,e){Oe.call(this,n,e)}function JG(n,e){Oe.call(this,n,e)}function kO(n,e){Oe.call(this,n,e)}function yO(n,e){Oe.call(this,n,e)}function YG(n,e){Oe.call(this,n,e)}function jO(n,e){Oe.call(this,n,e)}function EO(n,e){Oe.call(this,n,e)}function CO(n,e){Oe.call(this,n,e)}function TO(n,e){Oe.call(this,n,e)}function ZG(n,e){Oe.call(this,n,e)}function Q7n(n,e){this.b=n,this.a=e}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function nz(n,e){Oe.call(this,n,e)}function ez(n,e){Oe.call(this,n,e)}function ekn(n,e){this.b=n,this.d=e}function tz(n,e){Oe.call(this,n,e)}function iz(n,e){Oe.call(this,n,e)}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function zj(n,e){Oe.call(this,n,e)}function o5(n,e){Oe.call(this,n,e)}function rz(n,e){Oe.call(this,n,e)}function cz(n,e){Oe.call(this,n,e)}function uz(n,e){Oe.call(this,n,e)}function MO(n,e){Oe.call(this,n,e)}function sz(n,e){Oe.call(this,n,e)}function AO(n,e){Oe.call(this,n,e)}function Uj(n,e){Oe.call(this,n,e)}function SO(n,e){Oe.call(this,n,e)}function PO(n,e){Oe.call(this,n,e)}function J9(n,e){Oe.call(this,n,e)}function IO(n,e){Oe.call(this,n,e)}function oz(n,e){Oe.call(this,n,e)}function Y9(n,e){Oe.call(this,n,e)}function fz(n,e){Oe.call(this,n,e)}function vre(n,e){return au(n.c,e)}function mre(n,e){return au(e.b,n)}function kre(n,e){return-n.b.Je(e)}function hz(n,e){return au(n.g,e)}function Z9(n,e){Oe.call(this,n,e)}function l2(n,e){Oe.call(this,n,e)}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function fn(n,e){this.a=n,this.b=e}function f5(n,e){Oe.call(this,n,e)}function h5(n,e){Oe.call(this,n,e)}function n8(n,e){Oe.call(this,n,e)}function OO(n,e){Oe.call(this,n,e)}function Wj(n,e){Oe.call(this,n,e)}function l5(n,e){Oe.call(this,n,e)}function DO(n,e){Oe.call(this,n,e)}function Xj(n,e){Oe.call(this,n,e)}function yw(n,e){Oe.call(this,n,e)}function e8(n,e){Oe.call(this,n,e)}function a5(n,e){Oe.call(this,n,e)}function d5(n,e){Oe.call(this,n,e)}function t8(n,e){Oe.call(this,n,e)}function Vj(n,e){Oe.call(this,n,e)}function jw(n,e){Oe.call(this,n,e)}function Qj(n,e){Oe.call(this,n,e)}function ukn(n,e){this.a=n,this.b=e}function skn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function Si(n,e){this.a=n,this.b=e}function Jj(n,e){Oe.call(this,n,e)}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.a=n,this.b=e}function bkn(n,e){this.a=n,this.b=e}function wkn(n,e){this.a=n,this.b=e}function gkn(n,e){this.a=n,this.b=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.b=n,this.a=e}function mkn(n,e){this.b=n,this.a=e}function kkn(n,e){this.b=n,this.a=e}function ykn(n,e){this.b=n,this.a=e}function jkn(n,e){this.a=n,this.b=e}function Ekn(n,e){this.a=n,this.b=e}function yre(n,e){J9e(n.a,u(e,56))}function Ckn(n,e){f0e(n.a,u(e,11))}function jre(n,e){return h3(),e!=n}function Tkn(){return Q9n(),new Szn}function Mkn(){c$(),this.b=new hi}function Akn(){hM(),this.a=new hi}function Skn(){tX(),lW.call(this)}function a2(n,e){Oe.call(this,n,e)}function Pkn(n,e){this.a=n,this.b=e}function Ikn(n,e){this.a=n,this.b=e}function Yj(n,e){this.a=n,this.b=e}function Okn(n,e){this.a=n,this.b=e}function Dkn(n,e){this.a=n,this.b=e}function $kn(n,e){this.a=n,this.b=e}function Fkn(n,e){this.d=n,this.b=e}function lz(n,e){this.d=n,this.e=e}function xkn(n,e){this.f=n,this.c=e}function i8(n,e){this.b=n,this.c=e}function az(n,e){this.i=n,this.g=e}function Lkn(n,e){this.e=n,this.a=e}function Nkn(n,e){this.a=n,this.b=e}function dz(n,e){n.i=null,nT(n,e)}function Ere(n,e){n&&it($y,n,e)}function Bkn(n,e){return NF(n.a,e)}function Zj(n){return g7(n.c,n.b)}function Vr(n){return n?n.dd():null}function B(n){return n??null}function q0(n){return typeof n===X2}function G0(n){return typeof n===UZ}function ki(n){return typeof n===EL}function el(n,e){return n.Hd().Xb(e)}function nE(n,e){return Rbe(n.Kc(),e)}function gd(n,e){return fc(n,e)==0}function Cre(n,e){return fc(n,e)>=0}function b5(n,e){return fc(n,e)!=0}function Tre(n){return""+(_n(n),n)}function r8(n,e){return n.substr(e)}function Rkn(n){return Fu(n),n.d.gc()}function $O(n){return yme(n,n.c),n}function eE(n){return A5(n==null),n}function w5(n,e){return n.a+=""+e,n}function dr(n,e){return n.a+=""+e,n}function g5(n,e){return n.a+=""+e,n}function rc(n,e){return n.a+=""+e,n}function De(n,e){return n.a+=""+e,n}function bz(n,e){return n.a+=""+e,n}function _kn(n,e){Kt(n,e,n.a,n.a.a)}function ua(n,e){Kt(n,e,n.c.b,n.c)}function Mre(n,e,t){VFn(e,Mx(n,t))}function Are(n,e,t){VFn(e,Mx(n,t))}function Sre(n,e){k0e(new ie(n),e)}function Kkn(n,e){n.q.setTime($d(e))}function Hkn(n,e){kW.call(this,n,e)}function qkn(n,e){kW.call(this,n,e)}function FO(n,e){kW.call(this,n,e)}function Gkn(n){Cu(this),Z5(this,n)}function wz(n){return Ln(n,0),null}function Lo(n){return n.a=0,n.b=0,n}function zkn(n,e){return n.a=e.g+1,n}function Pre(n,e){return n.j[e.p]==2}function gz(n){return lhe(u(n,79))}function Ukn(){Ukn=N,jUn=Fe(qF())}function Wkn(){Wkn=N,RWn=Fe(PNn())}function Xkn(){this.b=new s2(sb(12))}function Vkn(){this.b=0,this.a=!1}function Qkn(){this.b=0,this.a=!1}function p5(n){this.a=n,TI.call(this)}function Jkn(n){this.a=n,TI.call(this)}function In(n,e){ri.call(this,n,e)}function xO(n,e){V0.call(this,n,e)}function Ew(n,e){az.call(this,n,e)}function LO(n,e){H3.call(this,n,e)}function Ykn(n,e){c8.call(this,n,e)}function He(n,e){$j(),it(eI,n,e)}function NO(n,e){return Zu(n.a,0,e)}function Zkn(n,e){return n.a.a.a.cc(e)}function nyn(n,e){return B(n)===B(e)}function Ire(n,e){return ni(n.a,e.a)}function Ore(n,e){return Wc(n.a,e.a)}function Dre(n,e){return xCn(n.a,e.a)}function If(n,e){return n.indexOf(e)}function pd(n,e){return n==e?0:n?1:-1}function tE(n){return n<10?"0"+n:""+n}function $re(n){return pe(n),new p5(n)}function eyn(n){return Bc(n.l,n.m,n.h)}function i3(n){return Gt((_n(n),n))}function Fre(n){return Gt((_n(n),n))}function tyn(n,e){return Wc(n.g,e.g)}function Fr(n){return typeof n===UZ}function xre(n){return n==b0||n==Hb}function Lre(n){return n==b0||n==Kb}function pz(n){return xr(n.b.b,n,0)}function iyn(n){this.a=Tkn(),this.b=n}function ryn(n){this.a=Tkn(),this.b=n}function Nre(n,e){return W(n.a,e),e}function Bre(n,e){return W(n.c,e),n}function cyn(n,e){return cs(n.a,e),n}function Rre(n,e){return wo(),e.a+=n}function _re(n,e){return wo(),e.a+=n}function Kre(n,e){return wo(),e.c+=n}function vz(n,e){S3(n,0,n.length,e)}function Sh(){Tq.call(this,new ba)}function uyn(){xE.call(this,0,0,0,0)}function d2(){ys.call(this,0,0,0,0)}function kr(n){this.a=n.a,this.b=n.b}function tl(n){return n==Zs||n==Ao}function r3(n){return n==Yh||n==Jh}function syn(n){return n==xg||n==Fg}function Cw(n){return n!=Ef&&n!=ql}function qu(n){return n.Lg()&&n.Mg()}function oyn(n){return JE(u(n,118))}function iE(n){return cs(new li,n)}function fyn(n,e){return new H3(e,n)}function Hre(n,e){return new H3(e,n)}function mz(n,e,t){UC(n,e),WC(n,t)}function rE(n,e,t){Rd(n,e),Bd(n,t)}function Yo(n,e,t){nu(n,e),eu(n,t)}function cE(n,e,t){D3(n,e),F3(n,t)}function uE(n,e,t){$3(n,e),x3(n,t)}function BO(n,e){X3(n,e),L3(n,n.D)}function kz(n){xkn.call(this,n,!0)}function hyn(n,e,t){fU.call(this,n,e,t)}function il(n){jl(),qbe.call(this,n)}function lyn(){Lj.call(this,"Head",1)}function ayn(){Lj.call(this,"Tail",3)}function RO(n){n.c=F(Zn,rn,1,0,5,1)}function dyn(n){n.a=F(Zn,rn,1,8,5,1)}function byn(n){Zc(n.xf(),new t5n(n))}function Tw(n){return n!=null?mt(n):0}function qre(n,e){return ob(e,ef(n))}function Gre(n,e){return ob(e,ef(n))}function zre(n,e){return n[n.length]=e}function Ure(n,e){return n[n.length]=e}function yz(n){return zoe(n.b.Kc(),n.a)}function Wre(n,e){return ZC(BD(n.d),e)}function Xre(n,e){return ZC(BD(n.g),e)}function Vre(n,e){return ZC(BD(n.j),e)}function tr(n,e){ri.call(this,n.b,e)}function vd(n){xE.call(this,n,n,n,n)}function jz(n){return n.b&&uL(n),n.a}function Ez(n){return n.b&&uL(n),n.c}function Qre(n,e){vf||(n.b=e)}function _O(n,e,t){return St(n,e,t),t}function wyn(n,e,t){St(n.c[e.g],e.g,t)}function Jre(n,e,t){u(n.c,69).Xh(e,t)}function Yre(n,e,t){Yo(t,t.i+n,t.j+e)}function Zre(n,e){me(bc(n.a),PMn(e))}function nce(n,e){me(Du(n.a),IMn(e))}function v5(n){Je(),cd.call(this,n)}function ece(n){return n==null?0:mt(n)}function gyn(){gyn=N,hK=new f6(cH)}function je(){je=N,new pyn,new X}function pyn(){new we,new we,new we}function Cz(){Cz=N,Hq(),bin=new we}function Zo(){Zo=N,y.Math.log(2)}function ms(){ms=N,Ch=(E7n(),Dne)}function tce(){throw T(new t1(izn))}function ice(){throw T(new t1(izn))}function rce(){throw T(new t1(rzn))}function cce(){throw T(new t1(rzn))}function vyn(n){this.a=n,HU.call(this,n)}function KO(n){this.a=n,Ej.call(this,n)}function HO(n){this.a=n,Ej.call(this,n)}function wi(n,e){mD(n.c,n.c.length,e)}function Kr(n){return n.ae?1:0}function kyn(n,e){return fc(n,e)>0?n:e}function Bc(n,e,t){return{l:n,m:e,h:t}}function uce(n,e){n.a!=null&&Ckn(e,n.a)}function yyn(n){n.a=new aI,n.c=new aI}function sE(n){this.b=n,this.a=new X}function jyn(n){this.b=new san,this.a=n}function Mz(n){vU.call(this),this.a=n}function Eyn(){Lj.call(this,"Range",2)}function Cyn(){kJ(),this.a=new B7(Hrn)}function sce(n,e){pe(e),Iw(n).Jc(new ju)}function oce(n,e){return ns(),e.n.b+=n}function fce(n,e,t){return it(n.g,t,e)}function hce(n,e,t){return it(n.k,t,e)}function lce(n,e){return it(n.a,e.a,e)}function Mw(n,e,t){return _Q(e,t,n.c)}function Az(n){return new fn(n.c,n.d)}function ace(n){return new fn(n.c,n.d)}function Qr(n){return new fn(n.a,n.b)}function Tyn(n,e){return xEe(n.a,e,null)}function dce(n){Hi(n,null),Ci(n,null)}function Myn(n){s$(n,null),o$(n,null)}function Ayn(){c8.call(this,null,null)}function Syn(){wE.call(this,null,null)}function Sz(n){this.a=n,we.call(this)}function bce(n){this.b=(Pn(),new DI(n))}function oE(n){n.j=F(Ain,q,310,0,0,1)}function wce(n,e,t){n.c.Vc(e,u(t,133))}function gce(n,e,t){n.c.ji(e,u(t,133))}function Pyn(n,e){de(n),n.Gc(u(e,15))}function m5(n,e){return Jje(n.c,n.b,e)}function pce(n,e){return new Jyn(n.Kc(),e)}function qO(n,e){return gwe(n.Kc(),e)!=-1}function Pz(n,e){return n.a.Bc(e)!=null}function fE(n){return n.Ob()?n.Pb():null}function Iyn(n){return Hs(n,0,n.length)}function I(n,e){return n!=null&&WF(n,e)}function vce(n,e){n.q.setHours(e),S6(n,e)}function Oyn(n,e){n.c&&(ZU(e),iMn(e))}function mce(n,e,t){u(n.Kb(t),164).Nb(e)}function kce(n,e,t){return SEe(n,e,t),t}function Dyn(n,e,t){n.a=e^1502,n.b=t^tN}function GO(n,e,t){return n.a[e.g][t.g]}function nf(n,e){return n.a[e.c.p][e.p]}function yce(n,e){return n.e[e.c.p][e.p]}function jce(n,e){return n.c[e.c.p][e.p]}function Ece(n,e){return n.j[e.p]=D9e(e)}function Cce(n,e){return DX(n.f,e.tg())}function Tce(n,e){return DX(n.b,e.tg())}function Mce(n,e){return n.a0?e*e/n:e*e*100}function Jce(n,e){return n>0?e/(n*n):e*100}function Yce(n,e,t){return W(e,e$n(n,t))}function Zce(n,e,t){DC(),n.Xe(e)&&t.td(n)}function s3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function U0(n,e,t){return n.a+=e,n.b+=t,n}function nue(n,e,t){return n.a*=e,n.b*=t,n}function o8(n,e,t){return n.a-=e,n.b-=t,n}function Zz(n,e){return n.a=e.a,n.b=e.b,n}function vE(n){return n.a=-n.a,n.b=-n.b,n}function fjn(n){this.c=n,this.a=1,this.b=1}function hjn(n){this.c=n,nu(n,0),eu(n,0)}function ljn(n){Tt.call(this),V5(this,n)}function ajn(n){yL(),Nmn(this),this.mf(n)}function djn(n,e){Zv(),c8.call(this,n,e)}function nU(n,e){c1(),wE.call(this,n,e)}function bjn(n,e){c1(),wE.call(this,n,e)}function wjn(n,e){c1(),nU.call(this,n,e)}function Gu(n,e,t){Xu.call(this,n,e,t,2)}function JO(n,e){ms(),FE.call(this,n,e)}function gjn(n,e){ms(),JO.call(this,n,e)}function eU(n,e){ms(),JO.call(this,n,e)}function pjn(n,e){ms(),eU.call(this,n,e)}function tU(n,e){ms(),FE.call(this,n,e)}function vjn(n,e){ms(),tU.call(this,n,e)}function mjn(n,e){ms(),FE.call(this,n,e)}function eue(n,e){return n.c.Fc(u(e,133))}function iU(n,e,t){return jM(G8(n,e),t)}function tue(n,e,t){return e.Qk(n.e,n.c,t)}function iue(n,e,t){return e.Rk(n.e,n.c,t)}function YO(n,e){return pl(n.e,u(e,49))}function rue(n,e,t){s6(Du(n.a),e,IMn(t))}function cue(n,e,t){s6(bc(n.a),e,PMn(t))}function rU(n,e){e.$modCount=n.$modCount}function C5(){C5=N,Xm=new kt("root")}function o3(){o3=N,xy=new w9n,new g9n}function kjn(){this.a=new Od,this.b=new Od}function cU(){RIn.call(this),this.Bb|=Yi}function yjn(){Oe.call(this,"GROW_TREE",0)}function uue(n){return n==null?null:CCe(n)}function sue(n){return n==null?null:D5e(n)}function oue(n){return n==null?null:Nr(n)}function fue(n){return n==null?null:Nr(n)}function Ph(n){n.o==null&&u9e(n)}function sn(n){return A5(n==null||q0(n)),n}function Y(n){return A5(n==null||G0(n)),n}function Ce(n){return A5(n==null||ki(n)),n}function uU(n){this.q=new y.Date($d(n))}function f8(n,e){this.c=n,Yp.call(this,n,e)}function mE(n,e){this.a=n,f8.call(this,n,e)}function hue(n,e){this.d=n,Ovn(this),this.b=e}function sU(n,e){P$.call(this,n),this.a=e}function oU(n,e){P$.call(this,n),this.a=e}function lue(n){xQ.call(this,0,0),this.f=n}function fU(n,e,t){IC.call(this,n,e,t,null)}function jjn(n,e,t){IC.call(this,n,e,t,null)}function aue(n,e,t){return n.ue(e,t)<=0?t:e}function due(n,e,t){return n.ue(e,t)<=0?e:t}function bue(n,e){return u(xd(n.b,e),149)}function wue(n,e){return u(xd(n.c,e),229)}function ZO(n){return u(un(n.a,n.b),287)}function Ejn(n){return new fn(n.c,n.d+n.a)}function Cjn(n){return ns(),syn(u(n,197))}function W0(){W0=N,prn=Cn((Qu(),id))}function gue(n,e){e.a?e7e(n,e):zO(n.a,e.b)}function Tjn(n,e){vf||W(n.a,e)}function pue(n,e){return H9(),K3(e.d.i,n)}function vue(n,e){return x2(),new ABn(e,n)}function Df(n,e){return T8(e,ann),n.f=e,n}function hU(n,e,t){return t=os(n,e,3,t),t}function lU(n,e,t){return t=os(n,e,6,t),t}function aU(n,e,t){return t=os(n,e,9,t),t}function h8(n,e,t){++n.j,n.Ki(),A$(n,e,t)}function Mjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function Ajn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Sjn(n,e,t){return MZ(n.c,n.b,e,t)}function dU(n,e){return(e&nt)%n.d.length}function ri(n,e){kt.call(this,n),this.a=e}function bU(n,e){xq.call(this,n),this.a=e}function nD(n,e){xq.call(this,n),this.a=e}function Pjn(n,e){this.c=n,Ld.call(this,e)}function Ijn(n,e){this.a=n,Omn.call(this,e)}function l8(n,e){this.a=n,Omn.call(this,e)}function Ojn(n){this.a=(rs(n,Pb),new Pc(n))}function Djn(n){this.a=(rs(n,Pb),new Pc(n))}function a8(n){return!n.a&&(n.a=new vr),n.a}function $jn(n){return n>8?0:n+1}function mue(n,e){return qn(),n==e?0:n?1:-1}function wU(n,e,t){return m2(n,u(e,22),t)}function kue(n,e,t){return n.apply(e,t)}function Fjn(n,e,t){return n.a+=Hs(e,0,t),n}function gU(n,e){var t;return t=n.e,n.e=e,t}function yue(n,e){var t;t=n[eN],t.call(n,e)}function jue(n,e){var t;t=n[eN],t.call(n,e)}function X0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function xjn(n){Cu(n.e),n.d.b=n.d,n.d.a=n.d}function d8(n){n.b?d8(n.b):n.f.c.zc(n.e,n.d)}function Eue(n,e,t){ca(),Svn(n,e.Ce(n.a,t))}function Cue(n,e){return nO(p$n(n.a,e,!0))}function Tue(n,e){return nO(v$n(n.a,e,!0))}function bo(n,e){return pj(new Array(e),n)}function eD(n){return String.fromCharCode(n)}function Mue(n){return n==null?null:n.message}function Ljn(){this.a=new X,this.b=new X}function Njn(){this.a=new LH,this.b=new Umn}function Bjn(){this.b=new Li,this.c=new X}function pU(){this.d=new Li,this.e=new Li}function vU(){this.n=new Li,this.o=new Li}function kE(){this.n=new i2,this.i=new d2}function Rjn(){this.a=new v4n,this.b=new cwn}function _jn(){this.a=new X,this.d=new X}function Kjn(){this.b=new hi,this.a=new hi}function Hjn(){this.b=new we,this.a=new we}function qjn(){this.b=new E8n,this.a=new sgn}function Gjn(){kE.call(this),this.a=new Li}function T5(n){Jbe.call(this,n,(FC(),vR))}function mU(n,e,t,i){xE.call(this,n,e,t,i)}function Aue(n,e,t){t!=null&&JC(e,rx(n,t))}function Sue(n,e,t){t!=null&&YC(e,rx(n,t))}function kU(n,e,t){return t=os(n,e,11,t),t}function st(n,e){return n.a+=e.a,n.b+=e.b,n}function yi(n,e){return n.a-=e.a,n.b-=e.b,n}function Pue(n,e){return n.n.a=(_n(e),e+10)}function Iue(n,e){return n.n.a=(_n(e),e+10)}function Oue(n,e){return e==n||o4(sM(e),n)}function zjn(n,e){return it(n.a,e,"")==null}function Due(n,e){return H9(),!K3(e.d.i,n)}function $ue(n,e){tl(n.f)?Qme(n,e):Fve(n,e)}function Fue(n,e){var t;return t=e.Hh(n.a),t}function V0(n,e){mr.call(this,rm+n+Ra+e)}function g2(n,e,t,i){V.call(this,n,e,t,i)}function yU(n,e,t,i){V.call(this,n,e,t,i)}function Ujn(n,e,t,i){yU.call(this,n,e,t,i)}function Wjn(n,e,t,i){zE.call(this,n,e,t,i)}function tD(n,e,t,i){zE.call(this,n,e,t,i)}function jU(n,e,t,i){zE.call(this,n,e,t,i)}function Xjn(n,e,t,i){tD.call(this,n,e,t,i)}function EU(n,e,t,i){tD.call(this,n,e,t,i)}function Fn(n,e,t,i){jU.call(this,n,e,t,i)}function Vjn(n,e,t,i){EU.call(this,n,e,t,i)}function Qjn(n,e,t,i){yW.call(this,n,e,t,i)}function Jjn(n,e,t){this.a=n,Vz.call(this,e,t)}function Yjn(n,e,t){this.c=e,this.b=t,this.a=n}function xue(n,e,t){return n.d=u(e.Kb(t),164)}function CU(n,e){return n.Aj().Nh().Kh(n,e)}function TU(n,e){return n.Aj().Nh().Ih(n,e)}function Zjn(n,e){return _n(n),B(n)===B(e)}function Mn(n,e){return _n(n),B(n)===B(e)}function iD(n,e){return nO(p$n(n.a,e,!1))}function rD(n,e){return nO(v$n(n.a,e,!1))}function Lue(n,e){return n.b.sd(new D7n(n,e))}function Nue(n,e){return n.b.sd(new $7n(n,e))}function nEn(n,e){return n.b.sd(new F7n(n,e))}function MU(n,e,t){return n.lastIndexOf(e,t)}function Bue(n,e,t){return ni(n[e.b],n[t.b])}function Rue(n,e){return H(e,(nn(),Jk),n)}function _ue(n,e){return Wc(e.a.d.p,n.a.d.p)}function Kue(n,e){return Wc(n.a.d.p,e.a.d.p)}function Hue(n,e){return ni(n.c-n.s,e.c-e.s)}function eEn(n){return n.c?xr(n.c.a,n,0):-1}function que(n){return n<100?null:new Q1(n)}function p2(n){return n==td||n==Eh||n==Ac}function tEn(n,e){return I(e,15)&&oBn(n.c,e)}function Gue(n,e){vf||e&&(n.d=e)}function cD(n,e){var t;return t=e,!!VV(n,t)}function AU(n,e){this.c=n,DD.call(this,n,e)}function iEn(n){this.c=n,FO.call(this,IM,0)}function rEn(n,e){Voe.call(this,n,n.length,e)}function zue(n,e,t){return u(n.c,69).lk(e,t)}function yE(n,e,t){return u(n.c,69).mk(e,t)}function Uue(n,e,t){return tue(n,u(e,332),t)}function SU(n,e,t){return iue(n,u(e,332),t)}function Wue(n,e,t){return txn(n,u(e,332),t)}function cEn(n,e,t){return zve(n,u(e,332),t)}function M5(n,e){return e==null?null:ab(n.b,e)}function PU(n){return G0(n)?(_n(n),n):n.ke()}function jE(n){return!isNaN(n)&&!isFinite(n)}function uEn(n){$f(),this.a=(Pn(),new Wp(n))}function b8(n){h3(),this.d=n,this.a=new gw}function ks(n,e,t){this.a=n,this.b=e,this.c=t}function sEn(n,e,t){this.a=n,this.b=e,this.c=t}function oEn(n,e,t){this.d=n,this.b=t,this.a=e}function uD(n){yyn(this),_s(this),Vi(this,n)}function du(n){RO(this),GU(this.c,0,n.Pc())}function fEn(n){Wu(n.a),uPn(n.c,n.b),n.b=null}function hEn(n){this.a=n,nh(),tu(Date.now())}function lEn(){lEn=N,Xin=new Lc,XA=new Lc}function sD(){sD=N,Rin=new iln,Pzn=new rln}function aEn(){aEn=N,Nne=F(Zn,rn,1,0,5,1)}function dEn(){dEn=N,eee=F(Zn,rn,1,0,5,1)}function IU(){IU=N,tee=F(Zn,rn,1,0,5,1)}function $f(){$f=N,new Bq((Pn(),Pn(),cr))}function Xue(n){return FC(),$e((pPn(),Dzn),n)}function Vue(n){return lf(),$e((LSn(),Bzn),n)}function Que(n){return $T(),$e((qAn(),Gzn),n)}function Jue(n){return RC(),$e((GAn(),zzn),n)}function Yue(n){return dM(),$e((IOn(),Uzn),n)}function Zue(n){return _o(),$e(($Sn(),Vzn),n)}function nse(n){return Tu(),$e((FSn(),Jzn),n)}function ese(n){return Yc(),$e((xSn(),Zzn),n)}function tse(n){return SM(),$e((Ukn(),jUn),n)}function ise(n){return Hd(),$e((mPn(),CUn),n)}function rse(n){return K2(),$e((kPn(),MUn),n)}function cse(n){return d6(),$e((yPn(),PUn),n)}function use(n){return Aj(),$e((yAn(),IUn),n)}function sse(n){return _C(),$e((zAn(),WUn),n)}function ose(n){return W5(),$e((NSn(),bWn),n)}function fse(n){return Qi(),$e((JPn(),vWn),n)}function hse(n){return G3(),$e((vPn(),EWn),n)}function lse(n){return qd(),$e((BSn(),PWn),n)}function OU(n,e){if(!n)throw T(new Hn(e))}function ase(n){return Qn(),$e((vIn(),$Wn),n)}function DU(n){xE.call(this,n.d,n.c,n.a,n.b)}function oD(n){xE.call(this,n.d,n.c,n.a,n.b)}function $U(n,e,t){this.b=n,this.c=e,this.a=t}function EE(n,e,t){this.b=n,this.a=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function FU(n,e,t){this.a=n,this.b=e,this.c=t}function wEn(n,e,t){this.a=n,this.b=e,this.c=t}function xU(n,e,t){this.a=n,this.b=e,this.c=t}function gEn(n,e,t){this.b=n,this.a=e,this.c=t}function CE(n,e,t){this.e=e,this.b=n,this.d=t}function dse(n,e,t){return ca(),n.a.Od(e,t),e}function fD(n){var e;return e=new Dln,e.e=n,e}function LU(n){var e;return e=new Zmn,e.b=n,e}function w8(){w8=N,sS=new Fdn,oS=new xdn}function wo(){wo=N,WWn=new pbn,XWn=new vbn}function bse(n){return aT(),$e((EPn(),HWn),n)}function wse(n){return hf(),$e((TPn(),JWn),n)}function gse(n){return lM(),$e((mOn(),cXn),n)}function pse(n){return q2(),$e((yIn(),uXn),n)}function vse(n){return OC(),$e((JAn(),sXn),n)}function mse(n){return F2(),$e((RSn(),oXn),n)}function kse(n){return Vw(),$e((UPn(),ZWn),n)}function yse(n){return Kd(),$e((HSn(),rXn),n)}function jse(n){return VC(),$e((_Sn(),fXn),n)}function Ese(n){return Pa(),$e((GPn(),hXn),n)}function Cse(n){return V8(),$e((WAn(),lXn),n)}function Tse(n){return ya(),$e((KSn(),dXn),n)}function Mse(n){return eM(),$e((TIn(),bXn),n)}function Ase(n){return K8(),$e((XAn(),wXn),n)}function Sse(n){return A7(),$e((EIn(),gXn),n)}function Pse(n){return h4(),$e((jIn(),pXn),n)}function Ise(n){return or(),$e((zOn(),vXn),n)}function Ose(n){return q3(),$e((GSn(),mXn),n)}function Dse(n){return Nh(),$e((qSn(),yXn),n)}function $se(n){return kC(),$e((YAn(),jXn),n)}function Fse(n){return Ss(),$e((WPn(),EXn),n)}function xse(n){return JT(),$e((CIn(),BQn),n)}function Lse(n){return i6(),$e((zSn(),RQn),n)}function Nse(n){return wb(),$e((MPn(),_Qn),n)}function Bse(n){return ur(),$e((XSn(),UQn),n)}function Rse(n){return Zw(),$e((vOn(),HQn),n)}function _se(n){return Rh(),$e((WSn(),qQn),n)}function Kse(n){return z8(),$e((QAn(),GQn),n)}function Hse(n){return oT(),$e((USn(),WQn),n)}function qse(n){return b6(),$e((zPn(),KQn),n)}function Gse(n){return x8(),$e((VAn(),XQn),n)}function zse(n){return Q3(),$e((QSn(),VQn),n)}function Use(n){return uT(),$e((JSn(),QQn),n)}function Wse(n){return dT(),$e((VSn(),JQn),n)}function Xse(n){return _d(),$e((YSn(),hJn),n)}function Vse(n){return z5(),$e((nSn(),wJn),n)}function Qse(n){return xf(),$e((eSn(),jJn),n)}function Jse(n){return tf(),$e((tSn(),CJn),n)}function Yse(n){return No(),$e((ZAn(),RJn),n)}function Zse(n){return Id(),$e((iSn(),UJn),n)}function noe(n){return c4(),$e((jPn(),WJn),n)}function eoe(n){return k6(),$e((MIn(),VJn),n)}function toe(n){return aC(),$e((uSn(),fYn),n)}function ioe(n){return iT(),$e((cSn(),wYn),n)}function roe(n){return gC(),$e((rSn(),hYn),n)}function coe(n){return CT(),$e((ZSn(),pYn),n)}function uoe(n){return $C(),$e((sSn(),vYn),n)}function soe(n){return f7(),$e((nPn(),mYn),n)}function ooe(n){return qT(),$e((CPn(),FYn),n)}function foe(n){return sT(),$e((tPn(),xYn),n)}function hoe(n){return ET(),$e((ePn(),LYn),n)}function loe(n){return g4(),$e((QPn(),tZn),n)}function aoe(n){return w7(),$e((iPn(),iZn),n)}function doe(n){return Pj(),$e((mAn(),rZn),n)}function boe(n){return Ij(),$e((vAn(),uZn),n)}function woe(n){return L8(),$e((fSn(),sZn),n)}function goe(n){return P7(),$e((XPn(),oZn),n)}function poe(n){return Jv(),$e((kAn(),CZn),n)}function voe(n){return c7(),$e((oSn(),TZn),n)}function moe(n){return Ho(),$e((VPn(),OZn),n)}function koe(n){return y1(),$e((kOn(),$Zn),n)}function yoe(n){return fh(),$e((kIn(),FZn),n)}function joe(n){return vb(),$e((mIn(),_Zn),n)}function Eoe(n){return rr(),$e((Wkn(),RWn),n)}function Coe(n){return B3(),$e((UAn(),BWn),n)}function Toe(n){return sr(),$e((YPn(),ene),n)}function Moe(n){return of(),$e((cPn(),tne),n)}function Aoe(n){return Hh(),$e((PPn(),ine),n)}function Soe(n){return ZT(),$e((SIn(),rne),n)}function Poe(n){return _h(),$e((rPn(),une),n)}function Ioe(n){return us(),$e((SPn(),one),n)}function Ooe(n){return jb(),$e((POn(),fne),n)}function Doe(n){return qw(),$e((ZPn(),hne),n)}function $oe(n){return Mi(),$e((bIn(),lne),n)}function Foe(n){return Mu(),$e((AIn(),ane),n)}function xoe(n){return Qu(),$e((OPn(),vne),n)}function Loe(n){return Lu(),$e((UOn(),mne),n)}function Noe(n){return J(),$e((nIn(),dne),n)}function Boe(n){return AT(),$e((IPn(),kne),n)}function Roe(n){return Vu(),$e((APn(),Ene),n)}function _oe(n){return d4(),$e((yOn(),Lne),n)}function Koe(n,e){return _n(n),n+(_n(e),e)}function Hoe(n,e){return nh(),me(R(n.a),e)}function qoe(n,e){return nh(),me(R(n.a),e)}function hD(n,e){this.c=n,this.a=e,this.b=e-n}function pEn(n,e,t){this.a=n,this.b=e,this.c=t}function NU(n,e,t){this.a=n,this.b=e,this.c=t}function BU(n,e,t){this.a=n,this.b=e,this.c=t}function vEn(n,e,t){this.a=n,this.b=e,this.c=t}function mEn(n,e,t){this.a=n,this.b=e,this.c=t}function s1(n,e,t){this.e=n,this.a=e,this.c=t}function kEn(n,e,t){ms(),QW.call(this,n,e,t)}function lD(n,e,t){ms(),FW.call(this,n,e,t)}function RU(n,e,t){ms(),FW.call(this,n,e,t)}function _U(n,e,t){ms(),FW.call(this,n,e,t)}function yEn(n,e,t){ms(),lD.call(this,n,e,t)}function KU(n,e,t){ms(),lD.call(this,n,e,t)}function jEn(n,e,t){ms(),KU.call(this,n,e,t)}function EEn(n,e,t){ms(),RU.call(this,n,e,t)}function CEn(n,e,t){ms(),_U.call(this,n,e,t)}function g8(n,e){return pe(n),pe(e),new z8n(n,e)}function v2(n,e){return pe(n),pe(e),new NEn(n,e)}function Goe(n,e){return pe(n),pe(e),new BEn(n,e)}function zoe(n,e){return pe(n),pe(e),new W8n(n,e)}function u(n,e){return A5(n==null||WF(n,e)),n}function f3(n){var e;return e=new X,_$(e,n),e}function Uoe(n){var e;return e=new hi,_$(e,n),e}function TEn(n){var e;return e=new Wq,nF(e,n),e}function p8(n){var e;return e=new Tt,nF(e,n),e}function Woe(n){return!n.e&&(n.e=new X),n.e}function Xoe(n){return!n.c&&(n.c=new Bp),n.c}function W(n,e){return n.c[n.c.length]=e,!0}function MEn(n,e){this.c=n,this.b=e,this.a=!1}function HU(n){this.d=n,Ovn(this),this.b=_fe(n.d)}function AEn(){this.a=";,;",this.b="",this.c=""}function Voe(n,e,t){SCn.call(this,e,t),this.a=n}function SEn(n,e,t){this.b=n,Hkn.call(this,e,t)}function qU(n,e,t){this.c=n,Nj.call(this,e,t)}function GU(n,e,t){aY(t,0,n,e,t.length,!1)}function th(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Qoe(n,e){e&&(n.b=e,n.a=(fl(e),e.a))}function zU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function UU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function WU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function XU(n){return bl(the(Fr(n)?Ks(n):n))}function Joe(n,e){return Wc(GEn(n.d),GEn(e.d))}function Yoe(n,e){return e==(J(),Gn)?n.c:n.d}function h3(){h3=N,don=(J(),Gn),dP=Vn}function PEn(){this.b=K(Y(cn((Go(),xR))))}function IEn(n){return ca(),F(Zn,rn,1,n,5,1)}function Zoe(n){return new fn(n.c+n.b,n.d+n.a)}function nfe(n,e){return Sj(),Wc(n.d.p,e.d.p)}function aD(n){return ne(n.b!=0),Ts(n,n.a.a)}function efe(n){return ne(n.b!=0),Ts(n,n.c.b)}function VU(n,e){if(!n)throw T(new R9n(e))}function TE(n,e){if(!n)throw T(new Hn(e))}function QU(n,e,t){t3.call(this,n,e),this.b=t}function v8(n,e,t){lz.call(this,n,e),this.c=t}function OEn(n,e,t){oIn.call(this,e,t),this.d=n}function JU(n){IU(),Yy.call(this),this.th(n)}function DEn(n,e,t){this.a=n,Ew.call(this,e,t)}function $En(n,e,t){this.a=n,Ew.call(this,e,t)}function ME(n,e,t){lz.call(this,n,e),this.c=t}function FEn(){T3(),khe.call(this,(Z1(),uo))}function xEn(n){return n!=null&&!$F(n,a9,d9)}function tfe(n,e){return(GDn(n)<<4|GDn(e))&Ut}function ife(n,e){return QE(),ex(n,e),new oTn(n,e)}function sa(n,e){var t;n.n&&(t=e,W(n.f,t))}function l3(n,e,t){var i;i=new Z0(t),Ro(n,e,i)}function rfe(n,e){var t;return t=n.c,wV(n,e),t}function YU(n,e){return e<0?n.g=-1:n.g=e,n}function AE(n,e){return H0e(n),n.a*=e,n.b*=e,n}function LEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Kt(n,e,n.c.b,n.c),!0}function ZU(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function dD(n){this.b=n,this.a=Ed(this.b.a).Ed()}function NEn(n,e){this.b=n,this.a=e,TI.call(this)}function BEn(n,e){this.a=n,this.b=e,TI.call(this)}function REn(n,e){SCn.call(this,e,1040),this.a=n}function m8(n){return n==0||isNaN(n)?n:n<0?-1:1}function cfe(n){return C2(),hh(n)==Pt(ml(n))}function ufe(n){return C2(),ml(n)==Pt(hh(n))}function jd(n,e){return v6(n,new t3(e.a,e.b))}function sfe(n){return!Xi(n)&&n.c.i.c==n.d.i.c}function SE(n){var e;return e=n.n,n.a.b+e.d+e.a}function _En(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function KEn(n){return Je(),new ih(0,n)}function ofe(n){return n.a?n.a:WD(n)}function A5(n){if(!n)throw T(new Up(null))}function HEn(){HEn=N,mH=(Pn(),new OI(XB))}function PE(){PE=N,new JQ((HI(),uR),(qI(),cR))}function qEn(){qEn=N,jin=F(Wi,q,19,256,0,1)}function bD(n,e,t,i){MQ.call(this,n,e,t,i,0,0)}function ffe(n,e,t){return it(n.b,u(t.b,17),e)}function hfe(n,e,t){return it(n.b,u(t.b,17),e)}function lfe(n,e){return W(n,new fn(e.a,e.b))}function afe(n,e){return n.c=e)throw T(new qq)}function Xfe(n,e,t){return St(e,0,rW(e[0],t[0])),e}function Vfe(n,e,t){e.Ye(t,K(Y(te(n.b,t)))*n.a)}function ACn(n,e,t){return eg(),R3(n,e)&&R3(n,t)}function D5(n){return Mu(),!n.Hc(n1)&&!n.Hc(Gl)}function qE(n){return new fn(n.c+n.b/2,n.d+n.a/2)}function MD(n,e){return e.kh()?pl(n.b,u(e,49)):e}function kW(n,e){this.e=n,this.d=e&64?e|Bf:e}function SCn(n,e){this.c=0,this.d=n,this.b=e|64|Bf}function GE(n){this.b=new Pc(11),this.a=(Ow(),n)}function AD(n){this.b=null,this.a=(Ow(),n||Lin)}function PCn(n){this.a=Y$n(n.a),this.b=new du(n.b)}function ICn(n){this.b=n,b2.call(this,n),$yn(this)}function OCn(n){this.b=n,u8.call(this,n),Fyn(this)}function Y0(n,e,t){this.a=n,g2.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,Yt.call(this,e,t,i)}function gi(n,e,t,i,r){D$.call(this,n,e,t,i,r,-1)}function $5(n,e,t,i,r){R8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){Yt.call(this,n,e,t),this.b=i}function zE(n,e,t,i){v8.call(this,n,e,t),this.b=i}function DCn(n){xkn.call(this,n,!1),this.a=!1}function $Cn(n,e){this.b=n,bvn.call(this,n.b),this.a=e}function FCn(n,e){nb(),Yie.call(this,n,mT(new Hu(e)))}function UE(n,e){return Je(),new xW(n,e,0)}function SD(n,e){return Je(),new xW(6,n,e)}function Qfe(n,e){return Mn(n.substr(0,e.length),e)}function Uu(n,e){return ki(e)?QD(n,e):!!Sr(n.f,e)}function Oi(n,e){for(_n(e);n.Ob();)e.td(n.Pb())}function Pw(n,e,t){jl(),this.e=n,this.d=e,this.a=t}function o1(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function jW(n){var e;for(e=n;e.f;)e=e.f;return e}function y2(n){var e;return e=t6(n),ne(e!=null),e}function Jfe(n){var e;return e=Lge(n),ne(e!=null),e}function d3(n,e){var t;return t=n.a.gc(),$X(e,t),t-e}function EW(n,e){var t;for(t=0;t0?y.Math.log(n/e):-100}function xCn(n,e){return fc(n,e)<0?-1:fc(n,e)>0?1:0}function SW(n,e,t){return MRn(n,u(e,46),u(t,167))}function LCn(n,e){return u(vW(Ed(n.a)).Xb(e),42).cd()}function uhe(n,e){return P0e(e,n.length),new REn(n,e)}function DD(n,e){this.d=n,ie.call(this,n),this.e=e}function Cd(n){this.d=(_n(n),n),this.a=0,this.c=IM}function PW(n,e){cd.call(this,1),this.a=n,this.b=e}function NCn(n,e){return n.c?NCn(n.c,e):W(n.b,e),n}function she(n,e,t){var i;return i=ub(n,e),g$(n,e,t),i}function IW(n,e){var t;return t=n.slice(0,e),WX(t,n)}function BCn(n,e,t){var i;for(i=0;i=n.g}function KD(n,e,t){var i;return i=Y$(n,e,t),rZ(n,i)}function j2(n,e){var t;t=n.a.length,ub(n,t),g$(n,t,e)}function ZCn(n,e){var t;t=console[n],t.call(console,e)}function nTn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function mhe(n,e,t){u(e.b,65),Zc(e.a,new NU(n,t,e))}function FW(n,e,t){uj.call(this,e),this.a=n,this.b=t}function xW(n,e,t){cd.call(this,n),this.a=e,this.b=t}function LW(n,e,t){this.a=n,xq.call(this,e),this.b=t}function eTn(n,e,t){this.a=n,aX.call(this,8,e,null,t)}function khe(n){this.a=(_n(xe),xe),this.b=n,new tG}function tTn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function NW(n){this.c=n,this.b=n.a.d.a,rU(n.a.e,this)}function Wu(n){z0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function L5(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function Md(n,e){return a3(e,n.a.c.length),un(n.a,e)}function Ff(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function yhe(n){return 0>=n?new PG:sbe(n-1)}function jhe(n){return aw?QD(aw,n):!1}function iTn(n){return n?n.dc():!n.Kc().Ob()}function Gi(n){return!n.a&&n.c?n.c.b:n.a}function Ehe(n){return!n.a&&(n.a=new Yt(zl,n,4)),n.a}function Ad(n){return!n.d&&(n.d=new Yt(ar,n,1)),n.d}function _n(n){if(n==null)throw T(new Nv);return n}function N5(n){n.c?n.c.He():(n.d=!0,S8e(n))}function fl(n){n.c?fl(n.c):(Ta(n),n.d=!0)}function rTn(n){KW(n.a),n.b=F(Zn,rn,1,n.b.length,5,1)}function Che(n,e){return Wc(e.j.c.length,n.j.c.length)}function The(n,e){n.c<0||n.b.b=0?n.Bh(t):bY(n,e)}function cTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function Ahe(n){if(n.p!=4)throw T(new fu);return n.e}function She(n){if(n.p!=3)throw T(new fu);return n.e}function Phe(n){if(n.p!=6)throw T(new fu);return n.f}function Ihe(n){if(n.p!=6)throw T(new fu);return n.k}function Ohe(n){if(n.p!=3)throw T(new fu);return n.j}function Dhe(n){if(n.p!=4)throw T(new fu);return n.j}function BW(n){return!n.b&&(n.b=new sj(new KI)),n.b}function Sd(n){return n.c==-2&&Pte(n,Qve(n.g,n.b)),n.c}function g3(n,e){var t;return t=LD("",n),t.n=e,t.i=1,t}function $he(n,e){yD(u(e.b,65),n),Zc(e.a,new Aq(n))}function Fhe(n,e){me((!n.a&&(n.a=new l8(n,n)),n.a),e)}function uTn(n,e){this.b=n,DD.call(this,n,e),$yn(this)}function sTn(n,e){this.b=n,AU.call(this,n,e),Fyn(this)}function RW(n,e,t,i){bd.call(this,n,e),this.d=t,this.a=i}function VE(n,e,t,i){bd.call(this,n,t),this.a=e,this.f=i}function oTn(n,e){bce.call(this,obe(pe(n),pe(e))),this.a=e}function fTn(){UJ.call(this,Ka,(a8n(),hee)),tEe(this)}function hTn(){UJ.call(this,Vs,(Qp(),g1n)),lje(this)}function lTn(){Oe.call(this,"DELAUNAY_TRIANGULATION",0)}function xhe(n){return String.fromCharCode.apply(null,n)}function it(n,e,t){return ki(e)?yr(n,e,t):_c(n.f,e,t)}function _W(n){return Pn(),n?n.ve():(Ow(),Ow(),Bin)}function Lhe(n,e,t){return L2(),t.pg(n,u(e.cd(),146))}function aTn(n,e){return PE(),new JQ(new Wyn(n),new Uyn(e))}function Nhe(n){return rs(n,AL),KC(qi(qi(5,n),n/10|0))}function QE(){QE=N,fzn=new GI(A(M(Ha,1),OM,42,0,[]))}function dTn(n){return!n.d&&(n.d=new _p(n.c.Cc())),n.d}function p3(n){return!n.a&&(n.a=new W9n(n.c.vc())),n.a}function bTn(n){return!n.b&&(n.b=new Wp(n.c.ec())),n.b}function ch(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function pc(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function Bhe(n,e){return qn(),u(e.b,19).ai&&++i,i}function Oh(n){var e,t;return t=(e=new ud,e),O3(t,n),t}function UD(n){var e,t;return t=(e=new ud,e),VJ(t,n),t}function Zhe(n,e){var t;return t=te(n.f,e),MV(e,t),null}function WD(n){var e;return e=hbe(n),e||null}function CTn(n){return!n.b&&(n.b=new V(bi,n,12,3)),n.b}function n1e(n){return n!=null&&_9(tI,n.toLowerCase())}function e1e(n,e){return ni(bu(n)*zu(n),bu(e)*zu(e))}function t1e(n,e){return ni(bu(n)*zu(n),bu(e)*zu(e))}function i1e(n,e){return ni(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function r1e(n,e){return ni(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function TTn(n,e,t){t.a?eu(n,e.b-n.f/2):nu(n,e.a-n.g/2)}function MTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ATn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ha(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function STn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function PTn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function ITn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function OTn(n,e){this.a=n,hue.call(this,n,u(n.d,15).Zc(e))}function XD(n){this.f=n,this.c=this.f.e,n.f>0&&qFn(this)}function DTn(n,e,t,i){this.b=n,this.c=i,FO.call(this,e,t)}function $Tn(n){return ne(n.b=0&&Mn(n.substr(t,e.length),e)}function hl(n,e,t,i,r,c,o){return new v$(n.e,e,t,i,r,c,o)}function QTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function JTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function YTn(n,e){this.g=n,this.d=A(M(mh,1),E1,10,0,[e])}function f1(n,e){this.e=n,this.a=Zn,this.b=yBn(e),this.c=e}function ZTn(n,e){kE.call(this),eV(this),this.a=n,this.c=e}function M8(n,e,t,i){St(n.c[e.g],t.g,i),St(n.c[t.g],e.g,i)}function ZD(n,e,t,i){St(n.c[e.g],e.g,t),St(n.b[e.g],e.g,i)}function M1e(){return x8(),A(M(ron,1),z,376,0,[uK,iy])}function A1e(){return K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])}function S1e(){return V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])}function P1e(){return OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])}function I1e(){return kC(),A(M(fun,1),z,420,0,[j_,oun])}function O1e(){return z8(),A(M(non,1),z,421,0,[iK,rK])}function D1e(){return z5(),A(M(bJn,1),z,523,0,[Hm,Km])}function $1e(){return No(),A(M(BJn,1),z,520,0,[tw,Bl])}function F1e(){return xf(),A(M(yJn,1),z,516,0,[M0,I1])}function x1e(){return tf(),A(M(EJn,1),z,515,0,[Ja,yf])}function L1e(){return Id(),A(M(zJn,1),z,455,0,[Rl,Lg])}function N1e(){return gC(),A(M(Son,1),z,425,0,[yK,Aon])}function B1e(){return aC(),A(M(Mon,1),z,480,0,[kK,Ton])}function R1e(){return iT(),A(M(Pon,1),z,495,0,[EP,mv])}function _1e(){return $C(),A(M(Oon,1),z,426,0,[Ion,TK])}function K1e(){return c7(),A(M(Ffn,1),z,429,0,[DP,$fn])}function H1e(){return L8(),A(M(afn,1),z,430,0,[FK,IP])}function q1e(){return $T(),A(M(Jin,1),z,428,0,[yR,Qin])}function G1e(){return RC(),A(M(Zin,1),z,427,0,[Yin,jR])}function z1e(){return _C(),A(M(Arn,1),z,424,0,[$R,tS])}function U1e(){return B3(),A(M(NWn,1),z,511,0,[_k,UR])}function sC(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function n$(n){return n.b.b==0?n.a.$e():aD(n.b)}function W1e(n){if(n.p!=5)throw T(new fu);return ge(n.f)}function X1e(n){if(n.p!=5)throw T(new fu);return ge(n.k)}function VW(n){return B(n.a)===B((eF(),gH))&&Vje(n),n.a}function nMn(n){this.a=u(pe(n),271),this.b=(Pn(),new Hz(n))}function eMn(n,e){bte(this,new fn(n.a,n.b)),wte(this,p8(e))}function Id(){Id=N,Rl=new iz(Y2,0),Lg=new iz(Z2,1)}function xf(){xf=N,M0=new ez(Z2,0),I1=new ez(Y2,1)}function Od(){rie.call(this,new s2(sb(12))),Bz(!0),this.a=2}function e$(n,e,t){Je(),cd.call(this,n),this.b=e,this.a=t}function QW(n,e,t){ms(),uj.call(this,e),this.a=n,this.b=t}function tMn(n){kE.call(this),eV(this),this.a=n,this.c=!0}function iMn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function oC(n){var e;ebe(n.a),byn(n.a),e=new tj(n.a),TQ(e)}function V1e(n,e){aBn(n,!0),Zc(n.e.wf(),new $U(n,!0,e))}function fC(n,e){return LAn(e),Y0e(n,F(be,Le,25,e,15,1),e)}function Q1e(n,e){return C2(),n==Pt(hh(e))||n==Pt(ml(e))}function vc(n,e){return e==null?Vr(Sr(n.f,null)):n5(n.g,e)}function J1e(n){return n.b==0?null:(ne(n.b!=0),Ts(n,n.a.a))}function Gt(n){return Math.max(Math.min(n,nt),-2147483648)|0}function Y1e(n,e){var t=lR[n.charCodeAt(0)];return t??n}function hC(n,e){return tC(n,"set1"),tC(e,"set2"),new Z8n(n,e)}function Z1e(n,e){var t;return t=W0e(n.f,e),st(vE(t),n.f.d)}function R5(n,e){var t,i;return t=e,i=new dI,n_n(n,t,i),i.d}function t$(n,e,t,i){var r;r=new Gjn,e.a[t.g]=r,m2(n.b,i,r)}function JW(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):_Y(n,e,t)}function Dw(n,e,t){dC(),n&&it(dH,n,e),n&&it($y,n,t)}function rMn(n,e,t){this.i=new X,this.b=n,this.g=e,this.a=t}function lC(n,e,t){this.c=new X,this.e=n,this.f=e,this.b=t}function YW(n,e,t){this.a=new X,this.e=n,this.f=e,this.c=t}function cMn(n,e){oE(this),this.f=e,this.g=n,eC(this),this._d()}function A8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),S6(n,t)}function uMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function sMn(n){var e;return e=new kj(sb(n.length)),qV(e,n),e}function nle(n){function e(){}return e.prototype=n||{},new e}function ele(n,e){return LOn(n,e)?(FIn(n),!0):!1}function Dh(n,e){if(e==null)throw T(new Nv);return Y2e(n,e)}function tle(n){if(n.qe())return null;var e=n.n;return RA[e]}function S8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function ef(n){return n.Db>>16!=9?null:u(n.Cb,33)}function oMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function fMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function hMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function Pt(n){return n.Db>>16!=11?null:u(n.Cb,33)}function lMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):Ox(n,e)}function aMn(n,e){var t;return t=new iW(e),dxn(t,n),new du(t)}function ZW(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function dMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function i$(n,e){return y.Math.abs(n)0}function bMn(){this.a=new Sh,this.e=new hi,this.g=0,this.i=0}function wMn(n){this.a=n,this.b=F(lJn,q,1944,n.e.length,0,2)}function r$(n,e,t){var i;i=tDn(n,e,t),n.b=new tT(i.c.length)}function tf(){tf=N,Ja=new nz(hN,0),yf=new nz("UP",1)}function aC(){aC=N,kK=new rz(PHn,0),Ton=new rz("FAN",1)}function dC(){dC=N,dH=new we,$y=new we,Ere(Azn,new z2n)}function rle(n){if(n.p!=0)throw T(new fu);return b5(n.f,0)}function cle(n){if(n.p!=0)throw T(new fu);return b5(n.k,0)}function gMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function y3(n){return n.Db>>16!=6?null:u(n.Cb,235)}function eb(n){return n.Db>>16!=17?null:u(n.Cb,26)}function pMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function ule(n,e){var t;return t=n.a.get(e),t??new Array}function sle(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),S6(n,t)}function yr(n,e,t){return e==null?_c(n.f,null,t):Gd(n.g,e,t)}function _5(n,e,t,i,r,c){return new Lh(n.e,e,n.aj(),t,i,r,c)}function P8(n,e,t){return n.a=Zu(n.a,0,e)+(""+t)+r8(n.a,e),n}function ole(n,e,t){return W(n.a,(QE(),ex(e,t),new bd(e,t))),n}function nX(n){return _z(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vMn(n){return _z(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function Ci(n,e){n.d&&Jc(n.d.e,n),n.d=e,n.d&&W(n.d.e,n)}function Hi(n,e){n.c&&Jc(n.c.g,n),n.c=e,n.c&&W(n.c.g,n)}function jr(n,e){n.c&&Jc(n.c.a,n),n.c=e,n.c&&W(n.c.a,n)}function Hr(n,e){n.i&&Jc(n.i.j,n),n.i=e,n.i&&W(n.i.j,n)}function mMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function kMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function yMn(n,e){this.a=n,this.c=Qr(this.a),this.b=new uC(e)}function fle(n){var e;return Ta(n),e=new hi,gt(n,new Vvn(e))}function tb(n,e){if(n<0||n>e)throw T(new mr(cnn+n+unn+e))}function eX(n,e){return lCn(n.a,e)?TW(n,u(e,22).g,null):null}function hle(n){return yF(),qn(),u(n.a,81).d.e!=0}function jMn(){jMn=N,azn=Fe((aj(),A(M(lzn,1),z,538,0,[fR])))}function EMn(){EMn=N,YQn=Eu(new li,(Qi(),Or),(rr(),Kk))}function tX(){tX=N,ZQn=Eu(new li,(Qi(),Or),(rr(),Kk))}function CMn(){CMn=N,eJn=Eu(new li,(Qi(),Or),(rr(),Kk))}function TMn(){TMn=N,gJn=Ze(new li,(Qi(),Or),(rr(),km))}function ns(){ns=N,mJn=Ze(new li,(Qi(),Or),(rr(),km))}function MMn(){MMn=N,kJn=Ze(new li,(Qi(),Or),(rr(),km))}function c$(){c$=N,TJn=Ze(new li,(Qi(),Or),(rr(),km))}function AMn(){AMn=N,lYn=Eu(new li,(c4(),Gm),(k6(),lK))}function aa(n,e,t,i){this.c=n,this.d=i,s$(this,e),o$(this,t)}function M2(n){this.c=new Tt,this.b=n.b,this.d=n.c,this.a=n.a}function u$(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function s$(n,e){n.a&&Jc(n.a.k,n),n.a=e,n.a&&W(n.a.k,n)}function o$(n,e){n.b&&Jc(n.b.f,n),n.b=e,n.b&&W(n.b.f,n)}function SMn(n,e){mhe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function lle(n,e){vQ(n,e),I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),2)}function f$(n,e){I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),4),Ic(n,e)}function bC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),Ic(n,e)}function mc(n,e){return er(),R$(e)?new IE(e,n):new i8(e,n)}function ale(n,e){var t,i;t=e.c,i=t!=null,i&&j2(n,new Z0(e.c))}function PMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function IMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function OMn(n,e){var t;return t=new Rs(n),e.c[e.c.length]=t,t}function DMn(n,e){var t;return t=u(ab(T2(n.a),e),14),t?t.gc():0}function $Mn(n){var e;return Ta(n),e=(Ow(),Ow(),Nin),qC(n,e)}function FMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function iX(n,e){tie.call(this,new s2(sb(n))),rs(e,W_n),this.a=e}function uh(n,e,t){KDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function xMn(n,e,t){var i;KDn(e,t,n.c.length),i=t-e,AG(n.c,e,i)}function dle(n,e){Dyn(n,ge(ui(cl(e,24),FM)),ge(ui(e,FM)))}function Ln(n,e){if(n<0||n>=e)throw T(new mr(cnn+n+unn+e))}function Te(n,e){if(n<0||n>=e)throw T(new wG(cnn+n+unn+e))}function xn(n,e){this.b=(_n(n),n),this.a=e&Ib?e:e|64|Bf}function LMn(n){dyn(this),Wmn(this.a,KV(y.Math.max(8,n))<<1)}function rf(n){return Gr(A(M(di,1),q,8,0,[n.i.n,n.n,n.a]))}function ble(){return lf(),A(M(Bu,1),z,132,0,[Win,ls,Rb])}function wle(){return _o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])}function gle(){return Tu(),A(M(Qzn,1),z,461,0,[Vf,Ol,Co])}function ple(){return Yc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])}function vle(){return qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])}function mle(){return W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])}function kle(){return i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])}function yle(){return F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])}function jle(){return VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])}function Ele(){return ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])}function Cle(){return Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])}function Tle(){return Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])}function Mle(){return q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])}function Ale(){return ur(),A(M(zQn,1),z,452,0,[Bm,Su,xc])}function Sle(){return Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])}function Ple(){return oT(),A(M(ion,1),z,375,0,[eon,cK,ton])}function Ile(){return dT(),A(M(hon,1),z,377,0,[fK,pv,ew])}function Ole(){return Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])}function Dle(){return uT(),A(M(fon,1),z,338,0,[oon,oK,son])}function $le(){return _d(),A(M(fJn,1),z,454,0,[ry,_m,aP])}function Fle(){return CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])}function xle(){return f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])}function Lle(){return ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])}function Nle(){return sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])}function Ble(){return w7(),A(M(OK,1),z,437,0,[AP,SP,PP])}function Rle(){return _h(),A(M(Khn,1),z,334,0,[HP,F1,i9])}function _le(){return of(),A(M(Phn,1),z,272,0,[jv,cw,Ev])}function Kle(n,e){return o9e(n,e,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Hle(n,e,t){var i;return i=O6(n,e,!1),i.b<=e&&i.a<=t}function NMn(n,e,t){var i;i=new Jwn,i.b=e,i.a=t,++e.b,W(n.d,i)}function qle(n,e){var t;return t=(_n(n),n).g,Yz(!!t),_n(e),t(e)}function rX(n,e){var t,i;return i=d3(n,e),t=n.a.Zc(i),new Y8n(n,t)}function Gle(n){return n.Db>>16!=6?null:u(Fx(n),235)}function zle(n){if(n.p!=2)throw T(new fu);return ge(n.f)&Ut}function Ule(n){if(n.p!=2)throw T(new fu);return ge(n.k)&Ut}function Wle(n){return n.a==(T3(),uI)&&Ste(n,C9e(n.g,n.b)),n.a}function A2(n){return n.d==(T3(),uI)&&Ite(n,pke(n.g,n.b)),n.d}function j(n){return ne(n.ai?1:0}function BMn(n,e){var t,i;return t=F$(e),i=t,u(te(n.c,i),19).a}function RMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function rAn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function rae(n){return!!n.a&&Du(n.a.a).i!=0&&!(n.b&&YF(n.b))}function cae(n){return!!n.u&&bc(n.u.a).i!=0&&!(n.n&&JF(n.n))}function cAn(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),16,new tvn(n))}function uae(n,e){return xCn(tu(n.q.getTime()),tu(e.q.getTime()))}function Lf(n){return u(af(n,F(GR,MN,17,n.c.length,0,1)),474)}function I8(n){return u(af(n,F(mh,E1,10,n.c.length,0,1)),193)}function sae(n){return ns(),!Xi(n)&&!(!Xi(n)&&n.c.i.c==n.d.i.c)}function uAn(n,e,t){var i;i=(pe(n),new du(n)),N3e(new mMn(i,e,t))}function O8(n,e,t){var i;i=(pe(n),new du(n)),B3e(new kMn(i,e,t))}function sAn(n,e){var t;return t=1-e,n.a[t]=eT(n.a[t],t),eT(n,e)}function oAn(n,e){var t;n.e=new oG,t=Cb(e),wi(t,n.c),eBn(n,t,0)}function Ti(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function po(n){var e,t,i;return e=new HCn,t=Zx(e,n),UEe(e),i=t,i}function hX(){var n,e,t;return e=(t=(n=new ud,n),t),W(M1n,e),e}function pC(n){return n.j.c=F(Zn,rn,1,0,5,1),KW(n.c),Khe(n.a),n}function $w(n){return Qv(),I(n.g,10)?u(n.g,10):null}function oae(n){return Iw(n).dc()?!1:(sce(n,new Np),!0)}function fae(n){if(!("stack"in n))try{throw n}catch{}return n}function D8(n,e){if(n<0||n>=e)throw T(new mr(j6e(n,e)));return n}function fAn(n,e,t){if(n<0||et)throw T(new mr(W5e(n,e,t)))}function d$(n,e){if(ci(n.a,e),e.d)throw T(new _r(wKn));e.d=n}function b$(n,e){if(e.$modCount!=n.$modCount)throw T(new vs)}function hAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function lAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function aAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function hae(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function $d(n){var e;return Fr(n)?(e=n,e==-0?0:e):m0e(n)}function vC(n){var e;return fl(n),e=new fln,vw(n.a,new Wvn(e)),e}function dAn(n){var e;return fl(n),e=new oln,vw(n.a,new Uvn(e)),e}function Pi(n,e){this.a=n,$v.call(this,n),tb(e,n.gc()),this.b=e}function lX(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function lae(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),273,new evn(n))}function mC(n){return new Pc((rs(n,AL),KC(qi(qi(5,n),n/10|0))))}function bAn(n){return u(af(n,F(FWn,UKn,11,n.c.length,0,1)),1943)}function aae(n,e,t){return t.f.c.length>0?SW(n.a,e,t):SW(n.b,e,t)}function dae(n,e,t){n.d&&Jc(n.d.e,n),n.d=e,n.d&&Q0(n.d.e,t,n)}function w$(n,e){uTe(e,n),WU(n.d),WU(u(k(n,(nn(),eP)),207))}function H5(n,e){cTe(e,n),UU(n.d),UU(u(k(n,(nn(),eP)),207))}function Fd(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.fe()),i}function j3(n,e){var t,i;return t=ub(n,e),i=null,t&&(i=t.ie()),i}function q5(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.ie()),i}function $h(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=tY(t)),i}function bae(n,e,t){var i;return i=i4(t),gM(n.g,i,e),gM(n.i,e,t),e}function wae(n,e,t){var i;i=q2e();try{return kue(n,e,t)}finally{Mae(i)}}function wAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function li(){P9n.call(this),this.j.c=F(Zn,rn,1,0,5,1),this.a=-1}function aX(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function gAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function dX(n,e,t){this.d=new r6n(this),this.e=n,this.i=e,this.f=t}function kC(){kC=N,j_=new QG(I4,0),oun=new QG("TOP_LEFT",1)}function pAn(){pAn=N,aon=aTn(Q(1),Q(4)),lon=aTn(Q(1),Q(2))}function vAn(){vAn=N,uZn=Fe((Ij(),A(M(cZn,1),z,551,0,[$K])))}function mAn(){mAn=N,rZn=Fe((Pj(),A(M(lfn,1),z,482,0,[DK])))}function kAn(){kAn=N,CZn=Fe((Jv(),A(M(Dfn,1),z,530,0,[hy])))}function yAn(){yAn=N,IUn=Fe((Aj(),A(M(krn,1),z,481,0,[SR])))}function gae(){return Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])}function pae(){return FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])}function vae(){return d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])}function mae(){return K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])}function kae(){return G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])}function yae(){return aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])}function jAn(n,e,t,i){return I(t,54)?new ojn(n,e,t,i):new pW(n,e,t,i)}function jae(){return hf(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])}function Eae(n){var e;return n.j==(J(),ae)&&(e=GLn(n),au(e,Vn))}function Cae(n,e){var t;t=e.a,Hi(t,e.c.d),Ci(t,e.d.d),fb(t.a,n.n)}function EAn(n,e){return u(yd(KE(u(ct(n.k,e),15).Oc(),jg)),113)}function CAn(n,e){return u(yd(HE(u(ct(n.k,e),15).Oc(),jg)),113)}function Tae(n){return new xn(jbe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function E3(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function S2(n){return Qv(),I(n.g,145)?u(n.g,145):null}function TAn(n){if(n.e.g!=n.b)throw T(new vs);return!!n.c&&n.d>0}function Re(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function bX(n,e){_n(e),St(n.a,n.c,e),n.c=n.c+1&n.a.length-1,MFn(n)}function ll(n,e){_n(e),n.b=n.b-1&n.a.length-1,St(n.a,n.b,e),MFn(n)}function MAn(n,e){var t;for(t=n.j.c.length;t0&&gc(n.g,0,e,0,n.i),e}function IAn(n,e){$j();var t;return t=u(te(eI,n),55),!t||t.wj(e)}function Bae(n){if(n.p!=1)throw T(new fu);return ge(n.f)<<24>>24}function Rae(n){if(n.p!=1)throw T(new fu);return ge(n.k)<<24>>24}function _ae(n){if(n.p!=7)throw T(new fu);return ge(n.k)<<16>>16}function Kae(n){if(n.p!=7)throw T(new fu);return ge(n.f)<<16>>16}function Fh(n){var e;for(e=0;n.Ob();)n.Pb(),e=qi(e,1);return KC(e)}function OAn(n,e){var t;return t=new R0,n.xd(t),t.a+="..",e.yd(t),t.a}function Hae(n,e,t){var i;i=u(te(n.g,t),57),W(n.a.c,new Si(e,i))}function qae(n,e,t){return TD(Y(Vr(Sr(n.f,e))),Y(Vr(Sr(n.f,t))))}function yC(n,e,t){return vM(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Gae(n,e,t){return m4(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function zae(n,e,t){return b9e(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function pX(n,e){return n==(Qn(),ii)&&e==ii?4:n==ii||e==ii?8:32}function DAn(n,e){return B(e)===B(n)?"(this Map)":e==null?ru:Nr(e)}function Uae(n,e){return u(e==null?Vr(Sr(n.f,null)):n5(n.g,e),281)}function $An(n,e,t){var i;return i=i4(t),it(n.b,i,e),it(n.c,e,t),e}function FAn(n,e){var t;for(t=e;t;)U0(n,t.i,t.j),t=Pt(t);return n}function vX(n,e){var t;return t=C8(f3(new x$(n,e))),DE(new x$(n,e)),t}function sh(n,e){er();var t;return t=u(n,66).Mj(),M5e(t,e),t.Ok(e)}function Wae(n,e,t,i,r){var c;c=m9e(r,t,i),W(e,p6e(r,c)),o5e(n,r,e)}function xAn(n,e,t){n.i=0,n.e=0,e!=t&&(uDn(n,e,t),cDn(n,e,t))}function mX(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+Tl),S6(n,t)}function Xae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function g$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function LAn(n){if(n<0)throw T(new K9n("Negative array size: "+n))}function bc(n){return n.n||(Ou(n),n.n=new wCn(n,ar,n),Ar(n)),n.n}function G5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function KAn(n,e){V3();var t;return t=n.j.g-e.j.g,t!=0?t:0}function HAn(n,e){return _n(e),n.a!=null?$fe(e.Kb(n.a)):UA}function jC(n){var e;return n?new iW(n):(e=new Sh,nF(e,n),e)}function ts(n,e){var t;return e.b.Kb(FPn(n,e.c.Ee(),(t=new Jvn(e),t)))}function EC(n){_J(),Dyn(this,ge(ui(cl(n,24),FM)),ge(ui(n,FM)))}function qAn(){qAn=N,Gzn=Fe(($T(),A(M(Jin,1),z,428,0,[yR,Qin])))}function GAn(){GAn=N,zzn=Fe((RC(),A(M(Zin,1),z,427,0,[Yin,jR])))}function zAn(){zAn=N,WUn=Fe((_C(),A(M(Arn,1),z,424,0,[$R,tS])))}function UAn(){UAn=N,BWn=Fe((B3(),A(M(NWn,1),z,511,0,[_k,UR])))}function WAn(){WAn=N,lXn=Fe((V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])))}function XAn(){XAn=N,wXn=Fe((K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])))}function VAn(){VAn=N,XQn=Fe((x8(),A(M(ron,1),z,376,0,[uK,iy])))}function QAn(){QAn=N,GQn=Fe((z8(),A(M(non,1),z,421,0,[iK,rK])))}function JAn(){JAn=N,sXn=Fe((OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])))}function YAn(){YAn=N,jXn=Fe((kC(),A(M(fun,1),z,420,0,[j_,oun])))}function ZAn(){ZAn=N,RJn=Fe((No(),A(M(BJn,1),z,520,0,[tw,Bl])))}function nSn(){nSn=N,wJn=Fe((z5(),A(M(bJn,1),z,523,0,[Hm,Km])))}function eSn(){eSn=N,jJn=Fe((xf(),A(M(yJn,1),z,516,0,[M0,I1])))}function tSn(){tSn=N,CJn=Fe((tf(),A(M(EJn,1),z,515,0,[Ja,yf])))}function iSn(){iSn=N,UJn=Fe((Id(),A(M(zJn,1),z,455,0,[Rl,Lg])))}function rSn(){rSn=N,hYn=Fe((gC(),A(M(Son,1),z,425,0,[yK,Aon])))}function cSn(){cSn=N,wYn=Fe((iT(),A(M(Pon,1),z,495,0,[EP,mv])))}function uSn(){uSn=N,fYn=Fe((aC(),A(M(Mon,1),z,480,0,[kK,Ton])))}function sSn(){sSn=N,vYn=Fe(($C(),A(M(Oon,1),z,426,0,[Ion,TK])))}function oSn(){oSn=N,TZn=Fe((c7(),A(M(Ffn,1),z,429,0,[DP,$fn])))}function fSn(){fSn=N,sZn=Fe((L8(),A(M(afn,1),z,430,0,[FK,IP])))}function z5(){z5=N,Hm=new ZG("UPPER",0),Km=new ZG("LOWER",1)}function Yae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function Zae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function nde(n,e){var t,i;i=!1;do t=JOn(n,e),i=i|t;while(t);return i}function jX(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function hSn(n,e){var t;for(t=e;t;)U0(n,-t.i,-t.j),t=Pt(t);return n}function $i(n,e){var t,i;for(_n(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function lSn(n,e){var t;return t=e.cd(),new bd(t,n.e.pc(t,u(e.dd(),14)))}function Kt(n,e,t,i){var r;r=new aI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function Es(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function ede(n,e,t){return u(e==null?_c(n.f,null,t):Gd(n.g,e,t),281)}function k$(n){return n.c&&n.d?cX(n.c)+"->"+cX(n.d):"e_"+md(n)}function C3(n,e){return(Ta(n),Wv(new $n(n,new UX(e,n.a)))).sd(V4)}function tde(){return Qi(),A(M(Hrn,1),z,356,0,[Qf,$l,Hc,Cc,Or])}function ide(){return J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])}function rde(n){return gj(),function(){return wae(n,this,arguments)}}function cde(){return Date.now?Date.now():new Date().getTime()}function Xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function aSn(n){if(!n.c.Sb())throw T(new ic);return n.a=!0,n.c.Ub()}function $8(n){n.i=0,z9(n.b,null),z9(n.c,null),n.a=null,n.e=null,++n.g}function EX(n){are.call(this,n==null?ru:Nr(n),I(n,78)?u(n,78):null)}function dSn(n){B_n(),Nmn(this),this.a=new Tt,QV(this,n),Ke(this.a,n)}function bSn(){RO(this),this.b=new fn(Ft,Ft),this.a=new fn(Qt,Qt)}function wSn(n,e){this.c=0,this.b=e,qkn.call(this,n,17493),this.a=this.c}function y$(n){CC(),!vf&&(this.c=n,this.e=!0,this.a=new X)}function CC(){CC=N,vf=!0,Fzn=!1,xzn=!1,Nzn=!1,Lzn=!1}function CX(n,e){return I(e,149)?Mn(n.c,u(e,149).c):!1}function TX(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function j$(n,e){var t;return t=u(xd(n.d,e),23),t||u(xd(n.e,e),23)}function gSn(n){this.b=n,ie.call(this,n),this.a=u(Rn(this.b.a,4),126)}function pSn(n){this.b=n,w2.call(this,n),this.a=u(Rn(this.b.a,4),126)}function Ou(n){return n.t||(n.t=new Amn(n),s6(new _9n(n),0,n.t)),n.t}function ude(){return sr(),A(M(e9,1),z,103,0,[kh,Ao,Zs,Jh,Yh])}function sde(){return qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])}function ode(){return Ho(),A(M($1,1),z,175,0,[Xn,vi,Zf,Ya,D1])}function fde(){return P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])}function hde(){return b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])}function lde(){return Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])}function ade(){return g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])}function dde(){return Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])}function bde(){return Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])}function T3(){T3=N;var n,e;cI=(Qp(),e=new fj,e),uI=(n=new BI,n)}function vSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function wde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function E$(n){var e,t,i;return e=n&Nu,t=n>>22&Nu,i=n<0?Wh:0,Bc(e,t,i)}function gde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?g$n(n,e):BNn(n,-e)}function MX(n,e){return e==0||n.e==0?n:e>0?BNn(n,e):g$n(n,-e)}function ve(n){if(Se(n))return n.c=n.a,n.a.Pb();throw T(new ic)}function kSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Qn(),Xt)&&t.k==Xt}function C$(n){var e;return e=new Pd,Pr(e,n),H(e,(nn(),Mr),null),e}function T$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Yd(n,e,t)}function AX(n,e,t,i){var r;for(r=0;re)throw T(new mr(fY(n,e,"index")));return n}function M$(n,e,t,i){var r;return r=F(be,Le,25,e,15,1),Pve(r,n,e,t,i),r}function vde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),S6(n,t)}function mde(n,e){return y.Math.min(al(e.a,n.d.d.c),al(e.b,n.d.d.c))}function O2(n,e){return ki(e)?e==null?MY(n.f,null):$On(n.g,e):MY(n.f,e)}function sf(n){this.c=n,this.a=new E(this.c.a),this.b=new E(this.c.b)}function TC(){this.e=new X,this.c=new X,this.d=new X,this.b=new X}function TSn(){this.g=new zq,this.b=new zq,this.a=new X,this.k=new X}function MSn(n,e,t){this.a=n,this.c=e,this.d=t,W(e.e,this),W(t.b,this)}function ASn(n,e){Hkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function SSn(n,e){qkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function FX(n,e){FO.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function MC(n,e,t){this.a=n,this.b=e,this.c=t,W(n.t,this),W(e.i,this)}function AC(){this.b=new Tt,this.a=new Tt,this.b=new Tt,this.a=new Tt}function SC(){SC=N,Ym=new kt("org.eclipse.elk.labels.labelManager")}function PSn(){PSn=N,$cn=new ri("separateLayerConnections",(aT(),QR))}function No(){No=N,tw=new tz("REGULAR",0),Bl=new tz("CRITICAL",1)}function x8(){x8=N,uK=new YG("STACKED",0),iy=new YG("SEQUENCED",1)}function L8(){L8=N,FK=new oz("FIXED",0),IP=new oz("CENTER_NODE",1)}function kde(n,e){var t;return t=CEe(n,e),n.b=new tT(t.c.length),Lje(n,t)}function yde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function ISn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function xX(n){if(n.a){if(n.e)return xX(n.e)}else return n;return null}function jde(n,e){return n.pe.p?-1:0}function PC(n,e){return _n(e),n.c=0,"Initial capacity must not be negative")}function $Sn(){$Sn=N,Vzn=Fe((_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])))}function FSn(){FSn=N,Jzn=Fe((Tu(),A(M(Qzn,1),z,461,0,[Vf,Ol,Co])))}function xSn(){xSn=N,Zzn=Fe((Yc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])))}function LSn(){LSn=N,Bzn=Fe((lf(),A(M(Bu,1),z,132,0,[Win,ls,Rb])))}function NSn(){NSn=N,bWn=Fe((W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])))}function BSn(){BSn=N,PWn=Fe((qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])))}function RSn(){RSn=N,oXn=Fe((F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])))}function _Sn(){_Sn=N,fXn=Fe((VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])))}function KSn(){KSn=N,dXn=Fe((ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])))}function HSn(){HSn=N,rXn=Fe((Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])))}function qSn(){qSn=N,yXn=Fe((Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])))}function GSn(){GSn=N,mXn=Fe((q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])))}function zSn(){zSn=N,RQn=Fe((i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])))}function USn(){USn=N,WQn=Fe((oT(),A(M(ion,1),z,375,0,[eon,cK,ton])))}function WSn(){WSn=N,qQn=Fe((Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])))}function XSn(){XSn=N,UQn=Fe((ur(),A(M(zQn,1),z,452,0,[Bm,Su,xc])))}function VSn(){VSn=N,JQn=Fe((dT(),A(M(hon,1),z,377,0,[fK,pv,ew])))}function QSn(){QSn=N,VQn=Fe((Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])))}function JSn(){JSn=N,QQn=Fe((uT(),A(M(fon,1),z,338,0,[oon,oK,son])))}function YSn(){YSn=N,hJn=Fe((_d(),A(M(fJn,1),z,454,0,[ry,_m,aP])))}function ZSn(){ZSn=N,pYn=Fe((CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])))}function nPn(){nPn=N,mYn=Fe((f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])))}function ePn(){ePn=N,LYn=Fe((ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])))}function tPn(){tPn=N,xYn=Fe((sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])))}function iPn(){iPn=N,iZn=Fe((w7(),A(M(OK,1),z,437,0,[AP,SP,PP])))}function rPn(){rPn=N,une=Fe((_h(),A(M(Khn,1),z,334,0,[HP,F1,i9])))}function cPn(){cPn=N,tne=Fe((of(),A(M(Phn,1),z,272,0,[jv,cw,Ev])))}function Pde(){return Mi(),A(M(Ghn,1),z,98,0,[ql,Ef,Tv,td,Eh,Ac])}function wa(n,e){return!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),NF(n.o,e)}function Ide(n){return!n.g&&(n.g=new Qy),!n.g.d&&(n.g.d=new Cmn(n)),n.g.d}function Ode(n){return!n.g&&(n.g=new Qy),!n.g.a&&(n.g.a=new Tmn(n)),n.g.a}function Dde(n){return!n.g&&(n.g=new Qy),!n.g.b&&(n.g.b=new Emn(n)),n.g.b}function N8(n){return!n.g&&(n.g=new Qy),!n.g.c&&(n.g.c=new Mmn(n)),n.g.c}function $de(n,e,t){var i,r;for(r=new H3(e,n),i=0;it||e=0?n._g(t,!0,!0):Yd(n,e,!0)}function Qde(n,e){return ni(K(Y(k(n,(G(),k0)))),K(Y(k(e,k0))))}function aPn(){aPn=N,aYn=Xd(Xd(Dj(new li,(c4(),qm)),(k6(),pP)),aK)}function Jde(n,e,t){var i;return i=tDn(n,e,t),n.b=new tT(i.c.length),JY(n,i)}function Yde(n){if(n.b<=0)throw T(new ic);return--n.b,n.a-=n.c.c,Q(n.a)}function Zde(n){var e;if(!n.a)throw T(new gTn);return e=n.a,n.a=Pt(n.a),e}function n0e(n){for(;!n.a;)if(!nEn(n.c,new Xvn(n)))return!1;return!0}function $2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new dvn(n)}function e0e(n){DC(),u(n.We((Xe(),rw)),174).Fc((Mu(),Ty)),n.Ye(eH,null)}function DC(){DC=N,SZn=new n2n,IZn=new e2n,PZn=Rwe((Xe(),eH),SZn,_l,IZn)}function $C(){$C=N,Ion=new sz("LEAF_NUMBER",0),TK=new sz("NODE_SIZE",1)}function t0e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),_s(n.d),n.e.a.c=F(Zn,rn,1,0,5,1)}function $$(n){n.a=F(be,Le,25,n.b+1,15,1),n.c=F(be,Le,25,n.b,15,1),n.d=0}function i0e(n,e){n.a.ue(e.d,n.b)>0&&(W(n.c,new QU(e.c,e.d,n.d)),n.b=e.d)}function zX(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.g[e]}function dPn(n,e,t){if(W3(n,t),t!=null&&!n.wj(t))throw T(new xI);return t}function bPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return gX(n)}function r0e(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function c0e(n,e){var t,i;return LAn(e),t=(i=n.slice(0,e),WX(i,n)),t.length=e,t}function S3(n,e,t,i){var r;i=(Ow(),i||Lin),r=n.slice(e,t),hY(r,n,e,t,-e,i)}function Cs(n,e,t,i,r){return e<0?Yd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function u0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Nr(n)}function s0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Nr(n)}function wPn(n,e){if(e.a)throw T(new _r(wKn));ci(n.a,e),e.a=n,!n.j&&(n.j=e)}function UX(n,e){FO.call(this,e.rd(),e.qd()&-16449),_n(n),this.a=n,this.c=e}function gPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),D2(n,i,t)}function Tu(){Tu=N,Vf=new oO(Y2,0),Ol=new oO(I4,1),Co=new oO(Z2,2)}function FC(){FC=N,vR=new Lj("All",0),qin=new lyn,Gin=new Eyn,zin=new ayn}function pPn(){pPn=N,Dzn=Fe((FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])))}function vPn(){vPn=N,EWn=Fe((G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])))}function mPn(){mPn=N,CUn=Fe((Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])))}function kPn(){kPn=N,MUn=Fe((K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])))}function yPn(){yPn=N,PUn=Fe((d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])))}function jPn(){jPn=N,WJn=Fe((c4(),A(M(won,1),z,393,0,[gP,qm,uy,Gm])))}function EPn(){EPn=N,HWn=Fe((aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])))}function CPn(){CPn=N,FYn=Fe((qT(),A(M(zon,1),z,340,0,[SK,qon,Gon,Hon])))}function TPn(){TPn=N,JWn=Fe((hf(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])))}function MPn(){MPn=N,_Qn=Fe((wb(),A(M(Z_,1),z,197,0,[fP,Y_,xg,Fg])))}function APn(){APn=N,Ene=Fe((Vu(),A(M(jne,1),z,396,0,[gs,Yhn,Jhn,Zhn])))}function SPn(){SPn=N,one=Fe((us(),A(M(sne,1),z,285,0,[Ey,yh,Kl,jy])))}function PPn(){PPn=N,ine=Fe((Hh(),A(M(cH,1),z,218,0,[rH,yy,Cv,Sp])))}function IPn(){IPn=N,kne=Fe((AT(),A(M(Qhn,1),z,311,0,[oH,Whn,Vhn,Xhn])))}function OPn(){OPn=N,vne=Fe((Qu(),A(M(o9,1),z,374,0,[Ay,id,My,uw])))}function DPn(){DPn=N,mM(),F1n=Ft,Tee=Qt,x1n=new S9(Ft),Mee=new S9(Qt)}function K8(){K8=N,Vcn=new VG(Xh,0),xS=new VG("IMPROVE_STRAIGHTNESS",1)}function o0e(n,e){return h3(),W(n,new Si(e,Q(e.e.c.length+e.g.c.length)))}function f0e(n,e){return h3(),W(n,new Si(e,Q(e.e.c.length+e.g.c.length)))}function WX(n,e){return U8(e)!=10&&A($u(e),e.hm,e.__elementTypeId$,U8(e),n),n}function Jc(n,e){var t;return t=xr(n,e,0),t==-1?!1:(h1(n,t),!0)}function $Pn(n,e){var t;return t=u(O2(n.e,e),387),t?(ZU(t),t.e):null}function P3(n){var e;return Fr(n)&&(e=0-n,!isNaN(e))?e:bl(z3(n))}function xr(n,e,t){for(;t=0?BT(n,t,!0,!0):Yd(n,e,!0)}function YX(n,e){Qv();var t,i;return t=S2(n),i=S2(e),!!t&&!!i&&!V$n(t.k,i.k)}function a0e(n,e){nu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function d0e(n,e){eu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function b0e(n,e){Rd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function w0e(n,e){Bd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function BPn(n){(this.q?this.q:(Pn(),Pn(),vh)).Ac(n.q?n.q:(Pn(),Pn(),vh))}function g0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function p0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function RPn(n,e){vrn=new Wy,AUn=e,gm=n,u(gm.b,65),BX(gm,vrn,null),DRn(gm)}function B$(n,e,t){var i;return i=n.g[e],k5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function BC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function R$(n){var e;return n.d!=n.r&&(e=qs(n),n.e=!!e&&e.Cj()==kGn,n.d=e),n.e}function _$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function xd(n,e){var t;return t=u(te(n.e,e),387),t?(Oyn(n,t),t.e):null}function _Pn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function qr(n,e){var t,i;return Ta(n),i=new FX(e,n.a),t=new iEn(i),new $n(n,t)}function ub(n,e){var t=n.a[e],i=(cF(),dR)[typeof t];return i?i(t):tQ(typeof t)}function v0e(n){switch(n.g){case 0:return nt;case 1:return-1;default:return 0}}function m0e(n){return mJ(n,(I3(),pin))<0?-xce(z3(n)):n.l+n.m*J2+n.h*$a}function U8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function K$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&J$(n,0),e}function KPn(n,e){for(;e[0]=0;)++e[0]}function W8(n,e){this.e=e,this.a=FOn(n),this.a<54?this.f=$d(n):this.c=m7(n)}function HPn(n,e,t,i){Je(),cd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function oh(n,e,t){var i,r;for(i=10,r=0;rn.a[i]&&(i=t);return i}function T0e(n,e){var t;return t=zd(n.e.c,e.e.c),t==0?ni(n.e.d,e.e.d):t}function Fw(n,e){return e.e==0||n.e==0?W4:(a4(),Hx(n,e))}function M0e(n,e){if(!n)throw T(new Hn(P8e("Enum constant undefined: %s",e)))}function X5(){X5=N,MWn=new San,AWn=new Man,CWn=new $an,TWn=new Fan,SWn=new xan}function RC(){RC=N,Yin=new qG("BY_SIZE",0),jR=new qG("BY_SIZE_AND_SHAPE",1)}function _C(){_C=N,$R=new GG("EADES",0),tS=new GG("FRUCHTERMAN_REINGOLD",1)}function V8(){V8=N,$S=new XG("READING_DIRECTION",0),Ucn=new XG("ROTATION",1)}function GPn(){GPn=N,hXn=Fe((Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])))}function zPn(){zPn=N,KQn=Fe((b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])))}function UPn(){UPn=N,ZWn=Fe((Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])))}function WPn(){WPn=N,EXn=Fe((Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])))}function XPn(){XPn=N,oZn=Fe((P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])))}function VPn(){VPn=N,OZn=Fe((Ho(),A(M($1,1),z,175,0,[Xn,vi,Zf,Ya,D1])))}function QPn(){QPn=N,tZn=Fe((g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])))}function JPn(){JPn=N,vWn=Fe((Qi(),A(M(Hrn,1),z,356,0,[Qf,$l,Hc,Cc,Or])))}function YPn(){YPn=N,ene=Fe((sr(),A(M(e9,1),z,103,0,[kh,Ao,Zs,Jh,Yh])))}function ZPn(){ZPn=N,hne=Fe((qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])))}function nIn(){nIn=N,dne=Fe((J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])))}function H$(n,e){var t;return t=u(te(n.a,e),134),t||(t=new pI,it(n.a,e,t)),t}function eIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.a==n:!1}function tIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.i==n:!1}function iIn(n,e){return _n(e),mW(n),n.d.Ob()?(e.td(n.d.Pb()),!0):!1}function KC(n){return fc(n,nt)>0?nt:fc(n,Bi)<0?Bi:ge(n)}function sb(n){return n<3?(rs(n,J_n),n+1):n=0&&e=-.01&&n.a<=wf&&(n.a=0),n.b>=-.01&&n.b<=wf&&(n.b=0),n}function cIn(n,e){return e==(sD(),sD(),Pzn)?n.toLocaleLowerCase():n.toLowerCase()}function nV(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Ph(n),n.o)}function Cr(n){var e,t;t=(e=new RI,e),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),t)}function A0e(n,e){var t;return t=e>0?e-1:e,e8n(Kie(IIn(YU(new zp,t),n.n),n.j),n.k)}function S0e(n,e,t,i){var r;n.j=-1,EY(n,iY(n,e,t),(er(),r=u(e,66).Mj(),r.Ok(i)))}function uIn(n){this.g=n,this.f=new X,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function sIn(n){this.b=new X,this.a=new X,this.c=new X,this.d=new X,this.e=n}function oIn(n,e){this.a=new we,this.e=new we,this.b=(i6(),oP),this.c=n,this.b=e}function fIn(n,e,t){kE.call(this),eV(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function hIn(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(aj(),fR)}function Ld(n){if(n<0)throw T(new Hn("Illegal Capacity: "+n));this.g=this.ri(n)}function P0e(n,e){if(0>n||n>e)throw T(new bG("fromIndex: 0, toIndex: "+n+tnn+e))}function I0e(n){var e;if(n.a==n.b.a)throw T(new ic);return e=n.a,n.c=e,n.a=n.a.e,e}function HC(n){var e;z0(!!n.c),e=n.c.a,Ts(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function qC(n,e){var t;return Ta(n),t=new DTn(n,n.a.rd(),n.a.qd()|4,e),new $n(n,t)}function O0e(n,e){var t,i;return t=u(ab(n.d,e),14),t?(i=e,n.e.pc(i,t)):null}function GC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),70),H(t,(G(),pp),e)}function D0e(n){var e;return e=K(Y(k(n,(nn(),S1)))),e<0&&(e=0,H(n,S1,e)),e}function $0e(n,e,t){var i;i=y.Math.max(0,n.b/2-.5),g6(t,i,1),W(e,new L7n(t,i))}function F0e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],Gt(m8(i))}function lIn(n,e,t,i,r,c){var o;o=C$(i),Hi(o,r),Ci(o,c),Tn(n.a,i,new EE(o,e,t.f))}function aIn(n,e){var t;if(t=R7(n.Tg(),e),!t)throw T(new Hn(Pl+e+MB));return t}function ob(n,e){var t;for(t=n;Pt(t);)if(t=Pt(t),t==e)return!0;return!1}function x0e(n,e){var t,i,r;for(i=e.a.cd(),t=u(e.a.dd(),14).gc(),r=0;r0&&(n.a/=e,n.b/=e),n}function is(n){var e;return n.w?n.w:(e=Gle(n),e&&!e.kh()&&(n.w=e),e)}function q0e(n){var e;return n==null?null:(e=u(n,190),Gve(e,e.length))}function D(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.li(e,n.g[e])}function G0e(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)ko(n.b,e),e=yT(e);ko(n.b,e)}function z0e(n){var e;for(e=0;e=14&&e<=16))),n}function gIn(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function pIn(n,e,t){var i,r;i=e;do r=K(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function O3(n,e){var t,i;i=n.a,t=Tge(n,e,null),i!=e&&!n.e&&(t=j4(n,e,t)),t&&t.Fi()}function tV(n,e){return Zo(),mo(Cl),y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)}function iV(n,e){return Zo(),mo(Cl),y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)}function X0e(n,e){return yl(),Wc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function xw(n,e){return Uie(J5(n,e,ge(Ni(dh,ch(ge(Ni(e==null?0:mt(e),bh)),15)))))}function vIn(){vIn=N,$Wn=Fe((Qn(),A(M(zR,1),z,267,0,[ii,pi,Xt,Tc,Ju,mf])))}function mIn(){mIn=N,_Zn=Fe((vb(),A(M(UK,1),z,291,0,[zK,gy,wy,GK,dy,by])))}function kIn(){kIn=N,FZn=Fe((fh(),A(M(Rfn,1),z,248,0,[HK,ly,ay,xP,$P,FP])))}function yIn(){yIn=N,uXn=Fe((q2(),A(M(rv,1),z,227,0,[iv,ym,tv,qb,Cg,Eg])))}function jIn(){jIn=N,pXn=Fe((h4(),A(M(sun,1),z,275,0,[Cm,iun,uun,cun,run,tun])))}function EIn(){EIn=N,gXn=Fe((A7(),A(M(eun,1),z,274,0,[LS,Ycn,nun,Jcn,Zcn,p_])))}function CIn(){CIn=N,BQn=Fe((JT(),A(M(Hsn,1),z,313,0,[Q_,_sn,V_,Rsn,Ksn,sP])))}function TIn(){TIn=N,bXn=Fe((eM(),A(M(Xcn,1),z,276,0,[d_,a_,w_,b_,g_,FS])))}function MIn(){MIn=N,VJn=Fe((k6(),A(M(XJn,1),z,327,0,[pP,aK,bK,dK,wK,lK])))}function AIn(){AIn=N,ane=Fe((Mu(),A(M(qP,1),z,273,0,[Gl,n1,Ty,s9,u9,Pp])))}function SIn(){SIn=N,rne=Fe((ZT(),A(M(xhn,1),z,312,0,[uH,Dhn,Fhn,Ihn,$hn,Ohn])))}function V0e(){return jb(),A(M(lr,1),z,93,0,[So,Zh,Po,Oo,jh,eo,ds,Io,no])}function UC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,0,t,n.a))}function WC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,1,t,n.b))}function D3(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,3,t,n.b))}function Bd(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,3,t,n.f))}function Rd(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,4,t,n.g))}function nu(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,5,t,n.i))}function eu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,6,t,n.j))}function $3(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,1,t,n.j))}function F3(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,4,t,n.c))}function x3(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,2,t,n.k))}function G$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,2,t,n.d))}function d1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,4,t,n.s))}function hb(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,5,t,n.t))}function L3(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,5,t,e))}function Q8(n,e){var t;return t=u(te(($j(),eI),n),55),t?t.xj(e):F(Zn,rn,1,e,5,1)}function Bh(n,e){var t,i;return t=e in n.a,t&&(i=Dh(n,e).he(),i)?i.a:null}function Q0e(n,e){var t,i,r;return t=(i=(ad(),r=new QH,r),e&&zY(i,e),i),aV(t,n),t}function PIn(n,e,t){if(W3(n,t),!n.Bk()&&t!=null&&!n.wj(t))throw T(new xI);return t}function IIn(n,e){return n.n=e,n.n?(n.f=new X,n.e=new X):(n.f=null,n.e=null),n}function Me(n,e,t,i,r,c){var o;return o=LD(n,e),DIn(t,o),o.i=r?8:0,o.f=i,o.e=r,o.g=c,o}function rV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function cV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function uV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function sV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function oV(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function OIn(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0),Q2e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function fV(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=h7(n.f)),n.c).e}function mo(n){if(!(n>=0))throw T(new Hn("tolerance ("+n+") must be >= 0"));return n}function N3(){return _K||(_K=new kBn,_w(_K,A(M(mg,1),rn,130,0,[new nq]))),_K}function ur(){ur=N,Bm=new kO(K6,0),Su=new kO("INPUT",1),xc=new kO("OUTPUT",2)}function VC(){VC=N,Hcn=new bO("ARD",0),DS=new bO("MSD",1),o_=new bO("MANUAL",2)}function _d(){_d=N,ry=new TO("BARYCENTER",0),_m=new TO(rHn,1),aP=new TO(cHn,2)}function J8(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new V0(e,t));return new AU(n,e)}function xIn(n,e){var t;return I(e,42)?n.c.Mc(e):(t=NF(n,e),IT(n,e),t)}function wr(n,e,t){return Ca(n,e),Ic(n,t),d1(n,0),hb(n,1),p1(n,!0),g1(n,!0),n}function rs(n,e){if(n<0)throw T(new Hn(e+" cannot be negative but was: "+n));return n}function LIn(n,e){var t,i;for(t=0,i=n.gc();t0?u(un(t.a,i-1),10):null}function Q5(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,2,t,n.k))}function JC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,8,t,n.f))}function YC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,7,t,n.i))}function aV(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,8,t,n.a))}function dV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,0,t,n.b))}function bV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,0,t,n.b))}function wV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,1,t,n.c))}function gV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,1,t,n.c))}function U$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,4,t,n.c))}function pV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,1,t,n.d))}function W$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,2,t,n.D))}function X$(n,e){n.r>0&&n.c0&&n.g!=0&&X$(n.i,e/n.r*n.i.d))}function cbe(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new T9n:new ZH,n.c=y7e(i,n.b,n.a)}function zIn(n,e){return zh(n.e,e)?(er(),R$(e)?new IE(e,n):new i8(e,n)):new Nkn(e,n)}function ZC(n,e){return zie(Y5(n.a,e,ge(Ni(dh,ch(ge(Ni(e==null?0:mt(e),bh)),15)))))}function ube(n,e,t){return cb(n,new Hvn(e),new mln,new qvn(t),A(M(Bu,1),z,132,0,[]))}function sbe(n){var e,t;return 0>n?new PG:(e=n+1,t=new wSn(e,n),new oU(null,t))}function obe(n,e){Pn();var t;return t=new s2(1),ki(n)?yr(t,n,e):_c(t.f,n,e),new DI(t)}function fbe(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:L6):e}function V$(n){switch(Rz(n.e!=3),n.e){case 2:return!1;case 0:return!0}return wde(n)}function WIn(n,e){var t;return I(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Q$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=ui(J0(n.n[t][c],ge(Ih(r,1))),3),i}function lbe(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),XT(n,t.cd(),t.dd())}function abe(n,e){var t;t=new Wy,u(e.b,65),u(e.b,65),u(e.b,65),Zc(e.a,new BU(n,t,e))}function vV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,21,t,n.b))}function mV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,11,t,n.d))}function nT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,13,t,n.j))}function XIn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i>>31;i!=0&&(n[t]=i)}function jbe(n,e){Pn();var t,i;for(i=new X,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),n.Qc(this.g))}function $t(n,e){ME.call(this,ree,n,e),this.b=this,this.a=Kc(n.Tg(),On(this.e.Tg(),this.c))}function Z5(n,e){var t,i;for(_n(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),n.zc(t.cd(),t.dd())}function Dbe(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!yC(n,e,i.Pb()))return!1;return!0}function $be(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.gh(e,-1-(c==-1?i:c),null,r)),r}function Fbe(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.ih(e,-1-(c==-1?i:c),null,r)),r}function dOn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function bOn(n){switch(n.g){case 2:return J(),Gn;case 4:return J(),Vn;default:return n}}function wOn(n){switch(n.g){case 1:return J(),ae;case 3:return J(),Kn;default:return n}}function xbe(n){var e,t,i;return n.j==(J(),Kn)&&(e=GLn(n),t=au(e,Vn),i=au(e,Gn),i||i&&t)}function Lbe(n){var e,t;return e=u(n.e&&n.e(),9),t=u(IW(e,e.length),9),new ks(e,t,e.length)}function Nbe(n,e){le(e,iHn,1),TQ(ire(new tj((Vv(),new GD(n,!1,!1,new BH))))),ce(e)}function Y8(n,e){return qn(),ki(n)?DX(n,Ce(e)):G0(n)?TD(n,Y(e)):q0(n)?Kfe(n,sn(e)):n.wd(e)}function TV(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),W(n.a,e)}function R3(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.b1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new ic)}function Vbe(n){gyn();var e;return M7n(hK,n)||(e=new Zwn,e.a=n,wU(hK,n,e)),u(br(hK,n),635)}function Ks(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=$a,i=Wh),t=Gt(r/J2),e=Gt(r-t*J2),Bc(e,t,i)}function Z8(n){var e,t,i;for(i=0,t=new o2(n.a);t.a>22),r=n.h+e.h+(i>>22),Bc(t&Nu,i&Nu,r&Wh)}function xOn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Bc(t&Nu,i&Nu,r&Wh)}function i7(n){var e;return n<128?(e=(QEn(),yin)[n],!e&&(e=yin[n]=new wq(n)),e):new wq(n)}function jt(n){var e;return I(n,78)?n:(e=n&&n.__java$exception,e||(e=new CDn(n),Kmn(e)),e)}function r7(n){if(I(n,186))return u(n,118);if(n)return null;throw T(new c2(Iqn))}function LOn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(tt(e,vT(n)))return!0;return!1}function OV(n){return n.a.Ob()?!0:n.a!=n.d?!1:(n.a=new lX(n.e.f),n.a.Ob())}function Zt(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(GU(n.c,n.c.length,t),!0)}function hwe(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),42),n.yc(i.cd(),i.dd(),t);return n}function NOn(n,e){var t,i;for(i=new E(n.b);i.a=0,"Negative initial capacity"),TE(e>=0,"Non-positive load factor"),Cu(this)}function uF(n,e,t){return n>=128?!1:n<64?b5(ui(Ih(1,n),t),0):b5(ui(Ih(1,n-64),e),0)}function mwe(n,e){return!n||!e||n==e?!1:zd(n.b.c,e.b.c+e.b.b)<0&&zd(e.b.c,n.b.c+n.b.b)<0}function VOn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new ys(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function kwe(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;ii)throw T(new V0(e,i));return n.hi()&&(t=aMn(n,t)),n.Vh(e,t)}function s7(n,e,t){return t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function H(n,e,t){return t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function QOn(n){var e,t;return t=new TC,Pr(t,n),H(t,(dl(),hp),n),e=new we,Cye(n,t,e),QEe(n,t,e),t}function Ewe(n){eg();var e,t,i;for(t=F(di,q,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=r3e(i,n);return t}function JOn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c>=1);return e}function ZOn(n){var e,t;return t=x7(n.h),t==32?(e=x7(n.m),e==32?x7(n.l)+32:e+20-10):t-12}function t6(n){var e;return e=n.a[n.b],e==null?null:(St(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function nDn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function bT(n,e,t){var i,r;return i=new I$(e,t),r=new dI,n.b=zNn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function eDn(n,e,t){var i,r,c,o;for(o=c6(e,t),c=0,r=o.Kc();r.Ob();)i=u(r.Pb(),11),it(n.c,i,Q(c++))}function wl(n){var e,t;for(t=new E(n.a.b);t.at&&(t=n[e]);return t}function tDn(n,e,t){var i;return i=new X,XY(n,e,i,(J(),Vn),!0,!1),XY(n,t,i,Gn,!1,!1),i}function oF(n,e,t){var i,r,c,o;return c=null,o=e,r=Fd(o,"labels"),i=new jkn(n,t),c=(Hme(i.a,i.b,r),r),c}function Twe(n,e,t,i){var r;return r=xY(n,e,t,i),!r&&(r=Mge(n,t,i),r&&!rg(n,e,r))?null:r}function Mwe(n,e,t,i){var r;return r=LY(n,e,t,i),!r&&(r=TF(n,t,i),r&&!rg(n,e,r))?null:r}function iDn(n,e){var t;for(t=0;t1||e>=0&&n.b<3)}function o7(n){var e,t,i;for(e=new hu,i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),8),s3(e,0,new kr(t));return e}function ja(n){var e,t;for(t=new E(n.a.b);t.ai?1:0}function QV(n,e){return ANn(n,e)?(Tn(n.b,u(k(e,(G(),Gb)),21),e),Ke(n.a,e),!0):!1}function Bwe(n){var e,t;e=u(k(n,(G(),Au)),10),e&&(t=e.c,Jc(t.a,e),t.a.c.length==0&&Jc(Gi(e).b,t))}function fDn(n){return vf?F($zn,lKn,572,0,0,1):u(af(n.a,F($zn,lKn,572,n.a.c.length,0,1)),842)}function Rwe(n,e,t,i){return QE(),new GI(A(M(Ha,1),OM,42,0,[(ex(n,e),new bd(n,e)),(ex(t,i),new bd(t,i))]))}function Rw(n,e,t){var i,r;return r=(i=new RI,i),wr(r,e,t),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),r),r}function aF(n){var e,t,i,r;for(r=lre($ne,n),t=r.length,i=F(tn,q,2,t,6,1),e=0;e=n.b.c.length||(JV(n,2*e+1),t=2*e+2,t=0&&n[i]===e[i];i--);return i<0?0:cO(ui(n[i],fr),ui(e[i],fr))?-1:1}function _we(n,e){var t,i;for(i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),214),t.e.length>0&&(e.td(t),t.i&&Fge(t))}function bF(n,e){var t,i;return i=u(Rn(n.a,4),126),t=F(bH,qB,415,e,0,1),i!=null&&gc(i,0,t,0,i.length),t}function lDn(n,e){var t;return t=new zx((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function Kwe(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(e))return!0;return!1}function wF(n,e,t,i,r){var c,o;for(o=t;o<=r;o++)for(c=e;c<=i;c++)if(zw(n,c,o))return!0;return!1}function aDn(n,e,t){var i,r,c,o;for(_n(t),o=!1,c=n.Zc(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),o=!0;return o}function Hwe(n,e){var t;return n===e?!0:I(e,83)?(t=u(e,83),ZJ(Ed(n),t.vc())):!1}function dDn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),n.re(e,i.dd()))return!0;return!1}function bDn(n,e,t){return n.d[e.p][t.p]||(Bpe(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function W3(n,e){if(!n.ai()&&e==null)throw T(new Hn("The 'no null' constraint is violated"));return e}function X3(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),W$(n,e==null?null:(_n(e),e)),n.C&&n.yk(null)}function qwe(n,e){var t;return!n||n==e||!ai(e,(G(),m0))?!1:(t=u(k(e,(G(),m0)),10),t!=n)}function gF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.pl()}}function wDn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n.ql()}}function gDn(n){cMn.call(this,"The given string does not match the expected format for individual spacings.",n)}function Vu(){Vu=N,gs=new Jj("ELK",0),Yhn=new Jj("JSON",1),Jhn=new Jj("DOT",2),Zhn=new Jj("SVG",3)}function f7(){f7=N,CP=new AO(Xh,0),Don=new AO("RADIAL_COMPACTION",1),$on=new AO("WEDGE_COMPACTION",2)}function lf(){lf=N,Win=new uO("CONCURRENT",0),ls=new uO("IDENTITY_FINISH",1),Rb=new uO("UNORDERED",2)}function pF(){pF=N,jrn=(Aj(),SR),yrn=new In(pnn,jrn),OUn=new kt(vnn),DUn=new kt(mnn),$Un=new kt(knn)}function V3(){V3=N,xcn=new j0n,Lcn=new E0n,zWn=new C0n,GWn=new T0n,qWn=new M0n,Fcn=(_n(qWn),new uln)}function Q3(){Q3=N,sK=new jO("CONSERVATIVE",0),con=new jO("CONSERVATIVE_SOFT",1),Rm=new jO("SLOPPY",2)}function wT(){wT=N,_hn=new vd(15),cne=new tr((Xe(),nd),_hn),t9=Mp,Lhn=HZn,Nhn=Za,Rhn=Kg,Bhn=BP}function vF(n,e,t){var i,r,c;for(i=new Tt,c=_e(t,0);c.b!=c.d.c;)r=u(Re(c),8),Ke(i,new kr(r));aDn(n,e,i)}function Gwe(n){var e,t,i;for(e=0,i=F(di,q,8,n.b,0,1),t=_e(n,0);t.b!=t.d.c;)i[e++]=u(Re(t),8);return i}function ZV(n){var e;return e=(!n.a&&(n.a=new V(e1,n,9,5)),n.a),e.i!=0?ore(u(D(e,0),678)):null}function zwe(n,e){var t;return t=qi(n,e),cO(h$(n,e),0)|Cre(h$(n,t),0)?t:qi(IM,h$(J0(t,63),1))}function Uwe(n,e){var t;t=cn((xF(),uP))!=null&&e.wg()!=null?K(Y(e.wg()))/K(Y(cn(uP))):1,it(n.b,e,t)}function Wwe(n,e){var t,i;return t=u(n.d.Bc(e),14),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function nQ(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t0)return a3(e-1,n.a.c.length),h1(n.a,e-1);throw T(new qmn)}function Xwe(n,e,t){if(e<0)throw T(new mr(_Hn+e));ee)throw T(new Hn(xM+n+aKn+e));if(n<0||e>t)throw T(new bG(xM+n+rnn+e+tnn+t))}function mDn(n){if(!n.a||!(n.a.i&8))throw T(new $r("Enumeration class expected for layout option "+n.f))}function lb(n){var e;++n.j,n.i==0?n.g=null:n.ihA?n-t>hA:t-n>hA}function kF(n,e){return!n||e&&!n.j||I(n,124)&&u(n,124).a.b==0?0:n.Re()}function pT(n,e){return!n||e&&!n.k||I(n,124)&&u(n,124).a.a==0?0:n.Se()}function h7(n){return jl(),n<0?n!=-1?new VQ(-1,-n):gR:n<=10?xin[Gt(n)]:new VQ(1,n)}function tQ(n){throw cF(),T(new L9n("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function CDn(n){H9n(),oE(this),eC(this),this.e=n,NNn(this,n),this.g=n==null?ru:Nr(n),this.a="",this.b=n,this.a=""}function iQ(){this.a=new qgn,this.f=new O6n(this),this.b=new D6n(this),this.i=new $6n(this),this.e=new F6n(this)}function TDn(){iie.call(this,new _X(sb(16))),rs(2,W_n),this.b=2,this.a=new RW(null,null,0,null),$9(this.a,this.a)}function i6(){i6=N,J_=new vO("DUMMY_NODE_OVER",0),qsn=new vO("DUMMY_NODE_UNDER",1),oP=new vO("EQUAL",2)}function yF(){yF=N,_R=sMn(A(M(e9,1),z,103,0,[(sr(),Zs),Ao])),KR=sMn(A(M(e9,1),z,103,0,[Yh,Jh]))}function jF(n){return(J(),uu).Hc(n.j)?K(Y(k(n,(G(),hv)))):Gr(A(M(di,1),q,8,0,[n.i.n,n.n,n.a])).b}function Zwe(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),561),r=new pNn(e,n.e,n.f),W(n.g,r)}function Ca(n,e){var t,i,r;i=n.nk(e,null),r=null,e&&(r=(Qp(),t=new ud,t),O3(r,n.r)),i=df(n,r,i),i&&i.Fi()}function nge(n,e){var t,i;for(i=xu(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.Tf(e.e,i),t=t|_7(n,e,i,!1),i=!i;yV(n)}function rQ(n,e){var t,i,r;return i=!1,t=e.q.d,e.dr&&(JFn(e.q,r),i=t!=e.q.d)),i}function MDn(n,e){var t,i,r,c,o,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,o=h-r,f=l-c,t=y.Math.sqrt(o*o+f*f),t}function cQ(n,e){var t,i;return i=OT(n),i||(t=(bL(),Yxn(e)),i=new Fmn(t),me(i.Vk(),n)),i}function l7(n,e){var t,i;return t=u(n.c.Bc(e),14),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function ADn(n,e){var t;for(t=0;t=n.c.b:n.a<=n.c.b))throw T(new ic);return e=n.a,n.a+=n.c.c,++n.b,Q(e)}function ige(n){var e;return e=new uIn(n),O8(n.a,SWn,new Hu(A(M(Rk,1),rn,369,0,[e]))),e.d&&W(e.f,e.d),e.f}function EF(n){var e;return e=new Mz(n.a),Pr(e,n),H(e,(G(),rt),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function rge(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function cge(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),_Tn(n,i,t))return!0;return!1}function uge(n){var e,t;for(t=new E(n.r);t.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function hge(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function FDn(n){var e,t;if(n!=null)for(t=0;t0&&(t=u(un(n.a,n.a.c.length-1),570),QV(t,e))||W(n.a,new dSn(e))}function wge(n){wo();var e,t;e=n.d.c-n.e.c,t=u(n.g,145),Zc(t.b,new _5n(e)),Zc(t.c,new K5n(e)),$i(t.i,new H5n(e))}function BDn(n){var e;return e=new V1,e.a+="VerticalSegment ",rc(e,n.e),e.a+=" ",De(e,Lz(new YI,new E(n.k))),e.a}function gge(n){var e;return e=u(xd(n.c.c,""),229),e||(e=new M2(Vp(Xp(new Zg,""),"Other")),Aa(n.c.c,"",e)),e}function r6(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (name: ",dr(e,n.zb),e.a+=")",e.a)}function hQ(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,4,r,e),t?t.Ei(i):t=i),t}function CF(n,e){var t,i,r;for(t=0,r=zr(n,e).Kc();r.Ob();)i=u(r.Pb(),11),t+=k(i,(G(),Au))!=null?1:0;return t}function Kw(n,e,t){var i,r,c;for(i=0,c=_e(n,0);c.b!=c.d.c&&(r=K(Y(Re(c))),!(r>t));)r>=e&&++i;return i}function pge(n,e,t){var i,r;return i=new Lh(n.e,3,13,null,(r=e.c,r||(Sn(),Tf)),v1(n,e),!1),t?t.Ei(i):t=i,t}function vge(n,e,t){var i,r;return i=new Lh(n.e,4,13,(r=e.c,r||(Sn(),Tf)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function lQ(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,8,r,n.r),t?t.Ei(i):t=i),t}function w1(n,e){var t,i;return t=u(e,676),i=t.vk(),!i&&t.wk(i=I(e,88)?new Fkn(n,u(e,26)):new eAn(n,u(e,148))),i}function a7(n,e,t){var i;n.qi(n.i+1),i=n.oi(e,t),e!=n.i&&gc(n.g,e,n.g,e+1,n.i-e),St(n.g,e,i),++n.i,n.bi(e,t),n.ci()}function mge(n,e){var t;return e.a&&(t=e.a.a.length,n.a?De(n.a,n.b):n.a=new Yu(n.d),iAn(n.a,e.a,e.d.length,t)),n}function kge(n,e){var t,i,r,c;if(e.vi(n.a),c=u(Rn(n.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw T(new mr(xM+n+rnn+e+", size: "+t));if(n>e)throw T(new Hn(xM+n+aKn+e))}function As(n,e,t){if(e<0)bY(n,t);else{if(!t.Ij())throw T(new Hn(Pl+t.ne()+em));u(t,66).Nj().Vj(n,n.yh(),e)}}function Ege(n,e,t,i,r,c,o,f){var h;for(h=t;c=i||e=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function zDn(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (source: ",dr(e,n.d),e.a+=")",e.a)}function Tge(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,5,r,n.a),t?FJ(t,i):t=i),t}function g1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,2,t,e))}function dQ(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,8,t,e))}function kT(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,8,t,e))}function p1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,3,t,e))}function bQ(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,9,t,e))}function u6(n,e){var t;return n.b==-1&&n.a&&(t=n.a.Gj(),n.b=t?n.c.Xg(n.a.aj(),t):yt(n.c.Tg(),n.a)),n.c.Og(n.b,e)}function Q(n){var e,t;return n>-129&&n<128?(e=n+128,t=(qEn(),jin)[e],!t&&(t=jin[e]=new gq(n)),t):new gq(n)}function J3(n){var e,t;return n>-129&&n<128?(e=n+128,t=(VEn(),Min)[e],!t&&(t=Min[e]=new vq(n)),t):new vq(n)}function wQ(n){var e,t;return e=n.k,e==(Qn(),Xt)?(t=u(k(n,(G(),ec)),61),t==(J(),Kn)||t==ae):!1}function Mge(n,e,t){var i,r,c;return c=(r=b4(n.b,e),r),c&&(i=u(jM(G8(n,c),""),26),i)?xY(n,i,e,t):null}function TF(n,e,t){var i,r,c;return c=(r=b4(n.b,e),r),c&&(i=u(jM(G8(n,c),""),26),i)?LY(n,i,e,t):null}function UDn(n,e){var t,i;for(i=new ie(n);i.e!=i.i.gc();)if(t=u(oe(i),138),B(e)===B(t))return!0;return!1}function s6(n,e,t){var i;if(i=n.gc(),e>i)throw T(new V0(e,i));if(n.hi()&&n.Hc(t))throw T(new Hn(yk));n.Xh(e,t)}function Age(n,e){var t;if(t=xw(n.i,e),t==null)throw T(new Sf("Node did not exist in input."));return MV(e,t),null}function Sge(n,e){var t;if(t=R7(n,e),I(t,322))return u(t,34);throw T(new Hn(Pl+e+"' is not a valid attribute"))}function Pge(n,e,t){var i,r;for(r=I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n),i=0;ie?1:n==e?n==0?ni(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function Bge(n,e){le(e,"Sort end labels",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new bdn),new wdn),new gdn),ce(e)}function o6(n,e,t){var i,r;return n.ej()?(r=n.fj(),i=Dx(n,e,t),n.$i(n.Zi(7,Q(t),i,e,r)),i):Dx(n,e,t)}function MF(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.cd(),t=e.Sh(),i=(t&nt)%n.d.length,yde(n,i,hNn(n,i,t,r)))}function Y3(n,e){var t;t=(n.Bb&Eo)!=0,e?n.Bb|=Eo:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,10,t,e))}function Z3(n,e){var t;t=(n.Bb&Ib)!=0,e?n.Bb|=Ib:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,12,t,e))}function n4(n,e){var t;t=(n.Bb&mu)!=0,e?n.Bb|=mu:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,15,t,e))}function e4(n,e){var t;t=(n.Bb&Bb)!=0,e?n.Bb|=Bb:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,11,t,e))}function Rge(n,e){var t;return t=ni(n.b.c,e.b.c),t!=0||(t=ni(n.a.a,e.a.a),t!=0)?t:ni(n.a.b,e.a.b)}function _ge(n,e){var t;if(t=te(n.k,e),t==null)throw T(new Sf("Port did not exist in input."));return MV(e,t),null}function Kge(n){var e,t;for(t=wNn(is(n)).Kc();t.Ob();)if(e=Ce(t.Pb()),A6(n,e))return Vae((C7n(),zne),e);return null}function Hge(n,e){var t,i,r,c,o;for(o=Kc(n.e.Tg(),e),c=0,t=u(n.g,119),r=0;r>10)+rk&Ut,e[1]=(n&1023)+56320&Ut,Hs(e,0,e.length)}function jT(n){var e,t;return t=u(k(n,(nn(),as)),103),t==(sr(),kh)?(e=K(Y(k(n,zS))),e>=1?Ao:Jh):t}function zge(n){switch(u(k(n,(nn(),Qh)),218).g){case 1:return new ewn;case 3:return new uwn;default:return new nwn}}function Ta(n){if(n.c)Ta(n.c);else if(n.d)throw T(new $r("Stream already terminated, can't be modified or used"))}function PF(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (identifier: ",dr(e,n.k),e.a+=")",e.a)}function QDn(n,e,t){var i,r;return i=(ad(),r=new Xy,r),UC(i,e),WC(i,t),n&&me((!n.a&&(n.a=new Yt(io,n,5)),n.a),i),i}function IF(n,e,t,i){var r,c;return _n(i),_n(t),r=n.xc(e),c=r==null?t:l7n(u(r,15),u(t,14)),c==null?n.Bc(e):n.zc(e,c),c}function Cn(n){var e,t,i,r;return t=(e=u(xo((i=n.gm,r=i.f,r==Ie?i:r)),9),new ks(e,u(bo(e,e.length),9),0)),ko(t,n),t}function Uge(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),t7(t,u(un(e,i.p),14)))return i;return null}function Wge(n,e,t){var i;try{Awe(n,e,t)}catch(r){throw r=jt(r),I(r,597)?(i=r,T(new EX(i))):T(r)}return e}function vl(n,e){var t;return Fr(n)&&Fr(e)&&(t=n-e,ik>1,n.k=t-1>>1}function OF(){_J();var n,e,t;t=qTe+++Date.now(),n=Gt(y.Math.floor(t*uk))&FM,e=Gt(t-n*enn),this.a=n^1502,this.b=e^tN}function Kh(n){var e,t,i;for(e=new X,i=new E(n.j);i.a34028234663852886e22?Ft:e<-34028234663852886e22?Qt:e}function JDn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function YDn(n){var e,t,i,r;for(e=new Djn(n.Hd().gc()),r=0,i=$2(n.Hd().Kc());i.Ob();)t=i.Pb(),ole(e,t,Q(r++));return $5e(e.a)}function Zge(n,e){var t,i,r;for(r=new we,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),it(r,t.cd(),Gbe(n,u(t.dd(),15)));return r}function yQ(n,e){n.n.c.length==0&&W(n.n,new lC(n.s,n.t,n.i)),W(n.b,e),iJ(u(un(n.n,n.n.c.length-1),211),e),oRn(n,e)}function Hw(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(n.a.c=F(Zn,rn,1,0,5,1),Zt(n.a,n.b),Zt(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function DF(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),17),on(sn(k(t,(G(),kf))))||++r;return r}function n2e(n,e){var t,i,r;i=$w(e),r=K(Y(bb(i,(nn(),Mo)))),t=y.Math.max(0,r/2-.5),g6(e,t,1),W(n,new G7n(e,t))}function Ss(){Ss=N,Qk=new Q9(Xh,0),Sm=new Q9("FIRST",1),xl=new Q9(uHn,2),Pm=new Q9("LAST",3),Ub=new Q9(sHn,4)}function Hh(){Hh=N,rH=new Wj(K6,0),yy=new Wj("POLYLINE",1),Cv=new Wj("ORTHOGONAL",2),Sp=new Wj("SPLINES",3)}function ET(){ET=N,Jon=new PO("ASPECT_RATIO_DRIVEN",0),IK=new PO("MAX_SCALE_DRIVEN",1),Qon=new PO("AREA_DRIVEN",2)}function w7(){w7=N,AP=new IO("P1_STRUCTURE",0),SP=new IO("P2_PROCESSING_ORDER",1),PP=new IO("P3_EXECUTION",2)}function CT(){CT=N,CK=new MO("OVERLAP_REMOVAL",0),jK=new MO("COMPACTION",1),EK=new MO("GRAPH_SIZE_CALCULATION",2)}function zd(n,e){return Zo(),mo(Cl),y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e))}function ZDn(n,e){var t,i;for(t=_e(n,0);t.b!=t.d.c;){if(i=x9(Y(Re(t))),i==e)return;if(i>e){a$(t);break}}y8(t,e)}function En(n,e){var t,i,r,c,o;if(t=e.f,Aa(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,o=r.length;ce&&i.ue(n[c-1],n[c])>0;--c)o=n[c],St(n,c,n[c-1]),St(n,c-1,o)}function Ps(n,e,t,i){if(e<0)_Y(n,t,i);else{if(!t.Ij())throw T(new Hn(Pl+t.ne()+em));u(t,66).Nj().Tj(n,n.yh(),e,i)}}function TT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Hn("Node "+e+" not part of edge "+n))}function t2e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function n$n(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function jQ(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return aQ(n,e,t,i)}function i2e(n){return n.k!=(Qn(),ii)?!1:C3(new $n(null,new Cd(new re(ue(ei(n).a.Kc(),new An)))),new Hbn)}function r2e(n){return n.e==null?n:(!n.c&&(n.c=new zx((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c2e(n,e){return n.h==tk&&n.m==0&&n.l==0?(e&&(Il=Bc(0,0,0)),eyn((I3(),gin))):(e&&(Il=Bc(n.l,n.m,n.h)),Bc(0,0,0))}function Nr(n){var e;return Array.isArray(n)&&n.im===Xg?J1($u(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function f6(n){var e;this.a=(e=u(n.e&&n.e(),9),new ks(e,u(bo(e,e.length),9),0)),this.b=F(Zn,rn,1,this.a.a.length,5,1)}function u2e(n){var e,t,i;for(this.a=new Sh,i=new E(n);i.a0&&(Te(e-1,n.length),n.charCodeAt(e-1)==58)&&!$F(n,a9,d9))}function $F(n,e,t){var i,r;for(i=0,r=n.length;i=r)return e.c+t;return e.c+e.b.gc()}function l2e(n,e){o3();var t,i,r,c;for(i=bPn(n),r=e,S3(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function CQ(n){var e,t,i;for(i=new i1,i.a+="[",e=0,t=n.gc();e0&&this.b>0&&cW(this.c,this.b,this.a)}function AQ(n){xF(),this.c=uf(A(M(sMe,1),rn,831,0,[LQn])),this.b=new we,this.a=n,it(this.b,uP,1),Zc(NQn,new q6n(this))}function e$n(n,e){var t;return n.d?Uu(n.b,e)?u(te(n.b,e),51):(t=e.Kf(),it(n.b,e,t),t):e.Kf()}function SQ(n,e){var t;return B(n)===B(e)?!0:I(e,91)?(t=u(e,91),n.e==t.e&&n.d==t.d&&Jae(n,t.a)):!1}function B2(n){switch(J(),n.g){case 4:return Kn;case 1:return Vn;case 3:return ae;case 2:return Gn;default:return Xr}}function PQ(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return SV(n,e)}function p2e(n){switch(n.g){case 0:return new Lgn;case 1:return new Ngn;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function t$n(n){switch(n.g){case 0:return new xgn;case 1:return new Bgn;default:throw T(new Hn(AN+(n.f!=null?n.f:""+n.g)))}}function i$n(n){switch(n.g){case 0:return new sG;case 1:return new b9n;default:throw T(new Hn(bA+(n.f!=null?n.f:""+n.g)))}}function v2e(n){switch(n.g){case 1:return new Pgn;case 2:return new kjn;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function m2e(n){var e,t;if(n.b)return n.b;for(t=vf?null:n.d;t;){if(e=vf?null:t.b,e)return e;t=vf?null:t.d}return e3(),Uin}function k2e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=dOn(n),i==n.d-1&&(--t,t=t|0)),e-=x7(t),e)}function y2e(n){var e,t,i;return n>5,e=n&31,i=F(be,Le,25,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function E2e(n){return yF(),qn(),!!(n$n(u(n.a,81).j,u(n.b,103))||u(n.a,81).d.e!=0&&n$n(u(n.a,81).j,u(n.b,103)))}function C2e(n){DC(),u(n.We((Xe(),_l)),174).Hc((Lu(),UP))&&(u(n.We(rw),174).Fc((Mu(),Pp)),u(n.We(_l),174).Mc(UP))}function c$n(n,e){var t,i;if(e){for(t=0;t=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function I2e(n,e){le(e,"End label post-processing",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new udn),new sdn),new odn),ce(e)}function O2e(n,e,t){var i,r;return i=K(n.p[e.i.p])+K(n.d[e.i.p])+e.n.b+e.a.b,r=K(n.p[t.i.p])+K(n.d[t.i.p])+t.n.b+t.a.b,r-i}function D2e(n,e,t){var i,r;for(i=ui(t,fr),r=0;fc(i,0)!=0&&r0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function F2e(n){var e;return n==null?null:new il((e=jc(n,!0),e.length>0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function LQ(n,e){var t;return n.i>0&&(e.lengthn.i&&St(e,n.i,null),e}function Oc(n,e,t){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),a7(n,i,e),r=n.Zi(3,null,e,i,c),t?t.Ei(r):t=r):a7(n,n.i,e),t}function x2e(n,e,t){var i,r;return i=new Lh(n.e,4,10,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function L2e(n,e,t){var i,r;return i=new Lh(n.e,3,10,null,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),v1(n,e),!1),t?t.Ei(i):t=i,t}function o$n(n){W0();var e;return e=new kr(u(n.e.We((Xe(),Kg)),8)),n.B.Hc((Lu(),Mv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function f$n(n){wb();var e;return(n.q?n.q:(Pn(),Pn(),vh))._b((nn(),j0))?e=u(k(n,j0),197):e=u(k(Gi(n),$m),197),e}function bb(n,e){var t,i;return i=null,ai(n,(nn(),rP))&&(t=u(k(n,rP),94),t.Xe(e)&&(i=t.We(e))),i==null&&(i=k(Gi(n),e)),i}function h$n(n,e){var t,i,r;return I(e,42)?(t=u(e,42),i=t.cd(),r=ab(n.Rc(),i),Ff(r,t.dd())&&(r!=null||n.Rc()._b(i))):!1}function NF(n,e){var t,i,r;return n.f>0?(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=hNn(n,r,i,e),t!=-1):!1}function Ko(n,e){var t,i,r;return n.f>0&&(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=kY(n,r,i,e),t)?t.dd():null}function g7(n,e){var t,i,r,c;for(c=Kc(n.e.Tg(),e),t=u(n.g,119),r=0;r1?cf(Ih(e.a[1],32),ui(e.a[0],fr)):ui(e.a[0],fr),$d(Ni(e.e,t))))}function p7(n,e){var t;return Fr(n)&&Fr(e)&&(t=n%e,ik>5,e&=31,r=n.d+t+(e==0?0:1),i=F(be,Le,25,r,15,1),Nve(i,n.a,t,e),c=new Pw(n.e,r,i),K5(c),c}function BQ(n,e,t){var i,r;i=u(vc(Pv,e),117),r=u(vc(m9,e),117),t?(yr(Pv,n,i),yr(m9,n,r)):(yr(m9,n,i),yr(Pv,n,r))}function p$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function v$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function K2e(n,e,t,i){var r,c,o;return r=!1,jEe(n.f,t,i)&&(ape(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],o=c[i],c[i]=c[t],c[t]=o,r=!0),r}function RQ(n,e,t,i,r){var c,o,f;for(o=r;e.b!=e.c;)c=u(y2(e),10),f=u(zr(c,i).Xb(0),11),n.d[f.p]=o++,t.c[t.c.length]=f;return o}function _Q(n,e,t){var i,r,c,o,f;return o=n.k,f=e.k,i=t[o.g][f.g],r=Y(bb(n,i)),c=Y(bb(e,i)),y.Math.max((_n(r),r),(_n(c),c))}function H2e(n,e,t){var i,r,c,o;for(i=t/n.c.length,r=0,o=new E(n);o.a2e3&&(wzn=n,KA=y.setTimeout(Vie,10))),_A++==0?(E0e((aG(),din)),!0):!1}function G2e(n,e){var t,i,r;for(i=new re(ue(ei(n).a.Kc(),new An));Se(i);)if(t=u(ve(i),17),r=t.d.i,r.c==e)return!1;return!0}function KQ(n,e){var t,i;if(I(e,245)){i=u(e,245);try{return t=n.vd(i),t==0}catch(r){if(r=jt(r),!I(r,205))throw T(r)}}return!1}function z2e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function U2e(n,e){return Zo(),Zo(),mo(Cl),(y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))>0}function HQ(n,e){return Zo(),Zo(),mo(Cl),(y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))<0}function y$n(n,e){return Zo(),Zo(),mo(Cl),(y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))<=0}function RF(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];tJL)return t.fh();if(i=t.Zg(),i||t==n)break}return i}function qQ(n){return dC(),I(n,156)?u(te($y,Azn),288).vg(n):Uu($y,$u(n))?u(te($y,$u(n)),288).vg(n):null}function X2e(n){if(DT(B4,n))return qn(),z4;if(DT(EB,n))return qn(),qa;throw T(new Hn("Expecting true or false"))}function V2e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Hn("Input edge is not connected to the input port."))}function A$n(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function P$n(n,e){var t;return B(e)===B(n)?!0:!I(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function Q2e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,cjn(t=c?(Vwe(n,e),-1):(Qwe(n,e),1)}function J2e(n,e){var t,i;for(t=(Te(e,n.length),n.charCodeAt(e)),i=e+1;ie.e?1:n.fe.f?1:mt(n)-mt(e)}function DT(n,e){return _n(n),e==null?!1:Mn(n,e)?!0:n.length==e.length&&Mn(n.toLowerCase(),e.toLowerCase())}function upe(n,e){var t,i,r,c;for(i=0,r=e.gc();i0&&fc(n,128)<0?(e=ge(n)+128,t=(XEn(),Ein)[e],!t&&(t=Ein[e]=new pq(n)),t):new pq(n)}function O$n(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Ce(Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),We)),i!=null)?i:e.ne()}function spe(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Ce(Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),We)),i!=null)?i:e.ne()}function ope(n,e){c$();var t,i;for(i=new re(ue(Kh(n).a.Kc(),new An));Se(i);)if(t=u(ve(i),17),t.d.i==e||t.c.i==e)return t;return null}function UQ(n,e,t){this.c=n,this.f=new X,this.e=new Li,this.j=new eW,this.n=new eW,this.b=e,this.g=new ys(e.c,e.d,e.b,e.a),this.a=t}function _F(n){var e,t,i,r;for(this.a=new Sh,this.d=new hi,this.e=0,t=n,i=0,r=t.length;i0):!1}function F$n(n){var e;B(hn(n,(Xe(),Bg)))===B((_h(),HP))&&(Pt(n)?(e=u(hn(Pt(n),Bg),334),gr(n,Bg,e)):gr(n,Bg,i9))}function ape(n,e,t){var i,r;yx(n.e,e,t,(J(),Gn)),yx(n.i,e,t,Vn),n.a&&(r=u(k(e,(G(),rt)),11),i=u(k(t,rt),11),l$(n.g,r,i))}function x$n(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new YTn(n,e),t&&(n.a[i][c]=new c6n(e),r=u(k(e,(G(),m0)),10),r&&Tn(n.d,r,e))}function L$n(n,e){var t,i,r;if(W(eS,n),e.Fc(n),t=u(te(DR,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),xr(eS,i,0)!=-1||L$n(i,e)}function dpe(n,e,t){var i;(Fzn?(m2e(n),!0):xzn||Nzn?(e3(),!0):Lzn&&(e3(),!1))&&(i=new hEn(e),i.b=t,g5e(n,i))}function KF(n,e){var t;t=!n.A.Hc((Qu(),id))||n.q==(Mi(),Ac),n.u.Hc((Mu(),n1))?t?xCe(n,e):a_n(n,e):n.u.Hc(Gl)&&(t?nCe(n,e):M_n(n,e))}function r4(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,I(i,97)?u(i,97).Jg():null),ome(e,t))){R2(n.a,4,t);return}R2(n.a,4,u(e,126))}function N$n(n,e,t){return new ys(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function bpe(n,e){var t,i;return t=Wc(n.a.c.p,e.a.c.p),t!=0?t:(i=Wc(n.a.d.i.p,e.a.d.i.p),i!=0?i:Wc(e.a.d.p,n.a.d.p))}function wpe(n,e,t){var i,r,c,o;return c=e.j,o=t.j,c!=o?c.g-o.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:ni(i,r))}function B$n(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new E(Hw(e));r.a=r)return r;for(e=e>0?e:0;ei&&St(e,i,null),e}function _$n(n,e){var t,i;for(i=n.a.length,e.lengthi&&St(e,i,null),e}function Aa(n,e,t){var i,r,c;return r=u(te(n.e,e),387),r?(c=gU(r,t),Oyn(n,r),c):(i=new qU(n,e,t),it(n.e,e,i),iMn(i),null)}function vpe(n){var e;if(n==null)return null;if(e=a9e(jc(n,!0)),e==null)throw T(new VI("Invalid hexBinary value: '"+n+"'"));return e}function m7(n){return jl(),fc(n,0)<0?fc(n,-1)!=0?new OJ(-1,P3(n)):gR:fc(n,10)<=0?xin[ge(n)]:new OJ(1,n)}function qF(){return SM(),A(M(yUn,1),z,159,0,[mUn,vUn,kUn,hUn,fUn,lUn,bUn,dUn,aUn,pUn,gUn,wUn,sUn,uUn,oUn,rUn,iUn,cUn,eUn,nUn,tUn,TR])}function K$n(n){var e;this.d=new X,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(k(Gi(e),(nn(),as)),103),this.e=K(Y(xT(e,nw)))}function H$n(n){this.b=new X,this.e=new X,this.d=n,this.a=!Wv(gt(new $n(null,new Cd(new sf(n.b))),new Fv(new qbn))).sd((ca(),V4))}function Ho(){Ho=N,Xn=new Z9("PARENTS",0),vi=new Z9("NODES",1),Zf=new Z9("EDGES",2),Ya=new Z9("PORTS",3),D1=new Z9("LABELS",4)}function qw(){qw=N,Hl=new e8("DISTRIBUTED",0),Cy=new e8("JUSTIFIED",1),Hhn=new e8("BEGIN",2),r9=new e8(I4,3),qhn=new e8("END",4)}function mpe(n){var e;switch(e=n.yi(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function GF(n){switch(n.g){case 1:return sr(),Yh;case 4:return sr(),Zs;case 2:return sr(),Ao;case 3:return sr(),Jh}return sr(),kh}function kpe(n,e,t){var i;switch(i=t.q.getFullYear()-Tl+Tl,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:oh(n,i%100,2);break;default:oh(n,i,e)}}function _e(n,e){var t,i;if(tb(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=64&&e<128&&(r=cf(r,Ih(1,e-64)));return r}function xT(n,e){var t,i;return i=null,ai(n,(Xe(),Ap))&&(t=u(k(n,Ap),94),t.Xe(e)&&(i=t.We(e))),i==null&&Gi(n)&&(i=k(Gi(n),e)),i}function z$n(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Qn(),ii)||i==mf)&&(t=new re(ue(ei(r).a.Kc(),new An)),Se(t)&&it(n.k,e,u(ve(t),17)))}function zF(n,e){var t,i,r;return i=On(n.Tg(),e),t=e-n.Ah(),t<0?(r=n.Yg(i),r>=0?n.lh(r):Ox(n,i)):t<0?Ox(n,i):u(i,66).Nj().Sj(n,n.yh(),t)}function cn(n){var e;if(I(n.a,4)){if(e=qQ(n.a),e==null)throw T(new $r(HHn+n.b+"'. "+KHn+(Ph(Fy),Fy.k)+Etn));return e}else return n.a}function Epe(n){var e;if(n==null)return null;if(e=qCe(jc(n,!0)),e==null)throw T(new VI("Invalid base64Binary value: '"+n+"'"));return e}function oe(n){var e;try{return e=n.i.Xb(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function UF(n){var e;try{return e=n.c.ki(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function a6(){a6=N,Trn=(Xe(),yhn),IR=Zfn,FUn=Tp,Crn=nd,BUn=(WT(),irn),NUn=ern,RUn=crn,LUn=nrn,xUn=(pF(),yrn),PR=OUn,Ern=DUn,nS=$Un}function LT(n){switch(DG(),this.c=new X,this.d=n,n.g){case 0:case 2:this.a=_W(qrn),this.b=Ft;break;case 3:case 1:this.a=qrn,this.b=Qt}}function U$n(n,e,t){var i,r;if(n.c)nu(n.c,n.c.i+e),eu(n.c,n.c.j+t);else for(r=new E(n.b);r.a0&&(W(n.b,new MEn(e.a,t)),i=e.a.length,0i&&(e.a+=Iyn(F(Ls,Rf,25,-i,15,1))))}function W$n(n,e){var t,i,r;for(t=n.o,r=u(u(ct(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=M3e(i,t.a),i.e.b=t.b*K(Y(i.b.We(JA)))}function Tpe(n,e){var t,i,r,c;return r=n.k,t=K(Y(k(n,(G(),k0)))),c=e.k,i=K(Y(k(e,k0))),c!=(Qn(),Xt)?-1:r!=Xt?1:t==i?0:t=0?n.hh(e,t,i):(n.eh()&&(i=(r=n.Vg(),r>=0?n.Qg(i):n.eh().ih(n,-1-r,null,i))),n.Sg(e,t,i))}function XQ(n,e){switch(e){case 7:!n.e&&(n.e=new Fn(bi,n,7,4)),de(n.e);return;case 8:!n.d&&(n.d=new Fn(bi,n,8,5)),de(n.d);return}FQ(n,e)}function qo(n,e){var t;t=n.Zc(e);try{return t.Pb()}catch(i){throw i=jt(i),I(i,109)?T(new mr("Can't get element "+e)):T(i)}}function VQ(n,e){this.e=n,e=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function K2(){K2=N,$k=new Rj(NM,0),Dk=new Rj(lN,1),Fk=new Rj(aN,2),xk=new Rj(dN,3),$k.a=!1,Dk.a=!0,Fk.a=!1,xk.a=!0}function d6(){d6=N,Lk=new Bj(NM,0),YA=new Bj(lN,1),ZA=new Bj(aN,2),Nk=new Bj(dN,3),Lk.a=!1,YA.a=!0,ZA.a=!1,Nk.a=!0}function Ipe(n){var e;e=n.a;do e=u(ve(new re(ue(Lr(e).a.Kc(),new An))),17).c.i,e.k==(Qn(),pi)&&n.b.Fc(e);while(e.k==(Qn(),pi));n.b=va(n.b)}function Ope(n){var e,t,i;for(i=n.c.a,n.p=(pe(i),new du(i)),t=new E(i);t.at.b)return!0}return!1}function WF(n,e){return ki(n)?!!ozn[e]:n.hm?!!n.hm[e]:G0(n)?!!szn[e]:q0(n)?!!uzn[e]:!1}function gr(n,e,t){return t==null?(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),IT(n.o,e)):(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),XT(n.o,e,t)),n}function xpe(n,e,t,i){var r,c;c=e.Xe((Xe(),_g))?u(e.We(_g),21):n.j,r=Cge(c),r!=(SM(),TR)&&(t&&!GQ(r)||nY(d9e(n,r,i),e))}function BT(n,e,t,i){var r,c,o;return c=On(n.Tg(),e),r=e-n.Ah(),r<0?(o=n.Yg(c),o>=0?n._g(o,t,!0):Yd(n,c,t)):u(c,66).Nj().Pj(n,n.yh(),r,t,i)}function Lpe(n,e,t,i){var r,c,o;t.mh(e)&&(er(),R$(e)?(r=u(t.ah(e),153),upe(n,r)):(c=(o=e,o?u(i,49).xh(o):null),c&&Bte(t.ah(e),c)))}function Npe(n){switch(n.g){case 1:return Hd(),Ok;case 3:return Hd(),Ik;case 2:return Hd(),AR;case 4:return Hd(),MR;default:return null}}function QQ(n){switch(typeof n){case EL:return m1(n);case UZ:return Gt(n);case X2:return qn(),n?1231:1237;default:return n==null?0:md(n)}}function Bpe(n,e,t){if(n.e)switch(n.b){case 1:d1e(n.c,e,t);break;case 0:b1e(n.c,e,t)}else xAn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function Y$n(n){var e,t;if(n==null)return null;for(t=F(mh,q,193,n.length,0,2),e=0;e=0)return r;if(n.Fk()){for(i=0;i=r)throw T(new V0(e,r));if(n.hi()&&(i=n.Xc(t),i>=0&&i!=e))throw T(new Hn(yk));return n.mi(e,t)}function JQ(n,e){if(this.a=u(pe(n),245),this.b=u(pe(e),245),n.vd(e)>0||n==(qI(),cR)||e==(HI(),uR))throw T(new Hn("Invalid range: "+OAn(n,e)))}function Z$n(n){var e,t;for(this.b=new X,this.c=n,this.a=!1,t=new E(n.a);t.a0),(e&-e)==e)return Gt(e*xu(n,31)*4656612873077393e-25);do t=xu(n,31),i=t%e;while(t-i+(e-1)<0);return Gt(i)}function m1(n){lEn();var e,t,i;return t=":"+n,i=XA[t],i!=null?Gt((_n(i),i)):(i=Xin[t],e=i==null?I8e(n):Gt((_n(i),i)),c1e(),XA[t]=e,e)}function eFn(n,e,t){le(t,"Compound graph preprocessor",1),n.a=new Od,s_n(n,e,null),pje(n,e),Z9e(n),H(e,(G(),dun),n.a),n.a=null,Cu(n.b),ce(t)}function Kpe(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function Hpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),IS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=hJ(t),b3(n,t,e[0],(Kd(),w0),0),b3(n,t,e[1],g0,1)}function qpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),OS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=hJ(t),b3(n,t,e[0],(Kd(),w0),0),b3(n,t,e[1],g0,1)}function XF(n){switch(n.g){case 0:return null;case 1:return new eOn;case 2:return new oG;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function k7(n,e,t){var i,r;for(lwe(n,e-n.s,t-n.t),r=new E(n.n);r.a1&&(c=_pe(n,e)),c}function VF(n){var e;return n.f&&n.f.kh()&&(e=u(n.f,49),n.f=u(pl(n,e),82),n.f!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,8,e,n.f))),n.f}function QF(n){var e;return n.i&&n.i.kh()&&(e=u(n.i,49),n.i=u(pl(n,e),82),n.i!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,7,e,n.i))),n.i}function ir(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(pl(n,e),18),n.b!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,21,e,n.b))),n.b}function KT(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Sh(),u8e(n,n.f+1),r=(i&nt)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.uj()),t.Fc(e),++n.f)}function nJ(n,e,t){var i;return e.Kj()?!1:e.Zj()!=-2?(i=e.zj(),i==null?t==null:tt(i,t)):e.Hj()==n.e.Tg()&&t==null}function HT(){var n;rs(16,J_n),n=UIn(16),this.b=F(oR,nk,317,n,0,1),this.c=F(oR,nk,317,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function qh(n){vU.call(this),this.k=(Qn(),ii),this.j=(rs(6,Pb),new Pc(6)),this.b=(rs(2,Pb),new Pc(2)),this.d=new NI,this.f=new Zq,this.a=n}function zpe(n){var e,t;n.c.length<=1||(e=ZNn(n,(J(),ae)),Kxn(n,u(e.a,19).a,u(e.b,19).a),t=ZNn(n,Gn),Kxn(n,u(t.a,19).a,u(t.b,19).a))}function b6(){b6=N,zsn=new V9("SIMPLE",0),nK=new V9(PN,1),eK=new V9("LINEAR_SEGMENTS",2),Lm=new V9("BRANDES_KOEPF",3),Nm=new V9(EHn,4)}function eJ(n,e,t){p2(u(k(e,(nn(),Lt)),98))||(VX(n,e,k1(e,t)),VX(n,e,k1(e,(J(),ae))),VX(n,e,k1(e,Kn)),Pn(),wi(e.j,new i6n(n)))}function tFn(n,e,t,i){var r,c,o;for(r=u(ct(i?n.a:n.b,e),21),o=r.Kc();o.Ob();)if(c=u(o.Pb(),33),aM(n,t,c))return!0;return!1}function JF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Yt(ar,e,1)),e.d).i!=0)return!0;return!1}function YF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Yt(ar,e,1)),e.d).i!=0)return!0;return!1}function Upe(n){var e,t,i;for(e=0,i=new E(n.c.a);i.a102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function ex(n,e){if(n==null)throw T(new c2("null key in entry: null="+e));if(e==null)throw T(new c2("null value in entry: "+n+"=null"))}function Wpe(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(B(t)===B(i)||t!=null&&tt(t,i))))return!1;return!e.Ob()}function rFn(n,e){var t;return t=A(M(Ei,1),pr,25,15,[kF(n.a[0],e),kF(n.a[1],e),kF(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function cFn(n,e){var t;return t=A(M(Ei,1),pr,25,15,[pT(n.a[0],e),pT(n.a[1],e),pT(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function Pa(){Pa=N,f_=new X9("GREEDY",0),Gcn=new X9(fHn,1),h_=new X9(PN,2),Em=new X9("MODEL_ORDER",3),jm=new X9("GREEDY_MODEL_ORDER",4)}function uFn(n,e){var t,i,r;for(n.b[e.g]=1,i=_e(e.d,0);i.b!=i.d.c;)t=u(Re(i),188),r=t.c,n.b[r.g]==1?Ke(n.a,t):n.b[r.g]==2?n.b[r.g]=1:uFn(n,r)}function Xpe(n,e){var t,i,r;for(r=new Pc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?l4(n,t,t.c):U5e(n,t)||(r.c[r.c.length]=t);return r}function Vpe(n,e,t){var i,r,c,o,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,o=new E(n.n);o.ac&&St(e,c,null),e}function f3e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=o,o+=f*(h+i)}function bFn(n){var e,t,i;for(i=n.f,n.n=F(Ei,pr,25,i,15,1),n.d=F(Ei,pr,25,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function g3e(n,e){var t,i,r,c,o;for(i=0,r=0,t=0,o=new E(e);o.a0?n.g:0),++t;n.c=r,n.d=i}function mFn(n,e){var t;return t=A(M(Ei,1),pr,25,15,[ZQ(n,(_o(),Zr),e),ZQ(n,Fc,e),ZQ(n,nc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function p3e(n,e,t){var i;try{wM(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new mr(i.g+RM+e+Ji+t+")."))):T(r)}}function v3e(n,e,t){var i;try{wM(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new mr(i.g+RM+e+Ji+t+")."))):T(r)}}function kFn(n){var e;ai(n,(nn(),y0))&&(e=u(k(n,y0),21),e.Hc((jb(),So))?(e.Mc(So),e.Fc(Po)):e.Hc(Po)&&(e.Mc(Po),e.Fc(So)))}function yFn(n){var e;ai(n,(nn(),y0))&&(e=u(k(n,y0),21),e.Hc((jb(),Oo))?(e.Mc(Oo),e.Fc(eo)):e.Hc(eo)&&(e.Mc(eo),e.Fc(Oo)))}function m3e(n,e,t){le(t,"Self-Loop ordering",1),Rt(Vc(gt(gt(qr(new $n(null,new xn(e.b,16)),new P0n),new I0n),new O0n),new D0n),new O5n(n)),ce(t)}function j7(n,e,t,i){var r,c;for(r=e;r0&&(r.b+=e),r}function zT(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),37),M6(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function EFn(n){var e,t,i;for(i=nt,t=new E(n.a);t.a>16==6?n.Cb.ih(n,5,Vo,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function C3e(n){k3();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` `;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` diff --git a/assets/ganttDiagram-db6931fb-fG9d8qhp.js b/assets/ganttDiagram-db6931fb-zKHq32tk.js similarity index 99% rename from assets/ganttDiagram-db6931fb-fG9d8qhp.js rename to assets/ganttDiagram-db6931fb-zKHq32tk.js index 722f6a1a78..922b93d82e 100644 --- a/assets/ganttDiagram-db6931fb-fG9d8qhp.js +++ b/assets/ganttDiagram-db6931fb-zKHq32tk.js @@ -1,4 +1,4 @@ -import{ac as Pe,ad as Re,ae as Be,af as qe,ag as Cn,ah as $t,ai as Dn,c as xt,s as Mn,g as _n,o as Sn,p as Un,b as Fn,a as En,q as Yn,m as An,l as Xt,h as Pt,i as In,j as Wn,u as Ln}from"./mermaid.core-uOCfdc17.js";import{e as K}from"./LinkCard-aLl-jjA_.js";import{c as Ze,g as Xe}from"./index-Qg-bAq5J.js";import{d as Nn}from"./customParseFormat-q3ZbyGZe.js";import{b as On,t as _e,c as Hn,a as zn,l as Vn}from"./linear-4Asi7RTq.js";import{i as Pn}from"./init-Hi12RPRh.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function qn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Se=1e-6;function Zn(t){return"translate("+t+",0)"}function Xn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,g=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,k=t===Bt||t===Rt?-1:1,x=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Zn:Xn;function v(p){var V=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):qn),tt=Math.max(s,0)+g,nt=e.range(),et=+nt[0]+C,q=+nt[nt.length-1]+C,Z=(e.bandwidth?jn:Gn)(e.copy(),C),$=p.selection?p.selection():p,b=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(V,e).order(),T=H.exit(),F=H.enter().append("g").attr("class","tick"),S=H.select("line"),w=H.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(F),S=S.merge(F.append("line").attr("stroke","currentColor").attr(x+"2",k*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(x,k*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),p!==$&&(b=b.transition(p),H=H.transition(p),S=S.transition(p),w=w.transition(p),T=T.transition(p).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?U(c+C):this.getAttribute("transform")}),F.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(c))?d:Z(c))+C)})),T.remove(),b.attr("d",t===Rt||t===te?a?"M"+k*a+","+et+"H"+C+"V"+q+"H"+k*a:"M"+C+","+et+"V"+q:a?"M"+et+","+k*a+"V"+C+"H"+q+"V"+k*a:"M"+et+","+C+"H"+q),H.attr("opacity",1).attr("transform",function(c){return U(Z(c)+C)}),S.attr(x+"2",k*s),w.attr(x,k*tt).text(E),$.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),$.each(function(){this.__axis=Z})}return v.scale=function(p){return arguments.length?(e=p,v):e},v.ticks=function(){return n=Array.from(arguments),v},v.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),v):n.slice()},v.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),v):r&&r.slice()},v.tickFormat=function(p){return arguments.length?(i=p,v):i},v.tickSize=function(p){return arguments.length?(s=a=+p,v):s},v.tickSizeInner=function(p){return arguments.length?(s=+p,v):s},v.tickSizeOuter=function(p){return arguments.length?(a=+p,v):a},v.tickPadding=function(p){return arguments.length?(g=+p,v):g},v.offset=function(p){return arguments.length?(C=+p,v):C},v}function Jn(t){return Ge(Bt,t)}function Kn(t){return Ge(ue,t)}const $n=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,Ke=4/29,wt=6/29,$e=3*wt*wt,er=wt*wt*wt;function tn(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return en(t);t instanceof Be||(t=Cn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Pe(st,nr,Re(qe,{brighter(t){return new st(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/$e+Ke}function ne(t){return t>wt?t*t*t:$e*(t-Ke)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=tn(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),g=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,g)=>{const C=[];if(s=i.ceil(s),g=g==null?1:Math.floor(g),!(s0))return C;let k;do C.push(k=new Date(+s)),e(s,g),t(s);while(kG(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,g)=>{if(a>=a)if(g<0)for(;++g<=0;)for(;e(a,-1),!s(a););else for(;--g>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Dt=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Dt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Dt);Dt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const At=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());At.range;const or=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const It=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());It.range;const cr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());cr.range;const yt=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const lr=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));lr.range;function Tt(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Wt=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Nt.range;Wt.range;nn.range;rn.range;kt.range;sn.range;an.range;function bt(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const on=bt(0),jt=bt(1),ur=bt(2),fr=bt(3),Mt=bt(4),hr=bt(5),dr=bt(6);on.range;jt.range;ur.range;fr.range;Mt.range;hr.range;dr.range;const Lt=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Lt.range;const mr=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const ht=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function g(k,x,U){const v=xtt).right(a,v);if(p===a.length)return t.every(_e(k/oe,x/oe,U));if(p===0)return Dt.every(Math.max(_e(k,x,U),1));const[V,E]=a[v/a[p-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(O=le(Ft(l.y,0,1)),B=O.getUTCDay(),O=B>4||B===0?jt.ceil(O):jt(O),O=ke.offset(O,(l.V-1)*7),l.y=O.getUTCFullYear(),l.m=O.getUTCMonth(),l.d=O.getUTCDate()+(l.w+6)%7):(O=ce(Ft(l.y,0,1)),B=O.getDay(),O=B>4||B===0?Wt.ceil(O):Wt(O),O=yt.offset(O,(l.V-1)*7),l.y=O.getFullYear(),l.m=O.getMonth(),l.d=O.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(y,Y,D,l){for(var z=0,O=Y.length,B=D.length,j,J;z=B)return-1;if(j=Y.charCodeAt(z++),j===37){if(j=Y.charAt(z++),J=$[j in Fe?Y.charAt(z++):j],!J||(l=J(y,D,l))<0)return-1}else if(j!=D.charCodeAt(l++))return-1}return l}function F(y,Y,D){var l=k.exec(Y.slice(D));return l?(y.p=x.get(l[0].toLowerCase()),D+l[0].length):-1}function S(y,Y,D){var l=p.exec(Y.slice(D));return l?(y.w=V.get(l[0].toLowerCase()),D+l[0].length):-1}function w(y,Y,D){var l=U.exec(Y.slice(D));return l?(y.w=v.get(l[0].toLowerCase()),D+l[0].length):-1}function c(y,Y,D){var l=nt.exec(Y.slice(D));return l?(y.m=et.get(l[0].toLowerCase()),D+l[0].length):-1}function d(y,Y,D){var l=E.exec(Y.slice(D));return l?(y.m=tt.get(l[0].toLowerCase()),D+l[0].length):-1}function m(y,Y,D){return T(y,e,Y,D)}function u(y,Y,D){return T(y,n,Y,D)}function M(y,Y,D){return T(y,r,Y,D)}function o(y){return a[y.getDay()]}function R(y){return s[y.getDay()]}function h(y){return C[y.getMonth()]}function f(y){return g[y.getMonth()]}function _(y){return i[+(y.getHours()>=12)]}function P(y){return 1+~~(y.getMonth()/3)}function I(y){return a[y.getUTCDay()]}function L(y){return s[y.getUTCDay()]}function A(y){return C[y.getUTCMonth()]}function N(y){return g[y.getUTCMonth()]}function mt(y){return i[+(y.getUTCHours()>=12)]}function gt(y){return 1+~~(y.getUTCMonth()/3)}return{format:function(y){var Y=b(y+="",q);return Y.toString=function(){return y},Y},parse:function(y){var Y=H(y+="",!1);return Y.toString=function(){return y},Y},utcFormat:function(y){var Y=b(y+="",Z);return Y.toString=function(){return y},Y},utcParse:function(y){var Y=H(y+="",!0);return Y.toString=function(){return y},Y}}}var Fe={"-":"",_:" ",0:"0"},Q=/^\s*\d+/,Tr=/^%/,br=/[\\^$*+?|[\]().{}]/g;function W(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function xr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=Q.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _r(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ae(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=Q.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ie(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=Q.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=Q.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wr(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=Q.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=Q.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function We(t,e){return W(t.getDate(),e,2)}function Or(t,e){return W(t.getHours(),e,2)}function Hr(t,e){return W(t.getHours()%12||12,e,2)}function zr(t,e){return W(1+yt.count(ht(t),t),e,3)}function cn(t,e){return W(t.getMilliseconds(),e,3)}function Vr(t,e){return cn(t,e)+"000"}function Pr(t,e){return W(t.getMonth()+1,e,2)}function Rr(t,e){return W(t.getMinutes(),e,2)}function Br(t,e){return W(t.getSeconds(),e,2)}function qr(t){var e=t.getDay();return e===0?7:e}function Zr(t,e){return W(Nt.count(ht(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function Xr(t,e){return t=ln(t),W(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return W(Wt.count(ht(t)-1,t),e,2)}function Qr(t,e){return W(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),W(t.getFullYear()%100,e,2)}function Kr(t,e){return W(t.getFullYear()%1e4,e,4)}function $r(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),W(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+W(e/60|0,"0",2)+W(e%60,"0",2)}function Le(t,e){return W(t.getUTCDate(),e,2)}function ei(t,e){return W(t.getUTCHours(),e,2)}function ni(t,e){return W(t.getUTCHours()%12||12,e,2)}function ri(t,e){return W(1+ke.count(pt(t),t),e,3)}function un(t,e){return W(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return W(t.getUTCMonth()+1,e,2)}function ai(t,e){return W(t.getUTCMinutes(),e,2)}function oi(t,e){return W(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return W(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ui(t,e){return t=fn(t),W(Mt.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return W(jt.count(pt(t)-1,t),e,2)}function di(t,e){return W(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),W(t.getUTCFullYear()%100,e,2)}function gi(t,e){return W(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),W(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Oe(t){return+t}function He(t){return Math.floor(+t/1e3)}var vt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return vt=pr(t),Qt=vt.format,vt.parse,vt.utcFormat,vt.utcParse,vt}function Ti(t){return new Date(t)}function bi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,g,C,k){var x=Hn(),U=x.invert,v=x.domain,p=k(".%L"),V=k(":%S"),E=k("%I:%M"),tt=k("%I %p"),nt=k("%a %d"),et=k("%b %d"),q=k("%B"),Z=k("%Y");function $(b){return(C(b)4&&(p+=7),v.add(p,n));return V.diff(E,"week")+1},g.isoWeekday=function(k){return this.$utils().u(k)?this.day()||7:this.day(this.day()%7?k:k-7)};var C=g.startOf;g.startOf=function(k,x){var U=this.$utils(),v=!!U.u(x)||x;return U.p(k)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(k,x)}}})})(dn);var xi=dn.exports;const wi=Xe(xi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Ze,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var g=this,C=this.$locale();if(!this.isValid())return s.bind(this)(a);var k=this.$utils(),x=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(U){switch(U){case"Q":return Math.ceil((g.$M+1)/3);case"Do":return C.ordinal(g.$D);case"gggg":return g.weekYear();case"GGGG":return g.isoWeekYear();case"wo":return C.ordinal(g.week(),"W");case"w":case"ww":return k.s(g.week(),U==="w"?1:2,"0");case"W":case"WW":return k.s(g.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return k.s(String(g.$H===0?24:g.$H),U==="k"?1:2,"0");case"X":return Math.floor(g.$d.getTime()/1e3);case"x":return g.$d.getTime();case"z":return"["+g.offsetName()+"]";case"zzz":return"["+g.offsetName("long")+"]";default:return U}});return s.bind(this)(x)}}})})(mn);var Ci=mn.exports;const Di=Xe(Ci);var he=function(){var t=function(w,c,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=c);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],g=[1,30],C=[1,31],k=[1,9],x=[1,10],U=[1,11],v=[1,12],p=[1,13],V=[1,14],E=[1,15],tt=[1,16],nt=[1,18],et=[1,19],q=[1,20],Z=[1,21],$=[1,22],b=[1,24],H=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(c,d,m,u,M,o,R){var h=o.length-1;switch(M){case 1:return o[h-1];case 2:this.$=[];break;case 3:o[h-1].push(o[h]),this.$=o[h-1];break;case 4:case 5:this.$=o[h];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=o[h].substr(18);break;case 17:u.TopAxis(),this.$=o[h].substr(8);break;case 18:u.setAxisFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 19:u.setTickInterval(o[h].substr(13)),this.$=o[h].substr(13);break;case 20:u.setExcludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 21:u.setIncludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 22:u.setTodayMarker(o[h].substr(12)),this.$=o[h].substr(12);break;case 24:u.setDiagramTitle(o[h].substr(6)),this.$=o[h].substr(6);break;case 25:this.$=o[h].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=o[h].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(o[h].substr(8)),this.$=o[h].substr(8);break;case 30:u.addTask(o[h-1],o[h]),this.$="task";break;case 31:this.$=o[h-1],u.setClickEvent(o[h-1],o[h],null);break;case 32:this.$=o[h-2],u.setClickEvent(o[h-2],o[h-1],o[h]);break;case 33:this.$=o[h-2],u.setClickEvent(o[h-2],o[h-1],null),u.setLink(o[h-2],o[h]);break;case 34:this.$=o[h-3],u.setClickEvent(o[h-3],o[h-2],o[h-1]),u.setLink(o[h-3],o[h]);break;case 35:this.$=o[h-2],u.setClickEvent(o[h-2],o[h],null),u.setLink(o[h-2],o[h-1]);break;case 36:this.$=o[h-3],u.setClickEvent(o[h-3],o[h-1],o[h]),u.setLink(o[h-3],o[h-2]);break;case 37:this.$=o[h-1],u.setLink(o[h-1],o[h]);break;case 38:case 44:this.$=o[h-1]+" "+o[h];break;case 39:case 40:case 42:this.$=o[h-2]+" "+o[h-1]+" "+o[h];break;case 41:case 43:this.$=o[h-3]+" "+o[h-2]+" "+o[h-1]+" "+o[h];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:g,18:C,19:k,20:x,21:U,22:v,23:p,24:V,25:E,26:tt,27:nt,28:et,30:q,32:Z,33:$,34:23,35:b,37:H},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:g,18:C,19:k,20:x,21:U,22:v,23:p,24:V,25:E,26:tt,27:nt,28:et,30:q,32:Z,33:$,34:23,35:b,37:H},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(c,d){if(d.recoverable)this.trace(c);else{var m=new Error(c);throw m.hash=d,m}},parse:function(c){var d=this,m=[0],u=[],M=[null],o=[],R=this.table,h="",f=0,_=0,P=2,I=1,L=o.slice.call(arguments,1),A=Object.create(this.lexer),N={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(N.yy[mt]=this.yy[mt]);A.setInput(c,N.yy),N.yy.lexer=A,N.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var y=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var at;return at=u.pop()||A.lex()||I,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var D,l,z,O,B={},j,J,Ut,Vt;;){if(l=m[m.length-1],this.defaultActions[l]?z=this.defaultActions[l]:((D===null||typeof D>"u")&&(D=Y()),z=R[l]&&R[l][D]),typeof z>"u"||!z.length||!z[0]){var Kt="";Vt=[];for(j in R[l])this.terminals_[j]&&j>P&&Vt.push("'"+this.terminals_[j]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: +import{ac as Pe,ad as Re,ae as Be,af as qe,ag as Cn,ah as $t,ai as Dn,c as xt,s as Mn,g as _n,o as Sn,p as Un,b as Fn,a as En,q as Yn,m as An,l as Xt,h as Pt,i as In,j as Wn,u as Ln}from"./mermaid.core-YsxFu0Y0.js";import{e as K}from"./LinkCard-gCgkDO82.js";import{c as Ze,g as Xe}from"./index-HRfeE_7B.js";import{d as Nn}from"./customParseFormat-ePfR8DqR.js";import{b as On,t as _e,c as Hn,a as zn,l as Vn}from"./linear-iUXoRcso.js";import{i as Pn}from"./init-Hi12RPRh.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function qn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Se=1e-6;function Zn(t){return"translate("+t+",0)"}function Xn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,g=3,C=typeof window<"u"&&window.devicePixelRatio>1?0:.5,k=t===Bt||t===Rt?-1:1,x=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Zn:Xn;function v(p){var V=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):qn),tt=Math.max(s,0)+g,nt=e.range(),et=+nt[0]+C,q=+nt[nt.length-1]+C,Z=(e.bandwidth?jn:Gn)(e.copy(),C),$=p.selection?p.selection():p,b=$.selectAll(".domain").data([null]),H=$.selectAll(".tick").data(V,e).order(),T=H.exit(),F=H.enter().append("g").attr("class","tick"),S=H.select("line"),w=H.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(F),S=S.merge(F.append("line").attr("stroke","currentColor").attr(x+"2",k*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(x,k*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),p!==$&&(b=b.transition(p),H=H.transition(p),S=S.transition(p),w=w.transition(p),T=T.transition(p).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?U(c+C):this.getAttribute("transform")}),F.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(c))?d:Z(c))+C)})),T.remove(),b.attr("d",t===Rt||t===te?a?"M"+k*a+","+et+"H"+C+"V"+q+"H"+k*a:"M"+C+","+et+"V"+q:a?"M"+et+","+k*a+"V"+C+"H"+q+"V"+k*a:"M"+et+","+C+"H"+q),H.attr("opacity",1).attr("transform",function(c){return U(Z(c)+C)}),S.attr(x+"2",k*s),w.attr(x,k*tt).text(E),$.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),$.each(function(){this.__axis=Z})}return v.scale=function(p){return arguments.length?(e=p,v):e},v.ticks=function(){return n=Array.from(arguments),v},v.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),v):n.slice()},v.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),v):r&&r.slice()},v.tickFormat=function(p){return arguments.length?(i=p,v):i},v.tickSize=function(p){return arguments.length?(s=a=+p,v):s},v.tickSizeInner=function(p){return arguments.length?(s=+p,v):s},v.tickSizeOuter=function(p){return arguments.length?(a=+p,v):a},v.tickPadding=function(p){return arguments.length?(g=+p,v):g},v.offset=function(p){return arguments.length?(C=+p,v):C},v}function Jn(t){return Ge(Bt,t)}function Kn(t){return Ge(ue,t)}const $n=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,Ke=4/29,wt=6/29,$e=3*wt*wt,er=wt*wt*wt;function tn(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return en(t);t instanceof Be||(t=Cn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Pe(st,nr,Re(qe,{brighter(t){return new st(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/$e+Ke}function ne(t){return t>wt?t*t*t:$e*(t-Ke)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=tn(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),g=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,g)=>{const C=[];if(s=i.ceil(s),g=g==null?1:Math.floor(g),!(s0))return C;let k;do C.push(k=new Date(+s)),e(s,g),t(s);while(kG(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,g)=>{if(a>=a)if(g<0)for(;++g<=0;)for(;e(a,-1),!s(a););else for(;--g>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Dt=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Dt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Dt);Dt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const At=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());At.range;const or=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const It=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());It.range;const cr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());cr.range;const yt=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const lr=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));lr.range;function Tt(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Wt=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Nt.range;Wt.range;nn.range;rn.range;kt.range;sn.range;an.range;function bt(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const on=bt(0),jt=bt(1),ur=bt(2),fr=bt(3),Mt=bt(4),hr=bt(5),dr=bt(6);on.range;jt.range;ur.range;fr.range;Mt.range;hr.range;dr.range;const Lt=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Lt.range;const mr=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const ht=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function g(k,x,U){const v=xtt).right(a,v);if(p===a.length)return t.every(_e(k/oe,x/oe,U));if(p===0)return Dt.every(Math.max(_e(k,x,U),1));const[V,E]=a[v/a[p-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(O=le(Ft(l.y,0,1)),B=O.getUTCDay(),O=B>4||B===0?jt.ceil(O):jt(O),O=ke.offset(O,(l.V-1)*7),l.y=O.getUTCFullYear(),l.m=O.getUTCMonth(),l.d=O.getUTCDate()+(l.w+6)%7):(O=ce(Ft(l.y,0,1)),B=O.getDay(),O=B>4||B===0?Wt.ceil(O):Wt(O),O=yt.offset(O,(l.V-1)*7),l.y=O.getFullYear(),l.m=O.getMonth(),l.d=O.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(y,Y,D,l){for(var z=0,O=Y.length,B=D.length,j,J;z=B)return-1;if(j=Y.charCodeAt(z++),j===37){if(j=Y.charAt(z++),J=$[j in Fe?Y.charAt(z++):j],!J||(l=J(y,D,l))<0)return-1}else if(j!=D.charCodeAt(l++))return-1}return l}function F(y,Y,D){var l=k.exec(Y.slice(D));return l?(y.p=x.get(l[0].toLowerCase()),D+l[0].length):-1}function S(y,Y,D){var l=p.exec(Y.slice(D));return l?(y.w=V.get(l[0].toLowerCase()),D+l[0].length):-1}function w(y,Y,D){var l=U.exec(Y.slice(D));return l?(y.w=v.get(l[0].toLowerCase()),D+l[0].length):-1}function c(y,Y,D){var l=nt.exec(Y.slice(D));return l?(y.m=et.get(l[0].toLowerCase()),D+l[0].length):-1}function d(y,Y,D){var l=E.exec(Y.slice(D));return l?(y.m=tt.get(l[0].toLowerCase()),D+l[0].length):-1}function m(y,Y,D){return T(y,e,Y,D)}function u(y,Y,D){return T(y,n,Y,D)}function M(y,Y,D){return T(y,r,Y,D)}function o(y){return a[y.getDay()]}function R(y){return s[y.getDay()]}function h(y){return C[y.getMonth()]}function f(y){return g[y.getMonth()]}function _(y){return i[+(y.getHours()>=12)]}function P(y){return 1+~~(y.getMonth()/3)}function I(y){return a[y.getUTCDay()]}function L(y){return s[y.getUTCDay()]}function A(y){return C[y.getUTCMonth()]}function N(y){return g[y.getUTCMonth()]}function mt(y){return i[+(y.getUTCHours()>=12)]}function gt(y){return 1+~~(y.getUTCMonth()/3)}return{format:function(y){var Y=b(y+="",q);return Y.toString=function(){return y},Y},parse:function(y){var Y=H(y+="",!1);return Y.toString=function(){return y},Y},utcFormat:function(y){var Y=b(y+="",Z);return Y.toString=function(){return y},Y},utcParse:function(y){var Y=H(y+="",!0);return Y.toString=function(){return y},Y}}}var Fe={"-":"",_:" ",0:"0"},Q=/^\s*\d+/,Tr=/^%/,br=/[\\^$*+?|[\]().{}]/g;function W(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function xr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=Q.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _r(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sr(t,e,n){var r=Q.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ae(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=Q.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ie(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=Q.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=Q.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=Q.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wr(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=Q.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=Q.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function We(t,e){return W(t.getDate(),e,2)}function Or(t,e){return W(t.getHours(),e,2)}function Hr(t,e){return W(t.getHours()%12||12,e,2)}function zr(t,e){return W(1+yt.count(ht(t),t),e,3)}function cn(t,e){return W(t.getMilliseconds(),e,3)}function Vr(t,e){return cn(t,e)+"000"}function Pr(t,e){return W(t.getMonth()+1,e,2)}function Rr(t,e){return W(t.getMinutes(),e,2)}function Br(t,e){return W(t.getSeconds(),e,2)}function qr(t){var e=t.getDay();return e===0?7:e}function Zr(t,e){return W(Nt.count(ht(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function Xr(t,e){return t=ln(t),W(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return W(Wt.count(ht(t)-1,t),e,2)}function Qr(t,e){return W(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),W(t.getFullYear()%100,e,2)}function Kr(t,e){return W(t.getFullYear()%1e4,e,4)}function $r(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),W(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+W(e/60|0,"0",2)+W(e%60,"0",2)}function Le(t,e){return W(t.getUTCDate(),e,2)}function ei(t,e){return W(t.getUTCHours(),e,2)}function ni(t,e){return W(t.getUTCHours()%12||12,e,2)}function ri(t,e){return W(1+ke.count(pt(t),t),e,3)}function un(t,e){return W(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return W(t.getUTCMonth()+1,e,2)}function ai(t,e){return W(t.getUTCMinutes(),e,2)}function oi(t,e){return W(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return W(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ui(t,e){return t=fn(t),W(Mt.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return W(jt.count(pt(t)-1,t),e,2)}function di(t,e){return W(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),W(t.getUTCFullYear()%100,e,2)}function gi(t,e){return W(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),W(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Oe(t){return+t}function He(t){return Math.floor(+t/1e3)}var vt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return vt=pr(t),Qt=vt.format,vt.parse,vt.utcFormat,vt.utcParse,vt}function Ti(t){return new Date(t)}function bi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,g,C,k){var x=Hn(),U=x.invert,v=x.domain,p=k(".%L"),V=k(":%S"),E=k("%I:%M"),tt=k("%I %p"),nt=k("%a %d"),et=k("%b %d"),q=k("%B"),Z=k("%Y");function $(b){return(C(b)4&&(p+=7),v.add(p,n));return V.diff(E,"week")+1},g.isoWeekday=function(k){return this.$utils().u(k)?this.day()||7:this.day(this.day()%7?k:k-7)};var C=g.startOf;g.startOf=function(k,x){var U=this.$utils(),v=!!U.u(x)||x;return U.p(k)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(k,x)}}})})(dn);var xi=dn.exports;const wi=Xe(xi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Ze,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var g=this,C=this.$locale();if(!this.isValid())return s.bind(this)(a);var k=this.$utils(),x=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(U){switch(U){case"Q":return Math.ceil((g.$M+1)/3);case"Do":return C.ordinal(g.$D);case"gggg":return g.weekYear();case"GGGG":return g.isoWeekYear();case"wo":return C.ordinal(g.week(),"W");case"w":case"ww":return k.s(g.week(),U==="w"?1:2,"0");case"W":case"WW":return k.s(g.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return k.s(String(g.$H===0?24:g.$H),U==="k"?1:2,"0");case"X":return Math.floor(g.$d.getTime()/1e3);case"x":return g.$d.getTime();case"z":return"["+g.offsetName()+"]";case"zzz":return"["+g.offsetName("long")+"]";default:return U}});return s.bind(this)(x)}}})})(mn);var Ci=mn.exports;const Di=Xe(Ci);var he=function(){var t=function(w,c,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=c);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],g=[1,30],C=[1,31],k=[1,9],x=[1,10],U=[1,11],v=[1,12],p=[1,13],V=[1,14],E=[1,15],tt=[1,16],nt=[1,18],et=[1,19],q=[1,20],Z=[1,21],$=[1,22],b=[1,24],H=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(c,d,m,u,M,o,R){var h=o.length-1;switch(M){case 1:return o[h-1];case 2:this.$=[];break;case 3:o[h-1].push(o[h]),this.$=o[h-1];break;case 4:case 5:this.$=o[h];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=o[h].substr(18);break;case 17:u.TopAxis(),this.$=o[h].substr(8);break;case 18:u.setAxisFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 19:u.setTickInterval(o[h].substr(13)),this.$=o[h].substr(13);break;case 20:u.setExcludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 21:u.setIncludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 22:u.setTodayMarker(o[h].substr(12)),this.$=o[h].substr(12);break;case 24:u.setDiagramTitle(o[h].substr(6)),this.$=o[h].substr(6);break;case 25:this.$=o[h].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=o[h].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(o[h].substr(8)),this.$=o[h].substr(8);break;case 30:u.addTask(o[h-1],o[h]),this.$="task";break;case 31:this.$=o[h-1],u.setClickEvent(o[h-1],o[h],null);break;case 32:this.$=o[h-2],u.setClickEvent(o[h-2],o[h-1],o[h]);break;case 33:this.$=o[h-2],u.setClickEvent(o[h-2],o[h-1],null),u.setLink(o[h-2],o[h]);break;case 34:this.$=o[h-3],u.setClickEvent(o[h-3],o[h-2],o[h-1]),u.setLink(o[h-3],o[h]);break;case 35:this.$=o[h-2],u.setClickEvent(o[h-2],o[h],null),u.setLink(o[h-2],o[h-1]);break;case 36:this.$=o[h-3],u.setClickEvent(o[h-3],o[h-1],o[h]),u.setLink(o[h-3],o[h-2]);break;case 37:this.$=o[h-1],u.setLink(o[h-1],o[h]);break;case 38:case 44:this.$=o[h-1]+" "+o[h];break;case 39:case 40:case 42:this.$=o[h-2]+" "+o[h-1]+" "+o[h];break;case 41:case 43:this.$=o[h-3]+" "+o[h-2]+" "+o[h-1]+" "+o[h];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:g,18:C,19:k,20:x,21:U,22:v,23:p,24:V,25:E,26:tt,27:nt,28:et,30:q,32:Z,33:$,34:23,35:b,37:H},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:g,18:C,19:k,20:x,21:U,22:v,23:p,24:V,25:E,26:tt,27:nt,28:et,30:q,32:Z,33:$,34:23,35:b,37:H},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(c,d){if(d.recoverable)this.trace(c);else{var m=new Error(c);throw m.hash=d,m}},parse:function(c){var d=this,m=[0],u=[],M=[null],o=[],R=this.table,h="",f=0,_=0,P=2,I=1,L=o.slice.call(arguments,1),A=Object.create(this.lexer),N={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(N.yy[mt]=this.yy[mt]);A.setInput(c,N.yy),N.yy.lexer=A,N.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var y=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var at;return at=u.pop()||A.lex()||I,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var D,l,z,O,B={},j,J,Ut,Vt;;){if(l=m[m.length-1],this.defaultActions[l]?z=this.defaultActions[l]:((D===null||typeof D>"u")&&(D=Y()),z=R[l]&&R[l][D]),typeof z>"u"||!z.length||!z[0]){var Kt="";Vt=[];for(j in R[l])this.terminals_[j]&&j>P&&Vt.push("'"+this.terminals_[j]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: `+A.showPosition()+` Expecting `+Vt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Kt="Parse error on line "+(f+1)+": Unexpected "+(D==I?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Kt,{text:A.match,token:this.terminals_[D]||D,line:A.yylineno,loc:gt,expected:Vt})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+D);switch(z[0]){case 1:m.push(D),M.push(A.yytext),o.push(A.yylloc),m.push(z[1]),D=null,_=A.yyleng,h=A.yytext,f=A.yylineno,gt=A.yylloc;break;case 2:if(J=this.productions_[z[1]][1],B.$=M[M.length-J],B._$={first_line:o[o.length-(J||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(J||1)].first_column,last_column:o[o.length-1].last_column},y&&(B._$.range=[o[o.length-(J||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(B,[h,_,f,N.yy,z[1],M,o].concat(L)),typeof O<"u")return O;J&&(m=m.slice(0,-1*J*2),M=M.slice(0,-1*J),o=o.slice(0,-1*J)),m.push(this.productions_[z[1]][0]),M.push(B.$),o.push(B._$),Ut=R[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},F=function(){var w={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var d=c.length,m=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/assets/gitGraphDiagram-6b463803-Gmbmx2Ie.js b/assets/gitGraphDiagram-6b463803-qFlY7Hxy.js similarity index 99% rename from assets/gitGraphDiagram-6b463803-Gmbmx2Ie.js rename to assets/gitGraphDiagram-6b463803-qFlY7Hxy.js index fd9237ca6d..9ec90b12c3 100644 --- a/assets/gitGraphDiagram-6b463803-Gmbmx2Ie.js +++ b/assets/gitGraphDiagram-6b463803-qFlY7Hxy.js @@ -1,4 +1,4 @@ -import{c as A,s as vt,g as Ct,a as At,b as Ot,o as St,p as It,l as G,j as D,q as Gt,h as Pt,u as Nt,r as Ht,t as Bt}from"./mermaid.core-uOCfdc17.js";import"./LinkCard-aLl-jjA_.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var mt=function(){var r=function(j,h,b,k){for(b=b||{},k=j.length;k--;b[j[k]]=h);return b},a=[1,3],o=[1,6],u=[1,4],n=[1,5],c=[2,5],m=[1,12],l=[5,7,13,19,21,23,24,26,28,31,36,39,46],E=[7,13,19,21,23,24,26,28,31,36,39],_=[7,12,13,19,21,23,24,26,28,31,36,39],i=[7,13,46],g=[1,42],p=[1,41],x=[7,13,29,32,34,37,46],f=[1,55],d=[1,56],y=[1,57],H=[7,13,32,34,41,46],w={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,COMMIT_TAG:34,EMPTYSTR:35,MERGE:36,COMMIT_TYPE:37,commitType:38,COMMIT:39,commit_arg:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,ID:45,";":46,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"COMMIT_TAG",35:"EMPTYSTR",36:"MERGE",37:"COMMIT_TYPE",39:"COMMIT",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",45:"ID",46:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,5],[18,5],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[40,0],[40,1],[38,1],[38,1],[38,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(h,b,k,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",t[e]);break;case 26:case 28:s.cherryPick(t[e-2],"","");break;case 27:s.cherryPick(t[e],"",t[e-2]);break;case 29:s.merge(t[e],"","","");break;case 30:s.merge(t[e-2],t[e],"","");break;case 31:s.merge(t[e-2],"",t[e],"");break;case 32:s.merge(t[e-2],"","",t[e]);break;case 33:s.merge(t[e-4],t[e],"",t[e-2]);break;case 34:s.merge(t[e-4],"",t[e],t[e-2]);break;case 35:s.merge(t[e-4],"",t[e-2],t[e]);break;case 36:s.merge(t[e-4],t[e-2],t[e],"");break;case 37:s.merge(t[e-4],t[e-2],"",t[e]);break;case 38:s.merge(t[e-4],t[e],t[e-2],"");break;case 39:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 40:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 41:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 42:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 43:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 44:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 45:s.commit(t[e]);break;case 46:s.commit("","",s.commitType.NORMAL,t[e]);break;case 47:s.commit("","",t[e],"");break;case 48:s.commit("","",t[e],t[e-2]);break;case 49:s.commit("","",t[e-2],t[e]);break;case 50:s.commit("",t[e],s.commitType.NORMAL,"");break;case 51:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 52:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 53:s.commit("",t[e-2],t[e],"");break;case 54:s.commit("",t[e],t[e-2],"");break;case 55:s.commit("",t[e-4],t[e-2],t[e]);break;case 56:s.commit("",t[e-4],t[e],t[e-2]);break;case 57:s.commit("",t[e-2],t[e-4],t[e]);break;case 58:s.commit("",t[e],t[e-4],t[e-2]);break;case 59:s.commit("",t[e],t[e-2],t[e-4]);break;case 60:s.commit("",t[e-2],t[e],t[e-4]);break;case 61:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 62:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 63:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 64:s.commit(t[e-2],"",t[e],"");break;case 65:s.commit(t[e],"",t[e-2],"");break;case 66:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 67:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 68:s.commit(t[e-4],"",t[e-2],t[e]);break;case 69:s.commit(t[e-4],"",t[e],t[e-2]);break;case 70:s.commit(t[e-2],"",t[e-4],t[e]);break;case 71:s.commit(t[e],"",t[e-4],t[e-2]);break;case 72:s.commit(t[e],"",t[e-2],t[e-4]);break;case 73:s.commit(t[e-2],"",t[e],t[e-4]);break;case 74:s.commit(t[e-4],t[e],t[e-2],"");break;case 75:s.commit(t[e-4],t[e-2],t[e],"");break;case 76:s.commit(t[e-2],t[e],t[e-4],"");break;case 77:s.commit(t[e],t[e-2],t[e-4],"");break;case 78:s.commit(t[e],t[e-4],t[e-2],"");break;case 79:s.commit(t[e-2],t[e-4],t[e],"");break;case 80:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 81:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 82:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 83:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 84:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 85:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 86:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 87:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 88:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 89:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 90:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 91:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 92:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 93:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 94:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 95:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 96:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 97:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 98:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 99:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 100:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 101:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 102:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 103:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 104:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 105:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 106:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 107:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 108:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 109:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 110:this.$="";break;case 111:this.$=t[e];break;case 112:this.$=s.commitType.NORMAL;break;case 113:this.$=s.commitType.REVERSE;break;case 114:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:a,7:o,13:u,46:n},{1:[3]},{3:7,4:2,5:a,7:o,13:u,46:n},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:m},r(l,[2,117]),r(l,[2,118]),r(l,[2,119]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:m},{8:[1,15]},r(E,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:m},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],36:[1,33],39:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(E,[2,10]),{4:37,7:o,13:u,46:n},r(E,[2,12]),r(i,[2,13]),r(i,[2,14]),r(i,[2,15]),{20:[1,38]},{22:[1,39]},r(i,[2,18]),r(i,[2,19]),r(i,[2,20]),{27:40,33:g,45:p},r(i,[2,110],{40:43,32:[1,46],33:[1,48],34:[1,44],37:[1,45],41:[1,47]}),{27:49,33:g,45:p},{32:[1,50],34:[1,51]},{27:52,33:g,45:p},{1:[2,4]},r(E,[2,11]),r(i,[2,16]),r(i,[2,17]),r(i,[2,21]),r(x,[2,115]),r(x,[2,116]),r(i,[2,45]),{33:[1,53]},{38:54,42:f,43:d,44:y},{33:[1,58]},{33:[1,59]},r(i,[2,111]),r(i,[2,29],{32:[1,60],34:[1,62],37:[1,61]}),{33:[1,63]},{33:[1,64],35:[1,65]},r(i,[2,22],{29:[1,66]}),r(i,[2,46],{32:[1,68],37:[1,67],41:[1,69]}),r(i,[2,47],{32:[1,71],34:[1,70],41:[1,72]}),r(H,[2,112]),r(H,[2,113]),r(H,[2,114]),r(i,[2,50],{34:[1,73],37:[1,74],41:[1,75]}),r(i,[2,61],{32:[1,78],34:[1,76],37:[1,77]}),{33:[1,79]},{38:80,42:f,43:d,44:y},{33:[1,81]},r(i,[2,24],{34:[1,82]}),{32:[1,83]},{32:[1,84]},{30:[1,85]},{38:86,42:f,43:d,44:y},{33:[1,87]},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{38:93,42:f,43:d,44:y},{33:[1,94]},{33:[1,95]},{38:96,42:f,43:d,44:y},{33:[1,97]},r(i,[2,30],{34:[1,99],37:[1,98]}),r(i,[2,31],{32:[1,101],34:[1,100]}),r(i,[2,32],{32:[1,102],37:[1,103]}),{33:[1,104],35:[1,105]},{33:[1,106]},{33:[1,107]},r(i,[2,23]),r(i,[2,48],{32:[1,108],41:[1,109]}),r(i,[2,52],{37:[1,110],41:[1,111]}),r(i,[2,62],{32:[1,113],37:[1,112]}),r(i,[2,49],{32:[1,114],41:[1,115]}),r(i,[2,54],{34:[1,116],41:[1,117]}),r(i,[2,65],{32:[1,119],34:[1,118]}),r(i,[2,51],{37:[1,120],41:[1,121]}),r(i,[2,53],{34:[1,122],41:[1,123]}),r(i,[2,66],{34:[1,125],37:[1,124]}),r(i,[2,63],{32:[1,127],37:[1,126]}),r(i,[2,64],{32:[1,129],34:[1,128]}),r(i,[2,67],{34:[1,131],37:[1,130]}),{38:132,42:f,43:d,44:y},{33:[1,133]},{33:[1,134]},{33:[1,135]},{33:[1,136]},{38:137,42:f,43:d,44:y},r(i,[2,25]),r(i,[2,26]),r(i,[2,27]),r(i,[2,28]),{33:[1,138]},{33:[1,139]},{38:140,42:f,43:d,44:y},{33:[1,141]},{38:142,42:f,43:d,44:y},{33:[1,143]},{33:[1,144]},{33:[1,145]},{33:[1,146]},{33:[1,147]},{33:[1,148]},{33:[1,149]},{38:150,42:f,43:d,44:y},{33:[1,151]},{33:[1,152]},{33:[1,153]},{38:154,42:f,43:d,44:y},{33:[1,155]},{38:156,42:f,43:d,44:y},{33:[1,157]},{33:[1,158]},{33:[1,159]},{38:160,42:f,43:d,44:y},{33:[1,161]},r(i,[2,36],{34:[1,162]}),r(i,[2,37],{37:[1,163]}),r(i,[2,35],{32:[1,164]}),r(i,[2,38],{34:[1,165]}),r(i,[2,33],{37:[1,166]}),r(i,[2,34],{32:[1,167]}),r(i,[2,59],{41:[1,168]}),r(i,[2,72],{32:[1,169]}),r(i,[2,60],{41:[1,170]}),r(i,[2,83],{37:[1,171]}),r(i,[2,73],{32:[1,172]}),r(i,[2,82],{37:[1,173]}),r(i,[2,58],{41:[1,174]}),r(i,[2,71],{32:[1,175]}),r(i,[2,57],{41:[1,176]}),r(i,[2,77],{34:[1,177]}),r(i,[2,70],{32:[1,178]}),r(i,[2,76],{34:[1,179]}),r(i,[2,56],{41:[1,180]}),r(i,[2,84],{37:[1,181]}),r(i,[2,55],{41:[1,182]}),r(i,[2,78],{34:[1,183]}),r(i,[2,79],{34:[1,184]}),r(i,[2,85],{37:[1,185]}),r(i,[2,69],{32:[1,186]}),r(i,[2,80],{37:[1,187]}),r(i,[2,68],{32:[1,188]}),r(i,[2,74],{34:[1,189]}),r(i,[2,75],{34:[1,190]}),r(i,[2,81],{37:[1,191]}),{33:[1,192]},{38:193,42:f,43:d,44:y},{33:[1,194]},{33:[1,195]},{38:196,42:f,43:d,44:y},{33:[1,197]},{33:[1,198]},{33:[1,199]},{33:[1,200]},{38:201,42:f,43:d,44:y},{33:[1,202]},{38:203,42:f,43:d,44:y},{33:[1,204]},{33:[1,205]},{33:[1,206]},{33:[1,207]},{33:[1,208]},{33:[1,209]},{33:[1,210]},{38:211,42:f,43:d,44:y},{33:[1,212]},{33:[1,213]},{33:[1,214]},{38:215,42:f,43:d,44:y},{33:[1,216]},{38:217,42:f,43:d,44:y},{33:[1,218]},{33:[1,219]},{33:[1,220]},{38:221,42:f,43:d,44:y},r(i,[2,39]),r(i,[2,41]),r(i,[2,40]),r(i,[2,42]),r(i,[2,44]),r(i,[2,43]),r(i,[2,100]),r(i,[2,101]),r(i,[2,98]),r(i,[2,99]),r(i,[2,103]),r(i,[2,102]),r(i,[2,107]),r(i,[2,106]),r(i,[2,105]),r(i,[2,104]),r(i,[2,109]),r(i,[2,108]),r(i,[2,97]),r(i,[2,96]),r(i,[2,95]),r(i,[2,94]),r(i,[2,92]),r(i,[2,93]),r(i,[2,91]),r(i,[2,90]),r(i,[2,89]),r(i,[2,88]),r(i,[2,86]),r(i,[2,87])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(h,b){if(b.recoverable)this.trace(h);else{var k=new Error(h);throw k.hash=b,k}},parse:function(h){var b=this,k=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,pt=0,Tt=2,ft=1,Lt=t.slice.call(arguments,1),M=Object.create(this.lexer),Y={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(Y.yy[ct]=this.yy[ct]);M.setInput(h,Y.yy),Y.yy.lexer=M,Y.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ot=M.yylloc;t.push(ot);var Rt=M.options&&M.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||M.lex()||ft,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=b.symbols_[q]||q),q}for(var I,K,V,lt,W={},it,z,bt,st;;){if(K=k[k.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((I===null||typeof I>"u")&&(I=Mt()),V=X[K]&&X[K][I]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>Tt&&st.push("'"+this.terminals_[it]+"'");M.showPosition?ht="Parse error on line "+(rt+1)+`: +import{c as A,s as vt,g as Ct,a as At,b as Ot,o as St,p as It,l as G,j as D,q as Gt,h as Pt,u as Nt,r as Ht,t as Bt}from"./mermaid.core-YsxFu0Y0.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var mt=function(){var r=function(j,h,b,k){for(b=b||{},k=j.length;k--;b[j[k]]=h);return b},a=[1,3],o=[1,6],u=[1,4],n=[1,5],c=[2,5],m=[1,12],l=[5,7,13,19,21,23,24,26,28,31,36,39,46],E=[7,13,19,21,23,24,26,28,31,36,39],_=[7,12,13,19,21,23,24,26,28,31,36,39],i=[7,13,46],g=[1,42],p=[1,41],x=[7,13,29,32,34,37,46],f=[1,55],d=[1,56],y=[1,57],H=[7,13,32,34,41,46],w={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,COMMIT_TAG:34,EMPTYSTR:35,MERGE:36,COMMIT_TYPE:37,commitType:38,COMMIT:39,commit_arg:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,ID:45,";":46,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"COMMIT_TAG",35:"EMPTYSTR",36:"MERGE",37:"COMMIT_TYPE",39:"COMMIT",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",45:"ID",46:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,5],[18,5],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[40,0],[40,1],[38,1],[38,1],[38,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(h,b,k,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",t[e]);break;case 26:case 28:s.cherryPick(t[e-2],"","");break;case 27:s.cherryPick(t[e],"",t[e-2]);break;case 29:s.merge(t[e],"","","");break;case 30:s.merge(t[e-2],t[e],"","");break;case 31:s.merge(t[e-2],"",t[e],"");break;case 32:s.merge(t[e-2],"","",t[e]);break;case 33:s.merge(t[e-4],t[e],"",t[e-2]);break;case 34:s.merge(t[e-4],"",t[e],t[e-2]);break;case 35:s.merge(t[e-4],"",t[e-2],t[e]);break;case 36:s.merge(t[e-4],t[e-2],t[e],"");break;case 37:s.merge(t[e-4],t[e-2],"",t[e]);break;case 38:s.merge(t[e-4],t[e],t[e-2],"");break;case 39:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 40:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 41:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 42:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 43:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 44:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 45:s.commit(t[e]);break;case 46:s.commit("","",s.commitType.NORMAL,t[e]);break;case 47:s.commit("","",t[e],"");break;case 48:s.commit("","",t[e],t[e-2]);break;case 49:s.commit("","",t[e-2],t[e]);break;case 50:s.commit("",t[e],s.commitType.NORMAL,"");break;case 51:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 52:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 53:s.commit("",t[e-2],t[e],"");break;case 54:s.commit("",t[e],t[e-2],"");break;case 55:s.commit("",t[e-4],t[e-2],t[e]);break;case 56:s.commit("",t[e-4],t[e],t[e-2]);break;case 57:s.commit("",t[e-2],t[e-4],t[e]);break;case 58:s.commit("",t[e],t[e-4],t[e-2]);break;case 59:s.commit("",t[e],t[e-2],t[e-4]);break;case 60:s.commit("",t[e-2],t[e],t[e-4]);break;case 61:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 62:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 63:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 64:s.commit(t[e-2],"",t[e],"");break;case 65:s.commit(t[e],"",t[e-2],"");break;case 66:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 67:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 68:s.commit(t[e-4],"",t[e-2],t[e]);break;case 69:s.commit(t[e-4],"",t[e],t[e-2]);break;case 70:s.commit(t[e-2],"",t[e-4],t[e]);break;case 71:s.commit(t[e],"",t[e-4],t[e-2]);break;case 72:s.commit(t[e],"",t[e-2],t[e-4]);break;case 73:s.commit(t[e-2],"",t[e],t[e-4]);break;case 74:s.commit(t[e-4],t[e],t[e-2],"");break;case 75:s.commit(t[e-4],t[e-2],t[e],"");break;case 76:s.commit(t[e-2],t[e],t[e-4],"");break;case 77:s.commit(t[e],t[e-2],t[e-4],"");break;case 78:s.commit(t[e],t[e-4],t[e-2],"");break;case 79:s.commit(t[e-2],t[e-4],t[e],"");break;case 80:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 81:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 82:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 83:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 84:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 85:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 86:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 87:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 88:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 89:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 90:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 91:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 92:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 93:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 94:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 95:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 96:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 97:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 98:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 99:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 100:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 101:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 102:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 103:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 104:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 105:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 106:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 107:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 108:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 109:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 110:this.$="";break;case 111:this.$=t[e];break;case 112:this.$=s.commitType.NORMAL;break;case 113:this.$=s.commitType.REVERSE;break;case 114:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:a,7:o,13:u,46:n},{1:[3]},{3:7,4:2,5:a,7:o,13:u,46:n},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:m},r(l,[2,117]),r(l,[2,118]),r(l,[2,119]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:m},{8:[1,15]},r(E,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:m},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],36:[1,33],39:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(E,[2,10]),{4:37,7:o,13:u,46:n},r(E,[2,12]),r(i,[2,13]),r(i,[2,14]),r(i,[2,15]),{20:[1,38]},{22:[1,39]},r(i,[2,18]),r(i,[2,19]),r(i,[2,20]),{27:40,33:g,45:p},r(i,[2,110],{40:43,32:[1,46],33:[1,48],34:[1,44],37:[1,45],41:[1,47]}),{27:49,33:g,45:p},{32:[1,50],34:[1,51]},{27:52,33:g,45:p},{1:[2,4]},r(E,[2,11]),r(i,[2,16]),r(i,[2,17]),r(i,[2,21]),r(x,[2,115]),r(x,[2,116]),r(i,[2,45]),{33:[1,53]},{38:54,42:f,43:d,44:y},{33:[1,58]},{33:[1,59]},r(i,[2,111]),r(i,[2,29],{32:[1,60],34:[1,62],37:[1,61]}),{33:[1,63]},{33:[1,64],35:[1,65]},r(i,[2,22],{29:[1,66]}),r(i,[2,46],{32:[1,68],37:[1,67],41:[1,69]}),r(i,[2,47],{32:[1,71],34:[1,70],41:[1,72]}),r(H,[2,112]),r(H,[2,113]),r(H,[2,114]),r(i,[2,50],{34:[1,73],37:[1,74],41:[1,75]}),r(i,[2,61],{32:[1,78],34:[1,76],37:[1,77]}),{33:[1,79]},{38:80,42:f,43:d,44:y},{33:[1,81]},r(i,[2,24],{34:[1,82]}),{32:[1,83]},{32:[1,84]},{30:[1,85]},{38:86,42:f,43:d,44:y},{33:[1,87]},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{38:93,42:f,43:d,44:y},{33:[1,94]},{33:[1,95]},{38:96,42:f,43:d,44:y},{33:[1,97]},r(i,[2,30],{34:[1,99],37:[1,98]}),r(i,[2,31],{32:[1,101],34:[1,100]}),r(i,[2,32],{32:[1,102],37:[1,103]}),{33:[1,104],35:[1,105]},{33:[1,106]},{33:[1,107]},r(i,[2,23]),r(i,[2,48],{32:[1,108],41:[1,109]}),r(i,[2,52],{37:[1,110],41:[1,111]}),r(i,[2,62],{32:[1,113],37:[1,112]}),r(i,[2,49],{32:[1,114],41:[1,115]}),r(i,[2,54],{34:[1,116],41:[1,117]}),r(i,[2,65],{32:[1,119],34:[1,118]}),r(i,[2,51],{37:[1,120],41:[1,121]}),r(i,[2,53],{34:[1,122],41:[1,123]}),r(i,[2,66],{34:[1,125],37:[1,124]}),r(i,[2,63],{32:[1,127],37:[1,126]}),r(i,[2,64],{32:[1,129],34:[1,128]}),r(i,[2,67],{34:[1,131],37:[1,130]}),{38:132,42:f,43:d,44:y},{33:[1,133]},{33:[1,134]},{33:[1,135]},{33:[1,136]},{38:137,42:f,43:d,44:y},r(i,[2,25]),r(i,[2,26]),r(i,[2,27]),r(i,[2,28]),{33:[1,138]},{33:[1,139]},{38:140,42:f,43:d,44:y},{33:[1,141]},{38:142,42:f,43:d,44:y},{33:[1,143]},{33:[1,144]},{33:[1,145]},{33:[1,146]},{33:[1,147]},{33:[1,148]},{33:[1,149]},{38:150,42:f,43:d,44:y},{33:[1,151]},{33:[1,152]},{33:[1,153]},{38:154,42:f,43:d,44:y},{33:[1,155]},{38:156,42:f,43:d,44:y},{33:[1,157]},{33:[1,158]},{33:[1,159]},{38:160,42:f,43:d,44:y},{33:[1,161]},r(i,[2,36],{34:[1,162]}),r(i,[2,37],{37:[1,163]}),r(i,[2,35],{32:[1,164]}),r(i,[2,38],{34:[1,165]}),r(i,[2,33],{37:[1,166]}),r(i,[2,34],{32:[1,167]}),r(i,[2,59],{41:[1,168]}),r(i,[2,72],{32:[1,169]}),r(i,[2,60],{41:[1,170]}),r(i,[2,83],{37:[1,171]}),r(i,[2,73],{32:[1,172]}),r(i,[2,82],{37:[1,173]}),r(i,[2,58],{41:[1,174]}),r(i,[2,71],{32:[1,175]}),r(i,[2,57],{41:[1,176]}),r(i,[2,77],{34:[1,177]}),r(i,[2,70],{32:[1,178]}),r(i,[2,76],{34:[1,179]}),r(i,[2,56],{41:[1,180]}),r(i,[2,84],{37:[1,181]}),r(i,[2,55],{41:[1,182]}),r(i,[2,78],{34:[1,183]}),r(i,[2,79],{34:[1,184]}),r(i,[2,85],{37:[1,185]}),r(i,[2,69],{32:[1,186]}),r(i,[2,80],{37:[1,187]}),r(i,[2,68],{32:[1,188]}),r(i,[2,74],{34:[1,189]}),r(i,[2,75],{34:[1,190]}),r(i,[2,81],{37:[1,191]}),{33:[1,192]},{38:193,42:f,43:d,44:y},{33:[1,194]},{33:[1,195]},{38:196,42:f,43:d,44:y},{33:[1,197]},{33:[1,198]},{33:[1,199]},{33:[1,200]},{38:201,42:f,43:d,44:y},{33:[1,202]},{38:203,42:f,43:d,44:y},{33:[1,204]},{33:[1,205]},{33:[1,206]},{33:[1,207]},{33:[1,208]},{33:[1,209]},{33:[1,210]},{38:211,42:f,43:d,44:y},{33:[1,212]},{33:[1,213]},{33:[1,214]},{38:215,42:f,43:d,44:y},{33:[1,216]},{38:217,42:f,43:d,44:y},{33:[1,218]},{33:[1,219]},{33:[1,220]},{38:221,42:f,43:d,44:y},r(i,[2,39]),r(i,[2,41]),r(i,[2,40]),r(i,[2,42]),r(i,[2,44]),r(i,[2,43]),r(i,[2,100]),r(i,[2,101]),r(i,[2,98]),r(i,[2,99]),r(i,[2,103]),r(i,[2,102]),r(i,[2,107]),r(i,[2,106]),r(i,[2,105]),r(i,[2,104]),r(i,[2,109]),r(i,[2,108]),r(i,[2,97]),r(i,[2,96]),r(i,[2,95]),r(i,[2,94]),r(i,[2,92]),r(i,[2,93]),r(i,[2,91]),r(i,[2,90]),r(i,[2,89]),r(i,[2,88]),r(i,[2,86]),r(i,[2,87])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(h,b){if(b.recoverable)this.trace(h);else{var k=new Error(h);throw k.hash=b,k}},parse:function(h){var b=this,k=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,pt=0,Tt=2,ft=1,Lt=t.slice.call(arguments,1),M=Object.create(this.lexer),Y={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(Y.yy[ct]=this.yy[ct]);M.setInput(h,Y.yy),Y.yy.lexer=M,Y.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ot=M.yylloc;t.push(ot);var Rt=M.options&&M.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||M.lex()||ft,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=b.symbols_[q]||q),q}for(var I,K,V,lt,W={},it,z,bt,st;;){if(K=k[k.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((I===null||typeof I>"u")&&(I=Mt()),V=X[K]&&X[K][I]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>Tt&&st.push("'"+this.terminals_[it]+"'");M.showPosition?ht="Parse error on line "+(rt+1)+`: `+M.showPosition()+` Expecting `+st.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(I==ft?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ht,{text:M.match,token:this.terminals_[I]||I,line:M.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+I);switch(V[0]){case 1:k.push(I),T.push(M.yytext),t.push(M.yylloc),k.push(V[1]),I=null,pt=M.yyleng,e=M.yytext,rt=M.yylineno,ot=M.yylloc;break;case 2:if(z=this.productions_[V[1]][1],W.$=T[T.length-z],W._$={first_line:t[t.length-(z||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(z||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(W._$.range=[t[t.length-(z||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(W,[e,pt,rt,Y.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;z&&(k=k.slice(0,-1*z*2),T=T.slice(0,-1*z),t=t.slice(0,-1*z)),k.push(this.productions_[V[1]][0]),T.push(W.$),t.push(W._$),bt=X[k[k.length-2]][k[k.length-1]],k.push(bt);break;case 3:return!0}}return!0}},B=function(){var j={EOF:1,parseError:function(b,k){if(this.yy.parser)this.yy.parser.parseError(b,k);else throw new Error(b)},setInput:function(h,b){return this.yy=b||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var b=h.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},unput:function(h){var b=h.length,k=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1&&(this.yylineno-=k.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===s.length?this.yylloc.first_column:0)+s[s.length-k.length].length-k[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(h){this.unput(this.match.slice(h))},pastInput:function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var h=this.pastInput(),b=new Array(h.length+1).join("-");return h+this.upcomingInput()+` diff --git a/assets/index-67a42d7d-g0Z27jYt.js b/assets/index-67a42d7d-z0cWI9_8.js similarity index 97% rename from assets/index-67a42d7d-g0Z27jYt.js rename to assets/index-67a42d7d-z0cWI9_8.js index 0c2cd46bb9..647845c7fc 100644 --- a/assets/index-67a42d7d-g0Z27jYt.js +++ b/assets/index-67a42d7d-z0cWI9_8.js @@ -1 +1 @@ -import{b as G,i as m,m as O,G as j,l as A}from"./layout-TzcvurS1.js";import{i as M,u as _,s as H,a as V,b as U,p as D,c as W,d as Y,e as q,f as z,g as L,h as C}from"./edges-80f1ebb6-FlrRuN4S.js";import{l as i,F as N,c as S,h as T}from"./mermaid.core-uOCfdc17.js";import{c as K}from"./createText-aebacdfe-SYhAe-WO.js";var Q=4;function Z(e){return G(e,Q)}function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:I(e),edges:tt(e)};return m(e.graph())||(t.value=Z(e.graph())),t}function I(e){return O(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m(n)||(s.value=n),m(r)||(s.parent=r),s})}function tt(e){return O(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m(t.name)||(r.name=t.name),m(n)||(r.value=n),r})}let f={},g={},J={};const et=()=>{g={},J={},f={}},X=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),nt=(e,t)=>(i.info("Decendants of ",t," is ",g[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||X(e.v,t)||X(e.w,t)||g[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),R=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(c=>{if(t.children(c).length>0)R(c,t,n,r);else{const d=t.node(c);i.info("cp ",c," to ",r," with parent ",e),n.setNode(c,d),r!==t.parent(c)&&(i.warn("Setting parent",c,t.parent(c)),n.setParent(c,t.parent(c))),e!==r&&c!==e?(i.debug("Setting parent",c,e),n.setParent(c,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",c,"cluster!==rootId",e!==r,"node!==clusterId",c!==e));const l=t.edges(c);i.debug("Copying Edges",l),l.forEach(u=>{i.info("Edge",u);const h=t.edge(u.v,u.w,u.name);i.info("Edge data",h,r);try{nt(u,r)?(i.info("Copying as ",u.v,u.w,h,u.name),n.setEdge(u.v,u.w,h,u.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",r," clusterId:",e)}catch(w){i.error(w)}})}i.debug("Removing node",c),t.removeNode(c)})},P=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)J[s]=e,r=[...r,...P(s,t)];return r},b=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=b(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},E=e=>!f[e]||!f[e].externalConnections?e:f[e]?f[e].id:e,it=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",b(n,e)),g[n]=P(n,e),f[n]={id:b(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,g),s.forEach(c=>{if(c.v!==n&&c.w!==n){const d=X(c.v,n),l=X(c.w,n);d^l&&(i.warn("Edge: ",c," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",g[n]),f[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,g)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,c=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f[n.v]," --- ",f[n.w]),f[n.v]&&f[n.w]&&f[n.v]===f[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=E(n.v),c=E(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=structuredClone(r),u=structuredClone(r);l.label="",l.arrowTypeEnd="none",u.label="",l.fromCluster=n.v,u.toCluster=n.v,e.setEdge(s,d,l,n.name+"-cyclic-special"),e.setEdge(d,c,u,n.name+"-cyclic-special")}else(f[n.v]||f[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=E(n.v),c=E(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),c!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,c,n.name),e.setEdge(s,c,r,n.name))}),i.warn("Adjusted Graph",x(e)),p(e,0),i.trace(f)},p=(e,t)=>{if(i.warn("extractor - ",t,x(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const c=e.children(s);r=r||c.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,f,f[s]&&!f[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!f[s])i.debug("Not a cluster",s,t);else if(!f[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let d=e.graph().rankdir==="TB"?"LR":"TB";f[s]&&f[s].clusterData&&f[s].clusterData.dir&&(d=f[s].clusterData.dir,i.warn("Fixing dir",f[s].clusterData.dir,d));const l=new j({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",x(e)),R(s,e,l,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:f[s].clusterData,labelText:f[s].labelText,graph:l}),i.warn("New graph after copy node: (",s,")",x(l)),i.debug("Old graph after copy",x(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!f[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const s of n){const c=e.node(s);i.warn(" Now next level",s,c),c.clusterNode&&p(c.graph,t+1)}},F=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),c=F(e,s);n=[...n,...c]}),n},st=e=>F(e,e.children()),rt=(e,t)=>{i.info("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),s=N(S().flowchart.htmlLabels),c=n.insert("g").attr("class","cluster-label"),d=t.labelType==="markdown"?K(c,t.labelText,{style:t.labelStyle,useHtmlLabels:s}):c.node().appendChild(L(t.labelText,t.labelStyle,void 0,!0));let l=d.getBBox();if(N(S().flowchart.htmlLabels)){const a=d.children[0],o=T(d);l=a.getBoundingClientRect(),o.attr("width",l.width),o.attr("height",l.height)}const u=0*t.padding,h=u/2,w=t.width<=l.width+u?l.width+u:t.width;t.width<=l.width+u?t.diff=(l.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-w/2).attr("y",t.y-t.height/2-h).attr("width",w).attr("height",t.height+u),s?c.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2)+")"):c.attr("transform","translate("+t.x+", "+(t.y-t.height/2)+")");const v=r.node().getBBox();return t.width=v.width,t.height=v.height,t.intersect=function(a){return C(t,a)},n},at=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2-c).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(l){return C(t,l)},n},ct=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),c=n.append("rect"),d=s.node().appendChild(L(t.labelText,t.labelStyle,void 0,!0));let l=d.getBBox();if(N(S().flowchart.htmlLabels)){const a=d.children[0],o=T(d);l=a.getBoundingClientRect(),o.attr("width",l.width),o.attr("height",l.height)}l=d.getBBox();const u=0*t.padding,h=u/2,w=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-w/2-h).attr("y",t.y-t.height/2-h).attr("width",w+u).attr("height",t.height+u),c.attr("class","inner").attr("x",t.x-w/2-h).attr("y",t.y-t.height/2-h+l.height-1).attr("width",w+u).attr("height",t.height+u-l.height-3),s.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(N(S().flowchart.htmlLabels)?5:3))+")");const v=r.node().getBBox();return t.height=v.height,t.intersect=function(a){return C(t,a)},n},ot=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(l){return C(t,l)},n},lt={rect:rt,roundedWithTitle:ct,noteGroup:at,divider:ot};let k={};const ft=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";k[t.id]=lt[n](e,t)},dt=()=>{k={}},$=async(e,t,n,r,s)=>{i.info("Graph in recursive render: XXX",x(t),s);const c=t.graph().rankdir;i.trace("Dir in recursive render - dir:",c);const d=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.trace("Recursive edges",t.edge(t.edges()[0]));const l=d.insert("g").attr("class","clusters"),u=d.insert("g").attr("class","edgePaths"),h=d.insert("g").attr("class","edgeLabels"),w=d.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(a){const o=t.node(a);if(s!==void 0){const y=JSON.parse(JSON.stringify(s.clusterData));i.info("Setting data for cluster XXX (",a,") ",y,s),t.setNode(s.id,y),t.parent(a)||(i.trace("Setting parent",a,s.id),t.setParent(a,s.id,y))}if(i.info("(Insert) Node XXX"+a+": "+JSON.stringify(t.node(a))),o&&o.clusterNode){i.info("Cluster identified",a,o.width,t.node(a));const y=await $(w,o.graph,n,r,t.node(a)),B=y.elem;_(o,B),o.diff=y.diff||0,i.info("Node bounds (abc123)",a,o,o.width,o.x,o.y),H(B,o),i.warn("Recursive render complete ",B,o)}else t.children(a).length>0?(i.info("Cluster - the non recursive path XXX",a,o.id,o,t),i.info(b(o.id,t)),f[o.id]={id:b(o.id,t),node:o}):(i.info("Node - the non recursive path",a,o.id,o),await V(w,t.node(a),c))})),t.edges().forEach(function(a){const o=t.edge(a.v,a.w,a.name);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),i.info("Edge "+a.v+" -> "+a.w+": ",a," ",JSON.stringify(t.edge(a))),i.info("Fix",f,"ids:",a.v,a.w,"Translateing: ",f[a.v],f[a.w]),U(h,o)}),t.edges().forEach(function(a){i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(t),A(t),i.info("Graph after layout:",x(t));let v=0;return st(t).forEach(function(a){const o=t.node(a);i.info("Position "+a+": "+JSON.stringify(t.node(a))),i.info("Position "+a+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?D(o):t.children(a).length>0?(ft(l,o),f[o.id].node=o):D(o)}),t.edges().forEach(function(a){const o=t.edge(a);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(o),o);const y=W(u,a,o,f,n,t,r);Y(o,y)}),t.nodes().forEach(function(a){const o=t.node(a);i.info(a,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:d,diff:v}},xt=async(e,t,n,r,s)=>{M(e,n,r,s),q(),z(),dt(),et(),i.warn("Graph at first:",JSON.stringify(x(t))),it(t),i.warn("Graph after:",JSON.stringify(x(t))),await $(e,t,r,s)};export{xt as r}; +import{b as G,i as m,m as O,G as j,l as A}from"./layout-or5_ZLqg.js";import{i as M,u as _,s as H,a as V,b as U,p as D,c as W,d as Y,e as q,f as z,g as L,h as C}from"./edges-80f1ebb6-rGuwxB-z.js";import{l as i,F as N,c as S,h as T}from"./mermaid.core-YsxFu0Y0.js";import{c as K}from"./createText-aebacdfe-H6z3pXul.js";var Q=4;function Z(e){return G(e,Q)}function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:I(e),edges:tt(e)};return m(e.graph())||(t.value=Z(e.graph())),t}function I(e){return O(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m(n)||(s.value=n),m(r)||(s.parent=r),s})}function tt(e){return O(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m(t.name)||(r.name=t.name),m(n)||(r.value=n),r})}let f={},g={},J={};const et=()=>{g={},J={},f={}},X=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),nt=(e,t)=>(i.info("Decendants of ",t," is ",g[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||X(e.v,t)||X(e.w,t)||g[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),R=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(c=>{if(t.children(c).length>0)R(c,t,n,r);else{const d=t.node(c);i.info("cp ",c," to ",r," with parent ",e),n.setNode(c,d),r!==t.parent(c)&&(i.warn("Setting parent",c,t.parent(c)),n.setParent(c,t.parent(c))),e!==r&&c!==e?(i.debug("Setting parent",c,e),n.setParent(c,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",c,"cluster!==rootId",e!==r,"node!==clusterId",c!==e));const l=t.edges(c);i.debug("Copying Edges",l),l.forEach(u=>{i.info("Edge",u);const h=t.edge(u.v,u.w,u.name);i.info("Edge data",h,r);try{nt(u,r)?(i.info("Copying as ",u.v,u.w,h,u.name),n.setEdge(u.v,u.w,h,u.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",r," clusterId:",e)}catch(w){i.error(w)}})}i.debug("Removing node",c),t.removeNode(c)})},P=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)J[s]=e,r=[...r,...P(s,t)];return r},b=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=b(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},E=e=>!f[e]||!f[e].externalConnections?e:f[e]?f[e].id:e,it=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",b(n,e)),g[n]=P(n,e),f[n]={id:b(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,g),s.forEach(c=>{if(c.v!==n&&c.w!==n){const d=X(c.v,n),l=X(c.w,n);d^l&&(i.warn("Edge: ",c," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",g[n]),f[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,g)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,c=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f[n.v]," --- ",f[n.w]),f[n.v]&&f[n.w]&&f[n.v]===f[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=E(n.v),c=E(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=structuredClone(r),u=structuredClone(r);l.label="",l.arrowTypeEnd="none",u.label="",l.fromCluster=n.v,u.toCluster=n.v,e.setEdge(s,d,l,n.name+"-cyclic-special"),e.setEdge(d,c,u,n.name+"-cyclic-special")}else(f[n.v]||f[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=E(n.v),c=E(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),c!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,c,n.name),e.setEdge(s,c,r,n.name))}),i.warn("Adjusted Graph",x(e)),p(e,0),i.trace(f)},p=(e,t)=>{if(i.warn("extractor - ",t,x(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const c=e.children(s);r=r||c.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,f,f[s]&&!f[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!f[s])i.debug("Not a cluster",s,t);else if(!f[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let d=e.graph().rankdir==="TB"?"LR":"TB";f[s]&&f[s].clusterData&&f[s].clusterData.dir&&(d=f[s].clusterData.dir,i.warn("Fixing dir",f[s].clusterData.dir,d));const l=new j({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",x(e)),R(s,e,l,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:f[s].clusterData,labelText:f[s].labelText,graph:l}),i.warn("New graph after copy node: (",s,")",x(l)),i.debug("Old graph after copy",x(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!f[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const s of n){const c=e.node(s);i.warn(" Now next level",s,c),c.clusterNode&&p(c.graph,t+1)}},F=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),c=F(e,s);n=[...n,...c]}),n},st=e=>F(e,e.children()),rt=(e,t)=>{i.info("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),s=N(S().flowchart.htmlLabels),c=n.insert("g").attr("class","cluster-label"),d=t.labelType==="markdown"?K(c,t.labelText,{style:t.labelStyle,useHtmlLabels:s}):c.node().appendChild(L(t.labelText,t.labelStyle,void 0,!0));let l=d.getBBox();if(N(S().flowchart.htmlLabels)){const a=d.children[0],o=T(d);l=a.getBoundingClientRect(),o.attr("width",l.width),o.attr("height",l.height)}const u=0*t.padding,h=u/2,w=t.width<=l.width+u?l.width+u:t.width;t.width<=l.width+u?t.diff=(l.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-w/2).attr("y",t.y-t.height/2-h).attr("width",w).attr("height",t.height+u),s?c.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2)+")"):c.attr("transform","translate("+t.x+", "+(t.y-t.height/2)+")");const v=r.node().getBBox();return t.width=v.width,t.height=v.height,t.intersect=function(a){return C(t,a)},n},at=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2-c).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(l){return C(t,l)},n},ct=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),c=n.append("rect"),d=s.node().appendChild(L(t.labelText,t.labelStyle,void 0,!0));let l=d.getBBox();if(N(S().flowchart.htmlLabels)){const a=d.children[0],o=T(d);l=a.getBoundingClientRect(),o.attr("width",l.width),o.attr("height",l.height)}l=d.getBBox();const u=0*t.padding,h=u/2,w=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-w/2-h).attr("y",t.y-t.height/2-h).attr("width",w+u).attr("height",t.height+u),c.attr("class","inner").attr("x",t.x-w/2-h).attr("y",t.y-t.height/2-h+l.height-1).attr("width",w+u).attr("height",t.height+u-l.height-3),s.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(N(S().flowchart.htmlLabels)?5:3))+")");const v=r.node().getBBox();return t.height=v.height,t.intersect=function(a){return C(t,a)},n},ot=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(l){return C(t,l)},n},lt={rect:rt,roundedWithTitle:ct,noteGroup:at,divider:ot};let k={};const ft=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";k[t.id]=lt[n](e,t)},dt=()=>{k={}},$=async(e,t,n,r,s)=>{i.info("Graph in recursive render: XXX",x(t),s);const c=t.graph().rankdir;i.trace("Dir in recursive render - dir:",c);const d=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.trace("Recursive edges",t.edge(t.edges()[0]));const l=d.insert("g").attr("class","clusters"),u=d.insert("g").attr("class","edgePaths"),h=d.insert("g").attr("class","edgeLabels"),w=d.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(a){const o=t.node(a);if(s!==void 0){const y=JSON.parse(JSON.stringify(s.clusterData));i.info("Setting data for cluster XXX (",a,") ",y,s),t.setNode(s.id,y),t.parent(a)||(i.trace("Setting parent",a,s.id),t.setParent(a,s.id,y))}if(i.info("(Insert) Node XXX"+a+": "+JSON.stringify(t.node(a))),o&&o.clusterNode){i.info("Cluster identified",a,o.width,t.node(a));const y=await $(w,o.graph,n,r,t.node(a)),B=y.elem;_(o,B),o.diff=y.diff||0,i.info("Node bounds (abc123)",a,o,o.width,o.x,o.y),H(B,o),i.warn("Recursive render complete ",B,o)}else t.children(a).length>0?(i.info("Cluster - the non recursive path XXX",a,o.id,o,t),i.info(b(o.id,t)),f[o.id]={id:b(o.id,t),node:o}):(i.info("Node - the non recursive path",a,o.id,o),await V(w,t.node(a),c))})),t.edges().forEach(function(a){const o=t.edge(a.v,a.w,a.name);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),i.info("Edge "+a.v+" -> "+a.w+": ",a," ",JSON.stringify(t.edge(a))),i.info("Fix",f,"ids:",a.v,a.w,"Translateing: ",f[a.v],f[a.w]),U(h,o)}),t.edges().forEach(function(a){i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(t),A(t),i.info("Graph after layout:",x(t));let v=0;return st(t).forEach(function(a){const o=t.node(a);i.info("Position "+a+": "+JSON.stringify(t.node(a))),i.info("Position "+a+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?D(o):t.children(a).length>0?(ft(l,o),f[o.id].node=o):D(o)}),t.edges().forEach(function(a){const o=t.edge(a);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(o),o);const y=W(u,a,o,f,n,t,r);Y(o,y)}),t.nodes().forEach(function(a){const o=t.node(a);i.info(a,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:d,diff:v}},xt=async(e,t,n,r,s)=>{M(e,n,r,s),q(),z(),dt(),et(),i.warn("Graph at first:",JSON.stringify(x(t))),it(t),i.warn("Graph after:",JSON.stringify(x(t))),await $(e,t,r,s)};export{xt as r}; diff --git a/assets/index-_qoN1KWb.js b/assets/index-GZJTCUEG.js similarity index 94% rename from assets/index-_qoN1KWb.js rename to assets/index-GZJTCUEG.js index a29d90c100..9b4f7ca576 100644 --- a/assets/index-_qoN1KWb.js +++ b/assets/index-GZJTCUEG.js @@ -1,4 +1,4 @@ -import{r as a}from"./index-Qg-bAq5J.js";var c={exports:{}},f={};/** +import{r as a}from"./index-HRfeE_7B.js";var c={exports:{}},f={};/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/assets/index-Qg-bAq5J.js b/assets/index-HRfeE_7B.js similarity index 99% rename from assets/index-Qg-bAq5J.js rename to assets/index-HRfeE_7B.js index 612cef8579..d82a35034f 100644 --- a/assets/index-Qg-bAq5J.js +++ b/assets/index-HRfeE_7B.js @@ -109,10 +109,10 @@ ${t} `}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+` `}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return"
"}del(t){return`${t}`}link(t,n,r){const l=qc(t);if(l===null)return r;t=l;let o='",o}image(t,n,r){const l=qc(t);if(l===null)return r;t=l;let o=`${r}0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=P+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=P+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:P+" "}):x+=P+" "}x+=this.parse(f.tokens,u),c+=this.renderer.listitem(x,k,!!y)}r+=this.renderer.list(c,a,s);continue}case"html":{const i=o;r+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=o;r+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=o,a=i.tokens?this.parseInline(i.tokens):i.text;for(;l+1{r=r.concat(this.walkTokens(a[s],n))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=n.renderers[o.name];i?n.renderers[o.name]=function(...a){let s=o.renderer.apply(this,a);return s===!1&&(s=i.apply(this,a)),s}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[o.level];i?i.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),l.extensions=n),r.renderer){const o=this.defaults.renderer||new Ho(this.defaults);for(const i in r.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const a=i,s=r.renderer[a],u=o[a];o[a]=(...c)=>{let d=s.apply(o,c);return d===!1&&(d=u.apply(o,c)),d||""}}l.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Vo(this.defaults);for(const i in r.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,s=r.tokenizer[a],u=o[a];o[a]=(...c)=>{let d=s.apply(o,c);return d===!1&&(d=u.apply(o,c)),d}}l.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new ll;for(const i in r.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const a=i,s=r.hooks[a],u=o[a];ll.passThroughHooks.has(i)?o[a]=c=>{if(this.defaults.async)return Promise.resolve(s.call(o,c)).then(f=>u.call(o,f));const d=s.call(o,c);return u.call(o,d)}:o[a]=(...c)=>{let d=s.apply(o,c);return d===!1&&(d=u.apply(o,c)),d}}l.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,i=r.walkTokens;l.walkTokens=function(a){let s=[];return s.push(i.call(this,a)),o&&(s=s.concat(o.call(this,a))),s}}this.defaults={...this.defaults,...l}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return xt.lex(t,n??this.defaults)}parser(t,n){return St.parse(t,n??this.defaults)}}Cl=new WeakSet,es=function(t,n){return(r,l)=>{const o={...l},i={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const a=jl(this,Yo,Xp).call(this,!!i.silent,!!i.async);if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then(s=>t(s,i)).then(s=>i.walkTokens?Promise.all(this.walkTokens(s,i.walkTokens)).then(()=>s):s).then(s=>n(s,i)).then(s=>i.hooks?i.hooks.postprocess(s):s).catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));const s=t(r,i);i.walkTokens&&this.walkTokens(s,i.walkTokens);let u=n(s,i);return i.hooks&&(u=i.hooks.postprocess(u)),u}catch(s){return a(s)}}},Yo=new WeakSet,Xp=function(t,n){return r=>{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,t){const l="

An error occurred:

"+Ke(r.message+"",!0)+"
";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}};const Dn=new py;function X(e,t){return Dn.parse(e,t)}X.options=X.setOptions=function(e){return Dn.setOptions(e),X.defaults=Dn.defaults,Up(X.defaults),X};X.getDefaults=ru;X.defaults=An;X.use=function(...e){return Dn.use(...e),X.defaults=Dn.defaults,Up(X.defaults),X};X.walkTokens=function(e,t){return Dn.walkTokens(e,t)};X.parseInline=Dn.parseInline;X.Parser=St;X.parser=St.parse;X.Renderer=Ho;X.TextRenderer=uu;X.Lexer=xt;X.lexer=xt.lex;X.Tokenizer=Vo;X.Hooks=ll;X.parse=X;X.options;X.setOptions;X.use;X.walkTokens;X.parseInline;St.parse;xt.lex;const rf=m.memo(e=>{const{value:t}=e,n=X(t);return j.jsx("article",{className:"markdown-body text-sm",dangerouslySetInnerHTML:{__html:n}})}),ts=Object.assign({"../../src/components/ui/collapse/index.demo.tsx":()=>Fr(()=>import("./index.demo-pf7SmPXF.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../../src/components/ui/gallery/index.demo.tsx":()=>Fr(()=>import("./index.demo-CZ-Kdw_N.js"),__vite__mapDeps([5,6,7,2,3,8]),import.meta.url),"../../src/components/ui/link-card/index.demo.tsx":()=>Fr(()=>import("./index.demo-2NV1Cuwz.js"),__vite__mapDeps([9,10,7,2,1,3,11,12]),import.meta.url),"../../src/components/ui/markdown/index.demo.tsx":()=>Fr(()=>import("./index.demo-tXBcLHr3.js"),__vite__mapDeps([13,6,7,2,3,8,14,1,10,11,12,4,15,16,17,18]),import.meta.url),"../../src/components/ui/rich-link/index.demo.tsx":()=>Fr(()=>import("./index.demo-m9tNHPa7.js"),__vite__mapDeps([19,15,2,11]),import.meta.url)}),hy=Object.keys(ts).reduce((e,t)=>{const[,n]=t.match(/\/([^/]+)\/index.demo.(tsx|mdx)$/)||[];return n?{...e,[n]:ts[t]}:{...e}},{}),my=Object.keys(hy),gy=Object.values(ts).map(e=>wf.lazy(()=>e().then(t=>{const n=Object.keys(t).filter(o=>o!=="metadata"),r=n.length===1&&t.default,l=[];if(t.metadata&&typeof t.metadata=="object"){const{title:o,description:i}=t.metadata;l.push(j.jsxs("div",{className:"mb-8",children:[j.jsx("h1",{className:"my-6 text-xl font-bold",children:o}),i&&j.jsx(rf,{value:i})]}))}for(const o of n){const i=t[o],{meta:a={}}=i,{description:s,title:u}=a;l.unshift(j.jsxs("section",{className:"space-y-4 mt-8",children:[j.jsx("h2",{className:"text-lg font-medium",children:u||o}),!!s&&j.jsx(rf,{value:s}),j.jsx(i,{})]}))}return r?t:{default:()=>m.createElement(m.Fragment,null,l)}}))),vy=()=>{};function yy(e){const t=m.createContext(e),n=m.createContext(vy);return[r=>{let{children:l}=r;const[o,i]=m.useState(e);return j.jsx(t.Provider,{value:o,children:j.jsx(n.Provider,{value:i,children:l})})},()=>m.useContext(t),()=>m.useContext(n),t]}const[wy,f1,ky]=yy({}),xy=()=>j.jsx("div",{children:j.jsxs(wy,{children:[j.jsx(Sy,{}),j.jsx(Ey,{})]})}),Sy=()=>(console.log("render Child"),j.jsx("div",{children:"Child"})),Ey=()=>{console.log("render Child2");const e=ky();return j.jsxs("div",{children:["Child 2",j.jsx("button",{onClick:()=>{e({})},children:"Set new value"})]})};function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Cy(n,t))}function Sr(...e){return m.useCallback(Zp(...e),e)}const Gp=m.forwardRef((e,t)=>{const{children:n,...r}=e,l=m.Children.toArray(n),o=l.find(Py);if(o){const i=o.props.children,a=l.map(s=>s===o?m.Children.count(i)>1?m.Children.only(null):m.isValidElement(i)?i.props.children:null:s);return m.createElement(ns,xe({},r,{ref:t}),m.isValidElement(i)?m.cloneElement(i,void 0,a):null)}return m.createElement(ns,xe({},r,{ref:t}),n)});Gp.displayName="Slot";const ns=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{..._y(r,n.props),ref:t?Zp(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});ns.displayName="SlotClone";const Ry=({children:e})=>m.createElement(m.Fragment,null,e);function Py(e){return m.isValidElement(e)&&e.type===Ry}function _y(e,t){const n={...t};for(const r in t){const l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...a)=>{o(...a),l(...a)}:l&&(n[r]=l):r==="style"?n[r]={...l,...o}:r==="className"&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}const Ty=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],cu=Ty.reduce((e,t)=>{const n=m.forwardRef((r,l)=>{const{asChild:o,...i}=r,a=o?Gp:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(a,xe({},i,{ref:l}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),rs=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function Ly(e,t){return m.useReducer((n,r)=>{const l=t[n][r];return l??n},e)}const mi=e=>{const{present:t,children:n}=e,r=$y(t),l=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),o=Sr(r.ref,l.ref);return typeof n=="function"||r.isPresent?m.cloneElement(l,{ref:o}):null};mi.displayName="Presence";function $y(e){const[t,n]=m.useState(),r=m.useRef({}),l=m.useRef(e),o=m.useRef("none"),i=e?"mounted":"unmounted",[a,s]=Ly(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=lo(r.current);o.current=a==="mounted"?u:"none"},[a]),rs(()=>{const u=r.current,c=l.current;if(c!==e){const f=o.current,y=lo(u);e?s("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&f!==y?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,s]),rs(()=>{if(t){const u=d=>{const y=lo(r.current).includes(d.animationName);d.target===t&&y&&fi.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(o.current=lo(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function lo(e){return(e==null?void 0:e.animationName)||"none"}function Ny(e,t=[]){let n=[];function r(o,i){const a=m.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:f,children:y,...k}=d,x=(f==null?void 0:f[e][s])||a,P=m.useMemo(()=>k,Object.values(k));return m.createElement(x.Provider,{value:P},y)}function c(d,f){const y=(f==null?void 0:f[e][s])||a,k=m.useContext(y);if(k)return k;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const l=()=>{const o=n.map(i=>m.createContext(i));return function(a){const s=(a==null?void 0:a[e])||o;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return l.scopeName=e,[r,zy(l,...t)]}function zy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:u})=>{const d=s(o)[`__scope${u}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function kn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Dy=m.createContext(void 0);function My(e){const t=m.useContext(Dy);return e||t||"ltr"}function Oy(e,[t,n]){return Math.min(n,Math.max(t,e))}function ol(e,t,{checkForDefaultPrevented:n=!0}={}){return function(l){if(e==null||e(l),n===!1||!l.defaultPrevented)return t==null?void 0:t(l)}}function Iy(e,t){return m.useReducer((n,r)=>{const l=t[n][r];return l??n},e)}const Jp="ScrollArea",[qp,d1]=Ny(Jp),[jy,Ft]=qp(Jp),Ay=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:l,scrollHideDelay:o=600,...i}=e,[a,s]=m.useState(null),[u,c]=m.useState(null),[d,f]=m.useState(null),[y,k]=m.useState(null),[x,P]=m.useState(null),[g,p]=m.useState(0),[v,h]=m.useState(0),[R,T]=m.useState(!1),[C,L]=m.useState(!1),D=Sr(t,W=>s(W)),M=My(l);return m.createElement(jy,{scope:n,type:r,dir:M,scrollHideDelay:o,scrollArea:a,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:y,onScrollbarXChange:k,scrollbarXEnabled:R,onScrollbarXEnabledChange:T,scrollbarY:x,onScrollbarYChange:P,scrollbarYEnabled:C,onScrollbarYEnabledChange:L,onCornerWidthChange:p,onCornerHeightChange:h},m.createElement(cu.div,xe({dir:M},i,{ref:D,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})))}),Uy="ScrollAreaViewport",Fy=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...l}=e,o=Ft(Uy,n),i=m.useRef(null),a=Sr(t,i,o.onViewportChange);return m.createElement(m.Fragment,null,m.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),m.createElement(cu.div,xe({"data-radix-scroll-area-viewport":""},l,{ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),m.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),bt="ScrollAreaScrollbar",by=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(bt,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=l,a=e.orientation==="horizontal";return m.useEffect(()=>(a?o(!0):i(!0),()=>{a?o(!1):i(!1)}),[a,o,i]),l.type==="hover"?m.createElement(By,xe({},r,{ref:t,forceMount:n})):l.type==="scroll"?m.createElement(Vy,xe({},r,{ref:t,forceMount:n})):l.type==="auto"?m.createElement(eh,xe({},r,{ref:t,forceMount:n})):l.type==="always"?m.createElement(fu,xe({},r,{ref:t})):null}),By=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(bt,e.__scopeScrollArea),[o,i]=m.useState(!1);return m.useEffect(()=>{const a=l.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),l.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[l.scrollArea,l.scrollHideDelay]),m.createElement(mi,{present:n||o},m.createElement(eh,xe({"data-state":o?"visible":"hidden"},r,{ref:t})))}),Vy=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(bt,e.__scopeScrollArea),o=e.orientation==="horizontal",i=du(()=>s("SCROLL_END"),100),[a,s]=Iy("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,l.scrollHideDelay,s]),m.useEffect(()=>{const u=l.viewport,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const y=u[c];d!==y&&(s("SCROLL"),i()),d=y};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[l.viewport,o,s,i]),m.createElement(mi,{present:n||a!=="hidden"},m.createElement(fu,xe({"data-state":a==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:ol(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:ol(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),eh=m.forwardRef((e,t)=>{const n=Ft(bt,e.__scopeScrollArea),{forceMount:r,...l}=e,[o,i]=m.useState(!1),a=e.orientation==="horizontal",s=du(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,l=Ft(bt,e.__scopeScrollArea),o=m.useRef(null),i=m.useRef(0),[a,s]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=nh(a.viewport,a.content),c={...r,sizes:a,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>o.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,y){return Ky(f,i.current,a,y)}return n==="horizontal"?m.createElement(Wy,xe({},c,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&o.current){const f=l.viewport.scrollLeft,y=lf(f,a,l.dir);o.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:f=>{l.viewport&&(l.viewport.scrollLeft=f)},onDragScroll:f=>{l.viewport&&(l.viewport.scrollLeft=d(f,l.dir))}})):n==="vertical"?m.createElement(Hy,xe({},c,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&o.current){const f=l.viewport.scrollTop,y=lf(f,a);o.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:f=>{l.viewport&&(l.viewport.scrollTop=f)},onDragScroll:f=>{l.viewport&&(l.viewport.scrollTop=d(f))}})):null}),Wy=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...l}=e,o=Ft(bt,e.__scopeScrollArea),[i,a]=m.useState(),s=m.useRef(null),u=Sr(t,s,o.onScrollbarXChange);return m.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.createElement(th,xe({"data-orientation":"horizontal"},l,{ref:u,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":gi(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(o.viewport){const f=o.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),lh(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Qo(i.paddingLeft),paddingEnd:Qo(i.paddingRight)}})}}))}),Hy=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...l}=e,o=Ft(bt,e.__scopeScrollArea),[i,a]=m.useState(),s=m.useRef(null),u=Sr(t,s,o.onScrollbarYChange);return m.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.createElement(th,xe({"data-orientation":"vertical"},l,{ref:u,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":gi(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(o.viewport){const f=o.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),lh(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Qo(i.paddingTop),paddingEnd:Qo(i.paddingBottom)}})}}))}),[Qy,p1]=qp(bt),th=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:l,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,y=Ft(bt,n),[k,x]=m.useState(null),P=Sr(t,D=>x(D)),g=m.useRef(null),p=m.useRef(""),v=y.viewport,h=r.content-r.viewport,R=kn(c),T=kn(s),C=du(d,10);function L(D){if(g.current){const M=D.clientX-g.current.left,W=D.clientY-g.current.top;u({x:M,y:W})}}return m.useEffect(()=>{const D=M=>{const W=M.target;(k==null?void 0:k.contains(W))&&R(M,h)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[v,k,h,R]),m.useEffect(T,[r,T]),Ko(k,C),Ko(y.content,C),m.createElement(Qy,{scope:n,scrollbar:k,hasThumb:l,onThumbChange:kn(o),onThumbPointerUp:kn(i),onThumbPositionChange:T,onThumbPointerDown:kn(a)},m.createElement(cu.div,xe({},f,{ref:P,style:{position:"absolute",...f.style},onPointerDown:ol(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),g.current=k.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),L(D))}),onPointerMove:ol(e.onPointerMove,L),onPointerUp:ol(e.onPointerUp,D=>{const M=D.target;M.hasPointerCapture(D.pointerId)&&M.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=p.current,y.viewport&&(y.viewport.style.scrollBehavior=""),g.current=null})})))});function Qo(e){return e?parseInt(e,10):0}function nh(e,t){const n=e/t;return isNaN(n)?0:n}function gi(e){const t=nh(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Ky(e,t,n,r="ltr"){const l=gi(n),o=l/2,i=t||o,a=l-i,s=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return rh([s,u],d)(e)}function lf(e,t,n="ltr"){const r=gi(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-l,i=t.content-t.viewport,a=o-r,s=n==="ltr"?[0,i]:[i*-1,0],u=Oy(e,s);return rh([0,i],[0,a])(u)}function rh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function lh(e,t){return e>0&&e()=>window.clearTimeout(r.current),[]),m.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ko(e,t){const n=kn(t);rs(()=>{let r=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return l.observe(e),()=>{window.cancelAnimationFrame(r),l.unobserve(e)}}},[e,n])}const Yy=Ay,Xy=Fy,Zy=by,Gy=()=>!1,Jy=(e,t)=>{const{classNameDark:n="dark",classNameLight:r="light",storageKey:l,element:o}=t,[i,a]=m.useState(e);return m.useEffect(()=>{const s=l?localStorage.getItem(l):null;s!==null?s==="true"?a(!0):s==="false"&&a(!1):typeof e>"u"&&a(window.matchMedia("(prefers-color-scheme: dark)").matches)},[l]),m.useEffect(()=>{const s=c=>{localStorage.getItem(l||"darkMode")===null&&a(c.matches)},u=()=>{const c=localStorage.getItem(l||"darkMode");a(c===null?window.matchMedia("(prefers-color-scheme: dark)").matches:c==="true")};return window.addEventListener("storage",u),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s),()=>{window.removeEventListener("storage",u),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",s)}},[l]),m.useEffect(()=>{if(typeof i>"u")return;const s=o||document.documentElement;i?(s.classList.remove(r),s.classList.add(n),s.dataset.theme="dark"):(s.classList.remove(n),s.classList.add(r),s.dataset.theme="light")},[n,r,i,o]),{value:i,toggle:()=>{a(s=>(l&&!Gy()&&localStorage.setItem(l,String(!s)),!s))}}},of=()=>{},qy={classList:{add:of,remove:of}},af="darkMode",e1=()=>{const{toggle:e,value:t}=Jy(void 0,{classNameDark:"dark",classNameLight:"light",storageKey:af,element:globalThis.document&&document.documentElement||qy});return m.useEffect(()=>{const n=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches===t&&localStorage.removeItem(af)};return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t]),{toggle:e,value:t}},t1=()=>{const{pathname:e}=xr();return j.jsxs(Yy,{className:"z-1 !absolute bottom-0 left-0 top-0 w-[250px] border-r border-slate-200 dark:border-neutral-800",children:[j.jsx(Xy,{className:"!inline-block !w-[250px] !min-w-[auto]",children:j.jsxs("div",{className:"flex h-screen flex-col",children:[j.jsx("h1",{className:"mt-4 text-center text-xl font-medium",children:"Component Playground"}),j.jsx("ul",{className:"mt-6 flex-shrink flex-grow space-y-2 pl-2 pr-[3px]",children:s1.map(t=>{var n;return j.jsx("li",{className:["rounded-3xl bg-transparent transition-colors hover:bg-blue-200 dark:hover:bg-slate-700",e===`/${t}`?"bg-blue-100 dark:bg-slate-800":""].join(" "),children:j.jsx(x0,{to:`/${t}`,className:"block h-full w-full px-4 py-2",children:((n=t.at(0))==null?void 0:n.toUpperCase())+t.slice(1).replace(/-\s*(\w)/g,(r,l)=>` ${l.toUpperCase()}`)})},t)})}),j.jsx("div",{className:"flex-shrink-0",children:j.jsx(n1,{})})]})}),j.jsx(Zy,{})]})},n1=()=>{const{value:e,toggle:t}=e1();return j.jsx("button",{"aria-label":"Toggle Dark Mode",onClick:t,children:e?j.jsx(l1,{}):j.jsx(r1,{})})},r1=()=>j.jsxs("svg",{fill:"none",height:"24",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",children:[j.jsx("circle",{cx:"12",cy:"12",r:"5"}),j.jsx("path",{d:"M12 1v2"}),j.jsx("path",{d:"M12 21v2"}),j.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),j.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),j.jsx("path",{d:"M1 12h2"}),j.jsx("path",{d:"M21 12h2"}),j.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),j.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]}),l1=()=>j.jsx("svg",{fill:"none",height:"24",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",children:j.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})}),o1=()=>j.jsxs("div",{children:[j.jsx(t1,{}),j.jsxs("main",{className:"relative ml-[250px] max-h-[100vh] overflow-auto p-4",children:[j.jsx(t0,{}),j.jsx(S0,{})]})]}),i1=my.map((e,t)=>({path:e,name:e,Component:()=>j.jsx(L0,{fallback:j.jsx("div",{children:"Component has some errors."}),children:j.jsx(m.Suspense,{fallback:j.jsx("div",{children:"Loading..."}),children:m.createElement(gy[t])})})})),pu=[...i1].sort((e,t)=>e.name.localeCompare(t.name));pu.push({path:"debug",Component:xy,name:"debug"});const a1=s0([{path:"/",Component:o1,children:pu}]),s1=pu.map(e=>e.name);ea.createRoot(document.getElementById("root")).render(j.jsx(v0,{router:a1}));export{Ih as $,L0 as E,wf as R,Fr as _,fi as a,Qg as b,c1 as c,uf as g,yy as i,j,m as r}; +Please report this to https://github.com/markedjs/marked.`,t){const l="

An error occurred:

"+Ke(r.message+"",!0)+"
";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}};const Dn=new py;function X(e,t){return Dn.parse(e,t)}X.options=X.setOptions=function(e){return Dn.setOptions(e),X.defaults=Dn.defaults,Up(X.defaults),X};X.getDefaults=ru;X.defaults=An;X.use=function(...e){return Dn.use(...e),X.defaults=Dn.defaults,Up(X.defaults),X};X.walkTokens=function(e,t){return Dn.walkTokens(e,t)};X.parseInline=Dn.parseInline;X.Parser=St;X.parser=St.parse;X.Renderer=Ho;X.TextRenderer=uu;X.Lexer=xt;X.lexer=xt.lex;X.Tokenizer=Vo;X.Hooks=ll;X.parse=X;X.options;X.setOptions;X.use;X.walkTokens;X.parseInline;St.parse;xt.lex;const rf=m.memo(e=>{const{value:t}=e,n=X(t);return j.jsx("article",{className:"markdown-body text-sm",dangerouslySetInnerHTML:{__html:n}})}),ts=Object.assign({"../../src/components/ui/collapse/index.demo.tsx":()=>Fr(()=>import("./index.demo-R6tE8TvC.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../../src/components/ui/gallery/index.demo.tsx":()=>Fr(()=>import("./index.demo-eFalS46m.js"),__vite__mapDeps([5,6,7,2,3,8]),import.meta.url),"../../src/components/ui/link-card/index.demo.tsx":()=>Fr(()=>import("./index.demo-iQQXqAe0.js"),__vite__mapDeps([9,10,7,2,1,3,11,12]),import.meta.url),"../../src/components/ui/markdown/index.demo.tsx":()=>Fr(()=>import("./index.demo-ey_EOA6v.js"),__vite__mapDeps([13,6,7,2,3,8,14,1,10,11,12,4,15,16,17,18]),import.meta.url),"../../src/components/ui/rich-link/index.demo.tsx":()=>Fr(()=>import("./index.demo-DOj37Sa0.js"),__vite__mapDeps([19,15,2,11]),import.meta.url)}),hy=Object.keys(ts).reduce((e,t)=>{const[,n]=t.match(/\/([^/]+)\/index.demo.(tsx|mdx)$/)||[];return n?{...e,[n]:ts[t]}:{...e}},{}),my=Object.keys(hy),gy=Object.values(ts).map(e=>wf.lazy(()=>e().then(t=>{const n=Object.keys(t).filter(o=>o!=="metadata"),r=n.length===1&&t.default,l=[];if(t.metadata&&typeof t.metadata=="object"){const{title:o,description:i}=t.metadata;l.push(j.jsxs("div",{className:"mb-8",children:[j.jsx("h1",{className:"my-6 text-xl font-bold",children:o}),i&&j.jsx(rf,{value:i})]}))}for(const o of n){const i=t[o],{meta:a={}}=i,{description:s,title:u}=a;l.unshift(j.jsxs("section",{className:"space-y-4 mt-8",children:[j.jsx("h2",{className:"text-lg font-medium",children:u||o}),!!s&&j.jsx(rf,{value:s}),j.jsx(i,{})]}))}return r?t:{default:()=>m.createElement(m.Fragment,null,l)}}))),vy=()=>{};function yy(e){const t=m.createContext(e),n=m.createContext(vy);return[r=>{let{children:l}=r;const[o,i]=m.useState(e);return j.jsx(t.Provider,{value:o,children:j.jsx(n.Provider,{value:i,children:l})})},()=>m.useContext(t),()=>m.useContext(n),t]}const[wy,f1,ky]=yy({}),xy=()=>j.jsx("div",{children:j.jsxs(wy,{children:[j.jsx(Sy,{}),j.jsx(Ey,{})]})}),Sy=()=>(console.log("render Child"),j.jsx("div",{children:"Child"})),Ey=()=>{console.log("render Child2");const e=ky();return j.jsxs("div",{children:["Child 2",j.jsx("button",{onClick:()=>{e({})},children:"Set new value"})]})};function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Cy(n,t))}function Sr(...e){return m.useCallback(Zp(...e),e)}const Gp=m.forwardRef((e,t)=>{const{children:n,...r}=e,l=m.Children.toArray(n),o=l.find(Py);if(o){const i=o.props.children,a=l.map(s=>s===o?m.Children.count(i)>1?m.Children.only(null):m.isValidElement(i)?i.props.children:null:s);return m.createElement(ns,xe({},r,{ref:t}),m.isValidElement(i)?m.cloneElement(i,void 0,a):null)}return m.createElement(ns,xe({},r,{ref:t}),n)});Gp.displayName="Slot";const ns=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{..._y(r,n.props),ref:t?Zp(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});ns.displayName="SlotClone";const Ry=({children:e})=>m.createElement(m.Fragment,null,e);function Py(e){return m.isValidElement(e)&&e.type===Ry}function _y(e,t){const n={...t};for(const r in t){const l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...a)=>{o(...a),l(...a)}:l&&(n[r]=l):r==="style"?n[r]={...l,...o}:r==="className"&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}const Ty=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],cu=Ty.reduce((e,t)=>{const n=m.forwardRef((r,l)=>{const{asChild:o,...i}=r,a=o?Gp:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(a,xe({},i,{ref:l}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),rs=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function Ly(e,t){return m.useReducer((n,r)=>{const l=t[n][r];return l??n},e)}const mi=e=>{const{present:t,children:n}=e,r=$y(t),l=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),o=Sr(r.ref,l.ref);return typeof n=="function"||r.isPresent?m.cloneElement(l,{ref:o}):null};mi.displayName="Presence";function $y(e){const[t,n]=m.useState(),r=m.useRef({}),l=m.useRef(e),o=m.useRef("none"),i=e?"mounted":"unmounted",[a,s]=Ly(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=lo(r.current);o.current=a==="mounted"?u:"none"},[a]),rs(()=>{const u=r.current,c=l.current;if(c!==e){const f=o.current,y=lo(u);e?s("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&f!==y?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,s]),rs(()=>{if(t){const u=d=>{const y=lo(r.current).includes(d.animationName);d.target===t&&y&&fi.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(o.current=lo(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function lo(e){return(e==null?void 0:e.animationName)||"none"}function Ny(e,t=[]){let n=[];function r(o,i){const a=m.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:f,children:y,...k}=d,x=(f==null?void 0:f[e][s])||a,P=m.useMemo(()=>k,Object.values(k));return m.createElement(x.Provider,{value:P},y)}function c(d,f){const y=(f==null?void 0:f[e][s])||a,k=m.useContext(y);if(k)return k;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const l=()=>{const o=n.map(i=>m.createContext(i));return function(a){const s=(a==null?void 0:a[e])||o;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return l.scopeName=e,[r,zy(l,...t)]}function zy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:u})=>{const d=s(o)[`__scope${u}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function kn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Dy=m.createContext(void 0);function My(e){const t=m.useContext(Dy);return e||t||"ltr"}function Oy(e,[t,n]){return Math.min(n,Math.max(t,e))}function ol(e,t,{checkForDefaultPrevented:n=!0}={}){return function(l){if(e==null||e(l),n===!1||!l.defaultPrevented)return t==null?void 0:t(l)}}function Iy(e,t){return m.useReducer((n,r)=>{const l=t[n][r];return l??n},e)}const Jp="ScrollArea",[qp,d1]=Ny(Jp),[jy,Ft]=qp(Jp),Ay=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:l,scrollHideDelay:o=600,...i}=e,[a,s]=m.useState(null),[u,c]=m.useState(null),[d,f]=m.useState(null),[y,k]=m.useState(null),[x,P]=m.useState(null),[g,p]=m.useState(0),[v,h]=m.useState(0),[R,T]=m.useState(!1),[C,L]=m.useState(!1),D=Sr(t,W=>s(W)),M=My(l);return m.createElement(jy,{scope:n,type:r,dir:M,scrollHideDelay:o,scrollArea:a,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:y,onScrollbarXChange:k,scrollbarXEnabled:R,onScrollbarXEnabledChange:T,scrollbarY:x,onScrollbarYChange:P,scrollbarYEnabled:C,onScrollbarYEnabledChange:L,onCornerWidthChange:p,onCornerHeightChange:h},m.createElement(cu.div,xe({dir:M},i,{ref:D,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})))}),Uy="ScrollAreaViewport",Fy=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...l}=e,o=Ft(Uy,n),i=m.useRef(null),a=Sr(t,i,o.onViewportChange);return m.createElement(m.Fragment,null,m.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),m.createElement(cu.div,xe({"data-radix-scroll-area-viewport":""},l,{ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),m.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),bt="ScrollAreaScrollbar",by=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(bt,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=l,a=e.orientation==="horizontal";return m.useEffect(()=>(a?o(!0):i(!0),()=>{a?o(!1):i(!1)}),[a,o,i]),l.type==="hover"?m.createElement(By,xe({},r,{ref:t,forceMount:n})):l.type==="scroll"?m.createElement(Vy,xe({},r,{ref:t,forceMount:n})):l.type==="auto"?m.createElement(eh,xe({},r,{ref:t,forceMount:n})):l.type==="always"?m.createElement(fu,xe({},r,{ref:t})):null}),By=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(bt,e.__scopeScrollArea),[o,i]=m.useState(!1);return m.useEffect(()=>{const a=l.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),l.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[l.scrollArea,l.scrollHideDelay]),m.createElement(mi,{present:n||o},m.createElement(eh,xe({"data-state":o?"visible":"hidden"},r,{ref:t})))}),Vy=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,l=Ft(bt,e.__scopeScrollArea),o=e.orientation==="horizontal",i=du(()=>s("SCROLL_END"),100),[a,s]=Iy("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,l.scrollHideDelay,s]),m.useEffect(()=>{const u=l.viewport,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const y=u[c];d!==y&&(s("SCROLL"),i()),d=y};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[l.viewport,o,s,i]),m.createElement(mi,{present:n||a!=="hidden"},m.createElement(fu,xe({"data-state":a==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:ol(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:ol(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),eh=m.forwardRef((e,t)=>{const n=Ft(bt,e.__scopeScrollArea),{forceMount:r,...l}=e,[o,i]=m.useState(!1),a=e.orientation==="horizontal",s=du(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,l=Ft(bt,e.__scopeScrollArea),o=m.useRef(null),i=m.useRef(0),[a,s]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=nh(a.viewport,a.content),c={...r,sizes:a,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>o.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,y){return Ky(f,i.current,a,y)}return n==="horizontal"?m.createElement(Wy,xe({},c,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&o.current){const f=l.viewport.scrollLeft,y=lf(f,a,l.dir);o.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:f=>{l.viewport&&(l.viewport.scrollLeft=f)},onDragScroll:f=>{l.viewport&&(l.viewport.scrollLeft=d(f,l.dir))}})):n==="vertical"?m.createElement(Hy,xe({},c,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&o.current){const f=l.viewport.scrollTop,y=lf(f,a);o.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:f=>{l.viewport&&(l.viewport.scrollTop=f)},onDragScroll:f=>{l.viewport&&(l.viewport.scrollTop=d(f))}})):null}),Wy=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...l}=e,o=Ft(bt,e.__scopeScrollArea),[i,a]=m.useState(),s=m.useRef(null),u=Sr(t,s,o.onScrollbarXChange);return m.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.createElement(th,xe({"data-orientation":"horizontal"},l,{ref:u,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":gi(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(o.viewport){const f=o.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),lh(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Qo(i.paddingLeft),paddingEnd:Qo(i.paddingRight)}})}}))}),Hy=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...l}=e,o=Ft(bt,e.__scopeScrollArea),[i,a]=m.useState(),s=m.useRef(null),u=Sr(t,s,o.onScrollbarYChange);return m.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.createElement(th,xe({"data-orientation":"vertical"},l,{ref:u,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":gi(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(o.viewport){const f=o.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),lh(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Qo(i.paddingTop),paddingEnd:Qo(i.paddingBottom)}})}}))}),[Qy,p1]=qp(bt),th=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:l,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,y=Ft(bt,n),[k,x]=m.useState(null),P=Sr(t,D=>x(D)),g=m.useRef(null),p=m.useRef(""),v=y.viewport,h=r.content-r.viewport,R=kn(c),T=kn(s),C=du(d,10);function L(D){if(g.current){const M=D.clientX-g.current.left,W=D.clientY-g.current.top;u({x:M,y:W})}}return m.useEffect(()=>{const D=M=>{const W=M.target;(k==null?void 0:k.contains(W))&&R(M,h)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[v,k,h,R]),m.useEffect(T,[r,T]),Ko(k,C),Ko(y.content,C),m.createElement(Qy,{scope:n,scrollbar:k,hasThumb:l,onThumbChange:kn(o),onThumbPointerUp:kn(i),onThumbPositionChange:T,onThumbPointerDown:kn(a)},m.createElement(cu.div,xe({},f,{ref:P,style:{position:"absolute",...f.style},onPointerDown:ol(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),g.current=k.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),L(D))}),onPointerMove:ol(e.onPointerMove,L),onPointerUp:ol(e.onPointerUp,D=>{const M=D.target;M.hasPointerCapture(D.pointerId)&&M.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=p.current,y.viewport&&(y.viewport.style.scrollBehavior=""),g.current=null})})))});function Qo(e){return e?parseInt(e,10):0}function nh(e,t){const n=e/t;return isNaN(n)?0:n}function gi(e){const t=nh(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Ky(e,t,n,r="ltr"){const l=gi(n),o=l/2,i=t||o,a=l-i,s=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return rh([s,u],d)(e)}function lf(e,t,n="ltr"){const r=gi(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-l,i=t.content-t.viewport,a=o-r,s=n==="ltr"?[0,i]:[i*-1,0],u=Oy(e,s);return rh([0,i],[0,a])(u)}function rh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function lh(e,t){return e>0&&e()=>window.clearTimeout(r.current),[]),m.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ko(e,t){const n=kn(t);rs(()=>{let r=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return l.observe(e),()=>{window.cancelAnimationFrame(r),l.unobserve(e)}}},[e,n])}const Yy=Ay,Xy=Fy,Zy=by,Gy=()=>!1,Jy=(e,t)=>{const{classNameDark:n="dark",classNameLight:r="light",storageKey:l,element:o}=t,[i,a]=m.useState(e);return m.useEffect(()=>{const s=l?localStorage.getItem(l):null;s!==null?s==="true"?a(!0):s==="false"&&a(!1):typeof e>"u"&&a(window.matchMedia("(prefers-color-scheme: dark)").matches)},[l]),m.useEffect(()=>{const s=c=>{localStorage.getItem(l||"darkMode")===null&&a(c.matches)},u=()=>{const c=localStorage.getItem(l||"darkMode");a(c===null?window.matchMedia("(prefers-color-scheme: dark)").matches:c==="true")};return window.addEventListener("storage",u),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s),()=>{window.removeEventListener("storage",u),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",s)}},[l]),m.useEffect(()=>{if(typeof i>"u")return;const s=o||document.documentElement;i?(s.classList.remove(r),s.classList.add(n),s.dataset.theme="dark"):(s.classList.remove(n),s.classList.add(r),s.dataset.theme="light")},[n,r,i,o]),{value:i,toggle:()=>{a(s=>(l&&!Gy()&&localStorage.setItem(l,String(!s)),!s))}}},of=()=>{},qy={classList:{add:of,remove:of}},af="darkMode",e1=()=>{const{toggle:e,value:t}=Jy(void 0,{classNameDark:"dark",classNameLight:"light",storageKey:af,element:globalThis.document&&document.documentElement||qy});return m.useEffect(()=>{const n=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches===t&&localStorage.removeItem(af)};return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t]),{toggle:e,value:t}},t1=()=>{const{pathname:e}=xr();return j.jsxs(Yy,{className:"z-1 !absolute bottom-0 left-0 top-0 w-[250px] border-r border-slate-200 dark:border-neutral-800",children:[j.jsx(Xy,{className:"!inline-block !w-[250px] !min-w-[auto]",children:j.jsxs("div",{className:"flex h-screen flex-col",children:[j.jsx("h1",{className:"mt-4 text-center text-xl font-medium",children:"Component Playground"}),j.jsx("ul",{className:"mt-6 flex-shrink flex-grow space-y-2 pl-2 pr-[3px]",children:s1.map(t=>{var n;return j.jsx("li",{className:["rounded-3xl bg-transparent transition-colors hover:bg-blue-200 dark:hover:bg-slate-700",e===`/${t}`?"bg-blue-100 dark:bg-slate-800":""].join(" "),children:j.jsx(x0,{to:`/${t}`,className:"block h-full w-full px-4 py-2",children:((n=t.at(0))==null?void 0:n.toUpperCase())+t.slice(1).replace(/-\s*(\w)/g,(r,l)=>` ${l.toUpperCase()}`)})},t)})}),j.jsx("div",{className:"flex-shrink-0",children:j.jsx(n1,{})})]})}),j.jsx(Zy,{})]})},n1=()=>{const{value:e,toggle:t}=e1();return j.jsx("button",{"aria-label":"Toggle Dark Mode",onClick:t,children:e?j.jsx(l1,{}):j.jsx(r1,{})})},r1=()=>j.jsxs("svg",{fill:"none",height:"24",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",children:[j.jsx("circle",{cx:"12",cy:"12",r:"5"}),j.jsx("path",{d:"M12 1v2"}),j.jsx("path",{d:"M12 21v2"}),j.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),j.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),j.jsx("path",{d:"M1 12h2"}),j.jsx("path",{d:"M21 12h2"}),j.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),j.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]}),l1=()=>j.jsx("svg",{fill:"none",height:"24",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",children:j.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})}),o1=()=>j.jsxs("div",{children:[j.jsx(t1,{}),j.jsxs("main",{className:"relative ml-[250px] max-h-[100vh] overflow-auto p-4",children:[j.jsx(t0,{}),j.jsx(S0,{})]})]}),i1=my.map((e,t)=>({path:e,name:e,Component:()=>j.jsx(L0,{fallback:j.jsx("div",{children:"Component has some errors."}),children:j.jsx(m.Suspense,{fallback:j.jsx("div",{children:"Loading..."}),children:m.createElement(gy[t])})})})),pu=[...i1].sort((e,t)=>e.name.localeCompare(t.name));pu.push({path:"debug",Component:xy,name:"debug"});const a1=s0([{path:"/",Component:o1,children:pu}]),s1=pu.map(e=>e.name);ea.createRoot(document.getElementById("root")).render(j.jsx(v0,{router:a1}));export{Ih as $,L0 as E,wf as R,Fr as _,fi as a,Qg as b,c1 as c,uf as g,yy as i,j,m as r}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index.demo-pf7SmPXF.js","./spring-hZ91AlwC.js","./helper-Oi49T1hx.js","./index-iAcAeRlm.js","./Collapse-gGRmuqb3.js","./index.demo-CZ-Kdw_N.js","./Gallery-lvvI9ksR.js","./Divider-ZvsSiSkZ.js","./Gallery-cCMf-PmV.css","./index.demo-2NV1Cuwz.js","./LinkCard-aLl-jjA_.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./index.demo-tXBcLHr3.js","./Markdown-xk31dQ-T.js","./RichLink-sK7aRcsj.js","./Markdown-nufn1r_q.css","./mutation-P8-Et3_d.js","./infiniteQueryBehavior-7TM6yZv8.js","./index.demo-m9tNHPa7.js"] + __vite__mapDeps.viteFileDeps = ["./index.demo-R6tE8TvC.js","./spring-0AHu48BV.js","./helper-Oi49T1hx.js","./index-iAcAeRlm.js","./Collapse-JZfrBou4.js","./index.demo-eFalS46m.js","./Gallery-32-V3LXo.js","./Divider-sIhvLlX0.js","./Gallery-cCMf-PmV.css","./index.demo-iQQXqAe0.js","./LinkCard-gCgkDO82.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./index.demo-ey_EOA6v.js","./Markdown-tpcPSstc.js","./RichLink-6jHOm4uG.js","./Markdown-nufn1r_q.css","./mutation-qwHfn3Jw.js","./infiniteQueryBehavior-Ju3wkMyP.js","./index.demo-DOj37Sa0.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/index-gtcHzGbV.js b/assets/index-gtcHzGbV.js deleted file mode 100644 index c2aca40f68..0000000000 --- a/assets/index-gtcHzGbV.js +++ /dev/null @@ -1 +0,0 @@ -import{C as k}from"./Root-lR48gj-U.js";import"./index-Qg-bAq5J.js";import"./index-_qoN1KWb.js";import"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./Comments-o-HIrYe0.js";import"./Markdown-xk31dQ-T.js";import"./Collapse-gGRmuqb3.js";import"./Gallery-lvvI9ksR.js";import"./RichLink-sK7aRcsj.js";import"./infiniteQueryBehavior-7TM6yZv8.js";import"./utils-C0Upvd9p.js";import"./customParseFormat-q3ZbyGZe.js";import"./FlexText-AbEHEN8T.js";import"./PinIconToggle-vlWhC9Tj.js";import"./mutation-P8-Et3_d.js";export{k as CommentBoxRoot}; diff --git a/assets/index-h07iLZP_.js b/assets/index-h07iLZP_.js new file mode 100644 index 0000000000..bcf732d3b6 --- /dev/null +++ b/assets/index-h07iLZP_.js @@ -0,0 +1 @@ +import{C as k}from"./Root-_xDfetAB.js";import"./index-HRfeE_7B.js";import"./index-GZJTCUEG.js";import"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./Comments-g86CJBuN.js";import"./Markdown-tpcPSstc.js";import"./Collapse-JZfrBou4.js";import"./Gallery-32-V3LXo.js";import"./RichLink-6jHOm4uG.js";import"./infiniteQueryBehavior-Ju3wkMyP.js";import"./utils-DGmE6P1M.js";import"./customParseFormat-ePfR8DqR.js";import"./FlexText-0MKUXZWJ.js";import"./PinIconToggle-EjPj0VvX.js";import"./mutation-qwHfn3Jw.js";export{k as CommentBoxRoot}; diff --git a/assets/index-ZzDqB3uo.js b/assets/index-nkXcnT3N.js similarity index 99% rename from assets/index-ZzDqB3uo.js rename to assets/index-nkXcnT3N.js index 5699355859..bce527362d 100644 --- a/assets/index-ZzDqB3uo.js +++ b/assets/index-nkXcnT3N.js @@ -1,4 +1,4 @@ -import{r as y,R as p}from"./index-Qg-bAq5J.js";var J=Object.defineProperty,L=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,z=(h,s,a)=>s in h?J(h,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):h[s]=a,S=(h,s)=>{for(var a in s||(s={}))D.call(s,a)&&z(h,a,s[a]);if(L)for(var a of L(s))U.call(s,a)&&z(h,a,s[a]);return h},O=(h,s)=>{var a={};for(var i in h)D.call(h,i)&&s.indexOf(i)<0&&(a[i]=h[i]);if(h!=null&&L)for(var i of L(h))s.indexOf(i)<0&&U.call(h,i)&&(a[i]=h[i]);return a};/** +import{r as y,R as p}from"./index-HRfeE_7B.js";var J=Object.defineProperty,L=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,z=(h,s,a)=>s in h?J(h,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):h[s]=a,S=(h,s)=>{for(var a in s||(s={}))D.call(s,a)&&z(h,a,s[a]);if(L)for(var a of L(s))U.call(s,a)&&z(h,a,s[a]);return h},O=(h,s)=>{var a={};for(var i in h)D.call(h,i)&&s.indexOf(i)<0&&(a[i]=h[i]);if(h!=null&&L)for(var i of L(h))s.indexOf(i)<0&&U.call(h,i)&&(a[i]=h[i]);return a};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT diff --git a/assets/index.client-MRAendKS.js b/assets/index.client-ZMZX_aB9.js similarity index 99% rename from assets/index.client-MRAendKS.js rename to assets/index.client-ZMZX_aB9.js index 3125dff42b..e315352f43 100644 --- a/assets/index.client-MRAendKS.js +++ b/assets/index.client-ZMZX_aB9.js @@ -1 +1 @@ -import{j as o,r as D,g as mr,R as Dt}from"./index-Qg-bAq5J.js";import{s as _r}from"./index-_qoN1KWb.js";import{v as ue}from"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const pr="_verified_lvyh0_1",Mt={verified:pr},gr=()=>o.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsx("g",{children:o.jsx("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),xr=()=>o.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsxs("g",{children:[o.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[o.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),o.jsx("stop",{offset:".539",stopColor:"#cd8105"}),o.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),o.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),o.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),o.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[o.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),o.jsx("stop",{offset:".406",stopColor:"#e2b719"}),o.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),o.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[o.jsx("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),o.jsx("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),o.jsx("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),wr=()=>o.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsx("g",{children:o.jsx("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),yr="_root_98iqw_1",br="_article_98iqw_21",Lt={root:yr,article:br},kt=({className:e,children:t})=>o.jsx("div",{className:ue("react-tweet-theme",Lt.root,e),children:o.jsx("article",{className:Lt.article,children:t})}),Qt=e=>o.jsx("img",{...e}),Tr="_header_nqq4j_1",Or="_avatar_nqq4j_11",jr="_avatarOverflow_nqq4j_16",Er="_avatarSquare_nqq4j_23",Cr="_avatarShadow_nqq4j_26",Dr="_author_nqq4j_37",Mr="_authorLink_nqq4j_44",kr="_authorVerified_nqq4j_53",Sr="_authorLinkText_nqq4j_56",Rr="_authorMeta_nqq4j_63",Pr="_authorFollow_nqq4j_66",Nr="_username_nqq4j_69",Wr="_follow_nqq4j_74",qr="_separator_nqq4j_82",Ir="_brand_nqq4j_86",Lr="_twitterIcon_nqq4j_90",q={header:Tr,avatar:Or,avatarOverflow:jr,avatarSquare:Er,avatarShadow:Cr,author:Dr,authorLink:Mr,authorVerified:kr,authorLinkText:Sr,authorMeta:Rr,authorFollow:Pr,username:Nr,follow:Wr,separator:qr,brand:Ir,twitterIcon:Lr},Ur="_verifiedOld_lcna5_1",$r="_verifiedBlue_lcna5_4",Fr="_verifiedGovernment_lcna5_7",We={verifiedOld:Ur,verifiedBlue:$r,verifiedGovernment:Fr},Xt=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let a=o.jsx(gr,{}),i=We.verifiedBlue;if(r)switch(e.is_blue_verified||(i=We.verifiedOld),e.verified_type){case"Government":a=o.jsx(wr,{}),i=We.verifiedGovernment;break;case"Business":a=o.jsx(xr,{}),i=null;break}return r?o.jsx("div",{className:ue(t,i),children:a}):null},Yr=({tweet:e,components:t})=>{var r,a;const i=(a=(r=t)==null?void 0:r.AvatarImg)!=null?a:Qt,{user:n}=e;return o.jsxs("div",{className:q.header,children:[o.jsxs("a",{href:e.url,className:q.avatar,target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:ue(q.avatarOverflow,n.profile_image_shape==="Square"&&q.avatarSquare),children:o.jsx(i,{src:n.profile_image_url_https,alt:n.name,width:48,height:48})}),o.jsx("div",{className:q.avatarOverflow,children:o.jsx("div",{className:q.avatarShadow})})]}),o.jsxs("div",{className:q.author,children:[o.jsxs("a",{href:e.url,className:q.authorLink,target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:q.authorLinkText,children:o.jsx("span",{title:n.name,children:n.name})}),o.jsx(Xt,{user:n,className:q.authorVerified})]}),o.jsxs("div",{className:q.authorMeta,children:[o.jsx("a",{href:e.url,className:q.username,target:"_blank",rel:"noopener noreferrer",children:o.jsxs("span",{title:`@${n.screen_name}`,children:["@",n.screen_name]})}),o.jsxs("div",{className:q.authorFollow,children:[o.jsx("span",{className:q.separator,children:"·"}),o.jsx("a",{href:n.follow_url,className:q.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),o.jsx("a",{href:e.url,className:q.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:o.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:q.twitterIcon,children:o.jsx("g",{children:o.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},Vr="_root_1ec15_1",Ar={root:Vr},Br=({tweet:e})=>o.jsxs("a",{href:e.in_reply_to_url,className:Ar.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),Hr="_root_eihfa_1",zr={root:Hr},Gr=({href:e,children:t})=>o.jsx("a",{href:e,className:zr.root,target:"_blank",rel:"noopener noreferrer",children:t}),Qr="_root_1xq52_1",Xr={root:Qr},Jr=({tweet:e})=>o.jsx("p",{className:Xr.root,children:e.entities.map((t,r)=>{switch(t.type){case"hashtag":case"mention":case"url":case"symbol":return o.jsx(Gr,{href:t.href,children:t.text},r);case"media":return;default:return o.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r)}})}),Ut=e=>`https://twitter.com/${e.user.screen_name}/status/${e.id_str}`,Jt=e=>`https://twitter.com/${typeof e=="string"?e:e.user.screen_name}`,Kr=e=>`https://twitter.com/intent/like?tweet_id=${e.id_str}`,Zr=e=>`https://twitter.com/intent/tweet?in_reply_to=${e.id_str}`,ea=e=>`https://twitter.com/intent/follow?screen_name=${e.user.screen_name}`,ta=e=>`https://twitter.com/hashtag/${e.text}`,ra=e=>`https://twitter.com/search?q=%24${e.text}`,aa=e=>`https://twitter.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,Kt=(e,t)=>{const r=new URL(e.media_url_https),a=r.pathname.split(".").pop();return a?(r.pathname=r.pathname.replace(`.${a}`,""),r.searchParams.set("format",a),r.searchParams.set("name",t),r.toString()):e.media_url_https},na=e=>{const{variants:t}=e.video_info;var r,a;return t.filter(n=>n.content_type==="video/mp4").sort((n,d)=>((r=d.bitrate)!=null?r:0)-((a=n.bitrate)!=null?a:0))},oa=e=>{const t=na(e);return t.length>1?t[1]:t[0]},Ve=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function $t(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return Te(r,"hashtag",e.entities.hashtags),Te(r,"mention",e.entities.user_mentions),Te(r,"url",e.entities.urls),Te(r,"symbol",e.entities.symbols),e.entities.media&&Te(r,"media",e.entities.media),ia(e,r),r.map(a=>{const i=t.slice(a.indices[0],a.indices[1]).join("");switch(a.type){case"hashtag":return Object.assign(a,{href:ta(a),text:i});case"mention":return Object.assign(a,{href:Jt(a.screen_name),text:i});case"url":case"media":return Object.assign(a,{href:a.expanded_url,text:a.display_url});case"symbol":return Object.assign(a,{href:ra(a),text:i});default:return Object.assign(a,{text:i})}})}function Te(e,t,r){for(const a of r)for(const[i,n]of e.entries()){if(n.indices[0]>a.indices[0]||n.indices[1]a.indices[1]&&d.push({indices:[a.indices[1],n.indices[1]],type:"text"}),e.splice(i,1,...d);break}}function ia(e,t){e.entities.media&&e.entities.media[0].indices[0]e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}const sa=e=>({...e,url:Ut(e),user:{...e.user,url:Jt(e),follow_url:ea(e)},like_url:Kr(e),reply_url:Zr(e),in_reply_to_url:e.in_reply_to_screen_name?aa(e):void 0,entities:$t(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:Ut(e.quoted_tweet),entities:$t(e.quoted_tweet)}:void 0}),ua="_root_g9tkv_1",la="_rounded_g9tkv_6",da="_mediaWrapper_g9tkv_10",ca="_grid2Columns_g9tkv_17",fa="_grid3_g9tkv_20",va="_grid2x2_g9tkv_23",ha="_mediaContainer_g9tkv_26",ma="_mediaLink_g9tkv_34",_a="_skeleton_g9tkv_38",pa="_image_g9tkv_43",A={root:ua,rounded:la,mediaWrapper:da,grid2Columns:ca,grid3:fa,grid2x2:va,mediaContainer:ha,mediaLink:ma,skeleton:_a,image:pa},ga="_anchor_fp31d_1",xa="_videoButton_fp31d_17",wa="_videoButtonIcon_fp31d_35",ya="_watchOnTwitter_fp31d_44",ba="_viewReplies_fp31d_60",ge={anchor:ga,videoButton:xa,videoButtonIcon:wa,watchOnTwitter:ya,viewReplies:ba},Ta=({tweet:e,media:t})=>{const[r,a]=D.useState(!0),[i,n]=D.useState(!1),[d,v]=D.useState(!1),s=oa(t);let c=0;return o.jsxs(o.Fragment,{children:[o.jsx("video",{className:A.image,poster:Kt(t,"small"),controls:!r,muted:!0,preload:"metadata",tabIndex:r?-1:0,onPlay:()=>{c&&window.clearTimeout(c),i||n(!0),d&&v(!1)},onPause:()=>{c&&window.clearTimeout(c),c=window.setTimeout(()=>{i&&n(!1),c=0},100)},onEnded:()=>{v(!0)},children:o.jsx("source",{src:s.url,type:s.content_type})}),r&&o.jsx("button",{type:"button",className:ge.videoButton,"aria-label":"View video on Twitter",onClick:m=>{const x=m.currentTarget.previousSibling;m.preventDefault(),a(!1),n(!0),x.play(),x.focus()},children:o.jsx("svg",{viewBox:"0 0 24 24",className:ge.videoButtonIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!i&&!d&&o.jsx("div",{className:ge.watchOnTwitter,children:o.jsx("a",{href:e.url,className:ge.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on Twitter":"Continue watching on Twitter"})}),d&&o.jsx("a",{href:e.url,className:ue(ge.anchor,ge.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Oa=e=>o.jsx("img",{...e}),Ft=(e,t)=>{let r=56.25;return t===1&&(r=100/e.original_info.width*e.original_info.height),t===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},Zt=({tweet:e,components:t,quoted:r})=>{var a,i,n,d;const v=(d=(a=e.mediaDetails)==null?void 0:a.length)!=null?d:0;var s;const c=(s=(i=t)==null?void 0:i.MediaImg)!=null?s:Oa;return o.jsx("div",{className:ue(A.root,!r&&A.rounded),children:o.jsx("div",{className:ue(A.mediaWrapper,v>1&&A.grid2Columns,v===3&&A.grid3,v>4&&A.grid2x2),children:(n=e.mediaDetails)==null?void 0:n.map(m=>o.jsx(D.Fragment,{children:m.type==="photo"?o.jsxs("a",{href:e.url,className:ue(A.mediaContainer,A.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:A.skeleton,style:Ft(m,v)}),o.jsx(c,{src:Kt(m,"small"),alt:m.ext_alt_text||"Image",className:A.image,draggable:!0})]},m.media_url_https):o.jsxs("div",{className:A.mediaContainer,children:[o.jsx("div",{className:A.skeleton,style:Ft(m,v)}),o.jsx(Ta,{tweet:e,media:m})]},m.media_url_https)},m.media_url_https))})})};var Ae={exports:{}},er={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(er);var P=er.exports,Be={exports:{}},He={exports:{}},tr={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(tr);var rr=tr.exports,ze={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,i){if(i.length1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(ze,ze.exports);var $=ze.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(rr),i=r($);function n(d){return(0,i.default)(1,arguments),d instanceof Date||(0,a.default)(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}e.exports=t.default})(He,He.exports);var ja=He.exports,Ge={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(rr),i=r($);function n(d){(0,i.default)(1,arguments);var v=Object.prototype.toString.call(d);return d instanceof Date||(0,a.default)(d)==="object"&&v==="[object Date]"?new Date(d.getTime()):typeof d=="number"||v==="[object Number]"?new Date(d):((typeof d=="string"||v==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Ge,Ge.exports);var J=Ge.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(ja),i=r(J),n=r($);function d(v){if((0,n.default)(1,arguments),!(0,a.default)(v)&&typeof v!="number")return!1;var s=(0,i.default)(v);return!isNaN(Number(s))}e.exports=t.default})(Be,Be.exports);var Ea=Be.exports,Qe={exports:{}},Xe={exports:{}},Je={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){if(a===null||a===!0||a===!1)return NaN;var i=Number(a);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(Je,Je.exports);var xe=Je.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(xe),i=r(J),n=r($);function d(v,s){(0,n.default)(2,arguments);var c=(0,i.default)(v).getTime(),m=(0,a.default)(s);return new Date(c+m)}e.exports=t.default})(Xe,Xe.exports);var Ca=Xe.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(Ca),i=r($),n=r(xe);function d(v,s){(0,i.default)(2,arguments);var c=(0,n.default)(s);return(0,a.default)(v,-c)}e.exports=t.default})(Qe,Qe.exports);var Da=Qe.exports,Ke={exports:{}},Ze={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(J),i=r($),n=864e5;function d(v){(0,i.default)(1,arguments);var s=(0,a.default)(v),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var m=s.getTime(),x=c-m;return Math.floor(x/n)+1}e.exports=t.default})(Ze,Ze.exports);var Ma=Ze.exports,et={exports:{}},tt={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(J),i=r($);function n(d){(0,i.default)(1,arguments);var v=1,s=(0,a.default)(d),c=s.getUTCDay(),m=(c=x.getTime()?c+1:s.getTime()>=b.getTime()?c:c-1}e.exports=t.default})(at,at.exports);var ar=at.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(ar),i=r(St),n=r($);function d(v){(0,n.default)(1,arguments);var s=(0,a.default)(v),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var m=(0,i.default)(c);return m}e.exports=t.default})(rt,rt.exports);var ka=rt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(J),i=r(St),n=r(ka),d=r($),v=6048e5;function s(c){(0,d.default)(1,arguments);var m=(0,a.default)(c),x=(0,i.default)(m).getTime()-(0,n.default)(m).getTime();return Math.round(x/v)+1}e.exports=t.default})(et,et.exports);var Sa=et.exports,nt={exports:{}},ot={exports:{}},ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.getDefaultOptions=Ra;ve.setDefaultOptions=Pa;var nr={};function Ra(){return nr}function Pa(e){nr=e}(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var a=r(J),i=r($),n=r(xe),d=ve;function v(s,c){var m,x,y,b,w,O,p,u;(0,i.default)(1,arguments);var h=(0,d.getDefaultOptions)(),f=(0,n.default)((m=(x=(y=(b=c==null?void 0:c.weekStartsOn)!==null&&b!==void 0?b:c==null||(w=c.locale)===null||w===void 0||(O=w.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&y!==void 0?y:h.weekStartsOn)!==null&&x!==void 0?x:(p=h.locale)===null||p===void 0||(u=p.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&m!==void 0?m:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=(0,a.default)(s),_=l.getUTCDay(),g=(_=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(l+1,0,g),T.setUTCHours(0,0,0,0);var M=(0,n.default)(T,m),F=new Date(0);F.setUTCFullYear(l,0,g),F.setUTCHours(0,0,0,0);var I=(0,n.default)(F,m);return f.getTime()>=M.getTime()?l+1:f.getTime()>=I.getTime()?l:l-1}e.exports=t.default})(st,st.exports);var or=st.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(or),i=r($),n=r(Rt),d=r(xe),v=ve;function s(c,m){var x,y,b,w,O,p,u,h;(0,i.default)(1,arguments);var f=(0,v.getDefaultOptions)(),l=(0,d.default)((x=(y=(b=(w=m==null?void 0:m.firstWeekContainsDate)!==null&&w!==void 0?w:m==null||(O=m.locale)===null||O===void 0||(p=O.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&b!==void 0?b:f.firstWeekContainsDate)!==null&&y!==void 0?y:(u=f.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&x!==void 0?x:1),_=(0,a.default)(c,m),g=new Date(0);g.setUTCFullYear(_,0,l),g.setUTCHours(0,0,0,0);var T=(0,n.default)(g,m);return T}e.exports=t.default})(it,it.exports);var Na=it.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(J),i=r(Rt),n=r(Na),d=r($),v=6048e5;function s(c,m){(0,d.default)(1,arguments);var x=(0,a.default)(c),y=(0,i.default)(x,m).getTime()-(0,n.default)(x,m).getTime();return Math.round(y/v)+1}e.exports=t.default})(nt,nt.exports);var Wa=nt.exports,ut={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,i){for(var n=a<0?"-":"",d=Math.abs(a).toString();d.length0?c:1-c;return(0,a.default)(s==="yy"?m%100:m,s.length)},M:function(v,s){var c=v.getUTCMonth();return s==="M"?String(c+1):(0,a.default)(c+1,2)},d:function(v,s){return(0,a.default)(v.getUTCDate(),s.length)},a:function(v,s){var c=v.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(v,s){return(0,a.default)(v.getUTCHours()%12||12,s.length)},H:function(v,s){return(0,a.default)(v.getUTCHours(),s.length)},m:function(v,s){return(0,a.default)(v.getUTCMinutes(),s.length)},s:function(v,s){return(0,a.default)(v.getUTCSeconds(),s.length)},S:function(v,s){var c=s.length,m=v.getUTCMilliseconds(),x=Math.floor(m*Math.pow(10,c-3));return(0,a.default)(x,s.length)}},n=i;t.default=n,e.exports=t.default})(lt,lt.exports);var qa=lt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ma),i=r(Sa),n=r(ar),d=r(Wa),v=r(or),s=r(ir),c=r(qa),m={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x={G:function(u,h,f){var l=u.getUTCFullYear()>0?1:0;switch(h){case"G":case"GG":case"GGG":return f.era(l,{width:"abbreviated"});case"GGGGG":return f.era(l,{width:"narrow"});case"GGGG":default:return f.era(l,{width:"wide"})}},y:function(u,h,f){if(h==="yo"){var l=u.getUTCFullYear(),_=l>0?l:1-l;return f.ordinalNumber(_,{unit:"year"})}return c.default.y(u,h)},Y:function(u,h,f,l){var _=(0,v.default)(u,l),g=_>0?_:1-_;if(h==="YY"){var T=g%100;return(0,s.default)(T,2)}return h==="Yo"?f.ordinalNumber(g,{unit:"year"}):(0,s.default)(g,h.length)},R:function(u,h){var f=(0,n.default)(u);return(0,s.default)(f,h.length)},u:function(u,h){var f=u.getUTCFullYear();return(0,s.default)(f,h.length)},Q:function(u,h,f){var l=Math.ceil((u.getUTCMonth()+1)/3);switch(h){case"Q":return String(l);case"QQ":return(0,s.default)(l,2);case"Qo":return f.ordinalNumber(l,{unit:"quarter"});case"QQQ":return f.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return f.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return f.quarter(l,{width:"wide",context:"formatting"})}},q:function(u,h,f){var l=Math.ceil((u.getUTCMonth()+1)/3);switch(h){case"q":return String(l);case"qq":return(0,s.default)(l,2);case"qo":return f.ordinalNumber(l,{unit:"quarter"});case"qqq":return f.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return f.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return f.quarter(l,{width:"wide",context:"standalone"})}},M:function(u,h,f){var l=u.getUTCMonth();switch(h){case"M":case"MM":return c.default.M(u,h);case"Mo":return f.ordinalNumber(l+1,{unit:"month"});case"MMM":return f.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return f.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return f.month(l,{width:"wide",context:"formatting"})}},L:function(u,h,f){var l=u.getUTCMonth();switch(h){case"L":return String(l+1);case"LL":return(0,s.default)(l+1,2);case"Lo":return f.ordinalNumber(l+1,{unit:"month"});case"LLL":return f.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return f.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return f.month(l,{width:"wide",context:"standalone"})}},w:function(u,h,f,l){var _=(0,d.default)(u,l);return h==="wo"?f.ordinalNumber(_,{unit:"week"}):(0,s.default)(_,h.length)},I:function(u,h,f){var l=(0,i.default)(u);return h==="Io"?f.ordinalNumber(l,{unit:"week"}):(0,s.default)(l,h.length)},d:function(u,h,f){return h==="do"?f.ordinalNumber(u.getUTCDate(),{unit:"date"}):c.default.d(u,h)},D:function(u,h,f){var l=(0,a.default)(u);return h==="Do"?f.ordinalNumber(l,{unit:"dayOfYear"}):(0,s.default)(l,h.length)},E:function(u,h,f){var l=u.getUTCDay();switch(h){case"E":case"EE":case"EEE":return f.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return f.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return f.day(l,{width:"short",context:"formatting"});case"EEEE":default:return f.day(l,{width:"wide",context:"formatting"})}},e:function(u,h,f,l){var _=u.getUTCDay(),g=(_-l.weekStartsOn+8)%7||7;switch(h){case"e":return String(g);case"ee":return(0,s.default)(g,2);case"eo":return f.ordinalNumber(g,{unit:"day"});case"eee":return f.day(_,{width:"abbreviated",context:"formatting"});case"eeeee":return f.day(_,{width:"narrow",context:"formatting"});case"eeeeee":return f.day(_,{width:"short",context:"formatting"});case"eeee":default:return f.day(_,{width:"wide",context:"formatting"})}},c:function(u,h,f,l){var _=u.getUTCDay(),g=(_-l.weekStartsOn+8)%7||7;switch(h){case"c":return String(g);case"cc":return(0,s.default)(g,h.length);case"co":return f.ordinalNumber(g,{unit:"day"});case"ccc":return f.day(_,{width:"abbreviated",context:"standalone"});case"ccccc":return f.day(_,{width:"narrow",context:"standalone"});case"cccccc":return f.day(_,{width:"short",context:"standalone"});case"cccc":default:return f.day(_,{width:"wide",context:"standalone"})}},i:function(u,h,f){var l=u.getUTCDay(),_=l===0?7:l;switch(h){case"i":return String(_);case"ii":return(0,s.default)(_,h.length);case"io":return f.ordinalNumber(_,{unit:"day"});case"iii":return f.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return f.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return f.day(l,{width:"short",context:"formatting"});case"iiii":default:return f.day(l,{width:"wide",context:"formatting"})}},a:function(u,h,f){var l=u.getUTCHours(),_=l/12>=1?"pm":"am";switch(h){case"a":case"aa":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"aaa":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"aaaa":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},b:function(u,h,f){var l=u.getUTCHours(),_;switch(l===12?_=m.noon:l===0?_=m.midnight:_=l/12>=1?"pm":"am",h){case"b":case"bb":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"bbb":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"bbbb":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},B:function(u,h,f){var l=u.getUTCHours(),_;switch(l>=17?_=m.evening:l>=12?_=m.afternoon:l>=4?_=m.morning:_=m.night,h){case"B":case"BB":case"BBB":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"BBBBB":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"BBBB":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},h:function(u,h,f){if(h==="ho"){var l=u.getUTCHours()%12;return l===0&&(l=12),f.ordinalNumber(l,{unit:"hour"})}return c.default.h(u,h)},H:function(u,h,f){return h==="Ho"?f.ordinalNumber(u.getUTCHours(),{unit:"hour"}):c.default.H(u,h)},K:function(u,h,f){var l=u.getUTCHours()%12;return h==="Ko"?f.ordinalNumber(l,{unit:"hour"}):(0,s.default)(l,h.length)},k:function(u,h,f){var l=u.getUTCHours();return l===0&&(l=24),h==="ko"?f.ordinalNumber(l,{unit:"hour"}):(0,s.default)(l,h.length)},m:function(u,h,f){return h==="mo"?f.ordinalNumber(u.getUTCMinutes(),{unit:"minute"}):c.default.m(u,h)},s:function(u,h,f){return h==="so"?f.ordinalNumber(u.getUTCSeconds(),{unit:"second"}):c.default.s(u,h)},S:function(u,h){return c.default.S(u,h)},X:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();if(g===0)return"Z";switch(h){case"X":return b(g);case"XXXX":case"XX":return w(g);case"XXXXX":case"XXX":default:return w(g,":")}},x:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();switch(h){case"x":return b(g);case"xxxx":case"xx":return w(g);case"xxxxx":case"xxx":default:return w(g,":")}},O:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();switch(h){case"O":case"OO":case"OOO":return"GMT"+y(g,":");case"OOOO":default:return"GMT"+w(g,":")}},z:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();switch(h){case"z":case"zz":case"zzz":return"GMT"+y(g,":");case"zzzz":default:return"GMT"+w(g,":")}},t:function(u,h,f,l){var _=l._originalDate||u,g=Math.floor(_.getTime()/1e3);return(0,s.default)(g,h.length)},T:function(u,h,f,l){var _=l._originalDate||u,g=_.getTime();return(0,s.default)(g,h.length)}};function y(p,u){var h=p>0?"-":"+",f=Math.abs(p),l=Math.floor(f/60),_=f%60;if(_===0)return h+String(l);var g=u||"";return h+String(l)+g+(0,s.default)(_,2)}function b(p,u){if(p%60===0){var h=p>0?"-":"+";return h+(0,s.default)(Math.abs(p)/60,2)}return w(p,u)}function w(p,u){var h=u||"",f=p>0?"-":"+",l=Math.abs(p),_=(0,s.default)(Math.floor(l/60),2),g=(0,s.default)(l%60,2);return f+_+h+g}var O=x;t.default=O,e.exports=t.default})(Ke,Ke.exports);var Ia=Ke.exports,dt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},a=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},i=function(s,c){var m=s.match(/(P+)(p+)?/)||[],x=m[1],y=m[2];if(!y)return r(s,c);var b;switch(x){case"P":b=c.dateTime({width:"short"});break;case"PP":b=c.dateTime({width:"medium"});break;case"PPP":b=c.dateTime({width:"long"});break;case"PPPP":default:b=c.dateTime({width:"full"});break}return b.replace("{{date}}",r(x,c)).replace("{{time}}",a(y,c))},n={p:a,P:i},d=n;t.default=d,e.exports=t.default})(dt,dt.exports);var La=dt.exports,ct={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){var i=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return i.setUTCFullYear(a.getFullYear()),a.getTime()-i.getTime()}e.exports=t.default})(ct,ct.exports);var Ua=ct.exports,Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isProtectedDayOfYearToken=Ya;Ce.isProtectedWeekYearToken=Va;Ce.throwProtectedError=Aa;var $a=["D","DD"],Fa=["YY","YYYY"];function Ya(e){return $a.indexOf(e)!==-1}function Va(e){return Fa.indexOf(e)!==-1}function Aa(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ft={exports:{}},vt={exports:{}},ht={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},a=function(d,v,s){var c,m=r[d];return typeof m=="string"?c=m:v===1?c=m.one:c=m.other.replace("{{count}}",v.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},i=a;t.default=i,e.exports=t.default})(ht,ht.exports);var Ba=ht.exports,mt={exports:{}},_t={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.width?String(i.width):a.defaultWidth,d=a.formats[n]||a.formats[a.defaultWidth];return d}}e.exports=t.default})(_t,_t.exports);var Ha=_t.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ha),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},n={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v={date:(0,a.default)({formats:i,defaultWidth:"full"}),time:(0,a.default)({formats:n,defaultWidth:"full"}),dateTime:(0,a.default)({formats:d,defaultWidth:"full"})},s=v;t.default=s,e.exports=t.default})(mt,mt.exports);var za=mt.exports,pt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a=function(d,v,s,c){return r[d]},i=a;t.default=i,e.exports=t.default})(pt,pt.exports);var Ga=pt.exports,gt={exports:{}},xt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(i,n){var d=n!=null&&n.context?String(n.context):"standalone",v;if(d==="formatting"&&a.formattingValues){var s=a.defaultFormattingWidth||a.defaultWidth,c=n!=null&&n.width?String(n.width):s;v=a.formattingValues[c]||a.formattingValues[s]}else{var m=a.defaultWidth,x=n!=null&&n.width?String(n.width):a.defaultWidth;v=a.values[x]||a.values[m]}var y=a.argumentCallback?a.argumentCallback(i):i;return v[y]}}e.exports=t.default})(xt,xt.exports);var Qa=xt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Qa),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},n={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},v={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},m=function(w,O){var p=Number(w),u=p%100;if(u>20||u<10)switch(u%10){case 1:return p+"st";case 2:return p+"nd";case 3:return p+"rd"}return p+"th"},x={ordinalNumber:m,era:(0,a.default)({values:i,defaultWidth:"wide"}),quarter:(0,a.default)({values:n,defaultWidth:"wide",argumentCallback:function(w){return w-1}}),month:(0,a.default)({values:d,defaultWidth:"wide"}),day:(0,a.default)({values:v,defaultWidth:"wide"}),dayPeriod:(0,a.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},y=x;t.default=y,e.exports=t.default})(gt,gt.exports);var Xa=gt.exports,wt={exports:{}},yt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(d){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=v.width,c=s&&n.matchPatterns[s]||n.matchPatterns[n.defaultMatchWidth],m=d.match(c);if(!m)return null;var x=m[0],y=s&&n.parsePatterns[s]||n.parsePatterns[n.defaultParseWidth],b=Array.isArray(y)?i(y,function(p){return p.test(x)}):a(y,function(p){return p.test(x)}),w;w=n.valueCallback?n.valueCallback(b):b,w=v.valueCallback?v.valueCallback(w):w;var O=d.slice(x.length);return{value:w,rest:O}}}function a(n,d){for(var v in n)if(n.hasOwnProperty(v)&&d(n[v]))return v}function i(n,d){for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:{},d=i.match(a.matchPattern);if(!d)return null;var v=d[0],s=i.match(a.parsePattern);if(!s)return null;var c=a.valueCallback?a.valueCallback(s[0]):s[0];c=n.valueCallback?n.valueCallback(c):c;var m=i.slice(v.length);return{value:c,rest:m}}}e.exports=t.default})(bt,bt.exports);var Ka=bt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ja),i=r(Ka),n=/^(\d+)(th|st|nd|rd)?/i,d=/\d+/i,v={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m={any:[/1/i,/2/i,/3/i,/4/i]},x={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},u={ordinalNumber:(0,i.default)({matchPattern:n,parsePattern:d,valueCallback:function(l){return parseInt(l,10)}}),era:(0,a.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,a.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any",valueCallback:function(l){return l+1}}),month:(0,a.default)({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any"}),day:(0,a.default)({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),dayPeriod:(0,a.default)({matchPatterns:O,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},h=u;t.default=h,e.exports=t.default})(wt,wt.exports);var Za=wt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ba),i=r(za),n=r(Ga),d=r(Xa),v=r(Za),s={code:"en-US",formatDistance:a.default,formatLong:i.default,formatRelative:n.default,localize:d.default,match:v.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vt,vt.exports);var en=vt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(en),i=a.default;t.default=i,e.exports=t.default})(ft,ft.exports);var tn=ft.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var a=r(Ea),i=r(Da),n=r(J),d=r(Ia),v=r(La),s=r(Ua),c=Ce,m=r(xe),x=r($),y=ve,b=r(tn),w=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,u=/''/g,h=/[a-zA-Z]/;function f(_,g,T){var M,F,I,z,ae,H,N,we,he,me,G,_e,ye,Q,X,ne,pe,oe;(0,x.default)(2,arguments);var De=String(g),ie=(0,y.getDefaultOptions)(),de=(M=(F=T==null?void 0:T.locale)!==null&&F!==void 0?F:ie.locale)!==null&&M!==void 0?M:b.default,be=(0,m.default)((I=(z=(ae=(H=T==null?void 0:T.firstWeekContainsDate)!==null&&H!==void 0?H:T==null||(N=T.locale)===null||N===void 0||(we=N.options)===null||we===void 0?void 0:we.firstWeekContainsDate)!==null&&ae!==void 0?ae:ie.firstWeekContainsDate)!==null&&z!==void 0?z:(he=ie.locale)===null||he===void 0||(me=he.options)===null||me===void 0?void 0:me.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(be>=1&&be<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var K=(0,m.default)((G=(_e=(ye=(Q=T==null?void 0:T.weekStartsOn)!==null&&Q!==void 0?Q:T==null||(X=T.locale)===null||X===void 0||(ne=X.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&ye!==void 0?ye:ie.weekStartsOn)!==null&&_e!==void 0?_e:(pe=ie.locale)===null||pe===void 0||(oe=pe.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&G!==void 0?G:0);if(!(K>=0&&K<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!de.localize)throw new RangeError("locale must contain localize property");if(!de.formatLong)throw new RangeError("locale must contain formatLong property");var ce=(0,n.default)(_);if(!(0,a.default)(ce))throw new RangeError("Invalid time value");var E=(0,s.default)(ce),C=(0,i.default)(ce,E),W={firstWeekContainsDate:be,weekStartsOn:K,locale:de,_originalDate:ce},S=De.match(O).map(function(k){var L=k[0];if(L==="p"||L==="P"){var R=v.default[L];return R(k,de.formatLong)}return k}).join("").match(w).map(function(k){if(k==="''")return"'";var L=k[0];if(L==="'")return l(k);var R=d.default[L];if(R)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(k)&&(0,c.throwProtectedError)(k,g,String(_)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(k)&&(0,c.throwProtectedError)(k,g,String(_)),R(C,k,de.localize,W);if(L.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return k}).join("");return S}function l(_){var g=_.match(p);return g?g[1].replace(u,"'"):_}e.exports=t.default})(Ae,Ae.exports);var rn=Ae.exports;const Yt=mr(rn),se=()=>{},V=se(),qe=Object,j=e=>e===V,re=e=>typeof e=="function",le=(e,t)=>({...e,...t}),an=e=>re(e.then),Me=new WeakMap;let nn=0;const je=e=>{const t=typeof e,r=e&&e.constructor,a=r==Date;let i,n;if(qe(e)===e&&!a&&r!=RegExp){if(i=Me.get(e),i)return i;if(i=++nn+"~",Me.set(e,i),r==Array){for(i="@",n=0;nRe&&typeof window.requestAnimationFrame!=Pt,sr=(e,t)=>{const r=te.get(e);return[()=>!j(t)&&e.get(t)||Ie,a=>{if(!j(t)){const i=e.get(t);t in ke||(ke[t]=i),r[5](t,le(i,a),i||Ie)}},r[6],()=>!j(t)&&t in ke?ke[t]:!j(t)&&e.get(t)||Ie]};let Ot=!0;const sn=()=>Ot,[jt,Et]=Re&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[se,se],un=()=>{const e=Tt&&document.visibilityState;return j(e)||e!=="hidden"},ln=e=>(Tt&&document.addEventListener("visibilitychange",e),jt("focus",e),()=>{Tt&&document.removeEventListener("visibilitychange",e),Et("focus",e)}),dn=e=>{const t=()=>{Ot=!0,e()},r=()=>{Ot=!1};return jt("online",t),jt("offline",r),()=>{Et("online",t),Et("offline",r)}},cn={isOnline:sn,isVisible:un},fn={initFocus:ln,initReconnect:dn},Vt=!Dt.useId,Ee=!Re||"Deno"in window,vn=e=>on()?window.requestAnimationFrame(e):setTimeout(e,1),Le=Ee?D.useEffect:D.useLayoutEffect,Ue=typeof navigator<"u"&&navigator.connection,At=!Ee&&Ue&&(["slow-2g","2g"].includes(Ue.effectiveType)||Ue.saveData),Nt=e=>{if(re(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?je(e):"",[e,t]};let hn=0;const Ct=()=>++hn,ur=0,lr=1,dr=2,mn=3;var Oe={__proto__:null,ERROR_REVALIDATE_EVENT:mn,FOCUS_EVENT:ur,MUTATE_EVENT:dr,RECONNECT_EVENT:lr};async function cr(...e){const[t,r,a,i]=e,n=le({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let d=n.populateCache;const v=n.rollbackOnError;let s=n.optimisticData;const c=n.revalidate!==!1,m=b=>typeof v=="function"?v(b):v!==!1,x=n.throwOnError;if(re(r)){const b=r,w=[],O=t.keys();for(const p of O)!/^\$(inf|sub)\$/.test(p)&&b(t.get(p)._k)&&w.push(p);return Promise.all(w.map(y))}return y(r);async function y(b){const[w]=Nt(b);if(!w)return;const[O,p]=sr(t,w),[u,h,f,l]=te.get(t),_=()=>{const N=u[w];return c&&(delete f[w],delete l[w],N&&N[0])?N[0](dr).then(()=>O().data):O().data};if(e.length<3)return _();let g=a,T;const M=Ct();h[w]=[M,0];const F=!j(s),I=O(),z=I.data,ae=I._c,H=j(ae)?z:ae;if(F&&(s=re(s)?s(H,z):s,p({data:s,_c:H})),re(g))try{g=g(H)}catch(N){T=N}if(g&&an(g))if(g=await g.catch(N=>{T=N}),M!==h[w][0]){if(T)throw T;return g}else T&&F&&m(T)&&(d=!0,p({data:H,_c:V}));if(d&&!T)if(re(d)){const N=d(g,H);p({data:N,error:V,_c:V})}else p({data:g,error:V,_c:V});if(h[w][1]=Ct(),Promise.resolve(_()).then(()=>{p({_c:V})}),T){if(x)throw T;return}return g}}const Bt=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},_n=(e,t)=>{if(!te.has(e)){const r=le(fn,t),a={},i=cr.bind(V,e);let n=se;const d={},v=(m,x)=>{const y=d[m]||[];return d[m]=y,y.push(x),()=>y.splice(y.indexOf(x),1)},s=(m,x,y)=>{e.set(m,x);const b=d[m];if(b)for(const w of b)w(x,y)},c=()=>{if(!te.has(e)&&(te.set(e,[a,{},{},{},i,s,v]),!Ee)){const m=r.initFocus(setTimeout.bind(V,Bt.bind(V,a,ur))),x=r.initReconnect(setTimeout.bind(V,Bt.bind(V,a,lr)));n=()=>{m&&m(),x&&x(),te.delete(e)}}};return c(),[e,i,c,n]}return[e,te.get(e)[4]]},pn=(e,t,r,a,i)=>{const n=r.errorRetryCount,d=i.retryCount,v=~~((Math.random()+.5)*(1<<(d<8?d:8)))*r.errorRetryInterval;!j(n)&&d>n||setTimeout(a,v,i)},gn=(e,t)=>je(e)==je(t),[fr,xn]=_n(new Map),wn=le({onLoadingSlow:se,onSuccess:se,onError:se,onErrorRetry:pn,onDiscarded:se,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:At?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:At?5e3:3e3,compare:gn,isPaused:()=>!1,cache:fr,mutate:xn,fallback:{}},cn),yn=(e,t)=>{const r=le(e,t);if(t){const{use:a,fallback:i}=e,{use:n,fallback:d}=t;a&&n&&(r.use=a.concat(n)),i&&d&&(r.fallback=le(i,d))}return r},bn=D.createContext({}),Tn="$inf$",vr=Re&&window.__SWR_DEVTOOLS_USE__,On=vr?window.__SWR_DEVTOOLS_USE__:[],jn=()=>{vr&&(window.__SWR_DEVTOOLS_REACT__=Dt)},En=e=>re(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Cn=()=>le(wn,D.useContext(bn)),Dn=e=>(t,r,a)=>e(t,r&&((...n)=>{const[d]=Nt(t),[,,,v]=te.get(fr);if(d.startsWith(Tn))return r(...n);const s=v[d];return j(s)?r(...n):(delete v[d],s)}),a),Mn=On.concat(Dn),kn=e=>function(...r){const a=Cn(),[i,n,d]=En(r),v=yn(a,d);let s=e;const{use:c}=v,m=(c||[]).concat(Mn);for(let x=m.length;x--;)s=m[x](s);return s(i,n||v.fetcher||null,v)},Sn=(e,t,r)=>{const a=t[e]||(t[e]=[]);return a.push(r),()=>{const i=a.indexOf(r);i>=0&&(a[i]=a[a.length-1],a.pop())}};jn();const Ht=Dt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),$e={dedupe:!0},Rn=(e,t,r)=>{const{cache:a,compare:i,suspense:n,fallbackData:d,revalidateOnMount:v,revalidateIfStale:s,refreshInterval:c,refreshWhenHidden:m,refreshWhenOffline:x,keepPreviousData:y}=r,[b,w,O,p]=te.get(a),[u,h]=Nt(e),f=D.useRef(!1),l=D.useRef(!1),_=D.useRef(u),g=D.useRef(t),T=D.useRef(r),M=()=>T.current,F=()=>M().isVisible()&&M().isOnline(),[I,z,ae,H]=sr(a,u),N=D.useRef({}).current,we=j(d)?r.fallback[u]:d,he=(E,C)=>{for(const W in N){const S=W;if(S==="data"){if(!i(E[S],C[S])&&(!j(E[S])||!i(oe,C[S])))return!1}else if(C[S]!==E[S])return!1}return!0},me=D.useMemo(()=>{const E=!u||!t?!1:j(v)?M().isPaused()||n?!1:j(s)?!0:s:v,C=U=>{const Z=le(U);return delete Z._k,E?{isValidating:!0,isLoading:!0,...Z}:Z},W=I(),S=H(),k=C(W),L=W===S?k:C(S);let R=k;return[()=>{const U=C(I());return he(U,R)?(R.data=U.data,R.isLoading=U.isLoading,R.isValidating=U.isValidating,R.error=U.error,R):(R=U,U)},()=>L]},[a,u]),G=_r.useSyncExternalStore(D.useCallback(E=>ae(u,(C,W)=>{he(W,C)||E()}),[a,u]),me[0],me[1]),_e=!f.current,ye=b[u]&&b[u].length>0,Q=G.data,X=j(Q)?we:Q,ne=G.error,pe=D.useRef(X),oe=y?j(Q)?pe.current:Q:X,De=ye&&!j(ne)?!1:_e&&!j(v)?v:M().isPaused()?!1:n?j(X)?!1:s:j(X)||s,ie=!!(u&&t&&_e&&De),de=j(G.isValidating)?ie:G.isValidating,be=j(G.isLoading)?ie:G.isLoading,K=D.useCallback(async E=>{const C=g.current;if(!u||!C||l.current||M().isPaused())return!1;let W,S,k=!0;const L=E||{},R=!O[u]||!L.dedupe,U=()=>Vt?!l.current&&u===_.current&&f.current:u===_.current,Z={isValidating:!1,isLoading:!1},Wt=()=>{z(Z)},qt=()=>{const B=O[u];B&&B[1]===S&&delete O[u]},It={isValidating:!0};j(I().data)&&(It.isLoading=!0);try{if(R&&(z(It),r.loadingTimeout&&j(I().data)&&setTimeout(()=>{k&&U()&&M().onLoadingSlow(u,r)},r.loadingTimeout),O[u]=[C(h),Ct()]),[W,S]=O[u],W=await W,R&&setTimeout(qt,r.dedupingInterval),!O[u]||O[u][1]!==S)return R&&U()&&M().onDiscarded(u),!1;Z.error=V;const B=w[u];if(!j(B)&&(S<=B[0]||S<=B[1]||B[1]===0))return Wt(),R&&U()&&M().onDiscarded(u),!1;const ee=I().data;Z.data=i(ee,W)?ee:W,R&&U()&&M().onSuccess(W,u,r)}catch(B){qt();const ee=M(),{shouldRetryOnError:Pe}=ee;ee.isPaused()||(Z.error=B,R&&U()&&(ee.onError(B,u,ee),(Pe===!0||re(Pe)&&Pe(B))&&F()&&ee.onErrorRetry(B,u,ee,hr=>{const Ne=b[u];Ne&&Ne[0]&&Ne[0](Oe.ERROR_REVALIDATE_EVENT,hr)},{retryCount:(L.retryCount||0)+1,dedupe:!0})))}return k=!1,Wt(),!0},[u,a]),ce=D.useCallback((...E)=>cr(a,_.current,...E),[]);if(Le(()=>{g.current=t,T.current=r,j(Q)||(pe.current=Q)}),Le(()=>{if(!u)return;const E=K.bind(V,$e);let C=0;const S=Sn(u,b,(k,L={})=>{if(k==Oe.FOCUS_EVENT){const R=Date.now();M().revalidateOnFocus&&R>C&&F()&&(C=R+M().focusThrottleInterval,E())}else if(k==Oe.RECONNECT_EVENT)M().revalidateOnReconnect&&F()&&E();else{if(k==Oe.MUTATE_EVENT)return K();if(k==Oe.ERROR_REVALIDATE_EVENT)return K(L)}});return l.current=!1,_.current=u,f.current=!0,z({_k:h}),De&&(j(X)||Ee?E():vn(E)),()=>{l.current=!0,S()}},[u]),Le(()=>{let E;function C(){const S=re(c)?c(I().data):c;S&&E!==-1&&(E=setTimeout(W,S))}function W(){!I().error&&(m||M().isVisible())&&(x||M().isOnline())?K($e).then(C):C()}return C(),()=>{E&&(clearTimeout(E),E=-1)}},[c,m,x,u]),D.useDebugValue(oe),n&&j(X)&&u){if(!Vt&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");g.current=t,T.current=r,l.current=!1;const E=p[u];if(!j(E)){const C=ce(E);Ht(C)}if(j(ne)){const C=K($e);j(oe)||(C.status="fulfilled",C.value=!0),Ht(C)}else throw ne}return{mutate:ce,get data(){return N.data=!0,oe},get error(){return N.error=!0,ne},get isValidating(){return N.isValidating=!0,de},get isLoading(){return N.isLoading=!0,be}}},zt=kn(Rn);class Pn extends Error{constructor({message:t,status:r,data:a}){super(t),this.name="TwitterApiError",this.status=r,this.data=a}}const Nn=zt.default||zt,Wn="https://react-tweet.vercel.app";async function qn([e,t]){const r=await fetch(e,t),a=await r.json();if(r.ok)return a.data||null;throw new Pn({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:a,status:r.status})}const In=(e,t,r)=>{const{isLoading:a,data:i,error:n}=Nn(()=>t||e?[t||e&&`${Wn}/api/tweet/${e}`,r]:null,qn,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(a||i===void 0&&!n),data:i,error:n}},Ln=()=>{const[e,t]=D.useState(!1);return D.useEffect(()=>t(!0),[]),e},Un="_root_i24yn_1",$n={root:Un},Fn=({tweet:e})=>{const t=Ln(),r=typeof window<"u"&&t?new Date(e.created_at):null;return r?o.jsx("a",{className:$n.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":Yt(r,"h:mm a · MMM d, y"),children:o.jsx("time",{dateTime:r.toISOString(),children:Yt(r,"h:mm a · MMM d, y")})}):null},Yn="_info_19qcj_1",Vn="_infoLink_19qcj_10",An="_infoIcon_19qcj_30",Fe={info:Yn,infoLink:Vn,infoIcon:An},Bn=({tweet:e})=>o.jsxs("div",{className:Fe.info,children:[o.jsx(Fn,{tweet:e}),o.jsx("a",{className:Fe.infoLink,href:"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:o.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Fe.infoIcon,children:o.jsx("g",{children:o.jsx("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]}),Hn="_actions_n2anf_1",zn="_like_n2anf_13",Gn="_reply_n2anf_14",Qn="_copy_n2anf_15",Xn="_likeIconWrapper_n2anf_27",Jn="_likeCount_n2anf_30",Kn="_replyIconWrapper_n2anf_35",Zn="_copyIconWrapper_n2anf_36",eo="_likeIcon_n2anf_27",to="_replyIcon_n2anf_35",ro="_copyIcon_n2anf_36",ao="_replyText_n2anf_56",no="_copyText_n2anf_57",Y={actions:Hn,like:zn,reply:Gn,copy:Qn,likeIconWrapper:Xn,likeCount:Jn,replyIconWrapper:Kn,copyIconWrapper:Zn,likeIcon:eo,replyIcon:to,copyIcon:ro,replyText:ao,copyText:no},oo=({tweet:e})=>{const[t,r]=D.useState(!1),[a,i]=D.useState(!1),n=()=>{navigator.clipboard.writeText(e.url),r(!0)};return D.useEffect(()=>{if(t){const d=setTimeout(()=>{r(!1),i(!0)},6e3);return()=>clearTimeout(d)}},[t]),o.jsxs("button",{type:"button",className:Y.copy,"aria-label":"Copy link",onClick:n,children:[o.jsx("div",{className:Y.copyIconWrapper,children:t?o.jsx("svg",{viewBox:"0 0 24 24",className:Y.copyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):o.jsx("svg",{viewBox:"0 0 24 24",className:Y.copyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),o.jsx("span",{className:Y.copyText,children:t?"Copied!":a?"Copy link to Tweet":"Copy link"})]})},io=({tweet:e})=>{const t=Ve(e.favorite_count);return o.jsxs("div",{className:Y.actions,children:[o.jsxs("a",{className:Y.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[o.jsx("div",{className:Y.likeIconWrapper,children:o.jsx("svg",{viewBox:"0 0 24 24",className:Y.likeIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),o.jsx("span",{className:Y.likeCount,children:t})]}),o.jsxs("a",{className:Y.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[o.jsx("div",{className:Y.replyIconWrapper,children:o.jsx("svg",{viewBox:"0 0 24 24",className:Y.replyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),o.jsx("span",{className:Y.replyText,children:"Reply"})]}),o.jsx(oo,{tweet:e})]})},so="_replies_1cutb_1",uo="_link_1cutb_4",lo="_text_1cutb_23",Ye={replies:so,link:uo,text:lo},co=({tweet:e})=>o.jsx("div",{className:Ye.replies,children:o.jsx("a",{className:Ye.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:o.jsx("span",{className:Ye.text,children:e.conversation_count===0?"Read more on Twitter":e.conversation_count===1?`Read ${Ve(e.conversation_count)} reply`:`Read ${Ve(e.conversation_count)} replies`})})}),fo="_root_q5799_1",vo="_article_q5799_16",Gt={root:fo,article:vo},ho=({tweet:e,children:t})=>o.jsx("div",{className:Gt.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:o.jsx("article",{className:Gt.article,children:t})}),mo="_header_r31i5_1",_o="_avatar_r31i5_11",po="_avatarSquare_r31i5_17",go="_author_r31i5_21",xo="_authorText_r31i5_26",wo="_username_r31i5_33",fe={header:mo,avatar:_o,avatarSquare:po,author:go,authorText:xo,username:wo},yo=({tweet:e})=>{const{user:t}=e;return o.jsxs("div",{className:fe.header,children:[o.jsx("a",{href:e.url,className:fe.avatar,target:"_blank",rel:"noopener noreferrer",children:o.jsx("div",{className:ue(fe.avatarOverflow,t.profile_image_shape==="Square"&&fe.avatarSquare),children:o.jsx(Qt,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),o.jsxs("div",{className:fe.author,children:[o.jsx("div",{className:fe.authorText,children:o.jsx("span",{title:t.name,children:t.name})}),o.jsx(Xt,{user:t}),o.jsx("div",{className:fe.username,children:o.jsxs("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},bo="_root_175ot_1",To={root:bo},Oo=({tweet:e})=>o.jsx("p",{className:To.root,children:e.entities.map((t,r)=>o.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r))}),jo=({tweet:e})=>{var t;return o.jsxs(ho,{tweet:e,children:[o.jsx(yo,{tweet:e}),o.jsx(Oo,{tweet:e}),(t=e.mediaDetails)!=null&&t.length?o.jsx(Zt,{quoted:!0,tweet:e}):null]})},Eo=({tweet:e,components:t})=>{var r;const a=D.useMemo(()=>sa(e),[e]);return o.jsxs(kt,{children:[o.jsx(Yr,{tweet:a,components:t}),a.in_reply_to_status_id_str&&o.jsx(Br,{tweet:a}),o.jsx(Jr,{tweet:a}),(r=a.mediaDetails)!=null&&r.length?o.jsx(Zt,{tweet:a,components:t}):null,a.quoted_tweet&&o.jsx(jo,{tweet:a.quoted_tweet}),o.jsx(Bn,{tweet:a}),o.jsx(io,{tweet:a}),o.jsx(co,{tweet:a})]})},Co="_root_16yxa_1",Do={root:Co},Mo=e=>o.jsx(kt,{children:o.jsxs("div",{className:Do.root,children:[o.jsx("h3",{children:"Tweet not found"}),o.jsx("p",{children:"The embedded tweet could not be found…"})]})}),ko="_skeleton_oi7hr_1",So="_loading_oi7hr_1",Ro={skeleton:ko,loading:So},Se=({style:e})=>o.jsx("span",{className:Ro.skeleton,style:e}),Po="_root_17qqv_1",No={root:Po},Wo=()=>o.jsxs(kt,{className:No.root,children:[o.jsx(Se,{style:{height:"3rem",marginBottom:"0.75rem"}}),o.jsx(Se,{style:{height:"6rem",margin:"0.5rem 0"}}),o.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),o.jsx(Se,{style:{height:"2rem"}}),o.jsx(Se,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),Ao=({id:e,apiUrl:t,fallback:r=o.jsx(Wo,{}),components:a,fetchOptions:i,onError:n})=>{const{data:d,error:v,isLoading:s}=In(e,t,i);if(s)return r;if(v||!d){var c;const m=((c=a)==null?void 0:c.TweetNotFound)||Mo;return o.jsx(m,{error:n?n(v):v})}return o.jsx(Eo,{tweet:d,components:a})};export{Eo as EmbeddedTweet,jo as QuotedTweet,Oo as QuotedTweetBody,ho as QuotedTweetContainer,yo as QuotedTweetHeader,Ao as Tweet,io as TweetActions,oo as TweetActionsCopy,Jr as TweetBody,kt as TweetContainer,Yr as TweetHeader,Br as TweetInReplyTo,Bn as TweetInfo,Fn as TweetInfoCreatedAt,Gr as TweetLink,Zt as TweetMedia,Ta as TweetMediaVideo,Mo as TweetNotFound,co as TweetReplies,Wo as TweetSkeleton,gr as Verified,xr as VerifiedBusiness,wr as VerifiedGovernment,sa as enrichTweet,Ve as formatNumber,Kt as getMediaUrl,oa as getMp4Video,na as getMp4Videos,Ln as useMounted,In as useTweet}; +import{j as o,r as D,g as mr,R as Dt}from"./index-HRfeE_7B.js";import{s as _r}from"./index-GZJTCUEG.js";import{v as ue}from"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const pr="_verified_lvyh0_1",Mt={verified:pr},gr=()=>o.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsx("g",{children:o.jsx("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),xr=()=>o.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsxs("g",{children:[o.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[o.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),o.jsx("stop",{offset:".539",stopColor:"#cd8105"}),o.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),o.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),o.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),o.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[o.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),o.jsx("stop",{offset:".406",stopColor:"#e2b719"}),o.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),o.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[o.jsx("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),o.jsx("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),o.jsx("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),wr=()=>o.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:Mt.verified,children:o.jsx("g",{children:o.jsx("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),yr="_root_98iqw_1",br="_article_98iqw_21",Lt={root:yr,article:br},kt=({className:e,children:t})=>o.jsx("div",{className:ue("react-tweet-theme",Lt.root,e),children:o.jsx("article",{className:Lt.article,children:t})}),Qt=e=>o.jsx("img",{...e}),Tr="_header_nqq4j_1",Or="_avatar_nqq4j_11",jr="_avatarOverflow_nqq4j_16",Er="_avatarSquare_nqq4j_23",Cr="_avatarShadow_nqq4j_26",Dr="_author_nqq4j_37",Mr="_authorLink_nqq4j_44",kr="_authorVerified_nqq4j_53",Sr="_authorLinkText_nqq4j_56",Rr="_authorMeta_nqq4j_63",Pr="_authorFollow_nqq4j_66",Nr="_username_nqq4j_69",Wr="_follow_nqq4j_74",qr="_separator_nqq4j_82",Ir="_brand_nqq4j_86",Lr="_twitterIcon_nqq4j_90",q={header:Tr,avatar:Or,avatarOverflow:jr,avatarSquare:Er,avatarShadow:Cr,author:Dr,authorLink:Mr,authorVerified:kr,authorLinkText:Sr,authorMeta:Rr,authorFollow:Pr,username:Nr,follow:Wr,separator:qr,brand:Ir,twitterIcon:Lr},Ur="_verifiedOld_lcna5_1",$r="_verifiedBlue_lcna5_4",Fr="_verifiedGovernment_lcna5_7",We={verifiedOld:Ur,verifiedBlue:$r,verifiedGovernment:Fr},Xt=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let a=o.jsx(gr,{}),i=We.verifiedBlue;if(r)switch(e.is_blue_verified||(i=We.verifiedOld),e.verified_type){case"Government":a=o.jsx(wr,{}),i=We.verifiedGovernment;break;case"Business":a=o.jsx(xr,{}),i=null;break}return r?o.jsx("div",{className:ue(t,i),children:a}):null},Yr=({tweet:e,components:t})=>{var r,a;const i=(a=(r=t)==null?void 0:r.AvatarImg)!=null?a:Qt,{user:n}=e;return o.jsxs("div",{className:q.header,children:[o.jsxs("a",{href:e.url,className:q.avatar,target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:ue(q.avatarOverflow,n.profile_image_shape==="Square"&&q.avatarSquare),children:o.jsx(i,{src:n.profile_image_url_https,alt:n.name,width:48,height:48})}),o.jsx("div",{className:q.avatarOverflow,children:o.jsx("div",{className:q.avatarShadow})})]}),o.jsxs("div",{className:q.author,children:[o.jsxs("a",{href:e.url,className:q.authorLink,target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:q.authorLinkText,children:o.jsx("span",{title:n.name,children:n.name})}),o.jsx(Xt,{user:n,className:q.authorVerified})]}),o.jsxs("div",{className:q.authorMeta,children:[o.jsx("a",{href:e.url,className:q.username,target:"_blank",rel:"noopener noreferrer",children:o.jsxs("span",{title:`@${n.screen_name}`,children:["@",n.screen_name]})}),o.jsxs("div",{className:q.authorFollow,children:[o.jsx("span",{className:q.separator,children:"·"}),o.jsx("a",{href:n.follow_url,className:q.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),o.jsx("a",{href:e.url,className:q.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:o.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:q.twitterIcon,children:o.jsx("g",{children:o.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},Vr="_root_1ec15_1",Ar={root:Vr},Br=({tweet:e})=>o.jsxs("a",{href:e.in_reply_to_url,className:Ar.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),Hr="_root_eihfa_1",zr={root:Hr},Gr=({href:e,children:t})=>o.jsx("a",{href:e,className:zr.root,target:"_blank",rel:"noopener noreferrer",children:t}),Qr="_root_1xq52_1",Xr={root:Qr},Jr=({tweet:e})=>o.jsx("p",{className:Xr.root,children:e.entities.map((t,r)=>{switch(t.type){case"hashtag":case"mention":case"url":case"symbol":return o.jsx(Gr,{href:t.href,children:t.text},r);case"media":return;default:return o.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r)}})}),Ut=e=>`https://twitter.com/${e.user.screen_name}/status/${e.id_str}`,Jt=e=>`https://twitter.com/${typeof e=="string"?e:e.user.screen_name}`,Kr=e=>`https://twitter.com/intent/like?tweet_id=${e.id_str}`,Zr=e=>`https://twitter.com/intent/tweet?in_reply_to=${e.id_str}`,ea=e=>`https://twitter.com/intent/follow?screen_name=${e.user.screen_name}`,ta=e=>`https://twitter.com/hashtag/${e.text}`,ra=e=>`https://twitter.com/search?q=%24${e.text}`,aa=e=>`https://twitter.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,Kt=(e,t)=>{const r=new URL(e.media_url_https),a=r.pathname.split(".").pop();return a?(r.pathname=r.pathname.replace(`.${a}`,""),r.searchParams.set("format",a),r.searchParams.set("name",t),r.toString()):e.media_url_https},na=e=>{const{variants:t}=e.video_info;var r,a;return t.filter(n=>n.content_type==="video/mp4").sort((n,d)=>((r=d.bitrate)!=null?r:0)-((a=n.bitrate)!=null?a:0))},oa=e=>{const t=na(e);return t.length>1?t[1]:t[0]},Ve=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function $t(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return Te(r,"hashtag",e.entities.hashtags),Te(r,"mention",e.entities.user_mentions),Te(r,"url",e.entities.urls),Te(r,"symbol",e.entities.symbols),e.entities.media&&Te(r,"media",e.entities.media),ia(e,r),r.map(a=>{const i=t.slice(a.indices[0],a.indices[1]).join("");switch(a.type){case"hashtag":return Object.assign(a,{href:ta(a),text:i});case"mention":return Object.assign(a,{href:Jt(a.screen_name),text:i});case"url":case"media":return Object.assign(a,{href:a.expanded_url,text:a.display_url});case"symbol":return Object.assign(a,{href:ra(a),text:i});default:return Object.assign(a,{text:i})}})}function Te(e,t,r){for(const a of r)for(const[i,n]of e.entries()){if(n.indices[0]>a.indices[0]||n.indices[1]a.indices[1]&&d.push({indices:[a.indices[1],n.indices[1]],type:"text"}),e.splice(i,1,...d);break}}function ia(e,t){e.entities.media&&e.entities.media[0].indices[0]e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}const sa=e=>({...e,url:Ut(e),user:{...e.user,url:Jt(e),follow_url:ea(e)},like_url:Kr(e),reply_url:Zr(e),in_reply_to_url:e.in_reply_to_screen_name?aa(e):void 0,entities:$t(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:Ut(e.quoted_tweet),entities:$t(e.quoted_tweet)}:void 0}),ua="_root_g9tkv_1",la="_rounded_g9tkv_6",da="_mediaWrapper_g9tkv_10",ca="_grid2Columns_g9tkv_17",fa="_grid3_g9tkv_20",va="_grid2x2_g9tkv_23",ha="_mediaContainer_g9tkv_26",ma="_mediaLink_g9tkv_34",_a="_skeleton_g9tkv_38",pa="_image_g9tkv_43",A={root:ua,rounded:la,mediaWrapper:da,grid2Columns:ca,grid3:fa,grid2x2:va,mediaContainer:ha,mediaLink:ma,skeleton:_a,image:pa},ga="_anchor_fp31d_1",xa="_videoButton_fp31d_17",wa="_videoButtonIcon_fp31d_35",ya="_watchOnTwitter_fp31d_44",ba="_viewReplies_fp31d_60",ge={anchor:ga,videoButton:xa,videoButtonIcon:wa,watchOnTwitter:ya,viewReplies:ba},Ta=({tweet:e,media:t})=>{const[r,a]=D.useState(!0),[i,n]=D.useState(!1),[d,v]=D.useState(!1),s=oa(t);let c=0;return o.jsxs(o.Fragment,{children:[o.jsx("video",{className:A.image,poster:Kt(t,"small"),controls:!r,muted:!0,preload:"metadata",tabIndex:r?-1:0,onPlay:()=>{c&&window.clearTimeout(c),i||n(!0),d&&v(!1)},onPause:()=>{c&&window.clearTimeout(c),c=window.setTimeout(()=>{i&&n(!1),c=0},100)},onEnded:()=>{v(!0)},children:o.jsx("source",{src:s.url,type:s.content_type})}),r&&o.jsx("button",{type:"button",className:ge.videoButton,"aria-label":"View video on Twitter",onClick:m=>{const x=m.currentTarget.previousSibling;m.preventDefault(),a(!1),n(!0),x.play(),x.focus()},children:o.jsx("svg",{viewBox:"0 0 24 24",className:ge.videoButtonIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!i&&!d&&o.jsx("div",{className:ge.watchOnTwitter,children:o.jsx("a",{href:e.url,className:ge.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on Twitter":"Continue watching on Twitter"})}),d&&o.jsx("a",{href:e.url,className:ue(ge.anchor,ge.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Oa=e=>o.jsx("img",{...e}),Ft=(e,t)=>{let r=56.25;return t===1&&(r=100/e.original_info.width*e.original_info.height),t===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},Zt=({tweet:e,components:t,quoted:r})=>{var a,i,n,d;const v=(d=(a=e.mediaDetails)==null?void 0:a.length)!=null?d:0;var s;const c=(s=(i=t)==null?void 0:i.MediaImg)!=null?s:Oa;return o.jsx("div",{className:ue(A.root,!r&&A.rounded),children:o.jsx("div",{className:ue(A.mediaWrapper,v>1&&A.grid2Columns,v===3&&A.grid3,v>4&&A.grid2x2),children:(n=e.mediaDetails)==null?void 0:n.map(m=>o.jsx(D.Fragment,{children:m.type==="photo"?o.jsxs("a",{href:e.url,className:ue(A.mediaContainer,A.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[o.jsx("div",{className:A.skeleton,style:Ft(m,v)}),o.jsx(c,{src:Kt(m,"small"),alt:m.ext_alt_text||"Image",className:A.image,draggable:!0})]},m.media_url_https):o.jsxs("div",{className:A.mediaContainer,children:[o.jsx("div",{className:A.skeleton,style:Ft(m,v)}),o.jsx(Ta,{tweet:e,media:m})]},m.media_url_https)},m.media_url_https))})})};var Ae={exports:{}},er={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(er);var P=er.exports,Be={exports:{}},He={exports:{}},tr={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(tr);var rr=tr.exports,ze={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,i){if(i.length1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(ze,ze.exports);var $=ze.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(rr),i=r($);function n(d){return(0,i.default)(1,arguments),d instanceof Date||(0,a.default)(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}e.exports=t.default})(He,He.exports);var ja=He.exports,Ge={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(rr),i=r($);function n(d){(0,i.default)(1,arguments);var v=Object.prototype.toString.call(d);return d instanceof Date||(0,a.default)(d)==="object"&&v==="[object Date]"?new Date(d.getTime()):typeof d=="number"||v==="[object Number]"?new Date(d):((typeof d=="string"||v==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Ge,Ge.exports);var J=Ge.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(ja),i=r(J),n=r($);function d(v){if((0,n.default)(1,arguments),!(0,a.default)(v)&&typeof v!="number")return!1;var s=(0,i.default)(v);return!isNaN(Number(s))}e.exports=t.default})(Be,Be.exports);var Ea=Be.exports,Qe={exports:{}},Xe={exports:{}},Je={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){if(a===null||a===!0||a===!1)return NaN;var i=Number(a);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(Je,Je.exports);var xe=Je.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(xe),i=r(J),n=r($);function d(v,s){(0,n.default)(2,arguments);var c=(0,i.default)(v).getTime(),m=(0,a.default)(s);return new Date(c+m)}e.exports=t.default})(Xe,Xe.exports);var Ca=Xe.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(Ca),i=r($),n=r(xe);function d(v,s){(0,i.default)(2,arguments);var c=(0,n.default)(s);return(0,a.default)(v,-c)}e.exports=t.default})(Qe,Qe.exports);var Da=Qe.exports,Ke={exports:{}},Ze={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(J),i=r($),n=864e5;function d(v){(0,i.default)(1,arguments);var s=(0,a.default)(v),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var m=s.getTime(),x=c-m;return Math.floor(x/n)+1}e.exports=t.default})(Ze,Ze.exports);var Ma=Ze.exports,et={exports:{}},tt={exports:{}};(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(J),i=r($);function n(d){(0,i.default)(1,arguments);var v=1,s=(0,a.default)(d),c=s.getUTCDay(),m=(c=x.getTime()?c+1:s.getTime()>=b.getTime()?c:c-1}e.exports=t.default})(at,at.exports);var ar=at.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var a=r(ar),i=r(St),n=r($);function d(v){(0,n.default)(1,arguments);var s=(0,a.default)(v),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var m=(0,i.default)(c);return m}e.exports=t.default})(rt,rt.exports);var ka=rt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(J),i=r(St),n=r(ka),d=r($),v=6048e5;function s(c){(0,d.default)(1,arguments);var m=(0,a.default)(c),x=(0,i.default)(m).getTime()-(0,n.default)(m).getTime();return Math.round(x/v)+1}e.exports=t.default})(et,et.exports);var Sa=et.exports,nt={exports:{}},ot={exports:{}},ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.getDefaultOptions=Ra;ve.setDefaultOptions=Pa;var nr={};function Ra(){return nr}function Pa(e){nr=e}(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var a=r(J),i=r($),n=r(xe),d=ve;function v(s,c){var m,x,y,b,w,O,p,u;(0,i.default)(1,arguments);var h=(0,d.getDefaultOptions)(),f=(0,n.default)((m=(x=(y=(b=c==null?void 0:c.weekStartsOn)!==null&&b!==void 0?b:c==null||(w=c.locale)===null||w===void 0||(O=w.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&y!==void 0?y:h.weekStartsOn)!==null&&x!==void 0?x:(p=h.locale)===null||p===void 0||(u=p.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&m!==void 0?m:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=(0,a.default)(s),_=l.getUTCDay(),g=(_=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(l+1,0,g),T.setUTCHours(0,0,0,0);var M=(0,n.default)(T,m),F=new Date(0);F.setUTCFullYear(l,0,g),F.setUTCHours(0,0,0,0);var I=(0,n.default)(F,m);return f.getTime()>=M.getTime()?l+1:f.getTime()>=I.getTime()?l:l-1}e.exports=t.default})(st,st.exports);var or=st.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(or),i=r($),n=r(Rt),d=r(xe),v=ve;function s(c,m){var x,y,b,w,O,p,u,h;(0,i.default)(1,arguments);var f=(0,v.getDefaultOptions)(),l=(0,d.default)((x=(y=(b=(w=m==null?void 0:m.firstWeekContainsDate)!==null&&w!==void 0?w:m==null||(O=m.locale)===null||O===void 0||(p=O.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&b!==void 0?b:f.firstWeekContainsDate)!==null&&y!==void 0?y:(u=f.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&x!==void 0?x:1),_=(0,a.default)(c,m),g=new Date(0);g.setUTCFullYear(_,0,l),g.setUTCHours(0,0,0,0);var T=(0,n.default)(g,m);return T}e.exports=t.default})(it,it.exports);var Na=it.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var a=r(J),i=r(Rt),n=r(Na),d=r($),v=6048e5;function s(c,m){(0,d.default)(1,arguments);var x=(0,a.default)(c),y=(0,i.default)(x,m).getTime()-(0,n.default)(x,m).getTime();return Math.round(y/v)+1}e.exports=t.default})(nt,nt.exports);var Wa=nt.exports,ut={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a,i){for(var n=a<0?"-":"",d=Math.abs(a).toString();d.length0?c:1-c;return(0,a.default)(s==="yy"?m%100:m,s.length)},M:function(v,s){var c=v.getUTCMonth();return s==="M"?String(c+1):(0,a.default)(c+1,2)},d:function(v,s){return(0,a.default)(v.getUTCDate(),s.length)},a:function(v,s){var c=v.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(v,s){return(0,a.default)(v.getUTCHours()%12||12,s.length)},H:function(v,s){return(0,a.default)(v.getUTCHours(),s.length)},m:function(v,s){return(0,a.default)(v.getUTCMinutes(),s.length)},s:function(v,s){return(0,a.default)(v.getUTCSeconds(),s.length)},S:function(v,s){var c=s.length,m=v.getUTCMilliseconds(),x=Math.floor(m*Math.pow(10,c-3));return(0,a.default)(x,s.length)}},n=i;t.default=n,e.exports=t.default})(lt,lt.exports);var qa=lt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ma),i=r(Sa),n=r(ar),d=r(Wa),v=r(or),s=r(ir),c=r(qa),m={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x={G:function(u,h,f){var l=u.getUTCFullYear()>0?1:0;switch(h){case"G":case"GG":case"GGG":return f.era(l,{width:"abbreviated"});case"GGGGG":return f.era(l,{width:"narrow"});case"GGGG":default:return f.era(l,{width:"wide"})}},y:function(u,h,f){if(h==="yo"){var l=u.getUTCFullYear(),_=l>0?l:1-l;return f.ordinalNumber(_,{unit:"year"})}return c.default.y(u,h)},Y:function(u,h,f,l){var _=(0,v.default)(u,l),g=_>0?_:1-_;if(h==="YY"){var T=g%100;return(0,s.default)(T,2)}return h==="Yo"?f.ordinalNumber(g,{unit:"year"}):(0,s.default)(g,h.length)},R:function(u,h){var f=(0,n.default)(u);return(0,s.default)(f,h.length)},u:function(u,h){var f=u.getUTCFullYear();return(0,s.default)(f,h.length)},Q:function(u,h,f){var l=Math.ceil((u.getUTCMonth()+1)/3);switch(h){case"Q":return String(l);case"QQ":return(0,s.default)(l,2);case"Qo":return f.ordinalNumber(l,{unit:"quarter"});case"QQQ":return f.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return f.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return f.quarter(l,{width:"wide",context:"formatting"})}},q:function(u,h,f){var l=Math.ceil((u.getUTCMonth()+1)/3);switch(h){case"q":return String(l);case"qq":return(0,s.default)(l,2);case"qo":return f.ordinalNumber(l,{unit:"quarter"});case"qqq":return f.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return f.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return f.quarter(l,{width:"wide",context:"standalone"})}},M:function(u,h,f){var l=u.getUTCMonth();switch(h){case"M":case"MM":return c.default.M(u,h);case"Mo":return f.ordinalNumber(l+1,{unit:"month"});case"MMM":return f.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return f.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return f.month(l,{width:"wide",context:"formatting"})}},L:function(u,h,f){var l=u.getUTCMonth();switch(h){case"L":return String(l+1);case"LL":return(0,s.default)(l+1,2);case"Lo":return f.ordinalNumber(l+1,{unit:"month"});case"LLL":return f.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return f.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return f.month(l,{width:"wide",context:"standalone"})}},w:function(u,h,f,l){var _=(0,d.default)(u,l);return h==="wo"?f.ordinalNumber(_,{unit:"week"}):(0,s.default)(_,h.length)},I:function(u,h,f){var l=(0,i.default)(u);return h==="Io"?f.ordinalNumber(l,{unit:"week"}):(0,s.default)(l,h.length)},d:function(u,h,f){return h==="do"?f.ordinalNumber(u.getUTCDate(),{unit:"date"}):c.default.d(u,h)},D:function(u,h,f){var l=(0,a.default)(u);return h==="Do"?f.ordinalNumber(l,{unit:"dayOfYear"}):(0,s.default)(l,h.length)},E:function(u,h,f){var l=u.getUTCDay();switch(h){case"E":case"EE":case"EEE":return f.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return f.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return f.day(l,{width:"short",context:"formatting"});case"EEEE":default:return f.day(l,{width:"wide",context:"formatting"})}},e:function(u,h,f,l){var _=u.getUTCDay(),g=(_-l.weekStartsOn+8)%7||7;switch(h){case"e":return String(g);case"ee":return(0,s.default)(g,2);case"eo":return f.ordinalNumber(g,{unit:"day"});case"eee":return f.day(_,{width:"abbreviated",context:"formatting"});case"eeeee":return f.day(_,{width:"narrow",context:"formatting"});case"eeeeee":return f.day(_,{width:"short",context:"formatting"});case"eeee":default:return f.day(_,{width:"wide",context:"formatting"})}},c:function(u,h,f,l){var _=u.getUTCDay(),g=(_-l.weekStartsOn+8)%7||7;switch(h){case"c":return String(g);case"cc":return(0,s.default)(g,h.length);case"co":return f.ordinalNumber(g,{unit:"day"});case"ccc":return f.day(_,{width:"abbreviated",context:"standalone"});case"ccccc":return f.day(_,{width:"narrow",context:"standalone"});case"cccccc":return f.day(_,{width:"short",context:"standalone"});case"cccc":default:return f.day(_,{width:"wide",context:"standalone"})}},i:function(u,h,f){var l=u.getUTCDay(),_=l===0?7:l;switch(h){case"i":return String(_);case"ii":return(0,s.default)(_,h.length);case"io":return f.ordinalNumber(_,{unit:"day"});case"iii":return f.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return f.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return f.day(l,{width:"short",context:"formatting"});case"iiii":default:return f.day(l,{width:"wide",context:"formatting"})}},a:function(u,h,f){var l=u.getUTCHours(),_=l/12>=1?"pm":"am";switch(h){case"a":case"aa":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"aaa":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"aaaa":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},b:function(u,h,f){var l=u.getUTCHours(),_;switch(l===12?_=m.noon:l===0?_=m.midnight:_=l/12>=1?"pm":"am",h){case"b":case"bb":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"bbb":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"bbbb":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},B:function(u,h,f){var l=u.getUTCHours(),_;switch(l>=17?_=m.evening:l>=12?_=m.afternoon:l>=4?_=m.morning:_=m.night,h){case"B":case"BB":case"BBB":return f.dayPeriod(_,{width:"abbreviated",context:"formatting"});case"BBBBB":return f.dayPeriod(_,{width:"narrow",context:"formatting"});case"BBBB":default:return f.dayPeriod(_,{width:"wide",context:"formatting"})}},h:function(u,h,f){if(h==="ho"){var l=u.getUTCHours()%12;return l===0&&(l=12),f.ordinalNumber(l,{unit:"hour"})}return c.default.h(u,h)},H:function(u,h,f){return h==="Ho"?f.ordinalNumber(u.getUTCHours(),{unit:"hour"}):c.default.H(u,h)},K:function(u,h,f){var l=u.getUTCHours()%12;return h==="Ko"?f.ordinalNumber(l,{unit:"hour"}):(0,s.default)(l,h.length)},k:function(u,h,f){var l=u.getUTCHours();return l===0&&(l=24),h==="ko"?f.ordinalNumber(l,{unit:"hour"}):(0,s.default)(l,h.length)},m:function(u,h,f){return h==="mo"?f.ordinalNumber(u.getUTCMinutes(),{unit:"minute"}):c.default.m(u,h)},s:function(u,h,f){return h==="so"?f.ordinalNumber(u.getUTCSeconds(),{unit:"second"}):c.default.s(u,h)},S:function(u,h){return c.default.S(u,h)},X:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();if(g===0)return"Z";switch(h){case"X":return b(g);case"XXXX":case"XX":return w(g);case"XXXXX":case"XXX":default:return w(g,":")}},x:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();switch(h){case"x":return b(g);case"xxxx":case"xx":return w(g);case"xxxxx":case"xxx":default:return w(g,":")}},O:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();switch(h){case"O":case"OO":case"OOO":return"GMT"+y(g,":");case"OOOO":default:return"GMT"+w(g,":")}},z:function(u,h,f,l){var _=l._originalDate||u,g=_.getTimezoneOffset();switch(h){case"z":case"zz":case"zzz":return"GMT"+y(g,":");case"zzzz":default:return"GMT"+w(g,":")}},t:function(u,h,f,l){var _=l._originalDate||u,g=Math.floor(_.getTime()/1e3);return(0,s.default)(g,h.length)},T:function(u,h,f,l){var _=l._originalDate||u,g=_.getTime();return(0,s.default)(g,h.length)}};function y(p,u){var h=p>0?"-":"+",f=Math.abs(p),l=Math.floor(f/60),_=f%60;if(_===0)return h+String(l);var g=u||"";return h+String(l)+g+(0,s.default)(_,2)}function b(p,u){if(p%60===0){var h=p>0?"-":"+";return h+(0,s.default)(Math.abs(p)/60,2)}return w(p,u)}function w(p,u){var h=u||"",f=p>0?"-":"+",l=Math.abs(p),_=(0,s.default)(Math.floor(l/60),2),g=(0,s.default)(l%60,2);return f+_+h+g}var O=x;t.default=O,e.exports=t.default})(Ke,Ke.exports);var Ia=Ke.exports,dt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},a=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},i=function(s,c){var m=s.match(/(P+)(p+)?/)||[],x=m[1],y=m[2];if(!y)return r(s,c);var b;switch(x){case"P":b=c.dateTime({width:"short"});break;case"PP":b=c.dateTime({width:"medium"});break;case"PPP":b=c.dateTime({width:"long"});break;case"PPPP":default:b=c.dateTime({width:"full"});break}return b.replace("{{date}}",r(x,c)).replace("{{time}}",a(y,c))},n={p:a,P:i},d=n;t.default=d,e.exports=t.default})(dt,dt.exports);var La=dt.exports,ct={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){var i=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return i.setUTCFullYear(a.getFullYear()),a.getTime()-i.getTime()}e.exports=t.default})(ct,ct.exports);var Ua=ct.exports,Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isProtectedDayOfYearToken=Ya;Ce.isProtectedWeekYearToken=Va;Ce.throwProtectedError=Aa;var $a=["D","DD"],Fa=["YY","YYYY"];function Ya(e){return $a.indexOf(e)!==-1}function Va(e){return Fa.indexOf(e)!==-1}function Aa(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ft={exports:{}},vt={exports:{}},ht={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},a=function(d,v,s){var c,m=r[d];return typeof m=="string"?c=m:v===1?c=m.one:c=m.other.replace("{{count}}",v.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},i=a;t.default=i,e.exports=t.default})(ht,ht.exports);var Ba=ht.exports,mt={exports:{}},_t={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.width?String(i.width):a.defaultWidth,d=a.formats[n]||a.formats[a.defaultWidth];return d}}e.exports=t.default})(_t,_t.exports);var Ha=_t.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ha),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},n={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v={date:(0,a.default)({formats:i,defaultWidth:"full"}),time:(0,a.default)({formats:n,defaultWidth:"full"}),dateTime:(0,a.default)({formats:d,defaultWidth:"full"})},s=v;t.default=s,e.exports=t.default})(mt,mt.exports);var za=mt.exports,pt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a=function(d,v,s,c){return r[d]},i=a;t.default=i,e.exports=t.default})(pt,pt.exports);var Ga=pt.exports,gt={exports:{}},xt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(i,n){var d=n!=null&&n.context?String(n.context):"standalone",v;if(d==="formatting"&&a.formattingValues){var s=a.defaultFormattingWidth||a.defaultWidth,c=n!=null&&n.width?String(n.width):s;v=a.formattingValues[c]||a.formattingValues[s]}else{var m=a.defaultWidth,x=n!=null&&n.width?String(n.width):a.defaultWidth;v=a.values[x]||a.values[m]}var y=a.argumentCallback?a.argumentCallback(i):i;return v[y]}}e.exports=t.default})(xt,xt.exports);var Qa=xt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Qa),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},n={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},v={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},m=function(w,O){var p=Number(w),u=p%100;if(u>20||u<10)switch(u%10){case 1:return p+"st";case 2:return p+"nd";case 3:return p+"rd"}return p+"th"},x={ordinalNumber:m,era:(0,a.default)({values:i,defaultWidth:"wide"}),quarter:(0,a.default)({values:n,defaultWidth:"wide",argumentCallback:function(w){return w-1}}),month:(0,a.default)({values:d,defaultWidth:"wide"}),day:(0,a.default)({values:v,defaultWidth:"wide"}),dayPeriod:(0,a.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},y=x;t.default=y,e.exports=t.default})(gt,gt.exports);var Xa=gt.exports,wt={exports:{}},yt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(d){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=v.width,c=s&&n.matchPatterns[s]||n.matchPatterns[n.defaultMatchWidth],m=d.match(c);if(!m)return null;var x=m[0],y=s&&n.parsePatterns[s]||n.parsePatterns[n.defaultParseWidth],b=Array.isArray(y)?i(y,function(p){return p.test(x)}):a(y,function(p){return p.test(x)}),w;w=n.valueCallback?n.valueCallback(b):b,w=v.valueCallback?v.valueCallback(w):w;var O=d.slice(x.length);return{value:w,rest:O}}}function a(n,d){for(var v in n)if(n.hasOwnProperty(v)&&d(n[v]))return v}function i(n,d){for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:{},d=i.match(a.matchPattern);if(!d)return null;var v=d[0],s=i.match(a.parsePattern);if(!s)return null;var c=a.valueCallback?a.valueCallback(s[0]):s[0];c=n.valueCallback?n.valueCallback(c):c;var m=i.slice(v.length);return{value:c,rest:m}}}e.exports=t.default})(bt,bt.exports);var Ka=bt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ja),i=r(Ka),n=/^(\d+)(th|st|nd|rd)?/i,d=/\d+/i,v={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m={any:[/1/i,/2/i,/3/i,/4/i]},x={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},u={ordinalNumber:(0,i.default)({matchPattern:n,parsePattern:d,valueCallback:function(l){return parseInt(l,10)}}),era:(0,a.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,a.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any",valueCallback:function(l){return l+1}}),month:(0,a.default)({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any"}),day:(0,a.default)({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),dayPeriod:(0,a.default)({matchPatterns:O,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},h=u;t.default=h,e.exports=t.default})(wt,wt.exports);var Za=wt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(Ba),i=r(za),n=r(Ga),d=r(Xa),v=r(Za),s={code:"en-US",formatDistance:a.default,formatLong:i.default,formatRelative:n.default,localize:d.default,match:v.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vt,vt.exports);var en=vt.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(en),i=a.default;t.default=i,e.exports=t.default})(ft,ft.exports);var tn=ft.exports;(function(e,t){var r=P.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var a=r(Ea),i=r(Da),n=r(J),d=r(Ia),v=r(La),s=r(Ua),c=Ce,m=r(xe),x=r($),y=ve,b=r(tn),w=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,u=/''/g,h=/[a-zA-Z]/;function f(_,g,T){var M,F,I,z,ae,H,N,we,he,me,G,_e,ye,Q,X,ne,pe,oe;(0,x.default)(2,arguments);var De=String(g),ie=(0,y.getDefaultOptions)(),de=(M=(F=T==null?void 0:T.locale)!==null&&F!==void 0?F:ie.locale)!==null&&M!==void 0?M:b.default,be=(0,m.default)((I=(z=(ae=(H=T==null?void 0:T.firstWeekContainsDate)!==null&&H!==void 0?H:T==null||(N=T.locale)===null||N===void 0||(we=N.options)===null||we===void 0?void 0:we.firstWeekContainsDate)!==null&&ae!==void 0?ae:ie.firstWeekContainsDate)!==null&&z!==void 0?z:(he=ie.locale)===null||he===void 0||(me=he.options)===null||me===void 0?void 0:me.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(be>=1&&be<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var K=(0,m.default)((G=(_e=(ye=(Q=T==null?void 0:T.weekStartsOn)!==null&&Q!==void 0?Q:T==null||(X=T.locale)===null||X===void 0||(ne=X.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&ye!==void 0?ye:ie.weekStartsOn)!==null&&_e!==void 0?_e:(pe=ie.locale)===null||pe===void 0||(oe=pe.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&G!==void 0?G:0);if(!(K>=0&&K<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!de.localize)throw new RangeError("locale must contain localize property");if(!de.formatLong)throw new RangeError("locale must contain formatLong property");var ce=(0,n.default)(_);if(!(0,a.default)(ce))throw new RangeError("Invalid time value");var E=(0,s.default)(ce),C=(0,i.default)(ce,E),W={firstWeekContainsDate:be,weekStartsOn:K,locale:de,_originalDate:ce},S=De.match(O).map(function(k){var L=k[0];if(L==="p"||L==="P"){var R=v.default[L];return R(k,de.formatLong)}return k}).join("").match(w).map(function(k){if(k==="''")return"'";var L=k[0];if(L==="'")return l(k);var R=d.default[L];if(R)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(k)&&(0,c.throwProtectedError)(k,g,String(_)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(k)&&(0,c.throwProtectedError)(k,g,String(_)),R(C,k,de.localize,W);if(L.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return k}).join("");return S}function l(_){var g=_.match(p);return g?g[1].replace(u,"'"):_}e.exports=t.default})(Ae,Ae.exports);var rn=Ae.exports;const Yt=mr(rn),se=()=>{},V=se(),qe=Object,j=e=>e===V,re=e=>typeof e=="function",le=(e,t)=>({...e,...t}),an=e=>re(e.then),Me=new WeakMap;let nn=0;const je=e=>{const t=typeof e,r=e&&e.constructor,a=r==Date;let i,n;if(qe(e)===e&&!a&&r!=RegExp){if(i=Me.get(e),i)return i;if(i=++nn+"~",Me.set(e,i),r==Array){for(i="@",n=0;nRe&&typeof window.requestAnimationFrame!=Pt,sr=(e,t)=>{const r=te.get(e);return[()=>!j(t)&&e.get(t)||Ie,a=>{if(!j(t)){const i=e.get(t);t in ke||(ke[t]=i),r[5](t,le(i,a),i||Ie)}},r[6],()=>!j(t)&&t in ke?ke[t]:!j(t)&&e.get(t)||Ie]};let Ot=!0;const sn=()=>Ot,[jt,Et]=Re&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[se,se],un=()=>{const e=Tt&&document.visibilityState;return j(e)||e!=="hidden"},ln=e=>(Tt&&document.addEventListener("visibilitychange",e),jt("focus",e),()=>{Tt&&document.removeEventListener("visibilitychange",e),Et("focus",e)}),dn=e=>{const t=()=>{Ot=!0,e()},r=()=>{Ot=!1};return jt("online",t),jt("offline",r),()=>{Et("online",t),Et("offline",r)}},cn={isOnline:sn,isVisible:un},fn={initFocus:ln,initReconnect:dn},Vt=!Dt.useId,Ee=!Re||"Deno"in window,vn=e=>on()?window.requestAnimationFrame(e):setTimeout(e,1),Le=Ee?D.useEffect:D.useLayoutEffect,Ue=typeof navigator<"u"&&navigator.connection,At=!Ee&&Ue&&(["slow-2g","2g"].includes(Ue.effectiveType)||Ue.saveData),Nt=e=>{if(re(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?je(e):"",[e,t]};let hn=0;const Ct=()=>++hn,ur=0,lr=1,dr=2,mn=3;var Oe={__proto__:null,ERROR_REVALIDATE_EVENT:mn,FOCUS_EVENT:ur,MUTATE_EVENT:dr,RECONNECT_EVENT:lr};async function cr(...e){const[t,r,a,i]=e,n=le({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let d=n.populateCache;const v=n.rollbackOnError;let s=n.optimisticData;const c=n.revalidate!==!1,m=b=>typeof v=="function"?v(b):v!==!1,x=n.throwOnError;if(re(r)){const b=r,w=[],O=t.keys();for(const p of O)!/^\$(inf|sub)\$/.test(p)&&b(t.get(p)._k)&&w.push(p);return Promise.all(w.map(y))}return y(r);async function y(b){const[w]=Nt(b);if(!w)return;const[O,p]=sr(t,w),[u,h,f,l]=te.get(t),_=()=>{const N=u[w];return c&&(delete f[w],delete l[w],N&&N[0])?N[0](dr).then(()=>O().data):O().data};if(e.length<3)return _();let g=a,T;const M=Ct();h[w]=[M,0];const F=!j(s),I=O(),z=I.data,ae=I._c,H=j(ae)?z:ae;if(F&&(s=re(s)?s(H,z):s,p({data:s,_c:H})),re(g))try{g=g(H)}catch(N){T=N}if(g&&an(g))if(g=await g.catch(N=>{T=N}),M!==h[w][0]){if(T)throw T;return g}else T&&F&&m(T)&&(d=!0,p({data:H,_c:V}));if(d&&!T)if(re(d)){const N=d(g,H);p({data:N,error:V,_c:V})}else p({data:g,error:V,_c:V});if(h[w][1]=Ct(),Promise.resolve(_()).then(()=>{p({_c:V})}),T){if(x)throw T;return}return g}}const Bt=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},_n=(e,t)=>{if(!te.has(e)){const r=le(fn,t),a={},i=cr.bind(V,e);let n=se;const d={},v=(m,x)=>{const y=d[m]||[];return d[m]=y,y.push(x),()=>y.splice(y.indexOf(x),1)},s=(m,x,y)=>{e.set(m,x);const b=d[m];if(b)for(const w of b)w(x,y)},c=()=>{if(!te.has(e)&&(te.set(e,[a,{},{},{},i,s,v]),!Ee)){const m=r.initFocus(setTimeout.bind(V,Bt.bind(V,a,ur))),x=r.initReconnect(setTimeout.bind(V,Bt.bind(V,a,lr)));n=()=>{m&&m(),x&&x(),te.delete(e)}}};return c(),[e,i,c,n]}return[e,te.get(e)[4]]},pn=(e,t,r,a,i)=>{const n=r.errorRetryCount,d=i.retryCount,v=~~((Math.random()+.5)*(1<<(d<8?d:8)))*r.errorRetryInterval;!j(n)&&d>n||setTimeout(a,v,i)},gn=(e,t)=>je(e)==je(t),[fr,xn]=_n(new Map),wn=le({onLoadingSlow:se,onSuccess:se,onError:se,onErrorRetry:pn,onDiscarded:se,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:At?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:At?5e3:3e3,compare:gn,isPaused:()=>!1,cache:fr,mutate:xn,fallback:{}},cn),yn=(e,t)=>{const r=le(e,t);if(t){const{use:a,fallback:i}=e,{use:n,fallback:d}=t;a&&n&&(r.use=a.concat(n)),i&&d&&(r.fallback=le(i,d))}return r},bn=D.createContext({}),Tn="$inf$",vr=Re&&window.__SWR_DEVTOOLS_USE__,On=vr?window.__SWR_DEVTOOLS_USE__:[],jn=()=>{vr&&(window.__SWR_DEVTOOLS_REACT__=Dt)},En=e=>re(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Cn=()=>le(wn,D.useContext(bn)),Dn=e=>(t,r,a)=>e(t,r&&((...n)=>{const[d]=Nt(t),[,,,v]=te.get(fr);if(d.startsWith(Tn))return r(...n);const s=v[d];return j(s)?r(...n):(delete v[d],s)}),a),Mn=On.concat(Dn),kn=e=>function(...r){const a=Cn(),[i,n,d]=En(r),v=yn(a,d);let s=e;const{use:c}=v,m=(c||[]).concat(Mn);for(let x=m.length;x--;)s=m[x](s);return s(i,n||v.fetcher||null,v)},Sn=(e,t,r)=>{const a=t[e]||(t[e]=[]);return a.push(r),()=>{const i=a.indexOf(r);i>=0&&(a[i]=a[a.length-1],a.pop())}};jn();const Ht=Dt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),$e={dedupe:!0},Rn=(e,t,r)=>{const{cache:a,compare:i,suspense:n,fallbackData:d,revalidateOnMount:v,revalidateIfStale:s,refreshInterval:c,refreshWhenHidden:m,refreshWhenOffline:x,keepPreviousData:y}=r,[b,w,O,p]=te.get(a),[u,h]=Nt(e),f=D.useRef(!1),l=D.useRef(!1),_=D.useRef(u),g=D.useRef(t),T=D.useRef(r),M=()=>T.current,F=()=>M().isVisible()&&M().isOnline(),[I,z,ae,H]=sr(a,u),N=D.useRef({}).current,we=j(d)?r.fallback[u]:d,he=(E,C)=>{for(const W in N){const S=W;if(S==="data"){if(!i(E[S],C[S])&&(!j(E[S])||!i(oe,C[S])))return!1}else if(C[S]!==E[S])return!1}return!0},me=D.useMemo(()=>{const E=!u||!t?!1:j(v)?M().isPaused()||n?!1:j(s)?!0:s:v,C=U=>{const Z=le(U);return delete Z._k,E?{isValidating:!0,isLoading:!0,...Z}:Z},W=I(),S=H(),k=C(W),L=W===S?k:C(S);let R=k;return[()=>{const U=C(I());return he(U,R)?(R.data=U.data,R.isLoading=U.isLoading,R.isValidating=U.isValidating,R.error=U.error,R):(R=U,U)},()=>L]},[a,u]),G=_r.useSyncExternalStore(D.useCallback(E=>ae(u,(C,W)=>{he(W,C)||E()}),[a,u]),me[0],me[1]),_e=!f.current,ye=b[u]&&b[u].length>0,Q=G.data,X=j(Q)?we:Q,ne=G.error,pe=D.useRef(X),oe=y?j(Q)?pe.current:Q:X,De=ye&&!j(ne)?!1:_e&&!j(v)?v:M().isPaused()?!1:n?j(X)?!1:s:j(X)||s,ie=!!(u&&t&&_e&&De),de=j(G.isValidating)?ie:G.isValidating,be=j(G.isLoading)?ie:G.isLoading,K=D.useCallback(async E=>{const C=g.current;if(!u||!C||l.current||M().isPaused())return!1;let W,S,k=!0;const L=E||{},R=!O[u]||!L.dedupe,U=()=>Vt?!l.current&&u===_.current&&f.current:u===_.current,Z={isValidating:!1,isLoading:!1},Wt=()=>{z(Z)},qt=()=>{const B=O[u];B&&B[1]===S&&delete O[u]},It={isValidating:!0};j(I().data)&&(It.isLoading=!0);try{if(R&&(z(It),r.loadingTimeout&&j(I().data)&&setTimeout(()=>{k&&U()&&M().onLoadingSlow(u,r)},r.loadingTimeout),O[u]=[C(h),Ct()]),[W,S]=O[u],W=await W,R&&setTimeout(qt,r.dedupingInterval),!O[u]||O[u][1]!==S)return R&&U()&&M().onDiscarded(u),!1;Z.error=V;const B=w[u];if(!j(B)&&(S<=B[0]||S<=B[1]||B[1]===0))return Wt(),R&&U()&&M().onDiscarded(u),!1;const ee=I().data;Z.data=i(ee,W)?ee:W,R&&U()&&M().onSuccess(W,u,r)}catch(B){qt();const ee=M(),{shouldRetryOnError:Pe}=ee;ee.isPaused()||(Z.error=B,R&&U()&&(ee.onError(B,u,ee),(Pe===!0||re(Pe)&&Pe(B))&&F()&&ee.onErrorRetry(B,u,ee,hr=>{const Ne=b[u];Ne&&Ne[0]&&Ne[0](Oe.ERROR_REVALIDATE_EVENT,hr)},{retryCount:(L.retryCount||0)+1,dedupe:!0})))}return k=!1,Wt(),!0},[u,a]),ce=D.useCallback((...E)=>cr(a,_.current,...E),[]);if(Le(()=>{g.current=t,T.current=r,j(Q)||(pe.current=Q)}),Le(()=>{if(!u)return;const E=K.bind(V,$e);let C=0;const S=Sn(u,b,(k,L={})=>{if(k==Oe.FOCUS_EVENT){const R=Date.now();M().revalidateOnFocus&&R>C&&F()&&(C=R+M().focusThrottleInterval,E())}else if(k==Oe.RECONNECT_EVENT)M().revalidateOnReconnect&&F()&&E();else{if(k==Oe.MUTATE_EVENT)return K();if(k==Oe.ERROR_REVALIDATE_EVENT)return K(L)}});return l.current=!1,_.current=u,f.current=!0,z({_k:h}),De&&(j(X)||Ee?E():vn(E)),()=>{l.current=!0,S()}},[u]),Le(()=>{let E;function C(){const S=re(c)?c(I().data):c;S&&E!==-1&&(E=setTimeout(W,S))}function W(){!I().error&&(m||M().isVisible())&&(x||M().isOnline())?K($e).then(C):C()}return C(),()=>{E&&(clearTimeout(E),E=-1)}},[c,m,x,u]),D.useDebugValue(oe),n&&j(X)&&u){if(!Vt&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");g.current=t,T.current=r,l.current=!1;const E=p[u];if(!j(E)){const C=ce(E);Ht(C)}if(j(ne)){const C=K($e);j(oe)||(C.status="fulfilled",C.value=!0),Ht(C)}else throw ne}return{mutate:ce,get data(){return N.data=!0,oe},get error(){return N.error=!0,ne},get isValidating(){return N.isValidating=!0,de},get isLoading(){return N.isLoading=!0,be}}},zt=kn(Rn);class Pn extends Error{constructor({message:t,status:r,data:a}){super(t),this.name="TwitterApiError",this.status=r,this.data=a}}const Nn=zt.default||zt,Wn="https://react-tweet.vercel.app";async function qn([e,t]){const r=await fetch(e,t),a=await r.json();if(r.ok)return a.data||null;throw new Pn({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:a,status:r.status})}const In=(e,t,r)=>{const{isLoading:a,data:i,error:n}=Nn(()=>t||e?[t||e&&`${Wn}/api/tweet/${e}`,r]:null,qn,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(a||i===void 0&&!n),data:i,error:n}},Ln=()=>{const[e,t]=D.useState(!1);return D.useEffect(()=>t(!0),[]),e},Un="_root_i24yn_1",$n={root:Un},Fn=({tweet:e})=>{const t=Ln(),r=typeof window<"u"&&t?new Date(e.created_at):null;return r?o.jsx("a",{className:$n.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":Yt(r,"h:mm a · MMM d, y"),children:o.jsx("time",{dateTime:r.toISOString(),children:Yt(r,"h:mm a · MMM d, y")})}):null},Yn="_info_19qcj_1",Vn="_infoLink_19qcj_10",An="_infoIcon_19qcj_30",Fe={info:Yn,infoLink:Vn,infoIcon:An},Bn=({tweet:e})=>o.jsxs("div",{className:Fe.info,children:[o.jsx(Fn,{tweet:e}),o.jsx("a",{className:Fe.infoLink,href:"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:o.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Fe.infoIcon,children:o.jsx("g",{children:o.jsx("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]}),Hn="_actions_n2anf_1",zn="_like_n2anf_13",Gn="_reply_n2anf_14",Qn="_copy_n2anf_15",Xn="_likeIconWrapper_n2anf_27",Jn="_likeCount_n2anf_30",Kn="_replyIconWrapper_n2anf_35",Zn="_copyIconWrapper_n2anf_36",eo="_likeIcon_n2anf_27",to="_replyIcon_n2anf_35",ro="_copyIcon_n2anf_36",ao="_replyText_n2anf_56",no="_copyText_n2anf_57",Y={actions:Hn,like:zn,reply:Gn,copy:Qn,likeIconWrapper:Xn,likeCount:Jn,replyIconWrapper:Kn,copyIconWrapper:Zn,likeIcon:eo,replyIcon:to,copyIcon:ro,replyText:ao,copyText:no},oo=({tweet:e})=>{const[t,r]=D.useState(!1),[a,i]=D.useState(!1),n=()=>{navigator.clipboard.writeText(e.url),r(!0)};return D.useEffect(()=>{if(t){const d=setTimeout(()=>{r(!1),i(!0)},6e3);return()=>clearTimeout(d)}},[t]),o.jsxs("button",{type:"button",className:Y.copy,"aria-label":"Copy link",onClick:n,children:[o.jsx("div",{className:Y.copyIconWrapper,children:t?o.jsx("svg",{viewBox:"0 0 24 24",className:Y.copyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):o.jsx("svg",{viewBox:"0 0 24 24",className:Y.copyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),o.jsx("span",{className:Y.copyText,children:t?"Copied!":a?"Copy link to Tweet":"Copy link"})]})},io=({tweet:e})=>{const t=Ve(e.favorite_count);return o.jsxs("div",{className:Y.actions,children:[o.jsxs("a",{className:Y.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[o.jsx("div",{className:Y.likeIconWrapper,children:o.jsx("svg",{viewBox:"0 0 24 24",className:Y.likeIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),o.jsx("span",{className:Y.likeCount,children:t})]}),o.jsxs("a",{className:Y.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[o.jsx("div",{className:Y.replyIconWrapper,children:o.jsx("svg",{viewBox:"0 0 24 24",className:Y.replyIcon,"aria-hidden":"true",children:o.jsx("g",{children:o.jsx("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),o.jsx("span",{className:Y.replyText,children:"Reply"})]}),o.jsx(oo,{tweet:e})]})},so="_replies_1cutb_1",uo="_link_1cutb_4",lo="_text_1cutb_23",Ye={replies:so,link:uo,text:lo},co=({tweet:e})=>o.jsx("div",{className:Ye.replies,children:o.jsx("a",{className:Ye.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:o.jsx("span",{className:Ye.text,children:e.conversation_count===0?"Read more on Twitter":e.conversation_count===1?`Read ${Ve(e.conversation_count)} reply`:`Read ${Ve(e.conversation_count)} replies`})})}),fo="_root_q5799_1",vo="_article_q5799_16",Gt={root:fo,article:vo},ho=({tweet:e,children:t})=>o.jsx("div",{className:Gt.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:o.jsx("article",{className:Gt.article,children:t})}),mo="_header_r31i5_1",_o="_avatar_r31i5_11",po="_avatarSquare_r31i5_17",go="_author_r31i5_21",xo="_authorText_r31i5_26",wo="_username_r31i5_33",fe={header:mo,avatar:_o,avatarSquare:po,author:go,authorText:xo,username:wo},yo=({tweet:e})=>{const{user:t}=e;return o.jsxs("div",{className:fe.header,children:[o.jsx("a",{href:e.url,className:fe.avatar,target:"_blank",rel:"noopener noreferrer",children:o.jsx("div",{className:ue(fe.avatarOverflow,t.profile_image_shape==="Square"&&fe.avatarSquare),children:o.jsx(Qt,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),o.jsxs("div",{className:fe.author,children:[o.jsx("div",{className:fe.authorText,children:o.jsx("span",{title:t.name,children:t.name})}),o.jsx(Xt,{user:t}),o.jsx("div",{className:fe.username,children:o.jsxs("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},bo="_root_175ot_1",To={root:bo},Oo=({tweet:e})=>o.jsx("p",{className:To.root,children:e.entities.map((t,r)=>o.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r))}),jo=({tweet:e})=>{var t;return o.jsxs(ho,{tweet:e,children:[o.jsx(yo,{tweet:e}),o.jsx(Oo,{tweet:e}),(t=e.mediaDetails)!=null&&t.length?o.jsx(Zt,{quoted:!0,tweet:e}):null]})},Eo=({tweet:e,components:t})=>{var r;const a=D.useMemo(()=>sa(e),[e]);return o.jsxs(kt,{children:[o.jsx(Yr,{tweet:a,components:t}),a.in_reply_to_status_id_str&&o.jsx(Br,{tweet:a}),o.jsx(Jr,{tweet:a}),(r=a.mediaDetails)!=null&&r.length?o.jsx(Zt,{tweet:a,components:t}):null,a.quoted_tweet&&o.jsx(jo,{tweet:a.quoted_tweet}),o.jsx(Bn,{tweet:a}),o.jsx(io,{tweet:a}),o.jsx(co,{tweet:a})]})},Co="_root_16yxa_1",Do={root:Co},Mo=e=>o.jsx(kt,{children:o.jsxs("div",{className:Do.root,children:[o.jsx("h3",{children:"Tweet not found"}),o.jsx("p",{children:"The embedded tweet could not be found…"})]})}),ko="_skeleton_oi7hr_1",So="_loading_oi7hr_1",Ro={skeleton:ko,loading:So},Se=({style:e})=>o.jsx("span",{className:Ro.skeleton,style:e}),Po="_root_17qqv_1",No={root:Po},Wo=()=>o.jsxs(kt,{className:No.root,children:[o.jsx(Se,{style:{height:"3rem",marginBottom:"0.75rem"}}),o.jsx(Se,{style:{height:"6rem",margin:"0.5rem 0"}}),o.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),o.jsx(Se,{style:{height:"2rem"}}),o.jsx(Se,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),Ao=({id:e,apiUrl:t,fallback:r=o.jsx(Wo,{}),components:a,fetchOptions:i,onError:n})=>{const{data:d,error:v,isLoading:s}=In(e,t,i);if(s)return r;if(v||!d){var c;const m=((c=a)==null?void 0:c.TweetNotFound)||Mo;return o.jsx(m,{error:n?n(v):v})}return o.jsx(Eo,{tweet:d,components:a})};export{Eo as EmbeddedTweet,jo as QuotedTweet,Oo as QuotedTweetBody,ho as QuotedTweetContainer,yo as QuotedTweetHeader,Ao as Tweet,io as TweetActions,oo as TweetActionsCopy,Jr as TweetBody,kt as TweetContainer,Yr as TweetHeader,Br as TweetInReplyTo,Bn as TweetInfo,Fn as TweetInfoCreatedAt,Gr as TweetLink,Zt as TweetMedia,Ta as TweetMediaVideo,Mo as TweetNotFound,co as TweetReplies,Wo as TweetSkeleton,gr as Verified,xr as VerifiedBusiness,wr as VerifiedGovernment,sa as enrichTweet,Ve as formatNumber,Kt as getMediaUrl,oa as getMp4Video,na as getMp4Videos,Ln as useMounted,In as useTweet}; diff --git a/assets/index.demo-m9tNHPa7.js b/assets/index.demo-DOj37Sa0.js similarity index 84% rename from assets/index.demo-m9tNHPa7.js rename to assets/index.demo-DOj37Sa0.js index 890d19d055..797dd04ac7 100644 --- a/assets/index.demo-m9tNHPa7.js +++ b/assets/index.demo-DOj37Sa0.js @@ -1 +1 @@ -import{j as s}from"./index-Qg-bAq5J.js";import{R as t,F as e}from"./RichLink-sK7aRcsj.js";import"./helper-Oi49T1hx.js";import"./env-jTYMx4r5.js";const i=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(t,{source:"GH",name:"Innei"}),s.jsx(t,{source:"TW",name:"__oQuery"})]});i.meta={title:"Rich Link"};const o=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(e,{source:"GH"}),s.jsx(e,{source:"TW"}),s.jsx(e,{source:"TG"}),s.jsx(e,{source:"BL"})]});o.meta={title:"Favicons with source"};const c=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(e,{href:"https://t.me/"}),s.jsx(e,{href:"https://x.com"}),s.jsx(e,{href:"https://twitter.com"}),s.jsx(e,{href:"https://bilibili.com"})]});c.meta={title:"Favicons with link"};export{o as FaviconsDemo,c as FaviconsDemo2,i as RichLinkDemo}; +import{j as s}from"./index-HRfeE_7B.js";import{R as t,F as e}from"./RichLink-6jHOm4uG.js";import"./helper-Oi49T1hx.js";import"./env-jTYMx4r5.js";const i=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(t,{source:"GH",name:"Innei"}),s.jsx(t,{source:"TW",name:"__oQuery"})]});i.meta={title:"Rich Link"};const o=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(e,{source:"GH"}),s.jsx(e,{source:"TW"}),s.jsx(e,{source:"TG"}),s.jsx(e,{source:"BL"})]});o.meta={title:"Favicons with source"};const c=()=>s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(e,{href:"https://t.me/"}),s.jsx(e,{href:"https://x.com"}),s.jsx(e,{href:"https://twitter.com"}),s.jsx(e,{href:"https://bilibili.com"})]});c.meta={title:"Favicons with link"};export{o as FaviconsDemo,c as FaviconsDemo2,i as RichLinkDemo}; diff --git a/assets/index.demo-pf7SmPXF.js b/assets/index.demo-R6tE8TvC.js similarity index 99% rename from assets/index.demo-pf7SmPXF.js rename to assets/index.demo-R6tE8TvC.js index f09bacfd1d..8afe393548 100644 --- a/assets/index.demo-pf7SmPXF.js +++ b/assets/index.demo-R6tE8TvC.js @@ -1 +1 @@ -import{r as R,R as ot,j as F}from"./index-Qg-bAq5J.js";import{p as H,f as S,n as E,j as we,k as Tt,v as Re,r as ys,l as Me,o as vs,h as N,q as xs,t as Ps,w as D,x as V,y as Vt,z as Ee,A as X,B as je,C as st,P as Ts,D as rt,E as kt,F as Vs,L as Ss,G as Cs,H as Ds,I as Be,J as Fe,i as W,e as it,K as ke,N as bs,O as dt,Q as ft,R as It,T as St,U as Ls,V as As,W as $,X as ws,Y as Ie,Z as Rs,_ as Ct,$ as Ms,a0 as Es,a1 as Et,a2 as js,a3 as Oe,a4 as Ue,a5 as Bs,a6 as Fs,a7 as Ne,a8 as ks,a9 as Is,aa as Os,ab as Us,ac as Ns,ad as Gs,ae as qs,af as Hs,ag as Ws,ah as zs,ai as Ks,aj as Ot,ak as _s,S as Ge}from"./spring-hZ91AlwC.js";import{C as qe}from"./Collapse-gGRmuqb3.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";function M(e,t,s,i={passive:!0}){return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s)}const He=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function at(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const $s=e=>t=>He(t)&&e(t,at(t));function j(e,t,s,i){return M(e,t,$s(s),i)}function We(e){let t=null;return()=>{const s=()=>{t=null};return t===null?(t=e,s):!1}}const Ut=We("dragHorizontal"),Nt=We("dragVertical");function ze(e){let t=!1;if(e==="y")t=Nt();else if(e==="x")t=Ut();else{const s=Ut(),i=Nt();s&&i?t=()=>{s(),i()}:(s&&s(),i&&i())}return t}function Ke(){const e=ze(!0);return e?(e(),!1):!0}class k{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gt(e,t){const s="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End"),o=(u,n)=>{if(u.type==="touch"||Ke())return;const r=e.getProps();e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",t),r[i]&&S.update(()=>r[i](u,n))};return j(e.current,s,o,{passive:!e.getProps()[i]})}class Ys extends k{mount(){this.unmount=H(Gt(this.node,!0),Gt(this.node,!1))}unmount(){}}class Xs extends k{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=H(M(this.node.current,"focus",()=>this.onFocus()),M(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _e=(e,t)=>t?e===t?!0:_e(e,t.parentElement):!1;function pt(e,t){if(!t)return;const s=new PointerEvent("pointer"+e);t(s,at(s))}class Zs extends k{constructor(){super(...arguments),this.removeStartListeners=E,this.removeEndListeners=E,this.removeAccessibleListeners=E,this.startPointerPress=(t,s)=>{if(this.removeEndListeners(),this.isPressing)return;const i=this.node.getProps(),u=j(window,"pointerup",(r,a)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();S.update(()=>{_e(this.node.current,r.target)?l&&l(r,a):c&&c(r,a)})},{passive:!(i.onTap||i.onPointerUp)}),n=j(window,"pointercancel",(r,a)=>this.cancelPress(r,a),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=H(u,n),this.startPress(t,s)},this.startAccessiblePress=()=>{const t=u=>{if(u.key!=="Enter"||this.isPressing)return;const n=r=>{r.key!=="Enter"||!this.checkPressEnd()||pt("up",(a,l)=>{const{onTap:c}=this.node.getProps();c&&S.update(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=M(this.node.current,"keyup",n),pt("down",(r,a)=>{this.startPress(r,a)})},s=M(this.node.current,"keydown",t),i=()=>{this.isPressing&&pt("cancel",(u,n)=>this.cancelPress(u,n))},o=M(this.node.current,"blur",i);this.removeAccessibleListeners=H(s,o)}}startPress(t,s){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&S.update(()=>i(t,s))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ke()}cancelPress(t,s){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&S.update(()=>i(t,s))}mount(){const t=this.node.getProps(),s=j(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=M(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=H(s,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Dt=new WeakMap,mt=new WeakMap,Qs=e=>{const t=Dt.get(e.target);t&&t(e)},Js=e=>{e.forEach(Qs)};function ti({root:e,...t}){const s=e||document;mt.has(s)||mt.set(s,{});const i=mt.get(s),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(Js,{root:e,...t})),i[o]}function ei(e,t,s){const i=ti(t);return Dt.set(e,s),i.observe(e),()=>{Dt.delete(e),i.unobserve(e)}}const si={some:0,all:1};class ii extends k{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:i,amount:o="some",once:u}=t,n={root:s?s.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:si[o]},r=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,u&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=l?c:h;d&&d(a)};return ei(this.node.current,n,r)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(ni(t,s))&&this.startObserver()}unmount(){}}function ni({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const oi={inView:{Feature:ii},tap:{Feature:Zs},focus:{Feature:Xs},hover:{Feature:Ys}};function $e(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let i=0;iPromise.all(t.map(({animation:s,options:i})=>vs(e,s,i)))}function ui(e){let t=li(e);const s=hi();let i=!0;const o=(a,l)=>{const c=ys(e,l);if(c){const{transition:h,transitionEnd:d,...f}=c;a={...a,...f,...d}}return a};function u(a){t=a(e)}function n(a,l){const c=e.getProps(),h=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let x=0;xm&&w;const Bt=Array.isArray(v)?v:[v];let K=Bt.reduce(o,{});lt===!1&&(K={});const{prevResolvedValues:Ft={}}=g,gs={...Ft,...K},ct=C=>{ut=!0,f.delete(C),g.needsAnimating[C]=!0};for(const C in gs){const _=K[C],ht=Ft[C];p.hasOwnProperty(C)||(_!==ht?Tt(_)&&Tt(ht)?!$e(_,ht)||jt?ct(C):g.protectedKeys[C]=!0:_!==void 0?ct(C):f.add(C):_!==void 0&&f.has(C)?ct(C):g.protectedKeys[C]=!0)}g.prevProp=v,g.prevResolvedValues=K,g.isActive&&(p={...p,...K}),i&&e.blockInitialAnimation&&(ut=!1),ut&&!J&&d.push(...Bt.map(C=>({animation:C,options:{type:P,...a}})))}if(f.size){const x={};f.forEach(P=>{const g=e.getBaseTarget(P);g!==void 0&&(x[P]=g)}),d.push({animation:x})}let y=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?t(d):Promise.resolve()}function r(a,l,c){var h;if(s[a].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,l)}),s[a].isActive=l;const d=n(c,a);for(const f in s)s[f].protectedKeys={};return d}return{animateChanges:n,setActive:r,setAnimateFunction:u,getState:()=>s}}function ci(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$e(t,e):!1}function I(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hi(){return{animate:I(!0),whileInView:I(),whileHover:I(),whileTap:I(),whileDrag:I(),whileFocus:I(),exit:I()}}class di extends k{constructor(t){super(t),t.animationState||(t.animationState=ui(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),we(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){}}let fi=0;class pi extends k{constructor(){super(...arguments),this.id=fi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s,custom:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const u=this.node.animationState.setActive("exit",!t,{custom:i??this.node.getProps().custom});s&&!t&&u.then(()=>s(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const mi={animation:{Feature:di},exit:{Feature:pi}},qt=(e,t)=>Math.abs(e-t);function gi(e,t){const s=qt(e.x,t.x),i=qt(e.y,t.y);return Math.sqrt(s**2+i**2)}class Ye{constructor(t,s,{transformPagePoint:i,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=yt(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=gi(c.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:f}=c,{timestamp:p}=D;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;h||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,h)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=gt(h,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(c,h)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=yt(c.type==="pointercancel"?this.lastMoveEventInfo:gt(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,p),f&&f(c,p)},!He(t))return;this.handlers=s,this.transformPagePoint=i,this.contextWindow=o||window;const u=at(t),n=gt(u,this.transformPagePoint),{point:r}=n,{timestamp:a}=D;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=s;l&&l(t,yt(n,this.history)),this.removeListeners=H(j(this.contextWindow,"pointermove",this.handlePointerMove),j(this.contextWindow,"pointerup",this.handlePointerUp),j(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),N(this.updatePoint)}}function gt(e,t){return t?{point:t(e.point)}:e}function Ht(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yt({point:e},t){return{point:e,delta:Ht(e,Xe(t)),offset:Ht(e,yi(t)),velocity:vi(t,.1)}}function yi(e){return e[0]}function Xe(e){return e[e.length-1]}function vi(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,i=null;const o=Xe(e);for(;s>=0&&(i=e[s],!(o.timestamp-i.timestamp>xs(t)));)s--;if(!i)return{x:0,y:0};const u=Ps(o.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const n={x:(o.x-i.x)/u,y:(o.y-i.y)/u};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}function b(e){return e.max-e.min}function bt(e,t=0,s=.01){return Math.abs(e-t)<=s}function Wt(e,t,s,i=.5){e.origin=i,e.originPoint=V(t.min,t.max,e.origin),e.scale=b(s)/b(t),(bt(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=V(s.min,s.max,e.origin)-e.originPoint,(bt(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Z(e,t,s,i){Wt(e.x,t.x,s.x,i?i.originX:void 0),Wt(e.y,t.y,s.y,i?i.originY:void 0)}function zt(e,t,s){e.min=s.min+t.min,e.max=e.min+b(t)}function xi(e,t,s){zt(e.x,t.x,s.x),zt(e.y,t.y,s.y)}function Kt(e,t,s){e.min=t.min-s.min,e.max=e.min+b(t)}function Q(e,t,s){Kt(e.x,t.x,s.x),Kt(e.y,t.y,s.y)}function Pi(e,{min:t,max:s},i){return t!==void 0&&es&&(e=i?V(s,e,i.max):Math.min(e,s)),e}function _t(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function Ti(e,{top:t,left:s,bottom:i,right:o}){return{x:_t(e.x,s,o),y:_t(e.y,t,i)}}function $t(e,t){let s=t.min-e.min,i=t.max-e.max;return t.max-t.mini?s=Vt(t.min,t.max-i,e.min):i>o&&(s=Vt(e.min,e.max-o,t.min)),Ee(0,1,s)}function Ci(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Lt=.35;function Di(e=Lt){return e===!1?e=0:e===!0&&(e=Lt),{x:Yt(e,"left","right"),y:Yt(e,"top","bottom")}}function Yt(e,t,s){return{min:Xt(e,t),max:Xt(e,s)}}function Xt(e,t){return typeof e=="number"?e:e[t]||0}const Zt=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:Zt(),y:Zt()}),Qt=()=>({min:0,max:0}),T=()=>({x:Qt(),y:Qt()});function A(e){return[e("x"),e("y")]}function Ze({top:e,left:t,right:s,bottom:i}){return{x:{min:t,max:s},y:{min:e,max:i}}}function bi({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Li(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}function vt(e){return e===void 0||e===1}function At({scale:e,scaleX:t,scaleY:s}){return!vt(e)||!vt(t)||!vt(s)}function O(e){return At(e)||Qe(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Qe(e){return Jt(e.x)||Jt(e.y)}function Jt(e){return e&&e!=="0%"}function nt(e,t,s){const i=e-s,o=t*i;return s+o}function te(e,t,s,i,o){return o!==void 0&&(e=nt(e,o,i)),nt(e,s,i)+t}function wt(e,t=0,s=1,i,o){e.min=te(e.min,t,s,i,o),e.max=te(e.max,t,s,i,o)}function Je(e,{x:t,y:s}){wt(e.x,t.translate,t.scale,t.originPoint),wt(e.y,s.translate,s.scale,s.originPoint)}function Ai(e,t,s,i=!1){const o=s.length;if(!o)return;t.x=t.y=1;let u,n;for(let r=0;r1.0000000000001||e<.999999999999?e:1}function B(e,t){e.min=e.min+t,e.max=e.max+t}function se(e,t,[s,i,o]){const u=t[o]!==void 0?t[o]:.5,n=V(e.min,e.max,u);wt(e,t[s],t[i],n,t.scale)}const wi=["x","scaleX","originX"],Ri=["y","scaleY","originY"];function q(e,t){se(e.x,t,wi),se(e.y,t,Ri)}function ts(e,t){return Ze(Li(e.getBoundingClientRect(),t))}function Mi(e,t,s){const i=ts(e,s),{scroll:o}=t;return o&&(B(i.x,o.offset.x),B(i.y,o.offset.y)),i}const es=({current:e})=>e?e.ownerDocument.defaultView:null,Ei=new WeakMap;class ji{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=T(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=a=>{this.stopAnimation(),s&&this.snapToCursor(at(a,"page").point)},u=(a,l)=>{const{drag:c,dragPropagation:h,onDragStart:d}=this.getProps();if(c&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ze(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),A(p=>{let m=this.getAxisMotionValue(p).get()||0;if(st.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[p];x&&(m=b(x)*(parseFloat(m)/100))}}this.originPoint[p]=m}),d&&S.update(()=>d(a,l),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},n=(a,l)=>{const{dragPropagation:c,dragDirectionLock:h,onDirectionLock:d,onDrag:f}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:p}=l;if(h&&this.currentDirection===null){this.currentDirection=Bi(p),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,p),this.updateAxis("y",l.point,p),this.visualElement.render(),f&&f(a,l)},r=(a,l)=>this.stop(a,l);this.panSession=new Ye(t,{onSessionStart:o,onStart:u,onMove:n,onSessionEnd:r},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:es(this.visualElement)})}stop(t,s){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u&&S.update(()=>u(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,i){const{drag:o}=this.getProps();if(!i||!tt(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=Pi(n,this.constraints[t],this.elastic[t])),u.set(n)}resolveConstraints(){var t;const{dragConstraints:s,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,u=this.constraints;s&&X(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&o?this.constraints=Ti(o.layoutBox,s):this.constraints=!1,this.elastic=Di(i),u!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&A(n=>{this.getAxisMotionValue(n)&&(this.constraints[n]=Ci(o.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!X(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=Mi(i,o.root,this.visualElement.getTransformPagePoint());let n=Vi(o.layout.layoutBox,u);if(s){const r=s(bi(n));this.hasMutatedConstraints=!!r,r&&(n=Ze(r))}return n}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:o,dragTransition:u,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=A(c=>{if(!tt(c,s,this.currentDirection))return;let h=a&&a[c]||{};n&&(h={min:0,max:0});const d=o?200:1e6,f=o?40:1e7,p={type:"inertia",velocity:i?t[c]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...u,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(l).then(r)}startAxisValueAnimation(t,s){const i=this.getAxisMotionValue(t);return i.start(je(t,i,0,s))}stopAnimation(){A(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const s="_drag"+t.toUpperCase(),i=this.visualElement.getProps(),o=i[s];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){A(s=>{const{drag:i}=this.getProps();if(!tt(s,i,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(s);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[s];u.set(t[s]-V(n,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!X(s)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};A(n=>{const r=this.getAxisMotionValue(n);if(r){const a=r.get();o[n]=Si({min:a,max:a},this.constraints[n])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),A(n=>{if(!tt(n,t,null))return;const r=this.getAxisMotionValue(n),{min:a,max:l}=this.constraints[n];r.set(V(a,l,o[n]))})}addListeners(){if(!this.visualElement.current)return;Ei.set(this.visualElement,this);const t=this.visualElement.current,s=j(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();X(a)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),i();const n=M(window,"resize",()=>this.scalePositionWithinConstraints()),r=o.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(A(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=a[c].translate,h.set(h.get()+a[c].translate))}),this.visualElement.render())});return()=>{n(),s(),u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:n=Lt,dragMomentum:r=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:n,dragMomentum:r}}}function tt(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function Bi(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Fi extends k{constructor(t){super(t),this.removeGroupControls=E,this.removeListeners=E,this.controls=new ji(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E}unmount(){this.removeGroupControls(),this.removeListeners()}}const ie=e=>(t,s)=>{e&&S.update(()=>e(t,s))};class ki extends k{constructor(){super(...arguments),this.removePointerDownListener=E}onPointerDown(t){this.session=new Ye(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:es(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:ie(t),onStart:ie(s),onMove:i,onEnd:(u,n)=>{delete this.session,o&&S.update(()=>o(u,n))}}}mount(){this.removePointerDownListener=j(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ii(){const e=R.useContext(Ts);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:s,register:i}=e,o=R.useId();return R.useEffect(()=>i(o),[]),!t&&s?[!1,()=>s&&s(o)]:[!0]}const et={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ne(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Y={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(rt.test(e))e=parseFloat(e);else return e;const s=ne(e,t.target.x),i=ne(e,t.target.y);return`${s}% ${i}%`}},Oi={correct:(e,{treeScale:t,projectionDelta:s})=>{const i=e,o=kt.parse(e);if(o.length>5)return i;const u=kt.createTransformer(e),n=typeof o[0]!="number"?1:0,r=s.x.scale*t.x,a=s.y.scale*t.y;o[0+n]/=r,o[1+n]/=a;const l=V(r,a,.5);return typeof o[2+n]=="number"&&(o[2+n]/=l),typeof o[3+n]=="number"&&(o[3+n]/=l),u(o)}};class Ui extends ot.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i,layoutId:o}=this.props,{projection:u}=t;Vs(Ni),u&&(s.group&&s.group.add(u),i&&i.register&&o&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),et.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:i,drag:o,isPresent:u}=this.props,n=i.projection;return n&&(n.isPresent=u,o||t.layoutDependency!==s||s===void 0?n.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?n.promote():n.relegate()||S.postRender(()=>{const r=n.getStack();(!r||!r.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ss(e){const[t,s]=Ii(),i=R.useContext(Ss);return ot.createElement(Ui,{...e,layoutGroup:i,switchLayoutGroup:R.useContext(Cs),isPresent:t,safeToRemove:s})}const Ni={borderRadius:{...Y,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomLeftRadius:Y,borderBottomRightRadius:Y,boxShadow:Oi},is=["TopLeft","TopRight","BottomLeft","BottomRight"],Gi=is.length,oe=e=>typeof e=="string"?parseFloat(e):e,re=e=>typeof e=="number"||rt.test(e);function qi(e,t,s,i,o,u){o?(e.opacity=V(0,s.opacity!==void 0?s.opacity:1,Hi(i)),e.opacityExit=V(t.opacity!==void 0?t.opacity:1,0,Wi(i))):u&&(e.opacity=V(t.opacity!==void 0?t.opacity:1,s.opacity!==void 0?s.opacity:1,i));for(let n=0;nit?1:s(Vt(e,t,i))}function le(e,t){e.min=t.min,e.max=t.max}function L(e,t){le(e.x,t.x),le(e.y,t.y)}function ue(e,t,s,i,o){return e-=t,e=nt(e,1/s,i),o!==void 0&&(e=nt(e,1/o,i)),e}function zi(e,t=0,s=1,i=.5,o,u=e,n=e){if(st.test(t)&&(t=parseFloat(t),t=V(n.min,n.max,t/100)-n.min),typeof t!="number")return;let r=V(u.min,u.max,i);e===u&&(r-=t),e.min=ue(e.min,t,s,r,o),e.max=ue(e.max,t,s,r,o)}function ce(e,t,[s,i,o],u,n){zi(e,t[s],t[i],t[o],t.scale,u,n)}const Ki=["x","scaleX","originX"],_i=["y","scaleY","originY"];function he(e,t,s,i){ce(e.x,t,Ki,s?s.x:void 0,i?i.x:void 0),ce(e.y,t,_i,s?s.y:void 0,i?i.y:void 0)}function de(e){return e.translate===0&&e.scale===1}function os(e){return de(e.x)&&de(e.y)}function $i(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function rs(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function fe(e){return b(e.x)/b(e.y)}class Yi{constructor(){this.members=[]}add(t){Be(this.members,t),t.scheduleRender()}remove(t){if(Fe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(o=>t===o);if(s===0)return!1;let i;for(let o=s;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,s){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,s&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:i}=t;s.onExitComplete&&s.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pe(e,t,s){let i="";const o=e.x.translate/t.x,u=e.y.translate/t.y;if((o||u)&&(i=`translate3d(${o}px, ${u}px, 0) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),s){const{rotate:a,rotateX:l,rotateY:c}=s;a&&(i+=`rotate(${a}deg) `),l&&(i+=`rotateX(${l}deg) `),c&&(i+=`rotateY(${c}deg) `)}const n=e.x.scale*t.x,r=e.y.scale*t.y;return(n!==1||r!==1)&&(i+=`scale(${n}, ${r})`),i||"none"}const Xi=(e,t)=>e.depth-t.depth;class Zi{constructor(){this.children=[],this.isDirty=!1}add(t){Be(this.children,t),this.isDirty=!0}remove(t){Fe(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xi),this.isDirty=!1,this.children.forEach(t)}}function Qi(e,t){const s=performance.now(),i=({timestamp:o})=>{const u=o-s;u>=t&&(N(i),e(u-t))};return S.read(i,!0),()=>N(i)}function Ji(e){window.MotionDebug&&window.MotionDebug.record(e)}function tn(e){return e instanceof SVGElement&&e.tagName!=="svg"}function en(e,t,s){const i=W(e)?e:it(e);return i.start(je("",i,t,s)),i.animation}const me=["","X","Y","Z"],sn={visibility:"hidden"},ge=1e3;let nn=0;const U={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function as({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(n={},r=t==null?void 0:t()){this.id=nn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,U.totalNodes=U.resolvedTargetDeltas=U.recalculatedProjection=0,this.nodes.forEach(an),this.nodes.forEach(dn),this.nodes.forEach(fn),this.nodes.forEach(ln),Ji(U)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(n,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Qi(d,250),et.hasAnimatedSinceResize&&(et.hasAnimatedSinceResize=!1,this.nodes.forEach(ve))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||vn,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),P=!this.targetLayout||!rs(this.targetLayout,p)||f,g=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const v={...bs(m,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else d||ve(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,N(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pn),this.animationId++)}getTransformTemplate(){const{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(un),this.sharedNodes.forEach(mn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const w=v/1e3;xe(h.x,n.x,w),xe(h.y,n.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Q(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gn(this.relativeTarget,this.relativeTargetOrigin,d,w),g&&$i(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=T()),L(g,this.relativeTarget)),m&&(this.animationValues=c,qi(c,l,this.latestValues,w,P,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(N(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{et.hasAnimatedSinceResize=!0,this.currentAnimation=en(0,ge,{...n,onUpdate:r=>{this.mixTargetDelta(r),n.onUpdate&&n.onUpdate(r)},onComplete:()=>{n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ge),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const n=this.getLead();let{targetWithTransforms:r,target:a,layout:l,latestValues:c}=n;if(!(!r||!a||!l)){if(this!==n&&this.layout&&l&&ls(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||T();const h=b(this.layout.layoutBox.x);a.x.min=n.target.x.min,a.x.max=a.x.min+h;const d=b(this.layout.layoutBox.y);a.y.min=n.target.y.min,a.y.max=a.y.min+d}L(r,a),q(r,c),Z(this.projectionDeltaWithTransform,this.layoutCorrected,r,c)}}registerSharedNode(n,r){this.sharedNodes.has(n)||this.sharedNodes.set(n,new Yi),this.sharedNodes.get(n).add(r);const l=r.options.initialPromotionConfig;r.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(r):void 0})}isLead(){const n=this.getStack();return n?n.lead===this:!0}getLead(){var n;const{layoutId:r}=this.options;return r?((n=this.getStack())===null||n===void 0?void 0:n.lead)||this:this}getPrevLead(){var n;const{layoutId:r}=this.options;return r?(n=this.getStack())===null||n===void 0?void 0:n.prevLead:void 0}getStack(){const{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:r,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})}relegate(){const n=this.getStack();return n?n.relegate(this):!1}resetRotation(){const{visualElement:n}=this.options;if(!n)return;let r=!1;const{latestValues:a}=n;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(r=!0),!r)return;const l={};for(let c=0;c{var r;return(r=n.currentAnimation)===null||r===void 0?void 0:r.stop()}),this.root.nodes.forEach(ye),this.root.sharedNodes.clear()}}}function on(e){e.updateLayout()}function rn(e){var t;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=e.layout,{animationType:u}=e.options,n=s.source!==e.layout.source;u==="size"?A(h=>{const d=n?s.measuredBox[h]:s.layoutBox[h],f=b(d);d.min=i[h].min,d.max=d.min+f}):ls(u,s.layoutBox,i)&&A(h=>{const d=n?s.measuredBox[h]:s.layoutBox[h],f=b(i[h]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const r=G();Z(r,i,s.layoutBox);const a=G();n?Z(a,e.applyTransform(o,!0),s.measuredBox):Z(a,i,s.layoutBox);const l=!os(r);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=T();Q(p,s.layoutBox,d.layoutBox);const m=T();Q(m,i,f.layoutBox),rs(p,m)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:s,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function an(e){U.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ln(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function un(e){e.clearSnapshot()}function ye(e){e.clearMeasurements()}function cn(e){e.isLayoutDirty=!1}function hn(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ve(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dn(e){e.resolveTargetDelta()}function fn(e){e.calcProjection()}function pn(e){e.resetRotation()}function mn(e){e.removeLeadSnapshot()}function xe(e,t,s){e.translate=V(t.translate,0,s),e.scale=V(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Pe(e,t,s,i){e.min=V(t.min,s.min,i),e.max=V(t.max,s.max,i)}function gn(e,t,s,i){Pe(e.x,t.x,s.x,i),Pe(e.y,t.y,s.y,i)}function yn(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vn={duration:.45,ease:[.4,0,.1,1]},Te=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ve=Te("applewebkit/")&&!Te("chrome/")?Math.round:E;function Se(e){e.min=Ve(e.min),e.max=Ve(e.max)}function xn(e){Se(e.x),Se(e.y)}function ls(e,t,s){return e==="position"||e==="preserve-aspect"&&!bt(fe(t),fe(s),.2)}const Pn=as({attachResizeListener:(e,t)=>M(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xt={current:void 0},us=as({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xt.current){const e=new Pn({});e.mount(window),e.setOptions({layoutScroll:!0}),xt.current=e}return xt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tn={pan:{Feature:ki},drag:{Feature:Fi,ProjectionNode:us,MeasureLayout:ss}},Vn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Sn(e){const t=Vn.exec(e);if(!t)return[,];const[,s,i]=t;return[s,i]}function Rt(e,t,s=1){const[i,o]=Sn(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const n=u.trim();return Ls(n)?parseFloat(n):n}else return St(o)?Rt(o,t,s+1):o}function Cn(e,{...t},s){const i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:s};s&&(s={...s}),e.values.forEach(o=>{const u=o.get();if(!St(u))return;const n=Rt(u,i);n&&o.set(n)});for(const o in t){const u=t[o];if(!St(u))continue;const n=Rt(u,i);n&&(t[o]=n,s||(s={}),s[o]===void 0&&(s[o]=u))}return{target:t,transitionEnd:s}}const Dn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cs=e=>Dn.has(e),bn=e=>Object.keys(e).some(cs),Ce=e=>e===Rs||e===rt,De=(e,t)=>parseFloat(e.split(", ")[t]),be=(e,t)=>(s,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return De(o[1],t);{const u=i.match(/^matrix\((.+)\)$/);return u?De(u[1],e):0}},Ln=new Set(["x","y","z"]),An=As.filter(e=>!Ln.has(e));function wn(e){const t=[];return An.forEach(s=>{const i=e.getValue(s);i!==void 0&&(t.push([s,i.get()]),i.set(s.startsWith("scale")?1:0))}),t.length&&e.render(),t}const z={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:be(4,13),y:be(5,14)};z.translateX=z.x;z.translateY=z.y;const Rn=(e,t,s)=>{const i=t.measureViewportBox(),o=t.current,u=getComputedStyle(o),{display:n}=u,r={};n==="none"&&t.setStaticValue("display",e.display||"block"),s.forEach(l=>{r[l]=z[l](i,u)}),t.render();const a=t.measureViewportBox();return s.forEach(l=>{const c=t.getValue(l);c&&c.jump(r[l]),e[l]=z[l](a,u)}),e},Mn=(e,t,s={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(cs);let u=[],n=!1;const r=[];if(o.forEach(a=>{const l=e.getValue(a);if(!e.hasValue(a))return;let c=s[a],h=$(c);const d=t[a];let f;if(Tt(d)){const p=d.length,m=d[0]===null?1:0;c=d[m],h=$(c);for(let y=m;y=0?window.pageYOffset:null,l=Rn(t,e,r);return u.length&&u.forEach(([c,h])=>{e.getValue(c).set(h)}),e.render(),Ie&&a!==null&&window.scrollTo({top:a}),{target:l,transitionEnd:i}}else return{target:t,transitionEnd:i}};function En(e,t,s,i){return bn(t)?Mn(e,t,s,i):{target:t,transitionEnd:i}}const jn=(e,t,s,i)=>{const o=Cn(e,t,i);return t=o.target,i=o.transitionEnd,En(e,t,s,i)},Mt={current:null},hs={current:!1};function Bn(){if(hs.current=!0,!!Ie)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mt.current=e.matches;e.addListener(t),t()}else Mt.current=!1}function Fn(e,t,s){const{willChange:i}=t;for(const o in t){const u=t[o],n=s[o];if(W(u))e.addValue(o,u),Ct(i)&&i.add(o);else if(W(n))e.addValue(o,it(u,{owner:e})),Ct(i)&&i.remove(o);else if(n!==u)if(e.hasValue(o)){const r=e.getValue(o);!r.hasAnimated&&r.set(u)}else{const r=e.getStaticValue(o);e.addValue(o,it(r!==void 0?r:u,{owner:e}))}}for(const o in s)t[o]===void 0&&e.removeValue(o);return t}const Le=new WeakMap,ds=Object.keys(Oe),kn=ds.length,Ae=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],In=Ue.length;class On{constructor({parent:t,props:s,presenceContext:i,reducedMotionConfig:o,visualState:u},n={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>S.render(this.render,!1,!0);const{latestValues:r,renderState:a}=u;this.latestValues=r,this.baseTarget={...r},this.initialValues=s.initial?{...r}:{},this.renderState=a,this.parent=t,this.props=s,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=n,this.isControllingVariants=Ms(s),this.isVariantNode=Es(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(s,{});for(const h in c){const d=c[h];r[h]!==void 0&&W(d)&&(d.set(r[h],!1),Ct(l)&&l.add(h))}}scrapeMotionValuesFromProps(t,s){return{}}mount(t){this.current=t,Le.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),hs.current||Bn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Le.delete(this.current),this.projection&&this.projection.unmount(),N(this.notifyUpdate),N(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,s){const i=Et.has(t),o=s.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&S.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),u=s.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),u()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...s},i,o,u){let n,r;for(let a=0;athis.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:u,layoutScroll:d,layoutRoot:f})}return r}updateFeatures(){for(const t in this.features){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):T()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}makeTargetAnimatable(t,s=!0){return this.makeTargetAnimatableFromInstance(t,this.props,s)}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let i=0;is.variantChildren.delete(t)}addValue(t,s){s!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,s)),this.values.set(t,s),this.latestValues[t]=s.get()}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&s!==void 0&&(i=it(s,{owner:this}),this.addValue(t,i)),i}readValue(t){var s;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var s;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(s=js(this.props,i))===null||s===void 0?void 0:s[t]:void 0;if(i&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,t);return u!==void 0&&!W(u)?u:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new ke),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}class fs extends On{sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:i}){delete s[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:s,...i},{transformValues:o},u){let n=Bs(i,t||{},this);if(o&&(s&&(s=o(s)),i&&(i=o(i)),n&&(n=o(n))),u){Fs(this,i,n);const r=jn(this,i,n,s);s=r.transitionEnd,i=r.target}return{transition:t,transitionEnd:s,...i}}}function Un(e){return window.getComputedStyle(e)}class Nn extends fs{readValueFromInstance(t,s){if(Et.has(s)){const i=Ne(s);return i&&i.default||0}else{const i=Un(t),o=(ks(s)?i.getPropertyValue(s):i[s])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:s}){return ts(t,s)}build(t,s,i,o){Is(t,s,i,o.transformTemplate)}scrapeMotionValuesFromProps(t,s){return Os(t,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}renderInstance(t,s,i,o){Us(t,s,i,o)}}class Gn extends fs{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Et.has(s)){const i=Ne(s);return i&&i.default||0}return s=Ns.has(s)?s:Gs(s),t.getAttribute(s)}measureInstanceViewportBox(){return T()}scrapeMotionValuesFromProps(t,s){return qs(t,s)}build(t,s,i,o){Hs(t,s,i,this.isSVGTag,o.transformTemplate)}renderInstance(t,s,i,o){Ws(t,s,i,o)}mount(t){this.isSVGTag=zs(t.tagName),super.mount(t)}}const qn=(e,t)=>Ks(e)?new Gn(t,{enableHardwareAcceleration:!1}):new Nn(t,{enableHardwareAcceleration:!0}),Hn={layout:{ProjectionNode:us,MeasureLayout:ss}};function ps({children:e,features:t,strict:s=!1}){const[,i]=R.useState(!Pt(t)),o=R.useRef(void 0);if(!Pt(t)){const{renderer:u,...n}=t;o.current=u,Ot(n)}return R.useEffect(()=>{Pt(t)&&t().then(({renderer:u,...n})=>{Ot(n),o.current=u,i(!0)})},[]),R.createElement(_s.Provider,{value:{renderer:o.current,strict:s}},e)}function Pt(e){return typeof e=="function"}const Wn={renderer:qn,...mi,...oi},ms={...Wn,...Tn,...Hn},zn=()=>{const[e,t]=ot.useState(!1);return F.jsxs(ps,{features:ms,children:[F.jsx(Ge,{onClick:()=>t(s=>!s),children:"Toggle Collapse"}),F.jsx(qe,{isOpened:e,children:F.jsx("p",{children:"Maiores occaecati quis animi nihil debitis. Iure suscipit animi. Repellat quia quas harum possimus dolorum dolore ullam eius. Tenetur aut saepe illo expedita culpa. Nisi asperiores doloribus facere eveniet ad tempore nemo accusantium in. Possimus eum dolorum a aliquid unde dolore corporis. Voluptatem quibusdam ipsam numquam. Vero aliquid odit reiciendis amet cum sapiente commodi. Natus in ullam dignissimos sed eos accusantium. Quis eligendi aliquid. Cumque possimus sed suscipit vero. Repellendus inventore quo porro necessitatibus totam."})})]})};zn.meta={title:"Normal Collapse"};const Kn=()=>{const[e,t]=ot.useState(!1);return F.jsxs(ps,{features:ms,children:[F.jsx(Ge,{onClick:()=>t(s=>!s),children:"Toggle Collapse"}),F.jsx(qe,{isOpened:e,withBackground:!0,children:F.jsx("p",{children:"Maiores occaecati quis animi nihil debitis. Iure suscipit animi. Repellat quia quas harum possimus dolorum dolore ullam eius. Tenetur aut saepe illo expedita culpa. Nisi asperiores doloribus facere eveniet ad tempore nemo accusantium in. Possimus eum dolorum a aliquid unde dolore corporis. Voluptatem quibusdam ipsam numquam. Vero aliquid odit reiciendis amet cum sapiente commodi. Natus in ullam dignissimos sed eos accusantium. Quis eligendi aliquid. Cumque possimus sed suscipit vero. Repellendus inventore quo porro necessitatibus totam."})})]})};Kn.meta={title:"With Background Collapse"};export{zn as CollapseDemo1,Kn as CollapseDemo2}; +import{r as R,R as ot,j as F}from"./index-HRfeE_7B.js";import{p as H,f as S,n as E,j as we,k as Tt,v as Re,r as ys,l as Me,o as vs,h as N,q as xs,t as Ps,w as D,x as V,y as Vt,z as Ee,A as X,B as je,C as st,P as Ts,D as rt,E as kt,F as Vs,L as Ss,G as Cs,H as Ds,I as Be,J as Fe,i as W,e as it,K as ke,N as bs,O as dt,Q as ft,R as It,T as St,U as Ls,V as As,W as $,X as ws,Y as Ie,Z as Rs,_ as Ct,$ as Ms,a0 as Es,a1 as Et,a2 as js,a3 as Oe,a4 as Ue,a5 as Bs,a6 as Fs,a7 as Ne,a8 as ks,a9 as Is,aa as Os,ab as Us,ac as Ns,ad as Gs,ae as qs,af as Hs,ag as Ws,ah as zs,ai as Ks,aj as Ot,ak as _s,S as Ge}from"./spring-0AHu48BV.js";import{C as qe}from"./Collapse-JZfrBou4.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";function M(e,t,s,i={passive:!0}){return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s)}const He=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function at(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const $s=e=>t=>He(t)&&e(t,at(t));function j(e,t,s,i){return M(e,t,$s(s),i)}function We(e){let t=null;return()=>{const s=()=>{t=null};return t===null?(t=e,s):!1}}const Ut=We("dragHorizontal"),Nt=We("dragVertical");function ze(e){let t=!1;if(e==="y")t=Nt();else if(e==="x")t=Ut();else{const s=Ut(),i=Nt();s&&i?t=()=>{s(),i()}:(s&&s(),i&&i())}return t}function Ke(){const e=ze(!0);return e?(e(),!1):!0}class k{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gt(e,t){const s="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End"),o=(u,n)=>{if(u.type==="touch"||Ke())return;const r=e.getProps();e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",t),r[i]&&S.update(()=>r[i](u,n))};return j(e.current,s,o,{passive:!e.getProps()[i]})}class Ys extends k{mount(){this.unmount=H(Gt(this.node,!0),Gt(this.node,!1))}unmount(){}}class Xs extends k{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=H(M(this.node.current,"focus",()=>this.onFocus()),M(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _e=(e,t)=>t?e===t?!0:_e(e,t.parentElement):!1;function pt(e,t){if(!t)return;const s=new PointerEvent("pointer"+e);t(s,at(s))}class Zs extends k{constructor(){super(...arguments),this.removeStartListeners=E,this.removeEndListeners=E,this.removeAccessibleListeners=E,this.startPointerPress=(t,s)=>{if(this.removeEndListeners(),this.isPressing)return;const i=this.node.getProps(),u=j(window,"pointerup",(r,a)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();S.update(()=>{_e(this.node.current,r.target)?l&&l(r,a):c&&c(r,a)})},{passive:!(i.onTap||i.onPointerUp)}),n=j(window,"pointercancel",(r,a)=>this.cancelPress(r,a),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=H(u,n),this.startPress(t,s)},this.startAccessiblePress=()=>{const t=u=>{if(u.key!=="Enter"||this.isPressing)return;const n=r=>{r.key!=="Enter"||!this.checkPressEnd()||pt("up",(a,l)=>{const{onTap:c}=this.node.getProps();c&&S.update(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=M(this.node.current,"keyup",n),pt("down",(r,a)=>{this.startPress(r,a)})},s=M(this.node.current,"keydown",t),i=()=>{this.isPressing&&pt("cancel",(u,n)=>this.cancelPress(u,n))},o=M(this.node.current,"blur",i);this.removeAccessibleListeners=H(s,o)}}startPress(t,s){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&S.update(()=>i(t,s))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ke()}cancelPress(t,s){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&S.update(()=>i(t,s))}mount(){const t=this.node.getProps(),s=j(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=M(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=H(s,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Dt=new WeakMap,mt=new WeakMap,Qs=e=>{const t=Dt.get(e.target);t&&t(e)},Js=e=>{e.forEach(Qs)};function ti({root:e,...t}){const s=e||document;mt.has(s)||mt.set(s,{});const i=mt.get(s),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(Js,{root:e,...t})),i[o]}function ei(e,t,s){const i=ti(t);return Dt.set(e,s),i.observe(e),()=>{Dt.delete(e),i.unobserve(e)}}const si={some:0,all:1};class ii extends k{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:i,amount:o="some",once:u}=t,n={root:s?s.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:si[o]},r=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,u&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=l?c:h;d&&d(a)};return ei(this.node.current,n,r)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(ni(t,s))&&this.startObserver()}unmount(){}}function ni({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const oi={inView:{Feature:ii},tap:{Feature:Zs},focus:{Feature:Xs},hover:{Feature:Ys}};function $e(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let i=0;iPromise.all(t.map(({animation:s,options:i})=>vs(e,s,i)))}function ui(e){let t=li(e);const s=hi();let i=!0;const o=(a,l)=>{const c=ys(e,l);if(c){const{transition:h,transitionEnd:d,...f}=c;a={...a,...f,...d}}return a};function u(a){t=a(e)}function n(a,l){const c=e.getProps(),h=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let x=0;xm&&w;const Bt=Array.isArray(v)?v:[v];let K=Bt.reduce(o,{});lt===!1&&(K={});const{prevResolvedValues:Ft={}}=g,gs={...Ft,...K},ct=C=>{ut=!0,f.delete(C),g.needsAnimating[C]=!0};for(const C in gs){const _=K[C],ht=Ft[C];p.hasOwnProperty(C)||(_!==ht?Tt(_)&&Tt(ht)?!$e(_,ht)||jt?ct(C):g.protectedKeys[C]=!0:_!==void 0?ct(C):f.add(C):_!==void 0&&f.has(C)?ct(C):g.protectedKeys[C]=!0)}g.prevProp=v,g.prevResolvedValues=K,g.isActive&&(p={...p,...K}),i&&e.blockInitialAnimation&&(ut=!1),ut&&!J&&d.push(...Bt.map(C=>({animation:C,options:{type:P,...a}})))}if(f.size){const x={};f.forEach(P=>{const g=e.getBaseTarget(P);g!==void 0&&(x[P]=g)}),d.push({animation:x})}let y=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?t(d):Promise.resolve()}function r(a,l,c){var h;if(s[a].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,l)}),s[a].isActive=l;const d=n(c,a);for(const f in s)s[f].protectedKeys={};return d}return{animateChanges:n,setActive:r,setAnimateFunction:u,getState:()=>s}}function ci(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$e(t,e):!1}function I(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hi(){return{animate:I(!0),whileInView:I(),whileHover:I(),whileTap:I(),whileDrag:I(),whileFocus:I(),exit:I()}}class di extends k{constructor(t){super(t),t.animationState||(t.animationState=ui(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),we(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){}}let fi=0;class pi extends k{constructor(){super(...arguments),this.id=fi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s,custom:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const u=this.node.animationState.setActive("exit",!t,{custom:i??this.node.getProps().custom});s&&!t&&u.then(()=>s(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const mi={animation:{Feature:di},exit:{Feature:pi}},qt=(e,t)=>Math.abs(e-t);function gi(e,t){const s=qt(e.x,t.x),i=qt(e.y,t.y);return Math.sqrt(s**2+i**2)}class Ye{constructor(t,s,{transformPagePoint:i,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=yt(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=gi(c.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:f}=c,{timestamp:p}=D;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;h||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,h)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=gt(h,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(c,h)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=yt(c.type==="pointercancel"?this.lastMoveEventInfo:gt(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,p),f&&f(c,p)},!He(t))return;this.handlers=s,this.transformPagePoint=i,this.contextWindow=o||window;const u=at(t),n=gt(u,this.transformPagePoint),{point:r}=n,{timestamp:a}=D;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=s;l&&l(t,yt(n,this.history)),this.removeListeners=H(j(this.contextWindow,"pointermove",this.handlePointerMove),j(this.contextWindow,"pointerup",this.handlePointerUp),j(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),N(this.updatePoint)}}function gt(e,t){return t?{point:t(e.point)}:e}function Ht(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yt({point:e},t){return{point:e,delta:Ht(e,Xe(t)),offset:Ht(e,yi(t)),velocity:vi(t,.1)}}function yi(e){return e[0]}function Xe(e){return e[e.length-1]}function vi(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,i=null;const o=Xe(e);for(;s>=0&&(i=e[s],!(o.timestamp-i.timestamp>xs(t)));)s--;if(!i)return{x:0,y:0};const u=Ps(o.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const n={x:(o.x-i.x)/u,y:(o.y-i.y)/u};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}function b(e){return e.max-e.min}function bt(e,t=0,s=.01){return Math.abs(e-t)<=s}function Wt(e,t,s,i=.5){e.origin=i,e.originPoint=V(t.min,t.max,e.origin),e.scale=b(s)/b(t),(bt(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=V(s.min,s.max,e.origin)-e.originPoint,(bt(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Z(e,t,s,i){Wt(e.x,t.x,s.x,i?i.originX:void 0),Wt(e.y,t.y,s.y,i?i.originY:void 0)}function zt(e,t,s){e.min=s.min+t.min,e.max=e.min+b(t)}function xi(e,t,s){zt(e.x,t.x,s.x),zt(e.y,t.y,s.y)}function Kt(e,t,s){e.min=t.min-s.min,e.max=e.min+b(t)}function Q(e,t,s){Kt(e.x,t.x,s.x),Kt(e.y,t.y,s.y)}function Pi(e,{min:t,max:s},i){return t!==void 0&&es&&(e=i?V(s,e,i.max):Math.min(e,s)),e}function _t(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function Ti(e,{top:t,left:s,bottom:i,right:o}){return{x:_t(e.x,s,o),y:_t(e.y,t,i)}}function $t(e,t){let s=t.min-e.min,i=t.max-e.max;return t.max-t.mini?s=Vt(t.min,t.max-i,e.min):i>o&&(s=Vt(e.min,e.max-o,t.min)),Ee(0,1,s)}function Ci(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Lt=.35;function Di(e=Lt){return e===!1?e=0:e===!0&&(e=Lt),{x:Yt(e,"left","right"),y:Yt(e,"top","bottom")}}function Yt(e,t,s){return{min:Xt(e,t),max:Xt(e,s)}}function Xt(e,t){return typeof e=="number"?e:e[t]||0}const Zt=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:Zt(),y:Zt()}),Qt=()=>({min:0,max:0}),T=()=>({x:Qt(),y:Qt()});function A(e){return[e("x"),e("y")]}function Ze({top:e,left:t,right:s,bottom:i}){return{x:{min:t,max:s},y:{min:e,max:i}}}function bi({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Li(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}function vt(e){return e===void 0||e===1}function At({scale:e,scaleX:t,scaleY:s}){return!vt(e)||!vt(t)||!vt(s)}function O(e){return At(e)||Qe(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Qe(e){return Jt(e.x)||Jt(e.y)}function Jt(e){return e&&e!=="0%"}function nt(e,t,s){const i=e-s,o=t*i;return s+o}function te(e,t,s,i,o){return o!==void 0&&(e=nt(e,o,i)),nt(e,s,i)+t}function wt(e,t=0,s=1,i,o){e.min=te(e.min,t,s,i,o),e.max=te(e.max,t,s,i,o)}function Je(e,{x:t,y:s}){wt(e.x,t.translate,t.scale,t.originPoint),wt(e.y,s.translate,s.scale,s.originPoint)}function Ai(e,t,s,i=!1){const o=s.length;if(!o)return;t.x=t.y=1;let u,n;for(let r=0;r1.0000000000001||e<.999999999999?e:1}function B(e,t){e.min=e.min+t,e.max=e.max+t}function se(e,t,[s,i,o]){const u=t[o]!==void 0?t[o]:.5,n=V(e.min,e.max,u);wt(e,t[s],t[i],n,t.scale)}const wi=["x","scaleX","originX"],Ri=["y","scaleY","originY"];function q(e,t){se(e.x,t,wi),se(e.y,t,Ri)}function ts(e,t){return Ze(Li(e.getBoundingClientRect(),t))}function Mi(e,t,s){const i=ts(e,s),{scroll:o}=t;return o&&(B(i.x,o.offset.x),B(i.y,o.offset.y)),i}const es=({current:e})=>e?e.ownerDocument.defaultView:null,Ei=new WeakMap;class ji{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=T(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=a=>{this.stopAnimation(),s&&this.snapToCursor(at(a,"page").point)},u=(a,l)=>{const{drag:c,dragPropagation:h,onDragStart:d}=this.getProps();if(c&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ze(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),A(p=>{let m=this.getAxisMotionValue(p).get()||0;if(st.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[p];x&&(m=b(x)*(parseFloat(m)/100))}}this.originPoint[p]=m}),d&&S.update(()=>d(a,l),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},n=(a,l)=>{const{dragPropagation:c,dragDirectionLock:h,onDirectionLock:d,onDrag:f}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:p}=l;if(h&&this.currentDirection===null){this.currentDirection=Bi(p),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,p),this.updateAxis("y",l.point,p),this.visualElement.render(),f&&f(a,l)},r=(a,l)=>this.stop(a,l);this.panSession=new Ye(t,{onSessionStart:o,onStart:u,onMove:n,onSessionEnd:r},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:es(this.visualElement)})}stop(t,s){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u&&S.update(()=>u(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,i){const{drag:o}=this.getProps();if(!i||!tt(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=Pi(n,this.constraints[t],this.elastic[t])),u.set(n)}resolveConstraints(){var t;const{dragConstraints:s,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,u=this.constraints;s&&X(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&o?this.constraints=Ti(o.layoutBox,s):this.constraints=!1,this.elastic=Di(i),u!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&A(n=>{this.getAxisMotionValue(n)&&(this.constraints[n]=Ci(o.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!X(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=Mi(i,o.root,this.visualElement.getTransformPagePoint());let n=Vi(o.layout.layoutBox,u);if(s){const r=s(bi(n));this.hasMutatedConstraints=!!r,r&&(n=Ze(r))}return n}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:o,dragTransition:u,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=A(c=>{if(!tt(c,s,this.currentDirection))return;let h=a&&a[c]||{};n&&(h={min:0,max:0});const d=o?200:1e6,f=o?40:1e7,p={type:"inertia",velocity:i?t[c]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...u,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(l).then(r)}startAxisValueAnimation(t,s){const i=this.getAxisMotionValue(t);return i.start(je(t,i,0,s))}stopAnimation(){A(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const s="_drag"+t.toUpperCase(),i=this.visualElement.getProps(),o=i[s];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){A(s=>{const{drag:i}=this.getProps();if(!tt(s,i,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(s);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[s];u.set(t[s]-V(n,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!X(s)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};A(n=>{const r=this.getAxisMotionValue(n);if(r){const a=r.get();o[n]=Si({min:a,max:a},this.constraints[n])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),A(n=>{if(!tt(n,t,null))return;const r=this.getAxisMotionValue(n),{min:a,max:l}=this.constraints[n];r.set(V(a,l,o[n]))})}addListeners(){if(!this.visualElement.current)return;Ei.set(this.visualElement,this);const t=this.visualElement.current,s=j(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();X(a)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),i();const n=M(window,"resize",()=>this.scalePositionWithinConstraints()),r=o.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(A(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=a[c].translate,h.set(h.get()+a[c].translate))}),this.visualElement.render())});return()=>{n(),s(),u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:n=Lt,dragMomentum:r=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:n,dragMomentum:r}}}function tt(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function Bi(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Fi extends k{constructor(t){super(t),this.removeGroupControls=E,this.removeListeners=E,this.controls=new ji(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E}unmount(){this.removeGroupControls(),this.removeListeners()}}const ie=e=>(t,s)=>{e&&S.update(()=>e(t,s))};class ki extends k{constructor(){super(...arguments),this.removePointerDownListener=E}onPointerDown(t){this.session=new Ye(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:es(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:ie(t),onStart:ie(s),onMove:i,onEnd:(u,n)=>{delete this.session,o&&S.update(()=>o(u,n))}}}mount(){this.removePointerDownListener=j(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ii(){const e=R.useContext(Ts);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:s,register:i}=e,o=R.useId();return R.useEffect(()=>i(o),[]),!t&&s?[!1,()=>s&&s(o)]:[!0]}const et={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ne(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Y={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(rt.test(e))e=parseFloat(e);else return e;const s=ne(e,t.target.x),i=ne(e,t.target.y);return`${s}% ${i}%`}},Oi={correct:(e,{treeScale:t,projectionDelta:s})=>{const i=e,o=kt.parse(e);if(o.length>5)return i;const u=kt.createTransformer(e),n=typeof o[0]!="number"?1:0,r=s.x.scale*t.x,a=s.y.scale*t.y;o[0+n]/=r,o[1+n]/=a;const l=V(r,a,.5);return typeof o[2+n]=="number"&&(o[2+n]/=l),typeof o[3+n]=="number"&&(o[3+n]/=l),u(o)}};class Ui extends ot.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i,layoutId:o}=this.props,{projection:u}=t;Vs(Ni),u&&(s.group&&s.group.add(u),i&&i.register&&o&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),et.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:i,drag:o,isPresent:u}=this.props,n=i.projection;return n&&(n.isPresent=u,o||t.layoutDependency!==s||s===void 0?n.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?n.promote():n.relegate()||S.postRender(()=>{const r=n.getStack();(!r||!r.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ss(e){const[t,s]=Ii(),i=R.useContext(Ss);return ot.createElement(Ui,{...e,layoutGroup:i,switchLayoutGroup:R.useContext(Cs),isPresent:t,safeToRemove:s})}const Ni={borderRadius:{...Y,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomLeftRadius:Y,borderBottomRightRadius:Y,boxShadow:Oi},is=["TopLeft","TopRight","BottomLeft","BottomRight"],Gi=is.length,oe=e=>typeof e=="string"?parseFloat(e):e,re=e=>typeof e=="number"||rt.test(e);function qi(e,t,s,i,o,u){o?(e.opacity=V(0,s.opacity!==void 0?s.opacity:1,Hi(i)),e.opacityExit=V(t.opacity!==void 0?t.opacity:1,0,Wi(i))):u&&(e.opacity=V(t.opacity!==void 0?t.opacity:1,s.opacity!==void 0?s.opacity:1,i));for(let n=0;nit?1:s(Vt(e,t,i))}function le(e,t){e.min=t.min,e.max=t.max}function L(e,t){le(e.x,t.x),le(e.y,t.y)}function ue(e,t,s,i,o){return e-=t,e=nt(e,1/s,i),o!==void 0&&(e=nt(e,1/o,i)),e}function zi(e,t=0,s=1,i=.5,o,u=e,n=e){if(st.test(t)&&(t=parseFloat(t),t=V(n.min,n.max,t/100)-n.min),typeof t!="number")return;let r=V(u.min,u.max,i);e===u&&(r-=t),e.min=ue(e.min,t,s,r,o),e.max=ue(e.max,t,s,r,o)}function ce(e,t,[s,i,o],u,n){zi(e,t[s],t[i],t[o],t.scale,u,n)}const Ki=["x","scaleX","originX"],_i=["y","scaleY","originY"];function he(e,t,s,i){ce(e.x,t,Ki,s?s.x:void 0,i?i.x:void 0),ce(e.y,t,_i,s?s.y:void 0,i?i.y:void 0)}function de(e){return e.translate===0&&e.scale===1}function os(e){return de(e.x)&&de(e.y)}function $i(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function rs(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function fe(e){return b(e.x)/b(e.y)}class Yi{constructor(){this.members=[]}add(t){Be(this.members,t),t.scheduleRender()}remove(t){if(Fe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(o=>t===o);if(s===0)return!1;let i;for(let o=s;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,s){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,s&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:i}=t;s.onExitComplete&&s.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pe(e,t,s){let i="";const o=e.x.translate/t.x,u=e.y.translate/t.y;if((o||u)&&(i=`translate3d(${o}px, ${u}px, 0) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),s){const{rotate:a,rotateX:l,rotateY:c}=s;a&&(i+=`rotate(${a}deg) `),l&&(i+=`rotateX(${l}deg) `),c&&(i+=`rotateY(${c}deg) `)}const n=e.x.scale*t.x,r=e.y.scale*t.y;return(n!==1||r!==1)&&(i+=`scale(${n}, ${r})`),i||"none"}const Xi=(e,t)=>e.depth-t.depth;class Zi{constructor(){this.children=[],this.isDirty=!1}add(t){Be(this.children,t),this.isDirty=!0}remove(t){Fe(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xi),this.isDirty=!1,this.children.forEach(t)}}function Qi(e,t){const s=performance.now(),i=({timestamp:o})=>{const u=o-s;u>=t&&(N(i),e(u-t))};return S.read(i,!0),()=>N(i)}function Ji(e){window.MotionDebug&&window.MotionDebug.record(e)}function tn(e){return e instanceof SVGElement&&e.tagName!=="svg"}function en(e,t,s){const i=W(e)?e:it(e);return i.start(je("",i,t,s)),i.animation}const me=["","X","Y","Z"],sn={visibility:"hidden"},ge=1e3;let nn=0;const U={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function as({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(n={},r=t==null?void 0:t()){this.id=nn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,U.totalNodes=U.resolvedTargetDeltas=U.recalculatedProjection=0,this.nodes.forEach(an),this.nodes.forEach(dn),this.nodes.forEach(fn),this.nodes.forEach(ln),Ji(U)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(n,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Qi(d,250),et.hasAnimatedSinceResize&&(et.hasAnimatedSinceResize=!1,this.nodes.forEach(ve))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||vn,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),P=!this.targetLayout||!rs(this.targetLayout,p)||f,g=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const v={...bs(m,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else d||ve(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,N(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pn),this.animationId++)}getTransformTemplate(){const{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(un),this.sharedNodes.forEach(mn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const w=v/1e3;xe(h.x,n.x,w),xe(h.y,n.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Q(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gn(this.relativeTarget,this.relativeTargetOrigin,d,w),g&&$i(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=T()),L(g,this.relativeTarget)),m&&(this.animationValues=c,qi(c,l,this.latestValues,w,P,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(N(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{et.hasAnimatedSinceResize=!0,this.currentAnimation=en(0,ge,{...n,onUpdate:r=>{this.mixTargetDelta(r),n.onUpdate&&n.onUpdate(r)},onComplete:()=>{n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ge),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const n=this.getLead();let{targetWithTransforms:r,target:a,layout:l,latestValues:c}=n;if(!(!r||!a||!l)){if(this!==n&&this.layout&&l&&ls(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||T();const h=b(this.layout.layoutBox.x);a.x.min=n.target.x.min,a.x.max=a.x.min+h;const d=b(this.layout.layoutBox.y);a.y.min=n.target.y.min,a.y.max=a.y.min+d}L(r,a),q(r,c),Z(this.projectionDeltaWithTransform,this.layoutCorrected,r,c)}}registerSharedNode(n,r){this.sharedNodes.has(n)||this.sharedNodes.set(n,new Yi),this.sharedNodes.get(n).add(r);const l=r.options.initialPromotionConfig;r.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(r):void 0})}isLead(){const n=this.getStack();return n?n.lead===this:!0}getLead(){var n;const{layoutId:r}=this.options;return r?((n=this.getStack())===null||n===void 0?void 0:n.lead)||this:this}getPrevLead(){var n;const{layoutId:r}=this.options;return r?(n=this.getStack())===null||n===void 0?void 0:n.prevLead:void 0}getStack(){const{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:r,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})}relegate(){const n=this.getStack();return n?n.relegate(this):!1}resetRotation(){const{visualElement:n}=this.options;if(!n)return;let r=!1;const{latestValues:a}=n;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(r=!0),!r)return;const l={};for(let c=0;c{var r;return(r=n.currentAnimation)===null||r===void 0?void 0:r.stop()}),this.root.nodes.forEach(ye),this.root.sharedNodes.clear()}}}function on(e){e.updateLayout()}function rn(e){var t;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=e.layout,{animationType:u}=e.options,n=s.source!==e.layout.source;u==="size"?A(h=>{const d=n?s.measuredBox[h]:s.layoutBox[h],f=b(d);d.min=i[h].min,d.max=d.min+f}):ls(u,s.layoutBox,i)&&A(h=>{const d=n?s.measuredBox[h]:s.layoutBox[h],f=b(i[h]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const r=G();Z(r,i,s.layoutBox);const a=G();n?Z(a,e.applyTransform(o,!0),s.measuredBox):Z(a,i,s.layoutBox);const l=!os(r);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=T();Q(p,s.layoutBox,d.layoutBox);const m=T();Q(m,i,f.layoutBox),rs(p,m)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:s,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function an(e){U.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ln(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function un(e){e.clearSnapshot()}function ye(e){e.clearMeasurements()}function cn(e){e.isLayoutDirty=!1}function hn(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ve(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dn(e){e.resolveTargetDelta()}function fn(e){e.calcProjection()}function pn(e){e.resetRotation()}function mn(e){e.removeLeadSnapshot()}function xe(e,t,s){e.translate=V(t.translate,0,s),e.scale=V(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Pe(e,t,s,i){e.min=V(t.min,s.min,i),e.max=V(t.max,s.max,i)}function gn(e,t,s,i){Pe(e.x,t.x,s.x,i),Pe(e.y,t.y,s.y,i)}function yn(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vn={duration:.45,ease:[.4,0,.1,1]},Te=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ve=Te("applewebkit/")&&!Te("chrome/")?Math.round:E;function Se(e){e.min=Ve(e.min),e.max=Ve(e.max)}function xn(e){Se(e.x),Se(e.y)}function ls(e,t,s){return e==="position"||e==="preserve-aspect"&&!bt(fe(t),fe(s),.2)}const Pn=as({attachResizeListener:(e,t)=>M(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xt={current:void 0},us=as({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xt.current){const e=new Pn({});e.mount(window),e.setOptions({layoutScroll:!0}),xt.current=e}return xt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tn={pan:{Feature:ki},drag:{Feature:Fi,ProjectionNode:us,MeasureLayout:ss}},Vn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Sn(e){const t=Vn.exec(e);if(!t)return[,];const[,s,i]=t;return[s,i]}function Rt(e,t,s=1){const[i,o]=Sn(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const n=u.trim();return Ls(n)?parseFloat(n):n}else return St(o)?Rt(o,t,s+1):o}function Cn(e,{...t},s){const i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:s};s&&(s={...s}),e.values.forEach(o=>{const u=o.get();if(!St(u))return;const n=Rt(u,i);n&&o.set(n)});for(const o in t){const u=t[o];if(!St(u))continue;const n=Rt(u,i);n&&(t[o]=n,s||(s={}),s[o]===void 0&&(s[o]=u))}return{target:t,transitionEnd:s}}const Dn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cs=e=>Dn.has(e),bn=e=>Object.keys(e).some(cs),Ce=e=>e===Rs||e===rt,De=(e,t)=>parseFloat(e.split(", ")[t]),be=(e,t)=>(s,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return De(o[1],t);{const u=i.match(/^matrix\((.+)\)$/);return u?De(u[1],e):0}},Ln=new Set(["x","y","z"]),An=As.filter(e=>!Ln.has(e));function wn(e){const t=[];return An.forEach(s=>{const i=e.getValue(s);i!==void 0&&(t.push([s,i.get()]),i.set(s.startsWith("scale")?1:0))}),t.length&&e.render(),t}const z={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:be(4,13),y:be(5,14)};z.translateX=z.x;z.translateY=z.y;const Rn=(e,t,s)=>{const i=t.measureViewportBox(),o=t.current,u=getComputedStyle(o),{display:n}=u,r={};n==="none"&&t.setStaticValue("display",e.display||"block"),s.forEach(l=>{r[l]=z[l](i,u)}),t.render();const a=t.measureViewportBox();return s.forEach(l=>{const c=t.getValue(l);c&&c.jump(r[l]),e[l]=z[l](a,u)}),e},Mn=(e,t,s={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(cs);let u=[],n=!1;const r=[];if(o.forEach(a=>{const l=e.getValue(a);if(!e.hasValue(a))return;let c=s[a],h=$(c);const d=t[a];let f;if(Tt(d)){const p=d.length,m=d[0]===null?1:0;c=d[m],h=$(c);for(let y=m;y=0?window.pageYOffset:null,l=Rn(t,e,r);return u.length&&u.forEach(([c,h])=>{e.getValue(c).set(h)}),e.render(),Ie&&a!==null&&window.scrollTo({top:a}),{target:l,transitionEnd:i}}else return{target:t,transitionEnd:i}};function En(e,t,s,i){return bn(t)?Mn(e,t,s,i):{target:t,transitionEnd:i}}const jn=(e,t,s,i)=>{const o=Cn(e,t,i);return t=o.target,i=o.transitionEnd,En(e,t,s,i)},Mt={current:null},hs={current:!1};function Bn(){if(hs.current=!0,!!Ie)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mt.current=e.matches;e.addListener(t),t()}else Mt.current=!1}function Fn(e,t,s){const{willChange:i}=t;for(const o in t){const u=t[o],n=s[o];if(W(u))e.addValue(o,u),Ct(i)&&i.add(o);else if(W(n))e.addValue(o,it(u,{owner:e})),Ct(i)&&i.remove(o);else if(n!==u)if(e.hasValue(o)){const r=e.getValue(o);!r.hasAnimated&&r.set(u)}else{const r=e.getStaticValue(o);e.addValue(o,it(r!==void 0?r:u,{owner:e}))}}for(const o in s)t[o]===void 0&&e.removeValue(o);return t}const Le=new WeakMap,ds=Object.keys(Oe),kn=ds.length,Ae=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],In=Ue.length;class On{constructor({parent:t,props:s,presenceContext:i,reducedMotionConfig:o,visualState:u},n={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>S.render(this.render,!1,!0);const{latestValues:r,renderState:a}=u;this.latestValues=r,this.baseTarget={...r},this.initialValues=s.initial?{...r}:{},this.renderState=a,this.parent=t,this.props=s,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=n,this.isControllingVariants=Ms(s),this.isVariantNode=Es(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(s,{});for(const h in c){const d=c[h];r[h]!==void 0&&W(d)&&(d.set(r[h],!1),Ct(l)&&l.add(h))}}scrapeMotionValuesFromProps(t,s){return{}}mount(t){this.current=t,Le.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),hs.current||Bn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Le.delete(this.current),this.projection&&this.projection.unmount(),N(this.notifyUpdate),N(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,s){const i=Et.has(t),o=s.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&S.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),u=s.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),u()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...s},i,o,u){let n,r;for(let a=0;athis.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:u,layoutScroll:d,layoutRoot:f})}return r}updateFeatures(){for(const t in this.features){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):T()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}makeTargetAnimatable(t,s=!0){return this.makeTargetAnimatableFromInstance(t,this.props,s)}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let i=0;is.variantChildren.delete(t)}addValue(t,s){s!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,s)),this.values.set(t,s),this.latestValues[t]=s.get()}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&s!==void 0&&(i=it(s,{owner:this}),this.addValue(t,i)),i}readValue(t){var s;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var s;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(s=js(this.props,i))===null||s===void 0?void 0:s[t]:void 0;if(i&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,t);return u!==void 0&&!W(u)?u:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new ke),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}class fs extends On{sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:i}){delete s[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:s,...i},{transformValues:o},u){let n=Bs(i,t||{},this);if(o&&(s&&(s=o(s)),i&&(i=o(i)),n&&(n=o(n))),u){Fs(this,i,n);const r=jn(this,i,n,s);s=r.transitionEnd,i=r.target}return{transition:t,transitionEnd:s,...i}}}function Un(e){return window.getComputedStyle(e)}class Nn extends fs{readValueFromInstance(t,s){if(Et.has(s)){const i=Ne(s);return i&&i.default||0}else{const i=Un(t),o=(ks(s)?i.getPropertyValue(s):i[s])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:s}){return ts(t,s)}build(t,s,i,o){Is(t,s,i,o.transformTemplate)}scrapeMotionValuesFromProps(t,s){return Os(t,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}renderInstance(t,s,i,o){Us(t,s,i,o)}}class Gn extends fs{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Et.has(s)){const i=Ne(s);return i&&i.default||0}return s=Ns.has(s)?s:Gs(s),t.getAttribute(s)}measureInstanceViewportBox(){return T()}scrapeMotionValuesFromProps(t,s){return qs(t,s)}build(t,s,i,o){Hs(t,s,i,this.isSVGTag,o.transformTemplate)}renderInstance(t,s,i,o){Ws(t,s,i,o)}mount(t){this.isSVGTag=zs(t.tagName),super.mount(t)}}const qn=(e,t)=>Ks(e)?new Gn(t,{enableHardwareAcceleration:!1}):new Nn(t,{enableHardwareAcceleration:!0}),Hn={layout:{ProjectionNode:us,MeasureLayout:ss}};function ps({children:e,features:t,strict:s=!1}){const[,i]=R.useState(!Pt(t)),o=R.useRef(void 0);if(!Pt(t)){const{renderer:u,...n}=t;o.current=u,Ot(n)}return R.useEffect(()=>{Pt(t)&&t().then(({renderer:u,...n})=>{Ot(n),o.current=u,i(!0)})},[]),R.createElement(_s.Provider,{value:{renderer:o.current,strict:s}},e)}function Pt(e){return typeof e=="function"}const Wn={renderer:qn,...mi,...oi},ms={...Wn,...Tn,...Hn},zn=()=>{const[e,t]=ot.useState(!1);return F.jsxs(ps,{features:ms,children:[F.jsx(Ge,{onClick:()=>t(s=>!s),children:"Toggle Collapse"}),F.jsx(qe,{isOpened:e,children:F.jsx("p",{children:"Maiores occaecati quis animi nihil debitis. Iure suscipit animi. Repellat quia quas harum possimus dolorum dolore ullam eius. Tenetur aut saepe illo expedita culpa. Nisi asperiores doloribus facere eveniet ad tempore nemo accusantium in. Possimus eum dolorum a aliquid unde dolore corporis. Voluptatem quibusdam ipsam numquam. Vero aliquid odit reiciendis amet cum sapiente commodi. Natus in ullam dignissimos sed eos accusantium. Quis eligendi aliquid. Cumque possimus sed suscipit vero. Repellendus inventore quo porro necessitatibus totam."})})]})};zn.meta={title:"Normal Collapse"};const Kn=()=>{const[e,t]=ot.useState(!1);return F.jsxs(ps,{features:ms,children:[F.jsx(Ge,{onClick:()=>t(s=>!s),children:"Toggle Collapse"}),F.jsx(qe,{isOpened:e,withBackground:!0,children:F.jsx("p",{children:"Maiores occaecati quis animi nihil debitis. Iure suscipit animi. Repellat quia quas harum possimus dolorum dolore ullam eius. Tenetur aut saepe illo expedita culpa. Nisi asperiores doloribus facere eveniet ad tempore nemo accusantium in. Possimus eum dolorum a aliquid unde dolore corporis. Voluptatem quibusdam ipsam numquam. Vero aliquid odit reiciendis amet cum sapiente commodi. Natus in ullam dignissimos sed eos accusantium. Quis eligendi aliquid. Cumque possimus sed suscipit vero. Repellendus inventore quo porro necessitatibus totam."})})]})};Kn.meta={title:"With Background Collapse"};export{zn as CollapseDemo1,Kn as CollapseDemo2}; diff --git a/assets/index.demo-CZ-Kdw_N.js b/assets/index.demo-eFalS46m.js similarity index 81% rename from assets/index.demo-CZ-Kdw_N.js rename to assets/index.demo-eFalS46m.js index 5b657ca240..d428c40b8c 100644 --- a/assets/index.demo-CZ-Kdw_N.js +++ b/assets/index.demo-eFalS46m.js @@ -1 +1 @@ -import{j as e}from"./index-Qg-bAq5J.js";import{W as a,M as i,G as n}from"./Gallery-lvvI9ksR.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";const s=()=>Math.floor(Math.random()*255).toString(16).padStart(2,"0"),t=Array.from({length:10}).map((r,o)=>({src:`https://loremflickr.com/640/480/city?${o}`,height:480,width:640,type:"image",accent:`#${s()}`})),c=()=>e.jsx("div",{className:"inline-block overflow-hidden border border-accent",style:{width:"600px"},children:e.jsx(a,{children:e.jsx(i,{images:t,children:e.jsx(n,{images:t.map(r=>({...r,url:r.src,name:r.src,footnote:r.src}))})})})});c.meta={title:"Gallery",description:"Gallery component"};export{c as Demo1}; +import{j as e}from"./index-HRfeE_7B.js";import{W as a,M as i,G as n}from"./Gallery-32-V3LXo.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";const s=()=>Math.floor(Math.random()*255).toString(16).padStart(2,"0"),t=Array.from({length:10}).map((r,o)=>({src:`https://loremflickr.com/640/480/city?${o}`,height:480,width:640,type:"image",accent:`#${s()}`})),c=()=>e.jsx("div",{className:"inline-block overflow-hidden border border-accent",style:{width:"600px"},children:e.jsx(a,{children:e.jsx(i,{images:t,children:e.jsx(n,{images:t.map(r=>({...r,url:r.src,name:r.src,footnote:r.src}))})})})});c.meta={title:"Gallery",description:"Gallery component"};export{c as Demo1}; diff --git a/assets/index.demo-tXBcLHr3.js b/assets/index.demo-ey_EOA6v.js similarity index 97% rename from assets/index.demo-tXBcLHr3.js rename to assets/index.demo-ey_EOA6v.js index b02f24c6d1..71c9a78042 100644 --- a/assets/index.demo-tXBcLHr3.js +++ b/assets/index.demo-ey_EOA6v.js @@ -1,4 +1,4 @@ -var G=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var i=(e,t,n)=>(G(e,t,"read from private field"),n?n.call(e):t.get(e)),h=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},r=(e,t,n,s)=>(G(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);var $=(e,t,n,s)=>({set _(a){r(e,t,a,n)},get _(){return i(e,t,s)}}),f=(e,t,n)=>(G(e,t,"access private method"),n);import{j as D}from"./index-Qg-bAq5J.js";import{r as ct,n as b,t as dt,h as ut,m as Y,d as Z,f as lt,e as tt,p as et}from"./Gallery-lvvI9ksR.js";import{c as ft,n as d,i as z,a as mt,S as ot,f as nt,o as it,Q as pt,$ as yt,M as bt}from"./Markdown-xk31dQ-T.js";import{R as gt,M as vt}from"./mutation-P8-Et3_d.js";import{i as Ct}from"./infiniteQueryBehavior-7TM6yZv8.js";import{k as It}from"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";import"./spring-hZ91AlwC.js";import"./env-jTYMx4r5.js";import"./Collapse-gGRmuqb3.js";import"./RichLink-sK7aRcsj.js";var q,x,m,k,p,c,K,F,T,N,g,I,st,Mt=(st=class extends gt{constructor(t){super();h(this,T);h(this,g);h(this,q,void 0);h(this,x,void 0);h(this,m,void 0);h(this,k,void 0);h(this,p,void 0);h(this,c,void 0);h(this,K,void 0);h(this,F,void 0);r(this,F,!1),r(this,K,t.defaultOptions),f(this,T,N).call(this,t.options),r(this,c,[]),r(this,m,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,r(this,q,t.state||wt(this.options)),this.state=i(this,q),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!i(this,c).length&&this.state.fetchStatus==="idle"&&i(this,m).remove(this)}setData(t,n){const s=ct(this.state.data,t,this.options);return f(this,g,I).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){f(this,g,I).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s;const n=i(this,k);return(s=i(this,p))==null||s.cancel(t),n?n.then(b).catch(b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(i(this,q))}isActive(){return i(this,c).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||i(this,c).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!dt(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=i(this,c).find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=i(this,p))==null||n.continue()}onOnline(){var n;const t=i(this,c).find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=i(this,p))==null||n.continue()}addObserver(t){i(this,c).includes(t)||(i(this,c).push(t),this.clearGcTimeout(),i(this,m).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){i(this,c).includes(t)&&(r(this,c,i(this,c).filter(n=>n!==t)),i(this,c).length||(i(this,p)&&(i(this,F)?i(this,p).cancel({revert:!0}):i(this,p).cancelRetry()),this.scheduleGc()),i(this,m).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return i(this,c).length}invalidate(){this.state.isInvalidated||f(this,g,I).call(this,{type:"invalidate"})}fetch(t,n){var W,X,J,V;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(i(this,k))return(W=i(this,p))==null||W.continueRetry(),i(this,k)}if(t&&f(this,T,N).call(this,t),!this.options.queryFn){const o=i(this,c).find(C=>C.options.queryFn);o&&f(this,T,N).call(this,o.options)}const s=new AbortController,a={queryKey:this.queryKey,meta:this.meta},l=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(r(this,F,!0),s.signal)})};l(a);const M=()=>this.options.queryFn?(r(this,F,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),w={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:M};l(w),(X=this.options.behavior)==null||X.onFetch(w,this),r(this,x,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((J=w.fetchOptions)==null?void 0:J.meta))&&f(this,g,I).call(this,{type:"fetch",meta:(V=w.fetchOptions)==null?void 0:V.meta});const B=o=>{var C,H,L,j;z(o)&&o.silent||f(this,g,I).call(this,{type:"error",error:o}),z(o)||((H=(C=i(this,m).config).onError)==null||H.call(C,o,this),(j=(L=i(this,m).config).onSettled)==null||j.call(L,this.state.data,o,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return r(this,p,ft({fn:w.fetchFn,abort:s.abort.bind(s),onSuccess:o=>{var C,H,L,j;if(typeof o>"u"){B(new Error(`${this.queryHash} data is undefined`));return}this.setData(o),(H=(C=i(this,m).config).onSuccess)==null||H.call(C,o,this),(j=(L=i(this,m).config).onSettled)==null||j.call(L,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:B,onFail:(o,C)=>{f(this,g,I).call(this,{type:"failed",failureCount:o,error:C})},onPause:()=>{f(this,g,I).call(this,{type:"pause"})},onContinue:()=>{f(this,g,I).call(this,{type:"continue"})},retry:w.options.retry,retryDelay:w.options.retryDelay,networkMode:w.options.networkMode})),r(this,k,i(this,p).promise),i(this,k)}},q=new WeakMap,x=new WeakMap,m=new WeakMap,k=new WeakMap,p=new WeakMap,c=new WeakMap,K=new WeakMap,F=new WeakMap,T=new WeakSet,N=function(t){this.options={...i(this,K),...t},this.updateGcTime(this.options.gcTime)},g=new WeakSet,I=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:mt(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return z(a)&&a.revert&&i(this,x)?{...i(this,x),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),d.batch(()=>{i(this,c).forEach(s=>{s.onQueryUpdate()}),i(this,m).notify({query:this,type:"updated",action:t})})},st);function wt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var v,rt,kt=(rt=class extends ot{constructor(t={}){super();h(this,v,void 0);this.config=t,r(this,v,new Map)}build(t,n,s){const a=n.queryKey,l=n.queryHash??ut(a,n);let M=this.get(l);return M||(M=new Mt({cache:this,queryKey:a,queryHash:l,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(M)),M}add(t){i(this,v).has(t.queryHash)||(i(this,v).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=i(this,v).get(t.queryHash);n&&(t.destroy(),n===t&&i(this,v).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){d.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return i(this,v).get(t)}getAll(){return[...i(this,v).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Y(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Y(t,s)):n}notify(t){d.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){d.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){d.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},v=new WeakMap,rt),y,_,S,at,Ot=(at=class extends ot{constructor(t={}){super();h(this,y,void 0);h(this,_,void 0);h(this,S,void 0);this.config=t,r(this,y,[]),r(this,_,0)}build(t,n,s){const a=new vt({mutationCache:this,mutationId:++$(this,_)._,options:t.defaultMutationOptions(n),state:s});return this.add(a),a}add(t){i(this,y).push(t),this.notify({type:"added",mutation:t})}remove(t){r(this,y,i(this,y).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){d.batch(()=>{i(this,y).forEach(t=>{this.remove(t)})})}getAll(){return i(this,y)}find(t){const n={exact:!0,...t};return i(this,y).find(s=>Z(n,s))}findAll(t={}){return i(this,y).filter(n=>Z(t,n))}notify(t){d.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return r(this,S,(i(this,S)??Promise.resolve()).then(()=>{const t=i(this,y).filter(n=>n.state.isPaused);return d.batch(()=>t.reduce((n,s)=>n.then(()=>s.continue().catch(b)),Promise.resolve()))}).then(()=>{r(this,S,void 0)})),i(this,S)}},y=new WeakMap,_=new WeakMap,S=new WeakMap,at),u,O,Q,R,P,A,E,U,ht,Qt=(ht=class{constructor(e={}){h(this,u,void 0);h(this,O,void 0);h(this,Q,void 0);h(this,R,void 0);h(this,P,void 0);h(this,A,void 0);h(this,E,void 0);h(this,U,void 0);r(this,u,e.queryCache||new kt),r(this,O,e.mutationCache||new Ot),r(this,Q,e.defaultOptions||{}),r(this,R,new Map),r(this,P,new Map),r(this,A,0)}mount(){$(this,A)._++,i(this,A)===1&&(r(this,E,nt.subscribe(()=>{nt.isFocused()&&(this.resumePausedMutations(),i(this,u).onFocus())})),r(this,U,it.subscribe(()=>{it.isOnline()&&(this.resumePausedMutations(),i(this,u).onOnline())})))}unmount(){var e,t;$(this,A)._--,i(this,A)===0&&((e=i(this,E))==null||e.call(this),r(this,E,void 0),(t=i(this,U))==null||t.call(this),r(this,U,void 0))}isFetching(e){return i(this,u).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return i(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=i(this,u).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=i(this,u).find({queryKey:e}),a=s==null?void 0:s.state.data,l=lt(t,a);if(typeof l>"u")return;const M=this.defaultQueryOptions({queryKey:e});return i(this,u).build(this,M).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return d.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var t;return(t=i(this,u).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=i(this,u);d.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=i(this,u),s={type:"active",...e};return d.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(s,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},s=d.batch(()=>i(this,u).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(b).catch(b)}invalidateQueries(e={},t={}){return d.batch(()=>{if(i(this,u).findAll(e).forEach(s=>{s.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},s=d.batch(()=>i(this,u).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(b)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(b)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=i(this,u).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b).catch(b)}fetchInfiniteQuery(e){return e.behavior=Ct(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b).catch(b)}resumePausedMutations(){return i(this,O).resumePausedMutations()}getQueryCache(){return i(this,u)}getMutationCache(){return i(this,O)}getDefaultOptions(){return i(this,Q)}setDefaultOptions(e){r(this,Q,e)}setQueryDefaults(e,t){i(this,R).set(tt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...i(this,R).values()];let n={};return t.forEach(s=>{et(e,s.queryKey)&&(n={...n,...s.defaultOptions})}),n}setMutationDefaults(e,t){i(this,P).set(tt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...i(this,P).values()];let n={};return t.forEach(s=>{et(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...i(this,Q).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ut(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...i(this,Q).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){i(this,u).clear(),i(this,O).clear()}},u=new WeakMap,O=new WeakMap,Q=new WeakMap,R=new WeakMap,P=new WeakMap,A=new WeakMap,E=new WeakMap,U=new WeakMap,ht);const At=`## List and GFM Tasks +var G=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var i=(e,t,n)=>(G(e,t,"read from private field"),n?n.call(e):t.get(e)),h=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},r=(e,t,n,s)=>(G(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);var $=(e,t,n,s)=>({set _(a){r(e,t,a,n)},get _(){return i(e,t,s)}}),f=(e,t,n)=>(G(e,t,"access private method"),n);import{j as D}from"./index-HRfeE_7B.js";import{r as ct,n as b,t as dt,h as ut,m as Y,d as Z,f as lt,e as tt,p as et}from"./Gallery-32-V3LXo.js";import{c as ft,n as d,i as z,a as mt,S as ot,f as nt,o as it,Q as pt,$ as yt,M as bt}from"./Markdown-tpcPSstc.js";import{R as gt,M as vt}from"./mutation-qwHfn3Jw.js";import{i as Ct}from"./infiniteQueryBehavior-Ju3wkMyP.js";import{k as It}from"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./index-iAcAeRlm.js";import"./spring-0AHu48BV.js";import"./env-jTYMx4r5.js";import"./Collapse-JZfrBou4.js";import"./RichLink-6jHOm4uG.js";var q,x,m,k,p,c,K,F,T,N,g,I,st,Mt=(st=class extends gt{constructor(t){super();h(this,T);h(this,g);h(this,q,void 0);h(this,x,void 0);h(this,m,void 0);h(this,k,void 0);h(this,p,void 0);h(this,c,void 0);h(this,K,void 0);h(this,F,void 0);r(this,F,!1),r(this,K,t.defaultOptions),f(this,T,N).call(this,t.options),r(this,c,[]),r(this,m,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,r(this,q,t.state||wt(this.options)),this.state=i(this,q),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!i(this,c).length&&this.state.fetchStatus==="idle"&&i(this,m).remove(this)}setData(t,n){const s=ct(this.state.data,t,this.options);return f(this,g,I).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){f(this,g,I).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s;const n=i(this,k);return(s=i(this,p))==null||s.cancel(t),n?n.then(b).catch(b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(i(this,q))}isActive(){return i(this,c).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||i(this,c).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!dt(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=i(this,c).find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=i(this,p))==null||n.continue()}onOnline(){var n;const t=i(this,c).find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=i(this,p))==null||n.continue()}addObserver(t){i(this,c).includes(t)||(i(this,c).push(t),this.clearGcTimeout(),i(this,m).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){i(this,c).includes(t)&&(r(this,c,i(this,c).filter(n=>n!==t)),i(this,c).length||(i(this,p)&&(i(this,F)?i(this,p).cancel({revert:!0}):i(this,p).cancelRetry()),this.scheduleGc()),i(this,m).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return i(this,c).length}invalidate(){this.state.isInvalidated||f(this,g,I).call(this,{type:"invalidate"})}fetch(t,n){var W,X,J,V;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(i(this,k))return(W=i(this,p))==null||W.continueRetry(),i(this,k)}if(t&&f(this,T,N).call(this,t),!this.options.queryFn){const o=i(this,c).find(C=>C.options.queryFn);o&&f(this,T,N).call(this,o.options)}const s=new AbortController,a={queryKey:this.queryKey,meta:this.meta},l=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(r(this,F,!0),s.signal)})};l(a);const M=()=>this.options.queryFn?(r(this,F,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),w={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:M};l(w),(X=this.options.behavior)==null||X.onFetch(w,this),r(this,x,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((J=w.fetchOptions)==null?void 0:J.meta))&&f(this,g,I).call(this,{type:"fetch",meta:(V=w.fetchOptions)==null?void 0:V.meta});const B=o=>{var C,H,L,j;z(o)&&o.silent||f(this,g,I).call(this,{type:"error",error:o}),z(o)||((H=(C=i(this,m).config).onError)==null||H.call(C,o,this),(j=(L=i(this,m).config).onSettled)==null||j.call(L,this.state.data,o,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return r(this,p,ft({fn:w.fetchFn,abort:s.abort.bind(s),onSuccess:o=>{var C,H,L,j;if(typeof o>"u"){B(new Error(`${this.queryHash} data is undefined`));return}this.setData(o),(H=(C=i(this,m).config).onSuccess)==null||H.call(C,o,this),(j=(L=i(this,m).config).onSettled)==null||j.call(L,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:B,onFail:(o,C)=>{f(this,g,I).call(this,{type:"failed",failureCount:o,error:C})},onPause:()=>{f(this,g,I).call(this,{type:"pause"})},onContinue:()=>{f(this,g,I).call(this,{type:"continue"})},retry:w.options.retry,retryDelay:w.options.retryDelay,networkMode:w.options.networkMode})),r(this,k,i(this,p).promise),i(this,k)}},q=new WeakMap,x=new WeakMap,m=new WeakMap,k=new WeakMap,p=new WeakMap,c=new WeakMap,K=new WeakMap,F=new WeakMap,T=new WeakSet,N=function(t){this.options={...i(this,K),...t},this.updateGcTime(this.options.gcTime)},g=new WeakSet,I=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:mt(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return z(a)&&a.revert&&i(this,x)?{...i(this,x),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),d.batch(()=>{i(this,c).forEach(s=>{s.onQueryUpdate()}),i(this,m).notify({query:this,type:"updated",action:t})})},st);function wt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var v,rt,kt=(rt=class extends ot{constructor(t={}){super();h(this,v,void 0);this.config=t,r(this,v,new Map)}build(t,n,s){const a=n.queryKey,l=n.queryHash??ut(a,n);let M=this.get(l);return M||(M=new Mt({cache:this,queryKey:a,queryHash:l,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(M)),M}add(t){i(this,v).has(t.queryHash)||(i(this,v).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=i(this,v).get(t.queryHash);n&&(t.destroy(),n===t&&i(this,v).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){d.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return i(this,v).get(t)}getAll(){return[...i(this,v).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Y(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Y(t,s)):n}notify(t){d.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){d.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){d.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},v=new WeakMap,rt),y,_,S,at,Ot=(at=class extends ot{constructor(t={}){super();h(this,y,void 0);h(this,_,void 0);h(this,S,void 0);this.config=t,r(this,y,[]),r(this,_,0)}build(t,n,s){const a=new vt({mutationCache:this,mutationId:++$(this,_)._,options:t.defaultMutationOptions(n),state:s});return this.add(a),a}add(t){i(this,y).push(t),this.notify({type:"added",mutation:t})}remove(t){r(this,y,i(this,y).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){d.batch(()=>{i(this,y).forEach(t=>{this.remove(t)})})}getAll(){return i(this,y)}find(t){const n={exact:!0,...t};return i(this,y).find(s=>Z(n,s))}findAll(t={}){return i(this,y).filter(n=>Z(t,n))}notify(t){d.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return r(this,S,(i(this,S)??Promise.resolve()).then(()=>{const t=i(this,y).filter(n=>n.state.isPaused);return d.batch(()=>t.reduce((n,s)=>n.then(()=>s.continue().catch(b)),Promise.resolve()))}).then(()=>{r(this,S,void 0)})),i(this,S)}},y=new WeakMap,_=new WeakMap,S=new WeakMap,at),u,O,Q,R,P,A,E,U,ht,Qt=(ht=class{constructor(e={}){h(this,u,void 0);h(this,O,void 0);h(this,Q,void 0);h(this,R,void 0);h(this,P,void 0);h(this,A,void 0);h(this,E,void 0);h(this,U,void 0);r(this,u,e.queryCache||new kt),r(this,O,e.mutationCache||new Ot),r(this,Q,e.defaultOptions||{}),r(this,R,new Map),r(this,P,new Map),r(this,A,0)}mount(){$(this,A)._++,i(this,A)===1&&(r(this,E,nt.subscribe(()=>{nt.isFocused()&&(this.resumePausedMutations(),i(this,u).onFocus())})),r(this,U,it.subscribe(()=>{it.isOnline()&&(this.resumePausedMutations(),i(this,u).onOnline())})))}unmount(){var e,t;$(this,A)._--,i(this,A)===0&&((e=i(this,E))==null||e.call(this),r(this,E,void 0),(t=i(this,U))==null||t.call(this),r(this,U,void 0))}isFetching(e){return i(this,u).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return i(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=i(this,u).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=i(this,u).find({queryKey:e}),a=s==null?void 0:s.state.data,l=lt(t,a);if(typeof l>"u")return;const M=this.defaultQueryOptions({queryKey:e});return i(this,u).build(this,M).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return d.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var t;return(t=i(this,u).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=i(this,u);d.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=i(this,u),s={type:"active",...e};return d.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(s,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},s=d.batch(()=>i(this,u).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(b).catch(b)}invalidateQueries(e={},t={}){return d.batch(()=>{if(i(this,u).findAll(e).forEach(s=>{s.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},s=d.batch(()=>i(this,u).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(b)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(b)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=i(this,u).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b).catch(b)}fetchInfiniteQuery(e){return e.behavior=Ct(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b).catch(b)}resumePausedMutations(){return i(this,O).resumePausedMutations()}getQueryCache(){return i(this,u)}getMutationCache(){return i(this,O)}getDefaultOptions(){return i(this,Q)}setDefaultOptions(e){r(this,Q,e)}setQueryDefaults(e,t){i(this,R).set(tt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...i(this,R).values()];let n={};return t.forEach(s=>{et(e,s.queryKey)&&(n={...n,...s.defaultOptions})}),n}setMutationDefaults(e,t){i(this,P).set(tt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...i(this,P).values()];let n={};return t.forEach(s=>{et(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...i(this,Q).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ut(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...i(this,Q).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){i(this,u).clear(),i(this,O).clear()}},u=new WeakMap,O=new WeakMap,Q=new WeakMap,R=new WeakMap,P=new WeakMap,A=new WeakMap,E=new WeakMap,U=new WeakMap,ht);const At=`## List and GFM Tasks 1. First 2. Second diff --git a/assets/index.demo-2NV1Cuwz.js b/assets/index.demo-iQQXqAe0.js similarity index 81% rename from assets/index.demo-2NV1Cuwz.js rename to assets/index.demo-iQQXqAe0.js index a916339e9e..bb9130b37f 100644 --- a/assets/index.demo-2NV1Cuwz.js +++ b/assets/index.demo-iQQXqAe0.js @@ -1 +1 @@ -import{j as i}from"./index-Qg-bAq5J.js";import{L as r,a as t}from"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const o=()=>i.jsx(r,{id:"notes/145",source:t.MixSpace});o.meta={description:"Show Mix Space Note LinkCard",title:"LinkCard - Mix Space Note"};const e=()=>i.jsx(r,{id:"innei/innei",source:t.GHRepo});e.meta={description:"Show Github Repo LinkCard",title:"LinkCard - GitHub Repo"};const n=()=>i.jsx(r,{id:"notes/1451",source:t.MixSpace});n.meta={description:"Error LinkCard",title:"LinkCard - Error"};const a=()=>i.jsx(r,{id:"innei/shiro/132",source:t.GHPr});a.meta={description:"Show Github PR LinkCard",title:"LinkCard - GitHub PR"};const d=()=>i.jsx(r,{id:"innei/shiro/commit/0bf51cd8cf8457a2666906dea4a333081fc2a2b8",source:t.GHCommit});d.meta={description:"Show Github Commit LinkCard",title:"LinkCard - GitHub Commit"};export{o as LinkCardDemo1,e as LinkCardDemo2,n as LinkCardDemo3,a as LinkCardDemo4,d as LinkCardDemo5}; +import{j as i}from"./index-HRfeE_7B.js";import{L as r,a as t}from"./LinkCard-gCgkDO82.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const o=()=>i.jsx(r,{id:"notes/145",source:t.MixSpace});o.meta={description:"Show Mix Space Note LinkCard",title:"LinkCard - Mix Space Note"};const e=()=>i.jsx(r,{id:"innei/innei",source:t.GHRepo});e.meta={description:"Show Github Repo LinkCard",title:"LinkCard - GitHub Repo"};const n=()=>i.jsx(r,{id:"notes/1451",source:t.MixSpace});n.meta={description:"Error LinkCard",title:"LinkCard - Error"};const a=()=>i.jsx(r,{id:"innei/shiro/132",source:t.GHPr});a.meta={description:"Show Github PR LinkCard",title:"LinkCard - GitHub PR"};const d=()=>i.jsx(r,{id:"innei/shiro/commit/0bf51cd8cf8457a2666906dea4a333081fc2a2b8",source:t.GHCommit});d.meta={description:"Show Github Commit LinkCard",title:"LinkCard - GitHub Commit"};export{o as LinkCardDemo1,e as LinkCardDemo2,n as LinkCardDemo3,a as LinkCardDemo4,d as LinkCardDemo5}; diff --git a/assets/infiniteQueryBehavior-7TM6yZv8.js b/assets/infiniteQueryBehavior-Ju3wkMyP.js similarity index 96% rename from assets/infiniteQueryBehavior-7TM6yZv8.js rename to assets/infiniteQueryBehavior-Ju3wkMyP.js index fa43d00d73..97f9481746 100644 --- a/assets/infiniteQueryBehavior-7TM6yZv8.js +++ b/assets/infiniteQueryBehavior-Ju3wkMyP.js @@ -1 +1 @@ -import{a as T,b as k}from"./Gallery-lvvI9ksR.js";function O(a){return{onFetch:(e,t)=>{const s=async()=>{var p,y,h,q,F;const o=e.options,u=(h=(y=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:y.fetchMore)==null?void 0:h.direction,P=((q=e.state.data)==null?void 0:q.pages)||[],d=((F=e.state.data)==null?void 0:F.pageParams)||[],K={pages:[],pageParams:[]};let c=!1;const j=r=>{Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},E=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),f=async(r,n,i)=>{if(c)return Promise.reject();if(n==null&&r.pages.length)return Promise.resolve(r);const l={queryKey:e.queryKey,pageParam:n,direction:i?"backward":"forward",meta:e.options.meta};j(l);const N=await E(l),{maxPages:w}=e.options,b=i?T:k;return{pages:b(r.pages,N,w),pageParams:b(r.pageParams,n,w)}};let g;if(u&&P.length){const r=u==="backward",n=r?v:m,i={pages:P,pageParams:d},l=n(o,i);g=await f(i,l,r)}else{g=await f(K,d[0]??o.initialPageParam);const r=a??P.length;for(let n=1;n{var o,u;return(u=(o=e.options).persister)==null?void 0:u.call(o,s,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=s}}}function m(a,{pages:e,pageParams:t}){const s=e.length-1;return a.getNextPageParam(e[s],e,t[s],t)}function v(a,{pages:e,pageParams:t}){var s;return(s=a.getPreviousPageParam)==null?void 0:s.call(a,e[0],e,t[0],t)}function S(a,e){return e?m(a,e)!=null:!1}function B(a,e){return!e||!a.getPreviousPageParam?!1:v(a,e)!=null}export{B as a,S as h,O as i}; +import{a as T,b as k}from"./Gallery-32-V3LXo.js";function O(a){return{onFetch:(e,t)=>{const s=async()=>{var p,y,h,q,F;const o=e.options,u=(h=(y=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:y.fetchMore)==null?void 0:h.direction,P=((q=e.state.data)==null?void 0:q.pages)||[],d=((F=e.state.data)==null?void 0:F.pageParams)||[],K={pages:[],pageParams:[]};let c=!1;const j=r=>{Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},E=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),f=async(r,n,i)=>{if(c)return Promise.reject();if(n==null&&r.pages.length)return Promise.resolve(r);const l={queryKey:e.queryKey,pageParam:n,direction:i?"backward":"forward",meta:e.options.meta};j(l);const N=await E(l),{maxPages:w}=e.options,b=i?T:k;return{pages:b(r.pages,N,w),pageParams:b(r.pageParams,n,w)}};let g;if(u&&P.length){const r=u==="backward",n=r?v:m,i={pages:P,pageParams:d},l=n(o,i);g=await f(i,l,r)}else{g=await f(K,d[0]??o.initialPageParam);const r=a??P.length;for(let n=1;n{var o,u;return(u=(o=e.options).persister)==null?void 0:u.call(o,s,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=s}}}function m(a,{pages:e,pageParams:t}){const s=e.length-1;return a.getNextPageParam(e[s],e,t[s],t)}function v(a,{pages:e,pageParams:t}){var s;return(s=a.getPreviousPageParam)==null?void 0:s.call(a,e[0],e,t[0],t)}function S(a,e){return e?m(a,e)!=null:!1}function B(a,e){return!e||!a.getPreviousPageParam?!1:v(a,e)!=null}export{B as a,S as h,O as i}; diff --git a/assets/infoDiagram-a336098b-PQlAVZVr.js b/assets/infoDiagram-a336098b-A5eiqr5L.js similarity index 97% rename from assets/infoDiagram-a336098b-PQlAVZVr.js rename to assets/infoDiagram-a336098b-A5eiqr5L.js index 47e9417989..9b4bd3994c 100644 --- a/assets/infoDiagram-a336098b-PQlAVZVr.js +++ b/assets/infoDiagram-a336098b-A5eiqr5L.js @@ -1,4 +1,4 @@ -import{l as Y,v as D,i as M}from"./mermaid.core-uOCfdc17.js";import"./LinkCard-aLl-jjA_.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var O=function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +import{l as Y,v as D,i as M}from"./mermaid.core-YsxFu0Y0.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var O=function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: `+o.showPosition()+` Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:i.push(l),r.push(o.yytext),n.push(o.yylloc),i.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],m.$=r[r.length-c],m._$={first_line:n[n.length-(c||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(c||1)].first_column,last_column:n[n.length-1].last_column},z&&(m._$.range=[n[n.length-(c||1)].range[0],n[n.length-1].range[1]]),w=this.performAction.apply(m,[P,L,v,p.yy,h[1],r,n].concat(R)),typeof w<"u")return w;c&&(i=i.slice(0,-1*c*2),r=r.slice(0,-1*c),n=n.slice(0,-1*c)),i.push(this.productions_[h[1]][0]),r.push(m.$),n.push(m._$),F=d[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,i){if(this.yy.parser)this.yy.parser.parseError(e,i);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/assets/journeyDiagram-deae3313-dyWWXkRg.js b/assets/journeyDiagram-deae3313-NAwzEuks.js similarity index 98% rename from assets/journeyDiagram-deae3313-dyWWXkRg.js rename to assets/journeyDiagram-deae3313-NAwzEuks.js index 1289dc837a..66bfb4918d 100644 --- a/assets/journeyDiagram-deae3313-dyWWXkRg.js +++ b/assets/journeyDiagram-deae3313-NAwzEuks.js @@ -1,4 +1,4 @@ -import{c as I,o as yt,p as ft,s as dt,g as pt,b as gt,a as mt,q as xt,h as W,i as kt}from"./mermaid.core-uOCfdc17.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-ad5ef572-ZpVsMh3H.js";import"./LinkCard-aLl-jjA_.js";import{a as Q}from"./arc-suLvkwOy.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./path-aUcfwwLI.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,q,A={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var O="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?O="Parse error on line "+(R+1)+`: +import{c as I,o as yt,p as ft,s as dt,g as pt,b as gt,a as mt,q as xt,h as W,i as kt}from"./mermaid.core-YsxFu0Y0.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-ad5ef572-6JSuLc9B.js";import"./LinkCard-gCgkDO82.js";import{a as Q}from"./arc-l0axwUh0.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./path-aUcfwwLI.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,q,A={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var O="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?O="Parse error on line "+(R+1)+`: `+x.showPosition()+` Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":O="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],A.$=d[d.length-$],A._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(A._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(A,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof q<"u")return q;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(A.$),o.push(A._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/assets/layout-TzcvurS1.js b/assets/layout-or5_ZLqg.js similarity index 99% rename from assets/layout-TzcvurS1.js rename to assets/layout-or5_ZLqg.js index 16799e0a8b..fff73e52c6 100644 --- a/assets/layout-TzcvurS1.js +++ b/assets/layout-or5_ZLqg.js @@ -1 +1 @@ -import{ap as q,aq as fr,ar as O,as as x,at as F,au as fn,av as dr,aw as cr,ax as hr,ay as Te,az as lr,aA as vr,aB as dn,aC as X,aD as gr,aE as Le,aF as pr,aG as H,aH as an,aI as Cn,aJ as br,aK as Ln,aL as wr,aM as mr,aN as U,aO as In,aP as _r,aQ as Ae,aR as Kn,aS as Er,aT as yr,aU as Ne,aV as V,aW as Oe,aX as xr,aY as Pn,aZ as on,a_ as Tr,a$ as bn,b0 as Lr,b1 as B,aa as Xn,b2 as Vn,b3 as An}from"./mermaid.core-uOCfdc17.js";var Ar="[object Symbol]";function $(n){return typeof n=="symbol"||q(n)&&fr(n)==Ar}function R(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r-1}function T(n){return fn(n)?dr(n):cr(n)}var Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;function $n(n,e){if(x(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||$(n)?!0:Wr.test(n)||!Hr.test(n)||e!=null&&n in Object(e)}var jr=500;function Kr(n){var e=hr(n,function(t){return r.size===jr&&r.clear(),t}),r=e.cache;return e}var Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/\\(\\)?/g,Zr=Kr(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Xr,function(r,t,i,a){e.push(i?a.replace(Vr,"$1"):t||r)}),e});const Jr=Zr;function $e(n){return n==null?"":Ce(n)}function cn(n,e){return x(n)?n:$n(n,e)?[n]:Jr($e(n))}var Qr=1/0;function Z(n){if(typeof n=="string"||$(n))return n;var e=n+"";return e=="0"&&1/n==-Qr?"-0":e}function hn(n,e){e=cn(e,n);for(var r=0,t=e.length;n!=null&&r0&&r(s)?e>1?ln(s,e-1,r,t,i):Sn(i,s):t||(i[i.length]=s)}return i}function G(n){var e=n==null?0:n.length;return e?ln(n,1):[]}function et(n){return lr(vr(n,void 0,G),n+"")}function rt(n,e,r,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(r=n[++i]);++is))return!1;var f=a.get(n),d=a.get(e);if(f&&d)return f==e&&d==n;var h=-1,l=!0,g=r&Oi?new W:void 0;for(a.set(n,e),a.set(e,n);++h2?e[2]:void 0;for(i&&on(e[0],e[1],i)&&(t=1);++r-1?i[a?e[o]:o]:void 0}}var wa=Math.max;function ma(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:Gr(r);return i<0&&(i=wa(t+i,0)),Pe(n,C(e),i)}var _a=ba(ma);const kn=_a;function Ke(n,e){var r=-1,t=fn(n)?Array(n.length):[];return vn(n,function(i,a,o){t[++r]=e(i,a,o)}),t}function E(n,e){var r=x(n)?R:Ke;return r(n,C(e))}function Ea(n,e){return n==null?n:Oe(n,Gn(e),X)}function ya(n,e){return n&&Dn(n,Gn(e))}function xa(n,e){return n>e}var Ta=Object.prototype,La=Ta.hasOwnProperty;function Aa(n,e){return n!=null&&La.call(n,e)}function b(n,e){return n!=null&&He(n,e,Aa)}function Na(n,e){return R(e,function(r){return n[r]})}function N(n){return n==null?[]:Na(n,T(n))}function y(n){return n===void 0}function Xe(n,e){return ne||a&&o&&u&&!s&&!f||t&&o&&u||!r&&u||!i)return 1;if(!t&&!a&&!f&&n=s)return u;var f=r[t];return u*(f=="desc"?-1:1)}}return n.index-e.index}function Sa(n,e,r){e.length?e=R(e,function(a){return x(a)?function(o){return hn(o,a.length===1?a[0]:a)}:a}):e=[V];var t=-1;e=R(e,Cn(C));var i=Ke(n,function(a,o,s){var u=R(e,function(f){return f(a)});return{criteria:u,index:++t,value:a}});return Ia(i,function(a,o){return $a(a,o,r)})}function Ma(n,e){return Ca(n,e,function(r,t){return We(n,t)})}var Ra=et(function(n,e){return n==null?{}:Ma(n,e)});const un=Ra;var Fa=Math.ceil,Da=Math.max;function Ga(n,e,r,t){for(var i=-1,a=Da(Fa((e-n)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=n,n+=r;return o}function ka(n){return function(e,r,t){return t&&typeof t!="number"&&on(e,r,t)&&(r=t=void 0),e=rn(e),r===void 0?(r=e,e=0):r=rn(r),t=t===void 0?e1&&on(n,e[0],e[1])?e=[]:r>2&&on(e[0],e[1],e[2])&&(e=[e[0]]),Sa(n,ln(e,1),[])});const Q=Ua;var qa=1/0,Ha=bn&&1/Rn(new bn([,-0]))[1]==qa?function(n){return new bn(n)}:kr;const Wa=Ha;var ja=200;function Ka(n,e,r){var t=-1,i=qr,a=n.length,o=!0,s=[],u=s;if(r)o=!1,i=ga;else if(a>=ja){var f=e?null:Wa(n);if(f)return Rn(f);o=!1,i=Be,u=new W}else u=e?[]:s;n:for(;++t1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return b(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=P,this._children[e]={},this._children[P][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return b(this._nodes,e)}removeNode(e){var r=this;if(b(this._nodes,e)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),c(T(this._in[e]),t),delete this._in[e],delete this._preds[e],c(T(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(y(r))r=P;else{r+="";for(var t=r;!y(t);t=this.parent(t))if(t===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==P)return r}}children(e){if(y(e)&&(e=P),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===P)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return T(r)}successors(e){var r=this._sucs[e];if(r)return T(r)}neighbors(e){var r=this.predecessors(e);if(r)return Va(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;c(this._nodes,function(o,s){e(s)&&r.setNode(s,o)}),c(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,t.edge(o))});var i={};function a(o){var s=t.parent(o);return s===void 0||r.hasNode(s)?(i[o]=s,s):s in i?i[s]:a(s)}return this._isCompound&&c(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return Xn(e)||(e=B(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return N(this._edgeObjs)}setPath(e,r){var t=this,i=arguments;return J(e,function(a,o){return i.length>1?t.setEdge(a,o,r):t.setEdge(a,o),o}),this}setEdge(){var e,r,t,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,t=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,y(t)||(t=""+t);var s=Y(this._isDirected,e,r,t);if(b(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!y(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(e,r,t);var u=no(this._isDirected,e,r,t);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[s]=u,he(this._preds[r],e),he(this._sucs[e],r),this._in[r][s]=u,this._out[e][s]=u,this._edgeCount++,this}edge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t);return this._edgeLabels[i]}hasEdge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t);return b(this._edgeLabels,i)}removeEdge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],le(this._preds[r],e),le(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var t=this._in[e];if(t){var i=N(t);return r?A(i,function(a){return a.v===r}):i}}outEdges(e,r){var t=this._out[e];if(t){var i=N(t);return r?A(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var t=this.inEdges(e,r);if(t)return t.concat(this.outEdges(e,r))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function he(n,e){n[e]?n[e]++:n[e]=1}function le(n,e){--n[e]||delete n[e]}function Y(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}return i+ce+a+ce+(y(t)?za:t)}function no(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return t&&(s.name=t),s}function mn(n,e){return Y(n,e.v,e.w,e.name)}class eo{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return ve(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&ve(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,ro)),t=t._prev;return"["+e.join(", ")+"]"}}function ve(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function ro(n,e){if(n!=="_next"&&n!=="_prev")return e}var to=B(1);function io(n,e){if(n.nodeCount()<=1)return[];var r=oo(n,e||to),t=ao(r.graph,r.buckets,r.zeroIdx);return G(E(t,function(i){return n.outEdges(i.v,i.w)}))}function ao(n,e,r){for(var t=[],i=e[e.length-1],a=e[0],o;n.nodeCount();){for(;o=a.dequeue();)_n(n,e,r,o);for(;o=i.dequeue();)_n(n,e,r,o);if(n.nodeCount()){for(var s=e.length-2;s>0;--s)if(o=e[s].dequeue(),o){t=t.concat(_n(n,e,r,o,!0));break}}}return t}function _n(n,e,r,t,i){var a=i?[]:void 0;return c(n.inEdges(t.v),function(o){var s=n.edge(o),u=n.node(o.v);i&&a.push({v:o.v,w:o.w}),u.out-=s,On(e,r,u)}),c(n.outEdges(t.v),function(o){var s=n.edge(o),u=o.w,f=n.node(u);f.in-=s,On(e,r,f)}),n.removeNode(t.v),a}function oo(n,e){var r=new L,t=0,i=0;c(n.nodes(),function(s){r.setNode(s,{v:s,in:0,out:0})}),c(n.edges(),function(s){var u=r.edge(s.v,s.w)||0,f=e(s),d=u+f;r.setEdge(s.v,s.w,d),i=Math.max(i,r.node(s.v).out+=f),t=Math.max(t,r.node(s.w).in+=f)});var a=D(i+t+3).map(function(){return new eo}),o=t+1;return c(r.nodes(),function(s){On(a,o,r.node(s))}),{graph:r,buckets:a,zeroIdx:o}}function On(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function so(n){var e=n.graph().acyclicer==="greedy"?io(n,r(n)):uo(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,Un("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function uo(n){var e=[],r={},t={};function i(a){b(t,a)||(t[a]=!0,r[a]=!0,c(n.outEdges(a),function(o){b(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return c(n.nodes(),i),e}function fo(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function k(n,e,r,t){var i;do i=Un(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function co(n){var e=new L().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Ve(n){var e=new L({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function ge(n,e){var r=n.x,t=n.y,i=e.x-r,a=e.y-t,o=n.width/2,s=n.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,f;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),u=s*i/a,f=s):(i<0&&(o=-o),u=o,f=o*a/i),{x:r+u,y:t+f}}function pn(n){var e=E(D(Ze(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;y(i)||(e[i][t.order]=r)}),e}function ho(n){var e=j(E(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);b(t,"rank")&&(t.rank-=e)})}function lo(n){var e=j(E(n.nodes(),function(a){return n.node(a).rank})),r=[];c(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=n.graph().nodeRankFactor;c(r,function(a,o){y(a)&&o%i!==0?--t:t&&c(a,function(s){n.node(s).rank+=t})})}function pe(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),k(n,"border",i,e)}function Ze(n){return S(E(n.nodes(),function(e){var r=n.node(e).rank;if(!y(r))return r}))}function vo(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function go(n,e){var r=de();try{return e()}finally{console.log(n+" time: "+(de()-r)+"ms")}}function po(n,e){return e()}function bo(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),b(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;ao.lim&&(s=o,u=!0);var f=A(e.edges(),function(d){return u===me(n,n.node(d.v),s)&&u!==me(n,n.node(d.w),s)});return Yn(f,function(d){return K(e,d)})}function ar(n,e,r,t){var i=r.v,a=r.w;n.removeEdge(i,a),n.setEdge(t.v,t.w,{}),Wn(n),Hn(n,e),$o(n,e)}function $o(n,e){var r=kn(n.nodes(),function(i){return!e.node(i).parent}),t=Io(n,r);t=t.slice(1),c(t,function(i){var a=n.node(i).parent,o=e.edge(i,a),s=!1;o||(o=e.edge(a,i),s=!0),e.node(i).rank=e.node(a).rank+(s?o.minlen:-o.minlen)})}function So(n,e,r){return n.hasEdge(e,r)}function me(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Mo(n){switch(n.graph().ranker){case"network-simplex":_e(n);break;case"tight-tree":Fo(n);break;case"longest-path":Ro(n);break;default:_e(n)}}var Ro=qn;function Fo(n){qn(n),Qe(n)}function _e(n){M(n)}function Do(n){var e=k(n,"root",{},"_root"),r=Go(n),t=S(N(r))-1,i=2*t+1;n.graph().nestingRoot=e,c(n.edges(),function(o){n.edge(o).minlen*=i});var a=ko(n)+1;c(n.children(),function(o){or(n,e,i,a,t,r,o)}),n.graph().nodeRankFactor=i}function or(n,e,r,t,i,a,o){var s=n.children(o);if(!s.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var u=pe(n,"_bt"),f=pe(n,"_bb"),d=n.node(o);n.setParent(u,o),d.borderTop=u,n.setParent(f,o),d.borderBottom=f,c(s,function(h){or(n,e,r,t,i,a,h);var l=n.node(h),g=l.borderTop?l.borderTop:h,v=l.borderBottom?l.borderBottom:h,p=l.borderTop?t:2*t,m=g!==v?1:i-a[o]+1;n.setEdge(u,g,{weight:p,minlen:m,nestingEdge:!0}),n.setEdge(v,f,{weight:p,minlen:m,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,u,{weight:0,minlen:i+a[o]})}function Go(n){var e={};function r(t,i){var a=n.children(t);a&&a.length&&c(a,function(o){r(o,i+1)}),e[t]=i}return c(n.children(),function(t){r(t,1)}),e}function ko(n){return J(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Bo(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,c(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Yo(n,e,r){var t={},i;c(r,function(a){for(var o=n.parent(a),s,u;o;){if(s=n.parent(o),s?(u=t[s],t[s]=o):(u=i,i=o),u&&u!==o){e.setEdge(u,o);return}o=s}})}function Uo(n,e,r){var t=qo(n),i=new L({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return n.node(a)});return c(n.nodes(),function(a){var o=n.node(a),s=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||t),c(n[r](a),function(u){var f=u.v===a?u.w:u.v,d=i.edge(f,a),h=y(d)?0:d.weight;i.setEdge(f,a,{weight:n.edge(u).weight+h})}),b(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i}function qo(n){for(var e;n.hasNode(e=Un("_root")););return e}function Ho(n,e){for(var r=0,t=1;t0;)d%2&&(h+=s[d+1]),d=d-1>>1,s[d]+=f.weight;u+=f.weight*h})),u}function jo(n){var e={},r=A(n.nodes(),function(s){return!n.children(s).length}),t=S(E(r,function(s){return n.node(s).rank})),i=E(D(t+1),function(){return[]});function a(s){if(!b(e,s)){e[s]=!0;var u=n.node(s);i[u.rank].push(s),c(n.successors(s),a)}}var o=Q(r,function(s){return n.node(s).rank});return c(o,a),i}function Ko(n,e){return E(e,function(r){var t=n.inEdges(r);if(t.length){var i=J(t,function(a,o){var s=n.edge(o),u=n.node(o.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Xo(n,e){var r={};c(n,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};y(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),c(e.edges(),function(i){var a=r[i.v],o=r[i.w];!y(a)&&!y(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=A(r,function(i){return!i.indegree});return Vo(t)}function Vo(n){var e=[];function r(a){return function(o){o.merged||(y(o.barycenter)||y(a.barycenter)||o.barycenter>=a.barycenter)&&Zo(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return E(A(e,function(a){return!a.merged}),function(a){return un(a,["vs","i","barycenter","weight"])})}function Zo(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Jo(n,e){var r=vo(n,function(d){return b(d,"barycenter")}),t=r.lhs,i=Q(r.rhs,function(d){return-d.i}),a=[],o=0,s=0,u=0;t.sort(Qo(!!e)),u=Ee(a,i,u),c(t,function(d){u+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,s+=d.weight,u=Ee(a,i,u)});var f={vs:G(a)};return s&&(f.barycenter=o/s,f.weight=s),f}function Ee(n,e,r){for(var t;e.length&&(t=sn(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Qo(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function sr(n,e,r,t){var i=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};o&&(i=A(i,function(v){return v!==o&&v!==s}));var f=Ko(n,i);c(f,function(v){if(n.children(v.v).length){var p=sr(n,v.v,r,t);u[v.v]=p,b(p,"barycenter")&&ns(v,p)}});var d=Xo(f,r);zo(d,u);var h=Jo(d,t);if(o&&(h.vs=G([o,h.vs,s]),n.predecessors(o).length)){var l=n.node(n.predecessors(o)[0]),g=n.node(n.predecessors(s)[0]);b(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+g.order)/(h.weight+2),h.weight+=2}return h}function zo(n,e){c(n,function(r){r.vs=G(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function ns(n,e){y(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function es(n){var e=Ze(n),r=ye(n,D(1,e+1),"inEdges"),t=ye(n,D(e-1,-1,-1),"outEdges"),i=jo(n);xe(n,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,u=0;u<4;++s,++u){rs(s%2?r:t,s%4>=2),i=pn(n);var f=Ho(n,i);fo||s>e[u].lim));for(f=u,u=t;(u=n.parent(u))!==f;)a.push(u);return{path:i.concat(a.reverse()),lca:f}}function as(n){var e={},r=0;function t(i){var a=r;c(n.children(i),t),e[i]={low:a,lim:r++}}return c(n.children(),t),e}function os(n,e){var r={};function t(i,a){var o=0,s=0,u=i.length,f=sn(a);return c(a,function(d,h){var l=us(n,d),g=l?n.node(l).order:u;(l||d===f)&&(c(a.slice(s,h+1),function(v){c(n.predecessors(v),function(p){var m=n.node(p),_=m.order;(_f)&&ur(r,l,d)})})}function i(a,o){var s=-1,u,f=0;return c(o,function(d,h){if(n.node(d).dummy==="border"){var l=n.predecessors(d);l.length&&(u=n.node(l[0]).order,t(o,f,h,s,u),f=h,s=u)}t(o,f,o.length,u,a.length)}),o}return J(e,i),r}function us(n,e){if(n.node(e).dummy)return kn(n.predecessors(e),function(r){return n.node(r).dummy})}function ur(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function fs(n,e,r){if(e>r){var t=e;e=r,r=t}return b(n[e],r)}function ds(n,e,r,t){var i={},a={},o={};return c(e,function(s){c(s,function(u,f){i[u]=u,a[u]=u,o[u]=f})}),c(e,function(s){var u=-1;c(s,function(f){var d=t(f);if(d.length){d=Q(d,function(p){return o[p]});for(var h=(d.length-1)/2,l=Math.floor(h),g=Math.ceil(h);l<=g;++l){var v=d[l];a[f]===f&&u-1}function T(n){return fn(n)?dr(n):cr(n)}var Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;function $n(n,e){if(x(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||$(n)?!0:Wr.test(n)||!Hr.test(n)||e!=null&&n in Object(e)}var jr=500;function Kr(n){var e=hr(n,function(t){return r.size===jr&&r.clear(),t}),r=e.cache;return e}var Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/\\(\\)?/g,Zr=Kr(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Xr,function(r,t,i,a){e.push(i?a.replace(Vr,"$1"):t||r)}),e});const Jr=Zr;function $e(n){return n==null?"":Ce(n)}function cn(n,e){return x(n)?n:$n(n,e)?[n]:Jr($e(n))}var Qr=1/0;function Z(n){if(typeof n=="string"||$(n))return n;var e=n+"";return e=="0"&&1/n==-Qr?"-0":e}function hn(n,e){e=cn(e,n);for(var r=0,t=e.length;n!=null&&r0&&r(s)?e>1?ln(s,e-1,r,t,i):Sn(i,s):t||(i[i.length]=s)}return i}function G(n){var e=n==null?0:n.length;return e?ln(n,1):[]}function et(n){return lr(vr(n,void 0,G),n+"")}function rt(n,e,r,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(r=n[++i]);++is))return!1;var f=a.get(n),d=a.get(e);if(f&&d)return f==e&&d==n;var h=-1,l=!0,g=r&Oi?new W:void 0;for(a.set(n,e),a.set(e,n);++h2?e[2]:void 0;for(i&&on(e[0],e[1],i)&&(t=1);++r-1?i[a?e[o]:o]:void 0}}var wa=Math.max;function ma(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:Gr(r);return i<0&&(i=wa(t+i,0)),Pe(n,C(e),i)}var _a=ba(ma);const kn=_a;function Ke(n,e){var r=-1,t=fn(n)?Array(n.length):[];return vn(n,function(i,a,o){t[++r]=e(i,a,o)}),t}function E(n,e){var r=x(n)?R:Ke;return r(n,C(e))}function Ea(n,e){return n==null?n:Oe(n,Gn(e),X)}function ya(n,e){return n&&Dn(n,Gn(e))}function xa(n,e){return n>e}var Ta=Object.prototype,La=Ta.hasOwnProperty;function Aa(n,e){return n!=null&&La.call(n,e)}function b(n,e){return n!=null&&He(n,e,Aa)}function Na(n,e){return R(e,function(r){return n[r]})}function N(n){return n==null?[]:Na(n,T(n))}function y(n){return n===void 0}function Xe(n,e){return ne||a&&o&&u&&!s&&!f||t&&o&&u||!r&&u||!i)return 1;if(!t&&!a&&!f&&n=s)return u;var f=r[t];return u*(f=="desc"?-1:1)}}return n.index-e.index}function Sa(n,e,r){e.length?e=R(e,function(a){return x(a)?function(o){return hn(o,a.length===1?a[0]:a)}:a}):e=[V];var t=-1;e=R(e,Cn(C));var i=Ke(n,function(a,o,s){var u=R(e,function(f){return f(a)});return{criteria:u,index:++t,value:a}});return Ia(i,function(a,o){return $a(a,o,r)})}function Ma(n,e){return Ca(n,e,function(r,t){return We(n,t)})}var Ra=et(function(n,e){return n==null?{}:Ma(n,e)});const un=Ra;var Fa=Math.ceil,Da=Math.max;function Ga(n,e,r,t){for(var i=-1,a=Da(Fa((e-n)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=n,n+=r;return o}function ka(n){return function(e,r,t){return t&&typeof t!="number"&&on(e,r,t)&&(r=t=void 0),e=rn(e),r===void 0?(r=e,e=0):r=rn(r),t=t===void 0?e1&&on(n,e[0],e[1])?e=[]:r>2&&on(e[0],e[1],e[2])&&(e=[e[0]]),Sa(n,ln(e,1),[])});const Q=Ua;var qa=1/0,Ha=bn&&1/Rn(new bn([,-0]))[1]==qa?function(n){return new bn(n)}:kr;const Wa=Ha;var ja=200;function Ka(n,e,r){var t=-1,i=qr,a=n.length,o=!0,s=[],u=s;if(r)o=!1,i=ga;else if(a>=ja){var f=e?null:Wa(n);if(f)return Rn(f);o=!1,i=Be,u=new W}else u=e?[]:s;n:for(;++t1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return b(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=P,this._children[e]={},this._children[P][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return b(this._nodes,e)}removeNode(e){var r=this;if(b(this._nodes,e)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),c(T(this._in[e]),t),delete this._in[e],delete this._preds[e],c(T(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(y(r))r=P;else{r+="";for(var t=r;!y(t);t=this.parent(t))if(t===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==P)return r}}children(e){if(y(e)&&(e=P),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===P)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return T(r)}successors(e){var r=this._sucs[e];if(r)return T(r)}neighbors(e){var r=this.predecessors(e);if(r)return Va(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;c(this._nodes,function(o,s){e(s)&&r.setNode(s,o)}),c(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,t.edge(o))});var i={};function a(o){var s=t.parent(o);return s===void 0||r.hasNode(s)?(i[o]=s,s):s in i?i[s]:a(s)}return this._isCompound&&c(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return Xn(e)||(e=B(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return N(this._edgeObjs)}setPath(e,r){var t=this,i=arguments;return J(e,function(a,o){return i.length>1?t.setEdge(a,o,r):t.setEdge(a,o),o}),this}setEdge(){var e,r,t,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,t=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,y(t)||(t=""+t);var s=Y(this._isDirected,e,r,t);if(b(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!y(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(e,r,t);var u=no(this._isDirected,e,r,t);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[s]=u,he(this._preds[r],e),he(this._sucs[e],r),this._in[r][s]=u,this._out[e][s]=u,this._edgeCount++,this}edge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t);return this._edgeLabels[i]}hasEdge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t);return b(this._edgeLabels,i)}removeEdge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],le(this._preds[r],e),le(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var t=this._in[e];if(t){var i=N(t);return r?A(i,function(a){return a.v===r}):i}}outEdges(e,r){var t=this._out[e];if(t){var i=N(t);return r?A(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var t=this.inEdges(e,r);if(t)return t.concat(this.outEdges(e,r))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function he(n,e){n[e]?n[e]++:n[e]=1}function le(n,e){--n[e]||delete n[e]}function Y(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}return i+ce+a+ce+(y(t)?za:t)}function no(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return t&&(s.name=t),s}function mn(n,e){return Y(n,e.v,e.w,e.name)}class eo{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return ve(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&ve(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,ro)),t=t._prev;return"["+e.join(", ")+"]"}}function ve(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function ro(n,e){if(n!=="_next"&&n!=="_prev")return e}var to=B(1);function io(n,e){if(n.nodeCount()<=1)return[];var r=oo(n,e||to),t=ao(r.graph,r.buckets,r.zeroIdx);return G(E(t,function(i){return n.outEdges(i.v,i.w)}))}function ao(n,e,r){for(var t=[],i=e[e.length-1],a=e[0],o;n.nodeCount();){for(;o=a.dequeue();)_n(n,e,r,o);for(;o=i.dequeue();)_n(n,e,r,o);if(n.nodeCount()){for(var s=e.length-2;s>0;--s)if(o=e[s].dequeue(),o){t=t.concat(_n(n,e,r,o,!0));break}}}return t}function _n(n,e,r,t,i){var a=i?[]:void 0;return c(n.inEdges(t.v),function(o){var s=n.edge(o),u=n.node(o.v);i&&a.push({v:o.v,w:o.w}),u.out-=s,On(e,r,u)}),c(n.outEdges(t.v),function(o){var s=n.edge(o),u=o.w,f=n.node(u);f.in-=s,On(e,r,f)}),n.removeNode(t.v),a}function oo(n,e){var r=new L,t=0,i=0;c(n.nodes(),function(s){r.setNode(s,{v:s,in:0,out:0})}),c(n.edges(),function(s){var u=r.edge(s.v,s.w)||0,f=e(s),d=u+f;r.setEdge(s.v,s.w,d),i=Math.max(i,r.node(s.v).out+=f),t=Math.max(t,r.node(s.w).in+=f)});var a=D(i+t+3).map(function(){return new eo}),o=t+1;return c(r.nodes(),function(s){On(a,o,r.node(s))}),{graph:r,buckets:a,zeroIdx:o}}function On(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function so(n){var e=n.graph().acyclicer==="greedy"?io(n,r(n)):uo(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,Un("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function uo(n){var e=[],r={},t={};function i(a){b(t,a)||(t[a]=!0,r[a]=!0,c(n.outEdges(a),function(o){b(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return c(n.nodes(),i),e}function fo(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function k(n,e,r,t){var i;do i=Un(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function co(n){var e=new L().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Ve(n){var e=new L({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function ge(n,e){var r=n.x,t=n.y,i=e.x-r,a=e.y-t,o=n.width/2,s=n.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,f;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),u=s*i/a,f=s):(i<0&&(o=-o),u=o,f=o*a/i),{x:r+u,y:t+f}}function pn(n){var e=E(D(Ze(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;y(i)||(e[i][t.order]=r)}),e}function ho(n){var e=j(E(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);b(t,"rank")&&(t.rank-=e)})}function lo(n){var e=j(E(n.nodes(),function(a){return n.node(a).rank})),r=[];c(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=n.graph().nodeRankFactor;c(r,function(a,o){y(a)&&o%i!==0?--t:t&&c(a,function(s){n.node(s).rank+=t})})}function pe(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),k(n,"border",i,e)}function Ze(n){return S(E(n.nodes(),function(e){var r=n.node(e).rank;if(!y(r))return r}))}function vo(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function go(n,e){var r=de();try{return e()}finally{console.log(n+" time: "+(de()-r)+"ms")}}function po(n,e){return e()}function bo(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),b(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;ao.lim&&(s=o,u=!0);var f=A(e.edges(),function(d){return u===me(n,n.node(d.v),s)&&u!==me(n,n.node(d.w),s)});return Yn(f,function(d){return K(e,d)})}function ar(n,e,r,t){var i=r.v,a=r.w;n.removeEdge(i,a),n.setEdge(t.v,t.w,{}),Wn(n),Hn(n,e),$o(n,e)}function $o(n,e){var r=kn(n.nodes(),function(i){return!e.node(i).parent}),t=Io(n,r);t=t.slice(1),c(t,function(i){var a=n.node(i).parent,o=e.edge(i,a),s=!1;o||(o=e.edge(a,i),s=!0),e.node(i).rank=e.node(a).rank+(s?o.minlen:-o.minlen)})}function So(n,e,r){return n.hasEdge(e,r)}function me(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Mo(n){switch(n.graph().ranker){case"network-simplex":_e(n);break;case"tight-tree":Fo(n);break;case"longest-path":Ro(n);break;default:_e(n)}}var Ro=qn;function Fo(n){qn(n),Qe(n)}function _e(n){M(n)}function Do(n){var e=k(n,"root",{},"_root"),r=Go(n),t=S(N(r))-1,i=2*t+1;n.graph().nestingRoot=e,c(n.edges(),function(o){n.edge(o).minlen*=i});var a=ko(n)+1;c(n.children(),function(o){or(n,e,i,a,t,r,o)}),n.graph().nodeRankFactor=i}function or(n,e,r,t,i,a,o){var s=n.children(o);if(!s.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var u=pe(n,"_bt"),f=pe(n,"_bb"),d=n.node(o);n.setParent(u,o),d.borderTop=u,n.setParent(f,o),d.borderBottom=f,c(s,function(h){or(n,e,r,t,i,a,h);var l=n.node(h),g=l.borderTop?l.borderTop:h,v=l.borderBottom?l.borderBottom:h,p=l.borderTop?t:2*t,m=g!==v?1:i-a[o]+1;n.setEdge(u,g,{weight:p,minlen:m,nestingEdge:!0}),n.setEdge(v,f,{weight:p,minlen:m,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,u,{weight:0,minlen:i+a[o]})}function Go(n){var e={};function r(t,i){var a=n.children(t);a&&a.length&&c(a,function(o){r(o,i+1)}),e[t]=i}return c(n.children(),function(t){r(t,1)}),e}function ko(n){return J(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Bo(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,c(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Yo(n,e,r){var t={},i;c(r,function(a){for(var o=n.parent(a),s,u;o;){if(s=n.parent(o),s?(u=t[s],t[s]=o):(u=i,i=o),u&&u!==o){e.setEdge(u,o);return}o=s}})}function Uo(n,e,r){var t=qo(n),i=new L({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return n.node(a)});return c(n.nodes(),function(a){var o=n.node(a),s=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||t),c(n[r](a),function(u){var f=u.v===a?u.w:u.v,d=i.edge(f,a),h=y(d)?0:d.weight;i.setEdge(f,a,{weight:n.edge(u).weight+h})}),b(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i}function qo(n){for(var e;n.hasNode(e=Un("_root")););return e}function Ho(n,e){for(var r=0,t=1;t0;)d%2&&(h+=s[d+1]),d=d-1>>1,s[d]+=f.weight;u+=f.weight*h})),u}function jo(n){var e={},r=A(n.nodes(),function(s){return!n.children(s).length}),t=S(E(r,function(s){return n.node(s).rank})),i=E(D(t+1),function(){return[]});function a(s){if(!b(e,s)){e[s]=!0;var u=n.node(s);i[u.rank].push(s),c(n.successors(s),a)}}var o=Q(r,function(s){return n.node(s).rank});return c(o,a),i}function Ko(n,e){return E(e,function(r){var t=n.inEdges(r);if(t.length){var i=J(t,function(a,o){var s=n.edge(o),u=n.node(o.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Xo(n,e){var r={};c(n,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};y(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),c(e.edges(),function(i){var a=r[i.v],o=r[i.w];!y(a)&&!y(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=A(r,function(i){return!i.indegree});return Vo(t)}function Vo(n){var e=[];function r(a){return function(o){o.merged||(y(o.barycenter)||y(a.barycenter)||o.barycenter>=a.barycenter)&&Zo(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return E(A(e,function(a){return!a.merged}),function(a){return un(a,["vs","i","barycenter","weight"])})}function Zo(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Jo(n,e){var r=vo(n,function(d){return b(d,"barycenter")}),t=r.lhs,i=Q(r.rhs,function(d){return-d.i}),a=[],o=0,s=0,u=0;t.sort(Qo(!!e)),u=Ee(a,i,u),c(t,function(d){u+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,s+=d.weight,u=Ee(a,i,u)});var f={vs:G(a)};return s&&(f.barycenter=o/s,f.weight=s),f}function Ee(n,e,r){for(var t;e.length&&(t=sn(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Qo(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function sr(n,e,r,t){var i=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};o&&(i=A(i,function(v){return v!==o&&v!==s}));var f=Ko(n,i);c(f,function(v){if(n.children(v.v).length){var p=sr(n,v.v,r,t);u[v.v]=p,b(p,"barycenter")&&ns(v,p)}});var d=Xo(f,r);zo(d,u);var h=Jo(d,t);if(o&&(h.vs=G([o,h.vs,s]),n.predecessors(o).length)){var l=n.node(n.predecessors(o)[0]),g=n.node(n.predecessors(s)[0]);b(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+g.order)/(h.weight+2),h.weight+=2}return h}function zo(n,e){c(n,function(r){r.vs=G(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function ns(n,e){y(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function es(n){var e=Ze(n),r=ye(n,D(1,e+1),"inEdges"),t=ye(n,D(e-1,-1,-1),"outEdges"),i=jo(n);xe(n,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,u=0;u<4;++s,++u){rs(s%2?r:t,s%4>=2),i=pn(n);var f=Ho(n,i);fo||s>e[u].lim));for(f=u,u=t;(u=n.parent(u))!==f;)a.push(u);return{path:i.concat(a.reverse()),lca:f}}function as(n){var e={},r=0;function t(i){var a=r;c(n.children(i),t),e[i]={low:a,lim:r++}}return c(n.children(),t),e}function os(n,e){var r={};function t(i,a){var o=0,s=0,u=i.length,f=sn(a);return c(a,function(d,h){var l=us(n,d),g=l?n.node(l).order:u;(l||d===f)&&(c(a.slice(s,h+1),function(v){c(n.predecessors(v),function(p){var m=n.node(p),_=m.order;(_f)&&ur(r,l,d)})})}function i(a,o){var s=-1,u,f=0;return c(o,function(d,h){if(n.node(d).dummy==="border"){var l=n.predecessors(d);l.length&&(u=n.node(l[0]).order,t(o,f,h,s,u),f=h,s=u)}t(o,f,o.length,u,a.length)}),o}return J(e,i),r}function us(n,e){if(n.node(e).dummy)return kn(n.predecessors(e),function(r){return n.node(r).dummy})}function ur(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function fs(n,e,r){if(e>r){var t=e;e=r,r=t}return b(n[e],r)}function ds(n,e,r,t){var i={},a={},o={};return c(e,function(s){c(s,function(u,f){i[u]=u,a[u]=u,o[u]=f})}),c(e,function(s){var u=-1;c(s,function(f){var d=t(f);if(d.length){d=Q(d,function(p){return o[p]});for(var h=(d.length-1)/2,l=Math.floor(h),g=Math.ceil(h);l<=g;++l){var v=d[l];a[f]===f&&ut?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=dn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Rn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=Q[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-v(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?On:Gn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,Cn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=bn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Un(){return Xn()(A,A)}function Yn(n,t,e,r){var i=Nn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return wn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,Nn as t}; +import{aj as un,ak as I,al as U,am as Y,an as fn}from"./mermaid.core-YsxFu0Y0.js";import{i as cn}from"./init-Hi12RPRh.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=dn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Rn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=Q[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-v(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?On:Gn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,Cn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=bn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Un(){return Xn()(A,A)}function Yn(n,t,e,r){var i=Nn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return wn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,Nn as t}; diff --git a/assets/mermaid.core-uOCfdc17.js b/assets/mermaid.core-YsxFu0Y0.js similarity index 98% rename from assets/mermaid.core-uOCfdc17.js rename to assets/mermaid.core-YsxFu0Y0.js index 1cda35019e..df4fdf420f 100644 --- a/assets/mermaid.core-uOCfdc17.js +++ b/assets/mermaid.core-YsxFu0Y0.js @@ -1,4 +1,4 @@ -import{_ as R}from"./index-Qg-bAq5J.js";import{e as ch}from"./LinkCard-aLl-jjA_.js";function uh(t){for(var e=[],i=1;i-1}function l(u){var f=u.replace(n,"");return f.replace(i,function(c,p){return String.fromCharCode(p)})}function h(u){if(!u)return t.BLANK_URL;var f=l(u).replace(r,"").replace(n,"").trim();if(!f)return t.BLANK_URL;if(a(f))return f;var c=f.match(o);if(!c)return f;var p=c[0];return e.test(p)?t.BLANK_URL:f}t.sanitizeUrl=h})(Ms);var fh={value:()=>{}};function $s(){for(var t=0,e=arguments.length,i={},r;t=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Ci.prototype=$s.prototype={constructor:Ci,on:function(t,e){var i=this._,r=dh(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var i=new Array(n),r=0,n,o;r=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),vo.hasOwnProperty(e)?{space:vo[e],local:t}:t}function gh(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Xr&&e.documentElement.namespaceURI===Xr?e.createElement(t):e.createElementNS(i,t)}}function mh(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ns(t){var e=Qi(t);return(e.local?mh:gh)(e)}function _h(){}function yn(t){return t==null?_h:function(){return this.querySelector(t)}}function yh(t){typeof t!="function"&&(t=yn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n=E&&(E=C+1);!(z=T[E])&&++E=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Hh(t){t||(t=jh);function e(f,c){return f&&c?t(f.__data__,c.__data__):!f-!c}for(var i=this._groups,r=i.length,n=new Array(r),o=0;oe?1:t>=e?0:NaN}function Uh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Yh(){return Array.from(this)}function Vh(){for(var t=this._groups,e=0,i=t.length;e1?this.each((e==null?nc:typeof e=="function"?sc:oc)(t,e,i??"")):de(this.node(),t)}function de(t,e){return t.style.getPropertyValue(e)||zs(t).getComputedStyle(t,null).getPropertyValue(e)}function lc(t){return function(){delete this[t]}}function hc(t,e){return function(){this[t]=e}}function cc(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function uc(t,e){return arguments.length>1?this.each((e==null?lc:typeof e=="function"?cc:hc)(t,e)):this.node()[t]}function Ws(t){return t.trim().split(/^|\s+/)}function Cn(t){return t.classList||new Hs(t)}function Hs(t){this._node=t,this._names=Ws(t.getAttribute("class")||"")}Hs.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function js(t,e){for(var i=Cn(t),r=-1,n=e.length;++r=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Pc(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?hi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?hi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Gc.exec(t))?new it(e[1],e[2],e[3],1):(e=Xc.exec(t))?new it(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Kc.exec(t))?hi(e[1],e[2],e[3],e[4]):(e=Zc.exec(t))?hi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Jc.exec(t))?Lo(e[1],e[2]/100,e[3]/100,1):(e=Qc.exec(t))?Lo(e[1],e[2]/100,e[3]/100,e[4]):ko.hasOwnProperty(t)?Bo(ko[t]):t==="transparent"?new it(NaN,NaN,NaN,0):null}function Bo(t){return new it(t>>16&255,t>>8&255,t&255,1)}function hi(t,e,i,r){return r<=0&&(t=e=i=NaN),new it(t,e,i,r)}function iu(t){return t instanceof Qe||(t=je(t)),t?(t=t.rgb(),new it(t.r,t.g,t.b,t.opacity)):new it}function Kr(t,e,i,r){return arguments.length===1?iu(t):new it(t,e,i,r??1)}function it(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}xn(it,Kr,Gs(Qe,{brighter(t){return t=t==null?Ei:Math.pow(Ei,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?We:Math.pow(We,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new it(Ut(this.r),Ut(this.g),Ut(this.b),Oi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ao,formatHex:Ao,formatHex8:ru,formatRgb:Fo,toString:Fo}));function Ao(){return`#${jt(this.r)}${jt(this.g)}${jt(this.b)}`}function ru(){return`#${jt(this.r)}${jt(this.g)}${jt(this.b)}${jt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fo(){const t=Oi(this.opacity);return`${t===1?"rgb(":"rgba("}${Ut(this.r)}, ${Ut(this.g)}, ${Ut(this.b)}${t===1?")":`, ${t})`}`}function Oi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ut(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function jt(t){return t=Ut(t),(t<16?"0":"")+t.toString(16)}function Lo(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ut(t,e,i,r)}function Xs(t){if(t instanceof ut)return new ut(t.h,t.s,t.l,t.opacity);if(t instanceof Qe||(t=je(t)),!t)return new ut;if(t instanceof ut)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i0&&l<1?0:s,new ut(s,a,l,t.opacity)}function nu(t,e,i,r){return arguments.length===1?Xs(t):new ut(t,e,i,r??1)}function ut(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}xn(ut,nu,Gs(Qe,{brighter(t){return t=t==null?Ei:Math.pow(Ei,t),new ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?We:Math.pow(We,t),new ut(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new it(Ir(t>=240?t-240:t+120,n,r),Ir(t,n,r),Ir(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new ut(Eo(this.h),ci(this.s),ci(this.l),Oi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Oi(this.opacity);return`${t===1?"hsl(":"hsla("}${Eo(this.h)}, ${ci(this.s)*100}%, ${ci(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Eo(t){return t=(t||0)%360,t<0?t+360:t}function ci(t){return Math.max(0,Math.min(1,t||0))}function Ir(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const bn=t=>()=>t;function Ks(t,e){return function(i){return t+i*e}}function ou(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Vb(t,e){var i=e-t;return i?Ks(t,i>180||i<-180?i-360*Math.round(i/360):i):bn(isNaN(t)?e:t)}function su(t){return(t=+t)==1?Zs:function(e,i){return i-e?ou(e,i,t):bn(isNaN(e)?i:e)}}function Zs(t,e){var i=e-t;return i?Ks(t,i):bn(isNaN(t)?e:t)}const Oo=function t(e){var i=su(e);function r(n,o){var s=i((n=Kr(n)).r,(o=Kr(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),h=Zs(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=h(u),n+""}}return r.gamma=t,r}(1);function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Zr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(Zr.source,"g");function au(t){return function(){return t}}function lu(t){return function(e){return t(e)+""}}function hu(t,e){var i=Zr.lastIndex=Mr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Zr.exec(t))&&(n=Mr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:Mt(r,n)})),i=Mr.lastIndex;return i180?u+=360:u-h>180&&(h+=360),c.push({i:f.push(n(f)+"rotate(",null,r)-2,x:Mt(h,u)})):u&&f.push(n(f)+"rotate("+u+r)}function a(h,u,f,c){h!==u?c.push({i:f.push(n(f)+"skewX(",null,r)-2,x:Mt(h,u)}):u&&f.push(n(f)+"skewX("+u+r)}function l(h,u,f,c,p,y){if(h!==f||u!==c){var x=p.push(n(p)+"scale(",null,",",null,")");y.push({i:x-4,x:Mt(h,f)},{i:x-2,x:Mt(u,c)})}else(f!==1||c!==1)&&p.push(n(p)+"scale("+f+","+c+")")}return function(h,u){var f=[],c=[];return h=t(h),u=t(u),o(h.translateX,h.translateY,u.translateX,u.translateY,f,c),s(h.rotate,u.rotate,f,c),a(h.skewX,u.skewX,f,c),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,f,c),h=u=null,function(p){for(var y=-1,x=c.length,T;++y=0&&t._call.call(void 0,e),t=t._next;--pe}function Mo(){Gt=(Mi=Ue.now())+tr,pe=Ie=0;try{gu()}finally{pe=0,_u(),Gt=0}}function mu(){var t=Ue.now(),e=t-Mi;e>ta&&(tr-=e,Mi=t)}function _u(){for(var t,e=Ii,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Ii=i);Me=t,Qr(r)}function Qr(t){if(!pe){Ie&&(Ie=clearTimeout(Ie));var e=t-Gt;e>24?(t<1/0&&(Ie=setTimeout(Mo,t-Ue.now()-tr)),Ae&&(Ae=clearInterval(Ae))):(Ae||(Mi=Ue.now(),Ae=setInterval(mu,ta)),pe=1,ea(Mo))}}function $o(t,e,i){var r=new $i;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var yu=$s("start","end","cancel","interrupt"),Cu=[],ra=0,No=1,tn=2,xi=3,Do=4,en=5,bi=6;function er(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;xu(t,i,{name:e,index:r,group:n,on:yu,tween:Cu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ra})}function vn(t,e){var i=gt(t,e);if(i.state>ra)throw new Error("too late; already scheduled");return i}function xt(t,e){var i=gt(t,e);if(i.state>xi)throw new Error("too late; already running");return i}function gt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function xu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ia(o,0,i.time);function o(h){i.state=No,i.timer.restart(s,i.delay,i.time),i.delay<=h&&s(h-i.delay)}function s(h){var u,f,c,p;if(i.state!==No)return l();for(u in r)if(p=r[u],p.name===i.name){if(p.state===xi)return $o(s);p.state===Do?(p.state=bi,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[u]):+utn&&r.state=0&&(e=e.slice(0,i)),!e||e==="start"})}function Zu(t,e,i){var r,n,o=Ku(e)?vn:xt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Ju(t,e){var i=this._id;return arguments.length<2?gt(this.node(),i).on.on(t):this.each(Zu(i,t,e))}function Qu(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function tf(){return this.on("end.remove",Qu(this._id))}function ef(t){var e=this._name,i=this._id;typeof t!="function"&&(t=yn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s1?0:t<-1?Sn:Math.acos(t)}function r1(t){return t>=1?Po:t<=-1?-Po:Math.asin(t)}function aa(t){this._context=t}aa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Bf(t){return new aa(t)}class la{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Af(t){return new la(t,!0)}function Ff(t){return new la(t,!1)}function Nt(){}function Ni(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function ir(t){this._context=t}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ni(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ni(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Lf(t){return new ir(t)}function ha(t){this._context=t}ha.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ni(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ef(t){return new ha(t)}function ca(t){this._context=t}ca.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Ni(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Of(t){return new ca(t)}function ua(t,e){this._basis=new ir(t),this._beta=e}ua.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const If=function t(e){function i(r){return e===1?new ir(r):new ua(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Di(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function wn(t,e){this._context=t,this._k=(1-e)/6}wn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Di(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Di(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Mf=function t(e){function i(r){return new wn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Bn(t,e){this._context=t,this._k=(1-e)/6}Bn.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Di(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $f=function t(e){function i(r){return new Bn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function An(t,e){this._context=t,this._k=(1-e)/6}An.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Di(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Nf=function t(e){function i(r){return new An(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Fn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Ro){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ro){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function fa(t,e){this._context=t,this._alpha=e}fa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Fn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Df=function t(e){function i(r){return e?new fa(r,e):new wn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function da(t,e){this._context=t,this._alpha=e}da.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Fn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Rf=function t(e){function i(r){return e?new da(r,e):new Bn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function pa(t,e){this._context=t,this._alpha=e}pa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Pf=function t(e){function i(r){return e?new pa(r,e):new An(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ga(t){this._context=t}ga.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function qf(t){return new ga(t)}function qo(t){return t<0?-1:1}function zo(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(qo(o)+qo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Wo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function $r(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function Ri(t){this._context=t}Ri.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$r(this,this._t0,Wo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,$r(this,Wo(this,i=zo(this,t,e)),i);break;default:$r(this,this._t0,i=zo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ma(t){this._context=new _a(t)}(ma.prototype=Object.create(Ri.prototype)).point=function(t,e){Ri.prototype.point.call(this,e,t)};function _a(t){this._context=t}_a.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function zf(t){return new Ri(t)}function Wf(t){return new ma(t)}function ya(t){this._context=t}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Ho(t),n=Ho(e),o=0,s=1;s=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function jf(t){return new rr(t,.5)}function Uf(t){return new rr(t,0)}function Yf(t){return new rr(t,1)}function $e(t,e,i){this.k=t,this.x=e,this.y=i}$e.prototype={constructor:$e,scale:function(t){return t===1?this:new $e(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new $e(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};$e.prototype;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:Ca,setPrototypeOf:jo,isFrozen:Vf,getPrototypeOf:Gf,getOwnPropertyDescriptor:xa}=Object;let{freeze:Z,seal:dt,create:ba}=Object,{apply:rn,construct:nn}=typeof Reflect<"u"&&Reflect;Z||(Z=function(e){return e});dt||(dt=function(e){return e});rn||(rn=function(e,i,r){return e.apply(i,r)});nn||(nn=function(e,i){return new e(...i)});const fi=ht(Array.prototype.forEach),Uo=ht(Array.prototype.pop),Fe=ht(Array.prototype.push),Ti=ht(String.prototype.toLowerCase),Nr=ht(String.prototype.toString),Xf=ht(String.prototype.match),Le=ht(String.prototype.replace),Kf=ht(String.prototype.indexOf),Zf=ht(String.prototype.trim),nt=ht(RegExp.prototype.test),Ee=Jf(TypeError);function ht(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Ti;jo&&jo(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Vf(e)||(e[r]=o),n=o)}t[n]=!0}return t}function le(t){const e=ba(null);for(const[i,r]of Ca(t))xa(t,i)!==void 0&&(e[i]=r);return e}function di(t,e){for(;t!==null;){const r=xa(t,e);if(r){if(r.get)return ht(r.get);if(typeof r.value=="function")return ht(r.value)}t=Gf(t)}function i(r){return console.warn("fallback value for",r),null}return i}const Yo=Z(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dr=Z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Rr=Z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qf=Z(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pr=Z(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),td=Z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vo=Z(["#text"]),Go=Z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),qr=Z(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xo=Z(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),pi=Z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ed=dt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),id=dt(/<%[\w\W]*|[\w\W]*%>/gm),rd=dt(/\${[\w\W]*}/gm),nd=dt(/^data-[\-\w.\u00B7-\uFFFF]/),od=dt(/^aria-[\-\w]+$/),Ta=dt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sd=dt(/^(?:\w+script|data):/i),ad=dt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),va=dt(/^html$/i);var Ko=Object.freeze({__proto__:null,MUSTACHE_EXPR:ed,ERB_EXPR:id,TMPLIT_EXPR:rd,DATA_ATTR:nd,ARIA_ATTR:od,IS_ALLOWED_URI:Ta,IS_SCRIPT_OR_DATA:sd,ATTR_WHITESPACE:ad,DOCTYPE_NAME:va});const ld=function(){return typeof window>"u"?null:window},hd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ka(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ld();const e=v=>ka(v);if(e.version="3.0.6",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:h,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:c,trustedTypes:p}=t,y=l.prototype,x=di(y,"cloneNode"),T=di(y,"nextSibling"),L=di(y,"childNodes"),C=di(y,"parentNode");if(typeof s=="function"){const v=i.createElement("template");v.content&&v.content.ownerDocument&&(i=v.content.ownerDocument)}let E,I="";const{implementation:z,createNodeIterator:J,createDocumentFragment:O,getElementsByTagName:ri}=i,{importNode:yr}=r;let st={};e.isSupported=typeof Ca=="function"&&typeof C=="function"&&z&&z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ve,ERB_EXPR:te,TMPLIT_EXPR:ke,DATA_ATTR:Cr,ARIA_ATTR:xr,IS_SCRIPT_OR_DATA:Tt,ATTR_WHITESPACE:br}=Ko;let{IS_ALLOWED_URI:ee}=Ko,M=null;const Jn=F({},[...Yo,...Dr,...Rr,...Pr,...Vo]);let W=null;const Qn=F({},[...Go,...qr,...Xo,...pi]);let D=Object.seal(ba(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Tr=null,to=!0,vr=!0,eo=!1,io=!0,ie=!1,Pt=!1,kr=!1,Sr=!1,re=!1,ni=!1,oi=!1,ro=!0,no=!1;const eh="user-content-";let wr=!0,we=!1,ne={},oe=null;const oo=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let so=null;const ao=F({},["audio","video","img","source","image","track"]);let Br=null;const lo=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),si="http://www.w3.org/1998/Math/MathML",ai="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let se=vt,Ar=!1,Fr=null;const ih=F({},[si,ai,vt],Nr);let qt=null;const rh=["application/xhtml+xml","text/html"],nh="text/html";let H=null,ae=null;const oh=i.createElement("form"),ho=function(d){return d instanceof RegExp||d instanceof Function},Lr=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ae&&ae===d)){if((!d||typeof d!="object")&&(d={}),d=le(d),qt=rh.indexOf(d.PARSER_MEDIA_TYPE)===-1?qt=nh:qt=d.PARSER_MEDIA_TYPE,H=qt==="application/xhtml+xml"?Nr:Ti,M="ALLOWED_TAGS"in d?F({},d.ALLOWED_TAGS,H):Jn,W="ALLOWED_ATTR"in d?F({},d.ALLOWED_ATTR,H):Qn,Fr="ALLOWED_NAMESPACES"in d?F({},d.ALLOWED_NAMESPACES,Nr):ih,Br="ADD_URI_SAFE_ATTR"in d?F(le(lo),d.ADD_URI_SAFE_ATTR,H):lo,so="ADD_DATA_URI_TAGS"in d?F(le(ao),d.ADD_DATA_URI_TAGS,H):ao,oe="FORBID_CONTENTS"in d?F({},d.FORBID_CONTENTS,H):oo,Se="FORBID_TAGS"in d?F({},d.FORBID_TAGS,H):{},Tr="FORBID_ATTR"in d?F({},d.FORBID_ATTR,H):{},ne="USE_PROFILES"in d?d.USE_PROFILES:!1,to=d.ALLOW_ARIA_ATTR!==!1,vr=d.ALLOW_DATA_ATTR!==!1,eo=d.ALLOW_UNKNOWN_PROTOCOLS||!1,io=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=d.SAFE_FOR_TEMPLATES||!1,Pt=d.WHOLE_DOCUMENT||!1,re=d.RETURN_DOM||!1,ni=d.RETURN_DOM_FRAGMENT||!1,oi=d.RETURN_TRUSTED_TYPE||!1,Sr=d.FORCE_BODY||!1,ro=d.SANITIZE_DOM!==!1,no=d.SANITIZE_NAMED_PROPS||!1,wr=d.KEEP_CONTENT!==!1,we=d.IN_PLACE||!1,ee=d.ALLOWED_URI_REGEXP||Ta,se=d.NAMESPACE||vt,D=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&ho(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&ho(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(D.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(vr=!1),ni&&(re=!0),ne&&(M=F({},[...Vo]),W=[],ne.html===!0&&(F(M,Yo),F(W,Go)),ne.svg===!0&&(F(M,Dr),F(W,qr),F(W,pi)),ne.svgFilters===!0&&(F(M,Rr),F(W,qr),F(W,pi)),ne.mathMl===!0&&(F(M,Pr),F(W,Xo),F(W,pi))),d.ADD_TAGS&&(M===Jn&&(M=le(M)),F(M,d.ADD_TAGS,H)),d.ADD_ATTR&&(W===Qn&&(W=le(W)),F(W,d.ADD_ATTR,H)),d.ADD_URI_SAFE_ATTR&&F(Br,d.ADD_URI_SAFE_ATTR,H),d.FORBID_CONTENTS&&(oe===oo&&(oe=le(oe)),F(oe,d.FORBID_CONTENTS,H)),wr&&(M["#text"]=!0),Pt&&F(M,["html","head","body"]),M.table&&(F(M,["tbody"]),delete Se.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ee('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ee('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=d.TRUSTED_TYPES_POLICY,I=E.createHTML("")}else E===void 0&&(E=hd(p,n)),E!==null&&typeof I=="string"&&(I=E.createHTML(""));Z&&Z(d),ae=d}},co=F({},["mi","mo","mn","ms","mtext"]),uo=F({},["foreignobject","desc","title","annotation-xml"]),sh=F({},["title","style","font","a","script"]),li=F({},Dr);F(li,Rr),F(li,Qf);const Er=F({},Pr);F(Er,td);const ah=function(d){let m=C(d);(!m||!m.tagName)&&(m={namespaceURI:se,tagName:"template"});const b=Ti(d.tagName),$=Ti(m.tagName);return Fr[d.namespaceURI]?d.namespaceURI===ai?m.namespaceURI===vt?b==="svg":m.namespaceURI===si?b==="svg"&&($==="annotation-xml"||co[$]):!!li[b]:d.namespaceURI===si?m.namespaceURI===vt?b==="math":m.namespaceURI===ai?b==="math"&&uo[$]:!!Er[b]:d.namespaceURI===vt?m.namespaceURI===ai&&!uo[$]||m.namespaceURI===si&&!co[$]?!1:!Er[b]&&(sh[b]||!li[b]):!!(qt==="application/xhtml+xml"&&Fr[d.namespaceURI]):!1},zt=function(d){Fe(e.removed,{element:d});try{d.parentNode.removeChild(d)}catch{d.remove()}},Or=function(d,m){try{Fe(e.removed,{attribute:m.getAttributeNode(d),from:m})}catch{Fe(e.removed,{attribute:null,from:m})}if(m.removeAttribute(d),d==="is"&&!W[d])if(re||ni)try{zt(m)}catch{}else try{m.setAttribute(d,"")}catch{}},fo=function(d){let m=null,b=null;if(Sr)d=""+d;else{const U=Xf(d,/^[\r\n\t ]+/);b=U&&U[0]}qt==="application/xhtml+xml"&&se===vt&&(d=''+d+"");const $=E?E.createHTML(d):d;if(se===vt)try{m=new c().parseFromString($,qt)}catch{}if(!m||!m.documentElement){m=z.createDocument(se,"template",null);try{m.documentElement.innerHTML=Ar?I:$}catch{}}const j=m.body||m.documentElement;return d&&b&&j.insertBefore(i.createTextNode(b),j.childNodes[0]||null),se===vt?ri.call(m,Pt?"html":"body")[0]:Pt?m.documentElement:j},po=function(d){return J.call(d.ownerDocument||d,d,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null)},lh=function(d){return d instanceof f&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof u)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},go=function(d){return typeof a=="function"&&d instanceof a},kt=function(d,m,b){st[d]&&fi(st[d],$=>{$.call(e,m,b,ae)})},mo=function(d){let m=null;if(kt("beforeSanitizeElements",d,null),lh(d))return zt(d),!0;const b=H(d.nodeName);if(kt("uponSanitizeElement",d,{tagName:b,allowedTags:M}),d.hasChildNodes()&&!go(d.firstElementChild)&&nt(/<[/\w]/g,d.innerHTML)&&nt(/<[/\w]/g,d.textContent))return zt(d),!0;if(!M[b]||Se[b]){if(!Se[b]&&yo(b)&&(D.tagNameCheck instanceof RegExp&&nt(D.tagNameCheck,b)||D.tagNameCheck instanceof Function&&D.tagNameCheck(b)))return!1;if(wr&&!oe[b]){const $=C(d)||d.parentNode,j=L(d)||d.childNodes;if(j&&$){const U=j.length;for(let Q=U-1;Q>=0;--Q)$.insertBefore(x(j[Q],!0),T(d))}}return zt(d),!0}return d instanceof l&&!ah(d)||(b==="noscript"||b==="noembed"||b==="noframes")&&nt(/<\/no(script|embed|frames)/i,d.innerHTML)?(zt(d),!0):(ie&&d.nodeType===3&&(m=d.textContent,fi([ve,te,ke],$=>{m=Le(m,$," ")}),d.textContent!==m&&(Fe(e.removed,{element:d.cloneNode()}),d.textContent=m)),kt("afterSanitizeElements",d,null),!1)},_o=function(d,m,b){if(ro&&(m==="id"||m==="name")&&(b in i||b in oh))return!1;if(!(vr&&!Tr[m]&&nt(Cr,m))){if(!(to&&nt(xr,m))){if(!W[m]||Tr[m]){if(!(yo(d)&&(D.tagNameCheck instanceof RegExp&&nt(D.tagNameCheck,d)||D.tagNameCheck instanceof Function&&D.tagNameCheck(d))&&(D.attributeNameCheck instanceof RegExp&&nt(D.attributeNameCheck,m)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(m))||m==="is"&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&nt(D.tagNameCheck,b)||D.tagNameCheck instanceof Function&&D.tagNameCheck(b))))return!1}else if(!Br[m]){if(!nt(ee,Le(b,br,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&d!=="script"&&Kf(b,"data:")===0&&so[d])){if(!(eo&&!nt(Tt,Le(b,br,"")))){if(b)return!1}}}}}}return!0},yo=function(d){return d.indexOf("-")>0},Co=function(d){kt("beforeSanitizeAttributes",d,null);const{attributes:m}=d;if(!m)return;const b={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};let $=m.length;for(;$--;){const j=m[$],{name:U,namespaceURI:Q,value:Wt}=j,Be=H(U);let tt=U==="value"?Wt:Zf(Wt);if(b.attrName=Be,b.attrValue=tt,b.keepAttr=!0,b.forceKeepAttr=void 0,kt("uponSanitizeAttribute",d,b),tt=b.attrValue,b.forceKeepAttr||(Or(U,d),!b.keepAttr))continue;if(!io&&nt(/\/>/i,tt)){Or(U,d);continue}ie&&fi([ve,te,ke],bo=>{tt=Le(tt,bo," ")});const xo=H(d.nodeName);if(_o(xo,Be,tt)){if(no&&(Be==="id"||Be==="name")&&(Or(U,d),tt=eh+tt),E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Q)switch(p.getAttributeType(xo,Be)){case"TrustedHTML":{tt=E.createHTML(tt);break}case"TrustedScriptURL":{tt=E.createScriptURL(tt);break}}try{Q?d.setAttributeNS(Q,U,tt):d.setAttribute(U,tt),Uo(e.removed)}catch{}}}kt("afterSanitizeAttributes",d,null)},hh=function v(d){let m=null;const b=po(d);for(kt("beforeSanitizeShadowDOM",d,null);m=b.nextNode();)kt("uponSanitizeShadowNode",m,null),!mo(m)&&(m.content instanceof o&&v(m.content),Co(m));kt("afterSanitizeShadowDOM",d,null)};return e.sanitize=function(v){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,b=null,$=null,j=null;if(Ar=!v,Ar&&(v=""),typeof v!="string"&&!go(v))if(typeof v.toString=="function"){if(v=v.toString(),typeof v!="string")throw Ee("dirty is not a string, aborting")}else throw Ee("toString is not a function");if(!e.isSupported)return v;if(kr||Lr(d),e.removed=[],typeof v=="string"&&(we=!1),we){if(v.nodeName){const Wt=H(v.nodeName);if(!M[Wt]||Se[Wt])throw Ee("root node is forbidden and cannot be sanitized in-place")}}else if(v instanceof a)m=fo(""),b=m.ownerDocument.importNode(v,!0),b.nodeType===1&&b.nodeName==="BODY"||b.nodeName==="HTML"?m=b:m.appendChild(b);else{if(!re&&!ie&&!Pt&&v.indexOf("<")===-1)return E&&oi?E.createHTML(v):v;if(m=fo(v),!m)return re?null:oi?I:""}m&&Sr&&zt(m.firstChild);const U=po(we?v:m);for(;$=U.nextNode();)mo($)||($.content instanceof o&&hh($.content),Co($));if(we)return v;if(re){if(ni)for(j=O.call(m.ownerDocument);m.firstChild;)j.appendChild(m.firstChild);else j=m;return(W.shadowroot||W.shadowrootmode)&&(j=yr.call(r,j,!0)),j}let Q=Pt?m.outerHTML:m.innerHTML;return Pt&&M["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&nt(va,m.ownerDocument.doctype.name)&&(Q=" `+Q),ie&&fi([ve,te,ke],Wt=>{Q=Le(Q,Wt," ")}),E&&oi?E.createHTML(Q):Q},e.setConfig=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lr(v),kr=!0},e.clearConfig=function(){ae=null,kr=!1},e.isValidAttribute=function(v,d,m){ae||Lr({});const b=H(v),$=H(d);return _o(b,$,m)},e.addHook=function(v,d){typeof d=="function"&&(st[v]=st[v]||[],Fe(st[v],d))},e.removeHook=function(v){if(st[v])return Uo(st[v])},e.removeHooks=function(v){st[v]&&(st[v]=[])},e.removeAllHooks=function(){st={}},e}var Pi=ka();const vi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return vi.hue2rgb(o,n,t+1/3)*255;case"g":return vi.hue2rgb(o,n,t)*255;case"b":return vi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},fd=ud,dd={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},pd=dd,gd={channel:cd,lang:fd,unit:pd},A=gd,It={};for(let t=0;t<=255;t++)It[t]=A.unit.dec2hex(t);const Y={ALL:0,RGB:1,HSL:2};class md{constructor(){this.type=Y.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Y.ALL}is(e){return this.type===e}}const _d=md;class yd{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new _d}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=Y.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=A.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=A.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=A.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=A.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=A.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=A.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Y.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Y.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Y.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Y.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Y.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Y.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Cd=yd,xd=new Cd({r:0,g:0,b:0,a:0},"transparent"),nr=xd,Sa={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Sa.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,h=o?0:-1,u=s?255:15;return nr.set({r:(r>>l*(h+3)&u)*a,g:(r>>l*(h+2)&u)*a,b:(r>>l*(h+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${It[Math.round(e)]}${It[Math.round(i)]}${It[Math.round(r)]}${It[Math.round(n*255)]}`:`#${It[Math.round(e)]}${It[Math.round(i)]}${It[Math.round(r)]}`}},Ne=Sa,ki={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ki.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return A.channel.clamp.h(parseFloat(i)*.9);case"rad":return A.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return A.channel.clamp.h(parseFloat(i)*360)}}return A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(ki.re);if(!i)return;const[,r,n,o,s,a]=i;return nr.set({h:ki._hue2deg(r),s:A.channel.clamp.s(parseFloat(n)),l:A.channel.clamp.l(parseFloat(o)),a:s?A.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${A.lang.round(e)}, ${A.lang.round(i)}%, ${A.lang.round(r)}%, ${n})`:`hsl(${A.lang.round(e)}, ${A.lang.round(i)}%, ${A.lang.round(r)}%)`}},gi=ki,Si={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Si.colors[t];if(e)return Ne.parse(e)},stringify:t=>{const e=Ne.stringify(t);for(const i in Si.colors)if(Si.colors[i]===e)return i}},Zo=Si,wa={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(wa.re);if(!i)return;const[,r,n,o,s,a,l,h,u]=i;return nr.set({r:A.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:A.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:A.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?A.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${A.lang.round(e)}, ${A.lang.round(i)}, ${A.lang.round(r)}, ${A.lang.round(n)})`:`rgb(${A.lang.round(e)}, ${A.lang.round(i)}, ${A.lang.round(r)})`}},mi=wa,bd={format:{keyword:Zo,hex:Ne,rgb:mi,rgba:mi,hsl:gi,hsla:gi},parse:t=>{if(typeof t!="string")return t;const e=Ne.parse(t)||mi.parse(t)||gi.parse(t)||Zo.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Y.HSL)||t.data.r===void 0?gi.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?mi.stringify(t):Ne.stringify(t)},yt=bd,Td=(t,e)=>{const i=yt.parse(t);for(const r in e)i[r]=A.channel.clamp[r](e[r]);return yt.stringify(i)},Ba=Td,vd=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ba(t,{a:e});const n=nr.set({r:A.channel.clamp.r(t),g:A.channel.clamp.g(e),b:A.channel.clamp.b(i),a:A.channel.clamp.a(r)});return yt.stringify(n)},De=vd,kd=t=>{const{r:e,g:i,b:r}=yt.parse(t),n=.2126*A.channel.toLinear(e)+.7152*A.channel.toLinear(i)+.0722*A.channel.toLinear(r);return A.lang.round(n)},Sd=kd,wd=t=>Sd(t)>=.5,Bd=wd,Ad=t=>!Bd(t),ti=Ad,Fd=(t,e,i)=>{const r=yt.parse(t),n=r[e],o=A.channel.clamp[e](n+i);return n!==o&&(r[e]=o),yt.stringify(r)},Aa=Fd,Ld=(t,e)=>Aa(t,"l",e),k=Ld,Ed=(t,e)=>Aa(t,"l",-e),B=Ed,Od=(t,e)=>{const i=yt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ba(t,r)},g=Od,Id=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=yt.parse(t),{r:a,g:l,b:h,a:u}=yt.parse(e),f=i/100,c=f*2-1,p=s-u,x=((c*p===-1?c:(c+p)/(1+c*p))+1)/2,T=1-x,L=r*x+a*T,C=n*x+l*T,E=o*x+h*T,I=s*f+u*(1-f);return De(L,C,E,I)},Md=Id,$d=(t,e=100)=>{const i=yt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Md(i,t,e)},_=$d;var Nd=typeof global=="object"&&global&&global.Object===Object&&global;const Fa=Nd;var Dd=typeof self=="object"&&self&&self.Object===Object&&self,Rd=Fa||Dd||Function("return this")();const bt=Rd;var Pd=bt.Symbol;const qi=Pd;var La=Object.prototype,qd=La.hasOwnProperty,zd=La.toString,Oe=qi?qi.toStringTag:void 0;function Wd(t){var e=qd.call(t,Oe),i=t[Oe];try{t[Oe]=void 0;var r=!0}catch{}var n=zd.call(t);return r&&(e?t[Oe]=i:delete t[Oe]),n}var Hd=Object.prototype,jd=Hd.toString;function Ud(t){return jd.call(t)}var Yd="[object Null]",Vd="[object Undefined]",Jo=qi?qi.toStringTag:void 0;function xe(t){return t==null?t===void 0?Vd:Yd:Jo&&Jo in Object(t)?Wd(t):Ud(t)}function Zt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Gd="[object AsyncFunction]",Xd="[object Function]",Kd="[object GeneratorFunction]",Zd="[object Proxy]";function Ln(t){if(!Zt(t))return!1;var e=xe(t);return e==Xd||e==Kd||e==Gd||e==Zd}var Jd=bt["__core-js_shared__"];const zr=Jd;var Qo=function(){var t=/[^.]+$/.exec(zr&&zr.keys&&zr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Qd(t){return!!Qo&&Qo in t}var tp=Function.prototype,ep=tp.toString;function Jt(t){if(t!=null){try{return ep.call(t)}catch{}try{return t+""}catch{}}return""}var ip=/[\\^$.*+?()[\]{}|]/g,rp=/^\[object .+?Constructor\]$/,np=Function.prototype,op=Object.prototype,sp=np.toString,ap=op.hasOwnProperty,lp=RegExp("^"+sp.call(ap).replace(ip,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hp(t){if(!Zt(t)||Qd(t))return!1;var e=Ln(t)?lp:rp;return e.test(Jt(t))}function cp(t,e){return t==null?void 0:t[e]}function Qt(t,e){var i=cp(t,e);return hp(i)?i:void 0}var up=Qt(Object,"create");const Ye=up;function fp(){this.__data__=Ye?Ye(null):{},this.size=0}function dp(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var pp="__lodash_hash_undefined__",gp=Object.prototype,mp=gp.hasOwnProperty;function _p(t){var e=this.__data__;if(Ye){var i=e[t];return i===pp?void 0:i}return mp.call(e,t)?e[t]:void 0}var yp=Object.prototype,Cp=yp.hasOwnProperty;function xp(t){var e=this.__data__;return Ye?e[t]!==void 0:Cp.call(e,t)}var bp="__lodash_hash_undefined__";function Tp(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Ye&&e===void 0?bp:e,this}function Xt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1}function Fp(t,e){var i=this.__data__,r=sr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Ot(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=cg}function hr(t){return t!=null&&$a(t.length)&&!Ln(t)}function ug(t){return ii(t)&&hr(t)}function fg(){return!1}var Na=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ss=Na&&typeof module=="object"&&module&&!module.nodeType&&module,dg=ss&&ss.exports===Na,as=dg?bt.Buffer:void 0,pg=as?as.isBuffer:void 0,gg=pg||fg;const On=gg;var mg="[object Object]",_g=Function.prototype,yg=Object.prototype,Da=_g.toString,Cg=yg.hasOwnProperty,xg=Da.call(Object);function bg(t){if(!ii(t)||xe(t)!=mg)return!1;var e=Ia(t);if(e===null)return!0;var i=Cg.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Da.call(i)==xg}var Tg="[object Arguments]",vg="[object Array]",kg="[object Boolean]",Sg="[object Date]",wg="[object Error]",Bg="[object Function]",Ag="[object Map]",Fg="[object Number]",Lg="[object Object]",Eg="[object RegExp]",Og="[object Set]",Ig="[object String]",Mg="[object WeakMap]",$g="[object ArrayBuffer]",Ng="[object DataView]",Dg="[object Float32Array]",Rg="[object Float64Array]",Pg="[object Int8Array]",qg="[object Int16Array]",zg="[object Int32Array]",Wg="[object Uint8Array]",Hg="[object Uint8ClampedArray]",jg="[object Uint16Array]",Ug="[object Uint32Array]",N={};N[Dg]=N[Rg]=N[Pg]=N[qg]=N[zg]=N[Wg]=N[Hg]=N[jg]=N[Ug]=!0;N[Tg]=N[vg]=N[$g]=N[kg]=N[Ng]=N[Sg]=N[wg]=N[Bg]=N[Ag]=N[Fg]=N[Lg]=N[Eg]=N[Og]=N[Ig]=N[Mg]=!1;function Yg(t){return ii(t)&&$a(t.length)&&!!N[xe(t)]}function Vg(t){return function(e){return t(e)}}var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Re=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,Gg=Re&&Re.exports===Ra,Wr=Gg&&Fa.process,Xg=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||Wr&&Wr.binding&&Wr.binding("util")}catch{}}();const ls=Xg;var hs=ls&&ls.isTypedArray,Kg=hs?Vg(hs):Yg;const In=Kg;function sn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Zg=Object.prototype,Jg=Zg.hasOwnProperty;function Qg(t,e,i){var r=t[e];(!(Jg.call(t,e)&&or(r,i))||i===void 0&&!(e in t))&&En(t,e,i)}function tm(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=ym)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Tm=bm(_m);const vm=Tm;function km(t,e){return vm(pm(t,e,Wa),t+"")}function Sm(t,e,i){if(!Zt(i))return!1;var r=typeof e;return(r=="number"?hr(i)&&Pa(e,i.length):r=="string"&&e in i)?or(i[e],t):!1}function wm(t){return km(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&Sm(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r0?Ge(Te,--ct):0,ge--,P===10&&(ge=1,cr--),P}function ft(){return P=ct2||an(P)>3?"":" "}function qm(t,e){for(;--e&&ft()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return ur(t,Bi()+(e<6&&Yt()==32&&ft()==32))}function ln(t){for(;ft();)switch(P){case t:return ct;case 34:case 39:t!==34&&t!==39&&ln(P);break;case 40:t===41&&ln(t);break;case 92:ft();break}return ct}function zm(t,e){for(;ft()&&t+P!==57;)if(t+P===84&&Yt()===47)break;return"/*"+ur(e,ct-1)+"*"+Mn(t===47?t:ft())}function Wm(t){for(;!an(Yt());)ft();return ur(t,ct)}function Hm(t){return Rm(Ai("",null,null,null,[""],t=Dm(t),0,[0],t))}function Ai(t,e,i,r,n,o,s,a,l){for(var h=0,u=0,f=s,c=0,p=0,y=0,x=1,T=1,L=1,C=0,E="",I=n,z=o,J=r,O=E;T;)switch(y=C,C=ft()){case 40:if(y!=108&&Ge(O,f-1)==58){Im(O+=wi(Hr(C),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:O+=Hr(C);break;case 9:case 10:case 13:case 32:O+=Pm(y);break;case 92:O+=qm(Bi()-1,7);continue;case 47:switch(Yt()){case 42:case 47:_i(jm(zm(ft(),Bi()),e,i,l),l);break;default:O+="/"}break;case 123*x:a[h++]=At(O)*L;case 125*x:case 59:case 0:switch(C){case 0:case 125:T=0;case 59+u:L==-1&&(O=wi(O,/\f/g,"")),p>0&&At(O)-f&&_i(p>32?fs(O+";",r,i,f-1,l):fs(wi(O," ","")+";",r,i,f-2,l),l);break;case 59:O+=";";default:if(_i(J=us(O,e,i,h,u,n,a,E,I=[],z=[],f,o),o),C===123)if(u===0)Ai(O,e,J,J,I,o,f,a,z);else switch(c===99&&Ge(O,3)===110?100:c){case 100:case 108:case 109:case 115:Ai(t,J,J,r&&_i(us(t,J,J,0,0,n,a,E,n,I=[],f,z),z),n,z,f,a,r?I:z);break;default:Ai(O,J,J,J,[""],z,0,a,z)}}h=u=p=0,x=L=1,E=O="",f=s;break;case 58:f=1+At(O),p=y;default:if(x<1){if(C==123)--x;else if(C==125&&x++==0&&Nm()==125)continue}switch(O+=Mn(C),C*x){case 38:L=u>0?1:(O+="\f",-1);break;case 44:a[h++]=(At(O)-1)*L,L=1;break;case 64:Yt()===45&&(O+=Hr(ft())),c=Yt(),u=f=At(E=O+=Wm(Bi())),C++;break;case 45:y===45&&At(O)==2&&(x=0)}}return o}function us(t,e,i,r,n,o,s,a,l,h,u,f){for(var c=n-1,p=n===0?o:[""],y=Mm(p),x=0,T=0,L=0;x0?p[C]+" "+E:wi(E,/&\f/g,p[C])))&&(l[L++]=I);return $n(t,e,i,n===0?ja:a,l,h,u,f)}function jm(t,e,i,r){return $n(t,e,i,Ha,Mn($m()),Xe(t,2,-2),0,r)}function fs(t,e,i,r,n){return $n(t,e,i,Ua,Xe(t,0,r),Xe(t,r+1,-1),r,n)}function hn(t,e){for(var i="",r=0;r{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Nn=function(t="fatal"){let e=wt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in wt&&(e=wt[t])):typeof t=="number"&&(e=t),w.trace=()=>{},w.debug=()=>{},w.info=()=>{},w.warn=()=>{},w.error=()=>{},w.fatal=()=>{},e<=wt.fatal&&(w.fatal=console.error?console.error.bind(console,at("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",at("FATAL"))),e<=wt.error&&(w.error=console.error?console.error.bind(console,at("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",at("ERROR"))),e<=wt.warn&&(w.warn=console.warn?console.warn.bind(console,at("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",at("WARN"))),e<=wt.info&&(w.info=console.info?console.info.bind(console,at("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",at("INFO"))),e<=wt.debug&&(w.debug=console.debug?console.debug.bind(console,at("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",at("DEBUG"))),e<=wt.trace&&(w.trace=console.debug?console.debug.bind(console,at("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",at("TRACE")))},at=t=>`%c${ch().format("ss.SSS")} : ${t} : `,fr=//gi,f0=t=>t?Xa(t).replace(/\\n/g,"#br#").split("#br#"):[""],Ga=t=>Pi.sanitize(t),ys=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Ga(t):r!=="loose"&&(t=Xa(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=m0(t))}return t},Ke=(t,e)=>t&&(e.dompurifyConfig?t=Pi.sanitize(ys(t,e),e.dompurifyConfig).toString():t=Pi.sanitize(ys(t,e),{FORBID_TAGS:["style"]}).toString(),t),d0=(t,e)=>typeof t=="string"?Ke(t,e):t.flat().map(i=>Ke(i,e)),p0=t=>fr.test(t),g0=t=>t.split(fr),m0=t=>t.replace(/#br#/g,"
"),Xa=t=>t.replace(fr,"#br#"),_0=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},Ka=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),y0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},C0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},n1=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r0&&r+1Math.max(0,t.split(e).length-1),x0=(t,e)=>{const i=pn(t,"~"),r=pn(e,"~");return i===1&&r===1},b0=t=>{const e=pn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},Dn={getRows:f0,sanitizeText:Ke,sanitizeTextOrArray:d0,hasBreaks:p0,splitBreaks:g0,lineBreakRegex:fr,removeScript:Ga,getUrl:_0,evaluate:Ka,getMax:y0,getMin:C0},K=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),dr="#ffffff",pr="#f2f2f2";let T0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||K(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||K(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||K(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?B(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||B(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||k(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const v0=t=>{const e=new T0;return e.calculate(t),e};let k0=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=k(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=k(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=De(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=B("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=B(this.sectionBkgColor,10),this.taskBorderColor=De(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=De(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.secondBkg=k(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=k(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=k(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const S0=t=>{const e=new k0;return e.calculate(t),e};let w0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=K(this.primaryColor,this.darkMode),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=De(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||B(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||B(this.tertiaryColor,40);for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const B0=t=>{const e=new w0;return e.calculate(t),e};let A0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=k("#cde498",10),this.primaryBorderColor=K(this.primaryColor,this.darkMode),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.actorBorder=B(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||B(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||B(this.tertiaryColor,40);for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const F0=t=>{const e=new A0;return e.calculate(t),e};class L0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=k(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=K(this.primaryColor,this.darkMode),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.secondBkg=k(this.contrast,55),this.border2=this.contrast,this.actorBorder=k(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const E0=t=>{const e=new L0;return e.calculate(t),e},Lt={base:{getThemeVariables:v0},dark:{getThemeVariables:S0},default:{getThemeVariables:B0},forest:{getThemeVariables:F0},neutral:{getThemeVariables:E0}},Bt={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},Za={...Bt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Lt.default.getThemeVariables(),sequence:{...Bt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Bt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Bt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Bt.pie,useWidth:984},xyChart:{...Bt.xyChart,useWidth:void 0},requirement:{...Bt.requirement,useWidth:void 0},gitGraph:{...Bt.gitGraph,useMaxWidth:!1},sankey:{...Bt.sankey,useMaxWidth:!1}},Ja=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ja(t[r],"")]:[...i,e+r],[]),O0=new Set(Ja(Za,"")),I0=Za,ji=t=>{if(w.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>ji(e));return}for(const e of Object.keys(t)){if(w.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!O0.has(e)||t[e]==null){w.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){w.debug("sanitizing object",e),ji(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(w.debug("sanitizing css option",e),t[e]=M0(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}w.debug("After sanitization",t)}},M0=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)il(e,i,r)},il=(t,e,i)=>{me[t]?w.error(`Detector with key ${t} already exists`):me[t]={detector:e,loader:i},w.debug(`Detector with key ${t} added${i?" with loader":""}`)},N0=t=>me[t].loader,gn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>gn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=gn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},V=gn,D0="​",R0={curveBasis:Lf,curveBasisClosed:Ef,curveBasisOpen:Of,curveBumpX:Af,curveBumpY:Ff,curveBundle:If,curveCardinalClosed:$f,curveCardinalOpen:Nf,curveCardinal:Mf,curveCatmullRomClosed:Rf,curveCatmullRomOpen:Pf,curveCatmullRom:Df,curveLinear:Bf,curveLinearClosed:qf,curveMonotoneX:zf,curveMonotoneY:Wf,curveNatural:Hf,curveStep:jf,curveStepAfter:Yf,curveStepBefore:Uf},P0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,q0=function(t,e){const i=rl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);ji(s),r=V(r,[...s])}else r=i.args;if(!r)return;let n=gr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},rl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${P0.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Pe.exec(t))!==null;)if(r.index===Pe.lastIndex&&Pe.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},z0=function(t){return t.replace(Pe,"")},W0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function H0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return R0[i]??e}function j0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Ms.sanitizeUrl(i):i}const U0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=nl(n,e),e=n});const r=i/2;return Rn(t,r)}function V0(t){return t.length===1?t[0]:Y0(t)}const Cs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Rn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=nl(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:Cs((1-s)*i.x+s*n.x,5),y:Cs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},G0=(t,e,i)=>{w.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Rn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function X0(t,e,i){const r=structuredClone(i);w.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Rn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function K0(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const Z0=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function J0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nJ0(t.length),t_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},e_=function(t,e){const i=e.text.replace(Dn.lineBreakRegex," "),[,r]=qn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},i_=ei((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),Dn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=Ui(`${s} `,i),h=Ui(o,i);if(l>e){const{hyphenatedStrings:c,remainingWord:p}=r_(s,e,"-",i);n.push(o,...c),o=p}else h+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),r_=ei((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if(Ui(h,r)>=e){const f=l+1,c=n.length===f,p=`${h}${i}`;o.push(c?h:p),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function n_(t,e){return Pn(t,e).height}function Ui(t,e){return Pn(t,e).width}const Pn=ei((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=qn(i),s=["sans-serif",r],a=t.split(Dn.lineBreakRegex),l=[],h=lt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const u=h.append("svg");for(const c of s){let p=0;const y={width:0,height:0,lineHeight:0};for(const x of a){const T=t_();T.text=x||D0;const L=e_(u,T).style("font-size",o).style("font-weight",n).style("font-family",c),C=(L._groups||L)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,C.width)),p=Math.round(C.height),y.height+=p,y.lineHeight=Math.round(Math.max(y.lineHeight,p))}l.push(y)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class o_{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let yi;const s_=function(t){return yi=yi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),yi.innerHTML=t,unescape(yi.textContent)};function ol(t){return"str"in t}const a_=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},qn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function sl(t,e){return Am({},t,e)}const qe={assignWithDepth:V,wrapLabel:i_,calculateTextHeight:n_,calculateTextWidth:Ui,calculateTextDimensions:Pn,cleanAndMerge:sl,detectInit:q0,detectDirective:rl,isSubstringInArray:W0,interpolateToCurve:H0,calcLabelPosition:V0,calcCardinalityPosition:G0,calcTerminalLabelPosition:X0,formatUrl:j0,getStylesFromArray:K0,generateId:Z0,random:Q0,runFunc:U0,entityDecode:s_,insertTitle:a_,parseFontSize:qn,InitIDGenerator:o_},bs="10.6.1",_e=Object.freeze(I0);let et=V({},_e),al,ye=[],ze=V({},_e);const mr=(t,e)=>{let i=V({},t),r={};for(const n of e)cl(n),r=V(r,n);if(i=V(i,r),r.theme&&r.theme in Lt){const n=V({},al),o=V(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Lt&&(i.themeVariables=Lt[i.theme].getThemeVariables(o))}return ze=i,ul(ze),ze},l_=t=>(et=V({},_e),et=V(et,t),t.theme&&Lt[t.theme]&&(et.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables)),mr(et,ye),et),h_=t=>{al=V({},t)},c_=t=>(et=V(et,t),mr(et,ye),et),ll=()=>V({},et),hl=t=>(ul(t),V(ze,t),Ct()),Ct=()=>V({},ze),cl=t=>{t&&(["secure",...et.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(w.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&cl(t[e])}))},u_=t=>{ji(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ye.push(t),mr(et,ye)},Yi=(t=et)=>{ye=[],mr(t,ye)},f_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ts={},d_=t=>{Ts[t]||(w.warn(f_[t]),Ts[t]=!0)},ul=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&d_("LAZY_LOAD_DEPRECATED")},fl="c4",p_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),g_=async()=>{const{diagram:t}=await R(()=>import("./c4Diagram-817c8e44-umsou0DR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:fl,diagram:t}},m_={id:fl,detector:p_,loader:g_},__=m_,dl="flowchart",y_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},C_=async()=>{const{diagram:t}=await R(()=>import("./flowDiagram-61eb444c-wBFqk1LD.js"),__vite__mapDeps([11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:dl,diagram:t}},x_={id:dl,detector:y_,loader:C_},b_=x_,pl="flowchart-v2",T_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},v_=async()=>{const{diagram:t}=await R(()=>import("./flowDiagram-v2-2f8f667a-k9Nn7Pzb.js"),__vite__mapDeps([21,12,14,13,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:pl,diagram:t}},k_={id:pl,detector:T_,loader:v_},S_=k_,gl="er",w_=t=>/^\s*erDiagram/.test(t),B_=async()=>{const{diagram:t}=await R(()=>import("./erDiagram-9cfc3649-M5W9FlY_.js"),__vite__mapDeps([22,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:gl,diagram:t}},A_={id:gl,detector:w_,loader:B_},F_=A_,ml="gitGraph",L_=t=>/^\s*gitGraph/.test(t),E_=async()=>{const{diagram:t}=await R(()=>import("./gitGraphDiagram-6b463803-Gmbmx2Ie.js"),__vite__mapDeps([23,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:ml,diagram:t}},O_={id:ml,detector:L_,loader:E_},I_=O_,_l="gantt",M_=t=>/^\s*gantt/.test(t),$_=async()=>{const{diagram:t}=await R(()=>import("./ganttDiagram-db6931fb-fG9d8qhp.js"),__vite__mapDeps([24,2,3,4,5,6,7,8,9,10,25,26,27]),import.meta.url);return{id:_l,diagram:t}},N_={id:_l,detector:M_,loader:$_},D_=N_,yl="info",R_=t=>/^\s*info/.test(t),P_=async()=>{const{diagram:t}=await R(()=>import("./infoDiagram-a336098b-PQlAVZVr.js"),__vite__mapDeps([28,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:yl,diagram:t}},q_={id:yl,detector:R_,loader:P_},Cl="pie",z_=t=>/^\s*pie/.test(t),W_=async()=>{const{diagram:t}=await R(()=>import("./pieDiagram-a5166659-zPl0InYJ.js"),__vite__mapDeps([29,2,3,4,5,6,7,8,9,10,30,20,31,27,19]),import.meta.url);return{id:Cl,diagram:t}},H_={id:Cl,detector:z_,loader:W_},xl="quadrantChart",j_=t=>/^\s*quadrantChart/.test(t),U_=async()=>{const{diagram:t}=await R(()=>import("./quadrantDiagram-6c355bbc-xjEI3qTN.js"),__vite__mapDeps([32,2,3,4,5,6,7,8,9,10,26,27]),import.meta.url);return{id:xl,diagram:t}},Y_={id:xl,detector:j_,loader:U_},V_=Y_,bl="xychart",G_=t=>/^\s*xychart-beta/.test(t),X_=async()=>{const{diagram:t}=await R(()=>import("./xychartDiagram-f746c04c-MI7kdoOm.js"),__vite__mapDeps([33,17,2,3,4,5,6,7,8,9,10,27,31,26,18,19,20]),import.meta.url);return{id:bl,diagram:t}},K_={id:bl,detector:G_,loader:X_},Z_=K_,Tl="requirement",J_=t=>/^\s*requirement(Diagram)?/.test(t),Q_=async()=>{const{diagram:t}=await R(()=>import("./requirementDiagram-4038b16c-S7JmCgki.js"),__vite__mapDeps([34,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:Tl,diagram:t}},ty={id:Tl,detector:J_,loader:Q_},ey=ty,vl="sequence",iy=t=>/^\s*sequenceDiagram/.test(t),ry=async()=>{const{diagram:t}=await R(()=>import("./sequenceDiagram-465a088a-ZZ8C71kZ.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:vl,diagram:t}},ny={id:vl,detector:iy,loader:ry},oy=ny,kl="class",sy=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},ay=async()=>{const{diagram:t}=await R(()=>import("./classDiagram-48ab76fb-hx-EVz8F.js"),__vite__mapDeps([36,37,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:kl,diagram:t}},ly={id:kl,detector:sy,loader:ay},hy=ly,Sl="classDiagram",cy=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},uy=async()=>{const{diagram:t}=await R(()=>import("./classDiagram-v2-8ecb0bfc-SWmKP9NA.js"),__vite__mapDeps([38,37,13,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:Sl,diagram:t}},fy={id:Sl,detector:cy,loader:uy},dy=fy,wl="state",py=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},gy=async()=>{const{diagram:t}=await R(()=>import("./stateDiagram-b620d43f-y0IcZQu2.js"),__vite__mapDeps([39,40,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:wl,diagram:t}},my={id:wl,detector:py,loader:gy},_y=my,Bl="stateDiagram",yy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Cy=async()=>{const{diagram:t}=await R(()=>import("./stateDiagram-v2-2671c3d1-IJSNIfX0.js"),__vite__mapDeps([41,40,13,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:Bl,diagram:t}},xy={id:Bl,detector:yy,loader:Cy},by=xy,Al="journey",Ty=t=>/^\s*journey/.test(t),vy=async()=>{const{diagram:t}=await R(()=>import("./journeyDiagram-deae3313-dyWWXkRg.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,30,20]),import.meta.url);return{id:Al,diagram:t}},ky={id:Al,detector:Ty,loader:vy},Sy=ky,wy=function(t,e){for(let i of e)t.attr(i[0],i[1])},By=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Fl=function(t,e,i,r){const n=By(e,i,r);wy(t,n)},Ay=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;w.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;w.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,w.info(`Calculated bounds: ${a}x${l}`),Fl(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},Fi={},Fy=(t,e,i)=>{let r="";return t in Fi&&Fi[t]?r=Fi[t](i):w.warn(`No theme found for ${t}`),` & { +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Pe.exec(t))!==null;)if(r.index===Pe.lastIndex&&Pe.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},z0=function(t){return t.replace(Pe,"")},W0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function H0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return R0[i]??e}function j0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Ms.sanitizeUrl(i):i}const U0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=nl(n,e),e=n});const r=i/2;return Rn(t,r)}function V0(t){return t.length===1?t[0]:Y0(t)}const Cs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Rn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=nl(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:Cs((1-s)*i.x+s*n.x,5),y:Cs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},G0=(t,e,i)=>{w.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Rn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function X0(t,e,i){const r=structuredClone(i);w.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Rn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function K0(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const Z0=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function J0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nJ0(t.length),t_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},e_=function(t,e){const i=e.text.replace(Dn.lineBreakRegex," "),[,r]=qn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},i_=ei((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),Dn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=Ui(`${s} `,i),h=Ui(o,i);if(l>e){const{hyphenatedStrings:c,remainingWord:p}=r_(s,e,"-",i);n.push(o,...c),o=p}else h+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),r_=ei((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if(Ui(h,r)>=e){const f=l+1,c=n.length===f,p=`${h}${i}`;o.push(c?h:p),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function n_(t,e){return Pn(t,e).height}function Ui(t,e){return Pn(t,e).width}const Pn=ei((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=qn(i),s=["sans-serif",r],a=t.split(Dn.lineBreakRegex),l=[],h=lt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const u=h.append("svg");for(const c of s){let p=0;const y={width:0,height:0,lineHeight:0};for(const x of a){const T=t_();T.text=x||D0;const L=e_(u,T).style("font-size",o).style("font-weight",n).style("font-family",c),C=(L._groups||L)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,C.width)),p=Math.round(C.height),y.height+=p,y.lineHeight=Math.round(Math.max(y.lineHeight,p))}l.push(y)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class o_{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let yi;const s_=function(t){return yi=yi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),yi.innerHTML=t,unescape(yi.textContent)};function ol(t){return"str"in t}const a_=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},qn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function sl(t,e){return Am({},t,e)}const qe={assignWithDepth:V,wrapLabel:i_,calculateTextHeight:n_,calculateTextWidth:Ui,calculateTextDimensions:Pn,cleanAndMerge:sl,detectInit:q0,detectDirective:rl,isSubstringInArray:W0,interpolateToCurve:H0,calcLabelPosition:V0,calcCardinalityPosition:G0,calcTerminalLabelPosition:X0,formatUrl:j0,getStylesFromArray:K0,generateId:Z0,random:Q0,runFunc:U0,entityDecode:s_,insertTitle:a_,parseFontSize:qn,InitIDGenerator:o_},bs="10.6.1",_e=Object.freeze(I0);let et=V({},_e),al,ye=[],ze=V({},_e);const mr=(t,e)=>{let i=V({},t),r={};for(const n of e)cl(n),r=V(r,n);if(i=V(i,r),r.theme&&r.theme in Lt){const n=V({},al),o=V(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Lt&&(i.themeVariables=Lt[i.theme].getThemeVariables(o))}return ze=i,ul(ze),ze},l_=t=>(et=V({},_e),et=V(et,t),t.theme&&Lt[t.theme]&&(et.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables)),mr(et,ye),et),h_=t=>{al=V({},t)},c_=t=>(et=V(et,t),mr(et,ye),et),ll=()=>V({},et),hl=t=>(ul(t),V(ze,t),Ct()),Ct=()=>V({},ze),cl=t=>{t&&(["secure",...et.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(w.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&cl(t[e])}))},u_=t=>{ji(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ye.push(t),mr(et,ye)},Yi=(t=et)=>{ye=[],mr(t,ye)},f_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ts={},d_=t=>{Ts[t]||(w.warn(f_[t]),Ts[t]=!0)},ul=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&d_("LAZY_LOAD_DEPRECATED")},fl="c4",p_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),g_=async()=>{const{diagram:t}=await R(()=>import("./c4Diagram-817c8e44-5EmuvcU7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:fl,diagram:t}},m_={id:fl,detector:p_,loader:g_},__=m_,dl="flowchart",y_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},C_=async()=>{const{diagram:t}=await R(()=>import("./flowDiagram-61eb444c-5tOIE6Jg.js"),__vite__mapDeps([11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:dl,diagram:t}},x_={id:dl,detector:y_,loader:C_},b_=x_,pl="flowchart-v2",T_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},v_=async()=>{const{diagram:t}=await R(()=>import("./flowDiagram-v2-2f8f667a-2ERX0VqJ.js"),__vite__mapDeps([21,12,14,13,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:pl,diagram:t}},k_={id:pl,detector:T_,loader:v_},S_=k_,gl="er",w_=t=>/^\s*erDiagram/.test(t),B_=async()=>{const{diagram:t}=await R(()=>import("./erDiagram-9cfc3649-JOF84bEc.js"),__vite__mapDeps([22,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:gl,diagram:t}},A_={id:gl,detector:w_,loader:B_},F_=A_,ml="gitGraph",L_=t=>/^\s*gitGraph/.test(t),E_=async()=>{const{diagram:t}=await R(()=>import("./gitGraphDiagram-6b463803-qFlY7Hxy.js"),__vite__mapDeps([23,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:ml,diagram:t}},O_={id:ml,detector:L_,loader:E_},I_=O_,_l="gantt",M_=t=>/^\s*gantt/.test(t),$_=async()=>{const{diagram:t}=await R(()=>import("./ganttDiagram-db6931fb-zKHq32tk.js"),__vite__mapDeps([24,2,3,4,5,6,7,8,9,10,25,26,27]),import.meta.url);return{id:_l,diagram:t}},N_={id:_l,detector:M_,loader:$_},D_=N_,yl="info",R_=t=>/^\s*info/.test(t),P_=async()=>{const{diagram:t}=await R(()=>import("./infoDiagram-a336098b-A5eiqr5L.js"),__vite__mapDeps([28,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:yl,diagram:t}},q_={id:yl,detector:R_,loader:P_},Cl="pie",z_=t=>/^\s*pie/.test(t),W_=async()=>{const{diagram:t}=await R(()=>import("./pieDiagram-a5166659-Au0nzvDN.js"),__vite__mapDeps([29,2,3,4,5,6,7,8,9,10,30,20,31,27,19]),import.meta.url);return{id:Cl,diagram:t}},H_={id:Cl,detector:z_,loader:W_},xl="quadrantChart",j_=t=>/^\s*quadrantChart/.test(t),U_=async()=>{const{diagram:t}=await R(()=>import("./quadrantDiagram-6c355bbc-dFNqbfav.js"),__vite__mapDeps([32,2,3,4,5,6,7,8,9,10,26,27]),import.meta.url);return{id:xl,diagram:t}},Y_={id:xl,detector:j_,loader:U_},V_=Y_,bl="xychart",G_=t=>/^\s*xychart-beta/.test(t),X_=async()=>{const{diagram:t}=await R(()=>import("./xychartDiagram-f746c04c-TcMXd8nC.js"),__vite__mapDeps([33,17,2,3,4,5,6,7,8,9,10,27,31,26,18,19,20]),import.meta.url);return{id:bl,diagram:t}},K_={id:bl,detector:G_,loader:X_},Z_=K_,Tl="requirement",J_=t=>/^\s*requirement(Diagram)?/.test(t),Q_=async()=>{const{diagram:t}=await R(()=>import("./requirementDiagram-4038b16c-j4H1o8Rq.js"),__vite__mapDeps([34,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:Tl,diagram:t}},ty={id:Tl,detector:J_,loader:Q_},ey=ty,vl="sequence",iy=t=>/^\s*sequenceDiagram/.test(t),ry=async()=>{const{diagram:t}=await R(()=>import("./sequenceDiagram-465a088a-3kpBpEJM.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:vl,diagram:t}},ny={id:vl,detector:iy,loader:ry},oy=ny,kl="class",sy=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},ay=async()=>{const{diagram:t}=await R(()=>import("./classDiagram-48ab76fb-3Hn8dqdv.js"),__vite__mapDeps([36,37,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:kl,diagram:t}},ly={id:kl,detector:sy,loader:ay},hy=ly,Sl="classDiagram",cy=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},uy=async()=>{const{diagram:t}=await R(()=>import("./classDiagram-v2-8ecb0bfc--VaB5bI_.js"),__vite__mapDeps([38,37,13,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:Sl,diagram:t}},fy={id:Sl,detector:cy,loader:uy},dy=fy,wl="state",py=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},gy=async()=>{const{diagram:t}=await R(()=>import("./stateDiagram-b620d43f-Ae8zvNyx.js"),__vite__mapDeps([39,40,13,2,3,4,5,6,7,8,9,10,18,19,20]),import.meta.url);return{id:wl,diagram:t}},my={id:wl,detector:py,loader:gy},_y=my,Bl="stateDiagram",yy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Cy=async()=>{const{diagram:t}=await R(()=>import("./stateDiagram-v2-2671c3d1-ivzK-thD.js"),__vite__mapDeps([41,40,13,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10]),import.meta.url);return{id:Bl,diagram:t}},xy={id:Bl,detector:yy,loader:Cy},by=xy,Al="journey",Ty=t=>/^\s*journey/.test(t),vy=async()=>{const{diagram:t}=await R(()=>import("./journeyDiagram-deae3313-NAwzEuks.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,30,20]),import.meta.url);return{id:Al,diagram:t}},ky={id:Al,detector:Ty,loader:vy},Sy=ky,wy=function(t,e){for(let i of e)t.attr(i[0],i[1])},By=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Fl=function(t,e,i,r){const n=By(e,i,r);wy(t,n)},Ay=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;w.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;w.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,w.info(`Calculated bounds: ${a}x${l}`),Fl(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},Fi={},Fy=(t,e,i)=>{let r="";return t in Fi&&Fi[t]?r=Fi[t](i):w.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} @@ -57,7 +57,7 @@ import{_ as R}from"./index-Qg-bAq5J.js";import{e as ch}from"./LinkCard-aLl-jjA_. ${e} `},Ly=(t,e)=>{e!==void 0&&(Fi[t]=e)},Ey=Fy;let zn="",Wn="",Hn="";const jn=t=>Ke(t,Ct()),Oy=()=>{zn="",Hn="",Wn=""},Iy=t=>{zn=jn(t).replace(/^\s+/g,"")},My=()=>zn,$y=t=>{Hn=jn(t).replace(/\n\s+/g,` `)},Ny=()=>Hn,Dy=t=>{Wn=jn(t)},Ry=()=>Wn,Py=Object.freeze(Object.defineProperty({__proto__:null,clear:Oy,getAccDescription:Ny,getAccTitle:My,getDiagramTitle:Ry,setAccDescription:$y,setAccTitle:Iy,setDiagramTitle:Dy},Symbol.toStringTag,{value:"Module"})),qy=w,zy=Nn,Un=Ct,h1=hl,c1=_e,Wy=t=>Ke(t,Un()),Hy=Ay,jy=()=>Py,Vi={},Gi=(t,e,i)=>{var r;if(Vi[t])throw new Error(`Diagram ${t} already registered.`);Vi[t]=e,i&&il(t,i),Ly(t,e.styles),(r=e.injectUtils)==null||r.call(e,qy,zy,Un,Wy,Hy,jy(),()=>{})},Yn=t=>{if(t in Vi)return Vi[t];throw new Uy(t)};class Uy extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Yy=t=>{var e;const{securityLevel:i}=Un();let r=lt("body");if(i==="sandbox"){const s=((e=lt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=lt(s.body)}return r.select(`#${t}`)},Vy=(t,e,i)=>{w.debug(`renering svg for syntax error -`);const r=Yy(e);r.attr("viewBox","0 0 2412 512"),Fl(r,100,512,!0);const n=r.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ll={draw:Vy},Gy=Ll,Xy={db:{},renderer:Ll,parser:{parser:{yy:{}},parse:()=>{}}},Ky=Xy,El="flowchart-elk",Zy=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},Jy=async()=>{const{diagram:t}=await R(()=>import("./flowchart-elk-definition-e097735e-RPHEm9d7.js"),__vite__mapDeps([43,12,16,17,18,19,20,3,4,2,5,6,7,8,9,10]),import.meta.url);return{id:El,diagram:t}},Qy={id:El,detector:Zy,loader:Jy},tC=Qy,Ol="timeline",eC=t=>/^\s*timeline/.test(t),iC=async()=>{const{diagram:t}=await R(()=>import("./timeline-definition-732a2638-5RBH9ibF.js"),__vite__mapDeps([44,2,3,4,5,6,7,8,9,10,30,20]),import.meta.url);return{id:Ol,diagram:t}},rC={id:Ol,detector:eC,loader:iC},nC=rC,Il="mindmap",oC=t=>/^\s*mindmap/.test(t),sC=async()=>{const{diagram:t}=await R(()=>import("./mindmap-definition-617cf8dd-kVrwEOcC.js"),__vite__mapDeps([45,17,3,4,2,5,6,7,8,9,10]),import.meta.url);return{id:Il,diagram:t}},aC={id:Il,detector:oC,loader:sC},lC=aC,Ml="sankey",hC=t=>/^\s*sankey-beta/.test(t),cC=async()=>{const{diagram:t}=await R(()=>import("./sankeyDiagram-6db3d513-LjKBNQ64.js"),__vite__mapDeps([46,2,3,4,5,6,7,8,9,10,31,27]),import.meta.url);return{id:Ml,diagram:t}},uC={id:Ml,detector:hC,loader:cC},fC=uC;let vs=!1;const Vn=()=>{vs||(vs=!0,Gi("error",Ky,t=>t.toLowerCase().trim()==="error"),Gi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),el(__,dy,hy,F_,D_,q_,H_,ey,oy,tC,S_,b_,lC,nC,I_,by,_y,Sy,V_,fC,Z_))};class $l{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text+=` +`);const r=Yy(e);r.attr("viewBox","0 0 2412 512"),Fl(r,100,512,!0);const n=r.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ll={draw:Vy},Gy=Ll,Xy={db:{},renderer:Ll,parser:{parser:{yy:{}},parse:()=>{}}},Ky=Xy,El="flowchart-elk",Zy=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},Jy=async()=>{const{diagram:t}=await R(()=>import("./flowchart-elk-definition-e097735e-l4fCEAHS.js"),__vite__mapDeps([43,12,16,17,18,19,20,3,4,2,5,6,7,8,9,10]),import.meta.url);return{id:El,diagram:t}},Qy={id:El,detector:Zy,loader:Jy},tC=Qy,Ol="timeline",eC=t=>/^\s*timeline/.test(t),iC=async()=>{const{diagram:t}=await R(()=>import("./timeline-definition-732a2638-Duw5fbqt.js"),__vite__mapDeps([44,2,3,4,5,6,7,8,9,10,30,20]),import.meta.url);return{id:Ol,diagram:t}},rC={id:Ol,detector:eC,loader:iC},nC=rC,Il="mindmap",oC=t=>/^\s*mindmap/.test(t),sC=async()=>{const{diagram:t}=await R(()=>import("./mindmap-definition-617cf8dd-9Nq7YxOd.js"),__vite__mapDeps([45,17,3,4,2,5,6,7,8,9,10]),import.meta.url);return{id:Il,diagram:t}},aC={id:Il,detector:oC,loader:sC},lC=aC,Ml="sankey",hC=t=>/^\s*sankey-beta/.test(t),cC=async()=>{const{diagram:t}=await R(()=>import("./sankeyDiagram-6db3d513-NZxhM55r.js"),__vite__mapDeps([46,2,3,4,5,6,7,8,9,10,31,27]),import.meta.url);return{id:Ml,diagram:t}},uC={id:Ml,detector:hC,loader:cC},fC=uC;let vs=!1;const Vn=()=>{vs||(vs=!0,Gi("error",Ky,t=>t.toLowerCase().trim()==="error"),Gi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),el(__,dy,hy,F_,D_,q_,H_,ey,oy,tC,S_,b_,lC,nC,I_,by,_y,Sy,V_,fC,Z_))};class $l{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text+=` `;const r=Ct();try{this.type=gr(e,r)}catch(o){this.type="error",this.detectError=o}const n=Yn(this.type);w.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=Ct();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Gn=async(t,e={})=>{const i=gr(t,Ct());try{Yn(i)}catch{const n=N0(i);if(!n)throw new tl(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();Gi(o,s)}return new $l(t,e)};let mn=[];const u1=t=>{mn.push(t)},dC=()=>{mn.forEach(t=>{t()}),mn=[]},pC="graphics-document document";function gC(t,e){t.attr("role",pC),e!==""&&t.attr("aria-roledescription",e)}function mC(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const _C=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Nl(t){return typeof t>"u"||t===null}function yC(t){return typeof t=="object"&&t!==null}function CC(t){return Array.isArray(t)?t:Nl(t)?[]:[t]}function xC(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Yr(t,e){return X.repeat(" ",e-t.length)+t}function FC(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,h,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)h=Ur(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=X.repeat(" ",e.indent)+Yr((t.line-l+1).toString(),u)+" | "+h.str+` @@ -86,7 +86,7 @@ ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` */window.addEventListener("load",Jl,!1)}const Hb=function(t){pt.parseError=t},Ji=[];let Gr=!1;const Ql=async()=>{if(!Gr){for(Gr=!0;Ji.length>0;){const t=Ji.shift();if(t)try{await t()}catch(e){w.error("Error executing queue",e)}}Gr=!1}},jb=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{Kt.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;w.error("Error parsing",a),(l=pt.parseError)==null||l.call(pt,a),s(a),r(a)})});Ji.push(n),Ql().catch(r)}),th=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{Kt.render(t,e,i).then(l=>{s(l),r(l)},l=>{var h;w.error("Error parsing",l),(h=pt.parseError)==null||h.call(pt,l),a(l),n(l)})});Ji.push(o),Ql().catch(n)}),pt={startOnLoad:!0,mermaidAPI:Kt,parse:jb,render:th,init:zb,run:Kl,registerExternalDiagrams:Wb,initialize:Zl,parseError:void 0,contentLoaded:Jl,setParseErrorHandler:Hb,detectType:gr},f1=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"}));export{ti as $,u1 as A,Lf as B,n1 as C,fr as D,c1 as E,Ka as F,Fb as G,Sn as H,Kb as I,Qb as J,Po as K,Ro as L,e1 as M,t1 as N,Jb as O,Gb as P,Xb as Q,r1 as R,i1 as S,Zb as T,Ay as U,H0 as V,Bf as W,K0 as X,Z0 as Y,D0 as Z,Py as _,Ny as a,fn as a$,k as a0,B as a1,Ct as a2,sl as a3,ot as a4,Vs as a5,Ch as a6,A as a7,yt as a8,bg as a9,pm as aA,tm as aB,qa as aC,Ia as aD,Zp as aE,Jp as aF,a0 as aG,ls as aH,Vg as aI,Qp as aJ,On as aK,Xp as aL,ng as aM,be as aN,Qg as aO,Rt as aP,or as aQ,rs as aR,In as aS,$a as aT,Pa as aU,Wa as aV,Vp as aW,bt as aX,km as aY,Sm as aZ,En as a_,Ln as aa,De as ab,xn as ac,Gs as ad,it as ae,Qe as af,iu as ag,Zs as ah,Vb as ai,bn as aj,Mt as ak,je as al,Oo as am,hu as an,uh as ao,ii as ap,xe as aq,qi as ar,Hi as as,Zt as at,hr as au,sm as av,Km as aw,ei as ax,Wi as ay,vm as az,$y as b,ug as b0,gm as b1,jr as b2,Am as b3,f1 as b4,Un as c,Ke as d,V as e,Ui as f,My as g,lt as h,Fl as i,Dn as j,n_ as k,w as l,Ms as m,h1 as n,Dy as o,Ry as p,Oy as q,Hy as r,Iy as s,Q0 as t,qe as u,Yy as v,i_ as w,B0 as x,I0 as y,qn as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./c4Diagram-817c8e44-umsou0DR.js","./svgDrawCommon-ad5ef572-ZpVsMh3H.js","./LinkCard-aLl-jjA_.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./Divider-ZvsSiSkZ.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./flowDiagram-61eb444c-wBFqk1LD.js","./flowDb-170db09d-7If00yRB.js","./layout-TzcvurS1.js","./styles-b966c4ae-YImdFhsJ.js","./index-67a42d7d-g0Z27jYt.js","./edges-80f1ebb6-FlrRuN4S.js","./createText-aebacdfe-SYhAe-WO.js","./line-MxgoxcWE.js","./array-Nw74a44z.js","./path-aUcfwwLI.js","./flowDiagram-v2-2f8f667a-k9Nn7Pzb.js","./erDiagram-9cfc3649-M5W9FlY_.js","./gitGraphDiagram-6b463803-Gmbmx2Ie.js","./ganttDiagram-db6931fb-fG9d8qhp.js","./customParseFormat-q3ZbyGZe.js","./linear-4Asi7RTq.js","./init-Hi12RPRh.js","./infoDiagram-a336098b-PQlAVZVr.js","./pieDiagram-a5166659-zPl0InYJ.js","./arc-suLvkwOy.js","./ordinal-wXG5obU4.js","./quadrantDiagram-6c355bbc-xjEI3qTN.js","./xychartDiagram-f746c04c-MI7kdoOm.js","./requirementDiagram-4038b16c-S7JmCgki.js","./sequenceDiagram-465a088a-ZZ8C71kZ.js","./classDiagram-48ab76fb-hx-EVz8F.js","./styles-4ba6ed67-4o_0kKs1.js","./classDiagram-v2-8ecb0bfc-SWmKP9NA.js","./stateDiagram-b620d43f-y0IcZQu2.js","./styles-bbc3fe3b-gfxx_Tsk.js","./stateDiagram-v2-2671c3d1-IJSNIfX0.js","./journeyDiagram-deae3313-dyWWXkRg.js","./flowchart-elk-definition-e097735e-RPHEm9d7.js","./timeline-definition-732a2638-5RBH9ibF.js","./mindmap-definition-617cf8dd-kVrwEOcC.js","./sankeyDiagram-6db3d513-LjKBNQ64.js"] + __vite__mapDeps.viteFileDeps = ["./c4Diagram-817c8e44-5EmuvcU7.js","./svgDrawCommon-ad5ef572-6JSuLc9B.js","./LinkCard-gCgkDO82.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./Divider-sIhvLlX0.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./flowDiagram-61eb444c-5tOIE6Jg.js","./flowDb-170db09d-yEiXM5xZ.js","./layout-or5_ZLqg.js","./styles-b966c4ae-isWPc7ie.js","./index-67a42d7d-z0cWI9_8.js","./edges-80f1ebb6-rGuwxB-z.js","./createText-aebacdfe-H6z3pXul.js","./line-aMz7DiQ_.js","./array-Nw74a44z.js","./path-aUcfwwLI.js","./flowDiagram-v2-2f8f667a-2ERX0VqJ.js","./erDiagram-9cfc3649-JOF84bEc.js","./gitGraphDiagram-6b463803-qFlY7Hxy.js","./ganttDiagram-db6931fb-zKHq32tk.js","./customParseFormat-ePfR8DqR.js","./linear-iUXoRcso.js","./init-Hi12RPRh.js","./infoDiagram-a336098b-A5eiqr5L.js","./pieDiagram-a5166659-Au0nzvDN.js","./arc-l0axwUh0.js","./ordinal-wXG5obU4.js","./quadrantDiagram-6c355bbc-dFNqbfav.js","./xychartDiagram-f746c04c-TcMXd8nC.js","./requirementDiagram-4038b16c-j4H1o8Rq.js","./sequenceDiagram-465a088a-3kpBpEJM.js","./classDiagram-48ab76fb-3Hn8dqdv.js","./styles-4ba6ed67-iT2JB7rU.js","./classDiagram-v2-8ecb0bfc--VaB5bI_.js","./stateDiagram-b620d43f-Ae8zvNyx.js","./styles-bbc3fe3b-IoBkQh0A.js","./stateDiagram-v2-2671c3d1-ivzK-thD.js","./journeyDiagram-deae3313-NAwzEuks.js","./flowchart-elk-definition-e097735e-l4fCEAHS.js","./timeline-definition-732a2638-Duw5fbqt.js","./mindmap-definition-617cf8dd-9Nq7YxOd.js","./sankeyDiagram-6db3d513-NZxhM55r.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/mindmap-definition-617cf8dd-kVrwEOcC.js b/assets/mindmap-definition-617cf8dd-9Nq7YxOd.js similarity index 99% rename from assets/mindmap-definition-617cf8dd-kVrwEOcC.js rename to assets/mindmap-definition-617cf8dd-9Nq7YxOd.js index 6aa84aed06..72072ea006 100644 --- a/assets/mindmap-definition-617cf8dd-kVrwEOcC.js +++ b/assets/mindmap-definition-617cf8dd-9Nq7YxOd.js @@ -1,4 +1,4 @@ -import{d as Ep,c as sn,l as qr,h as ti,U as wp,$ as xp,a0 as Tp,a1 as Cp}from"./mermaid.core-uOCfdc17.js";import{c as Dp}from"./createText-aebacdfe-SYhAe-WO.js";import{c as Da,g as _u}from"./index-Qg-bAq5J.js";import"./LinkCard-aLl-jjA_.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var Uu={exports:{}};(function(pe,le){(function(ee,ce){pe.exports=ce()})(Da,function(){function ee(t){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(t)}function ce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r"u"?null:window,$=D?D.navigator:null;D&&D.document;var _=ee(""),Q=ee({}),ne=ee(function(){}),oe=typeof HTMLElement>"u"?"undefined":ee(HTMLElement),J=function(e){return e&&e.instanceString&&Y(e.instanceString)?e.instanceString():null},j=function(e){return e!=null&&ee(e)==_},Y=function(e){return e!=null&&ee(e)===ne},te=function(e){return!de(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},L=function(e){return e!=null&&ee(e)===Q&&!te(e)&&e.constructor===Object},V=function(e){return e!=null&&ee(e)===Q},I=function(e){return e!=null&&ee(e)===ee(1)&&!isNaN(e)},W=function(e){return I(e)&&Math.floor(e)===e},fe=function(e){if(oe!=="undefined")return e!=null&&e instanceof HTMLElement},de=function(e){return Ae(e)||Ne(e)},Ae=function(e){return J(e)==="collection"&&e._private.single},Ne=function(e){return J(e)==="collection"&&!e._private.single},_e=function(e){return J(e)==="core"},tt=function(e){return J(e)==="stylesheet"},vt=function(e){return J(e)==="event"},Pe=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ve=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Xe=function(e){return L(e)&&I(e.x1)&&I(e.x2)&&I(e.y1)&&I(e.y2)},rt=function(e){return V(e)&&Y(e.then)},ft=function(){return $&&$.userAgent.match(/msie|trident|edge/i)},at=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},ju=function(e,r){return-1*ji(e,r)},Ue=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(y-=1),y<1/6?v+(p-v)*6*y:y<1/2?p:y<2/3?v+(p-v)*(2/3-y)*6:v}var h=new RegExp("^"+un+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;o=Math.round(255*f(d,c,a+1/3)),l=Math.round(255*f(d,c,a)),u=Math.round(255*f(d,c,a-1/3))}r=[o,l,u,s]}return r},rl=function(e){var r,a=new RegExp("^"+dr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},al=function(e){return il[e.toLowerCase()]},nl=function(e){return(te(e)?e:null)||al(e)||el(e)||rl(e)||tl(e)},il={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},es=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||x<0||h&&R>=i}function g(){var A=ri();if(y(A))return m(A);o=setTimeout(g,p(A))}function m(A){return o=void 0,c&&a?d(A):(a=n=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:m(ri())}function N(){var A=ri(),x=y(A);if(a=arguments,n=this,l=A,x){if(o===void 0)return v(l);if(h)return clearTimeout(o),o=setTimeout(g,e),d(l)}return o===void 0&&(o=setTimeout(g,e)),s}return N.cancel=b,N.flush=E,N}var fn=Ul,ai=D?D.performance:null,os=ai&&ai.now?function(){return ai.now()}:function(){return Date.now()},Yl=function(){if(D){if(D.requestAnimationFrame)return function(t){D.requestAnimationFrame(t)};if(D.mozRequestAnimationFrame)return function(t){D.mozRequestAnimationFrame(t)};if(D.webkitRequestAnimationFrame)return function(t){D.webkitRequestAnimationFrame(t)};if(D.msRequestAnimationFrame)return function(t){D.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(os())},1e3/60)}}(),hn=function(e){return Yl(e)},gr=os,Jr=9261,us=65599,Na=5381,ls=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr,a=r,n;n=e.next(),!n.done;)a=a*us+n.value|0;return a},Ma=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr;return r*us+e|0},Ia=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na;return(r<<5)+r+e|0},Hl=function(e,r){return e*2097152+r},wr=function(e){return e[0]*2097152+e[1]},cn=function(e,r){return[Ma(e[0],r[0]),Ia(e[1],r[1])]},Xl=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},si=function(e){e.splice(0,e.length)},jl=function(e,r){for(var a=0;a"u"?"undefined":ee(Set))!==tf?Set:rf,dn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!_e(e)){Tt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Tt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new jr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];te(r.classes)?u=r.classes:j(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;fm?1:0},f=function(g,m,b,E,N){var A;if(b==null&&(b=0),N==null&&(N=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=g.length);bB;0<=B?C++:C--)R.push(C);return R}).apply(this).reverse(),x=[],E=0,N=A.length;Ez;0<=z?++R:--R)M.push(s(g,b));return M},p=function(g,m,b,E){var N,A,x;for(E==null&&(E=a),N=g[b];b>m;){if(x=b-1>>1,A=g[x],E(N,A)<0){g[b]=A,b=x;continue}break}return g[b]=N},y=function(g,m,b){var E,N,A,x,R;for(b==null&&(b=a),N=g.length,R=m,A=g[m],E=2*m+1;E0;){var A=m.pop(),x=y(A),R=A.id();if(c[R]=x,x!==1/0)for(var C=A.neighborhood().intersect(v),B=0;B0)for(ie.unshift(Z);h[ge];){var se=h[ge];ie.unshift(se.edge),ie.unshift(se.node),ue=se.node,ge=ue.id()}return o.spawn(ie)}}}},of={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var N=0;N0;){if(N(),x++,E===f){for(var R=[],C=i,B=f,z=g[B];R.unshift(C),z!=null&&R.unshift(z),C=y[B],C!=null;)B=C.id(),z=g[B];return{found:!0,distance:h[E],path:this.spawn(R),steps:x}}d[E]=!0;for(var M=b._private.edges,X=0;Xz&&(v[B]=z,m[B]=C,b[B]=N),!i){var M=C*f+R;!i&&v[M]>z&&(v[M]=z,m[M]=R,b[M]=N)}}}for(var X=0;X1&&arguments[1]!==void 0?arguments[1]:s,je=b(ke),Ze=[],Ye=je;;){if(Ye==null)return r.spawn();var ct=m(Ye),De=ct.edge,k=ct.pred;if(Ze.unshift(Ye[0]),Ye.same(ze)&&Ze.length>0)break;De!=null&&Ze.unshift(De),Ye=k}return l.spawn(Ze)},A=0;A=0;f--){var h=u[f],c=h[1],d=h[2];(r[c]===o&&r[d]===l||r[c]===l&&r[d]===o)&&u.splice(f,1)}for(var v=0;vn;){var i=Math.floor(Math.random()*r.length);r=gf(i,e,r),a--}return r},pf={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(ie){return ie.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/df);if(i<2){Tt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,d){return c-d});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},xf=function(e){return Math.PI*e/180},pn=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},bs=function(e){return e>0?1:e<0?-1:0},Br=function(e,r){return Math.sqrt(Fr(e,r))},Fr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Tf=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Df=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Sf=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Lf=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Af=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},yn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},li=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=w(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Es=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},fi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},ra=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Of=function(e,r){return ra(e,r.x,r.y)},ws=function(e,r){return ra(e,r.x1,r.y1)&&ra(e,r.x2,r.y2)},xs=function(e,r,a,n,i,s,o){var l=za(i,s),u=i/2,f=s/2,h;{var c=a-u+l-o,d=n-f-o,v=a+u-l+o,p=d;if(h=Cr(e,r,a,n,c,d,v,p,!1),h.length>0)return h}{var y=a+u+o,g=n-f+l-o,m=y,b=n+f-l+o;if(h=Cr(e,r,a,n,y,g,m,b,!1),h.length>0)return h}{var E=a-u+l-o,N=n+f+o,A=a+u-l+o,x=N;if(h=Cr(e,r,a,n,E,N,A,x,!1),h.length>0)return h}{var R=a-u-o,C=n-f+l-o,B=R,z=n+f-l+o;if(h=Cr(e,r,a,n,R,C,B,z,!1),h.length>0)return h}var M;{var X=a-u+l,F=n-f+l;if(M=Ba(e,r,a,n,X,F,l+o),M.length>0&&M[0]<=X&&M[1]<=F)return[M[0],M[1]]}{var re=a+u-l,q=n-f+l;if(M=Ba(e,r,a,n,re,q,l+o),M.length>0&&M[0]>=re&&M[1]<=q)return[M[0],M[1]]}{var Z=a+u-l,ie=n+f-l;if(M=Ba(e,r,a,n,Z,ie,l+o),M.length>0&&M[0]>=Z&&M[1]>=ie)return[M[0],M[1]]}{var ue=a-u+l,ge=n+f-l;if(M=Ba(e,r,a,n,ue,ge,l+o),M.length>0&&M[0]<=ue&&M[1]>=ge)return[M[0],M[1]]}return[]},Nf=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Mf=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},If=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Rf=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,h,c,d,v;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,d=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+h+c,d+=(h+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+h)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,o===0){v=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+2*v,i[4]=i[2]=-(v+d);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),v=2*Math.sqrt(l),i[0]=-d+v*Math.cos(f/3),i[2]=-d+v*Math.cos((f+2*Math.PI)/3),i[4]=-d+v*Math.cos((f+4*Math.PI)/3)},kf=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,d=[];Rf(u,f,h,c,d);for(var v=1e-7,p=[],y=0;y<6;y+=2)Math.abs(d[y+1])=0&&d[y]<=1&&p.push(d[y]);p.push(1),p.push(0);for(var g=-1,m,b,E,N=0;N=0?Eu?(e-i)*(e-i)+(r-s)*(r-s):f-c},Ht=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},pr=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),d=Math.sin(-h),v=0;v0){var y=Cs(f,-u);p=Ts(y)}else p=f;return Ht(e,r,p)},Bf=function(e,r,a,n,i,s,o){for(var l=new Array(a.length),u=s/2,f=o/2,h=vi(s,o),c=h*h,d=0;d=0&&y<=1&&m.push(y),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*l[0]+e,E=m[0]*l[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var N=m[1]*l[0]+e,A=m[1]*l[1]+r;return[b,E,N,A]}else return[b,E]},hi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Cr=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,d=r-s,v=n-r,p=l-s,y=c*d-p*f,g=h*d-v*f,m=p*h-c*v;if(m!==0){var b=y/m,E=g/m,N=.001,A=0-N,x=1+N;return A<=b&&b<=x&&A<=E&&E<=x?[e+b*h,r+b*v]:u?[e+b*h,r+b*v]:[]}else return y===0||g===0?hi(e,a,o)===o?[o,l]:hi(e,a,i)===i?[i,s]:hi(i,o,a)===a?[a,n]:[]:[]},Fa=function(e,r,a,n,i,s,o,l){var u=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var d;if(c){for(var v=0;v0){var p=Cs(h,-l);d=Ts(p)}else d=h}else d=a;for(var y,g,m,b,E=0;E2){for(var q=[u[0],u[1]],Z=Math.pow(q[0]-e,2)+Math.pow(q[1]-r,2),ie=1;ief&&(f=E)},get:function(b){return u[b]}},c=0;c0?q=re.edgesTo(F)[0]:q=F.edgesTo(re)[0];var Z=n(q);F=F.id(),R[F]>R[M]+Z&&(R[F]=R[M]+Z,C.nodes.indexOf(F)<0?C.push(F):C.updateItem(F),x[F]=0,A[F]=[]),R[F]==R[M]+Z&&(x[F]=x[F]+x[M],A[F].push(M))}else for(var ie=0;ie0;){for(var ve=N.pop(),ye=0;ye0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},Jf=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:th,o=n,l,u,f=0;f=2?Ga(e,r,a,0,Rs,rh):Ga(e,r,a,0,Is)},squaredEuclidean:function(e,r,a){return Ga(e,r,a,0,Rs)},manhattan:function(e,r,a){return Ga(e,r,a,0,Is)},max:function(e,r,a){return Ga(e,r,a,-1/0,ah)}};ia["squared-euclidean"]=ia.squaredEuclidean,ia.squaredeuclidean=ia.squaredEuclidean;function bn(t,e,r,a,n,i){var s;return Y(t)?s=t:s=ia[t]||ia.euclidean,e===0&&Y(t)?s(n,i):s(e,r,a,n,i)}var nh=At({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pi=function(e){return nh(e)},En=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},l=function(c){return n[c](r)},u=a,f=r;return bn(e,n.length,o,l,u,f)},yi=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},oh=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var v=r[s],p=r[n[s]],y;i.mode==="dendrogram"?y={left:v,right:p,key:v.key}:y={value:v.value.concat(p.value),key:v.key},e[v.index]=y,e.splice(p.index,1),r[v.key]=y;for(var g=0;ga[p.key][m.key]&&(l=a[p.key][m.key])):i.linkage==="max"?(l=a[v.key][m.key],a[v.key][m.key]0&&n.push(i);return n},$s=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=h)}a[i]=s[l]}return n=$s(e,r,a),n},_s=function(e){for(var r=this.cy(),a=this.nodes(),n=wh(e),i={},s=0;s=z?(M=z,z=F,X=re):F>M&&(M=F);for(var q=0;q0?1:0;x[C%n.minIterations*o+ve]=ye,se+=ye}if(se>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var Te=0,be=0;be1||A>1)&&(o=!0),h[b]=[],m.outgoers().forEach(function(R){R.isEdge()&&h[b].push(R.id())})}else c[b]=[void 0,m.target().id()]}):s.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(l?u?o=!0:u=b:l=b),h[b]=[],m.connectedEdges().forEach(function(N){return h[b].push(N.id())})}else c[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(o)return d;if(u&&l)if(i){if(f&&u!=f)return d;f=u}else{if(f&&u!=f&&l!=f)return d;f||(f=u)}else f||(f=s[0].id());var v=function(b){for(var E=b,N=[b],A,x,R;h[E].length;)A=h[E].shift(),x=c[A][0],R=c[A][1],E!=R?(h[R]=h[R].filter(function(C){return C!=A}),E=R):!i&&E!=x&&(h[x]=h[x].filter(function(C){return C!=A}),E=x),N.unshift(A),N.unshift(E);return N},p=[],y=[];for(y=v(f);y.length!=1;)h[y[0]].length==0?(p.unshift(s.getElementById(y.shift())),p.unshift(s.getElementById(y.shift()))):y=v(y.shift()).concat(y);p.unshift(s.getElementById(y.shift()));for(var g in h)if(h[g].length)return d;return d.found=!0,d.trail=this.spawn(p,!0),d}},xn=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,d){for(var v=s.length-1,p=[],y=e.spawn();s[v].x!=c||s[v].y!=d;)p.push(s.pop().edge),v--;p.push(s.pop().edge),p.forEach(function(g){var m=g.connectedNodes().intersection(e);y.merge(g),m.forEach(function(b){var E=b.id(),N=b.connectedEdges().intersection(e);y.merge(b),r[E].cutVertex?y.merge(N.filter(function(A){return A.isLoop()})):y.merge(N)})}),i.push(y)},u=function h(c,d,v){c===v&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var y,g,m,b;p.forEach(function(E){y=E.source().id(),g=E.target().id(),m=y===d?g:y,m!==v&&(b=E.id(),o[b]||(o[b]=!0,s.push({x:d,y:m,edge:E})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(h(c,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,l(d,m))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},Oh={hopcroftTarjanBiconnected:xn,htbc:xn,htb:xn,hopcroftTarjanBiconnectedComponents:xn},Tn=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(p){var y=p.target().id();y!==u&&(y in r||l(y),r[y].explored||(r[u].low=Math.min(r[u].low,r[y].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var d=h.edgesWith(h),v=h.merge(d);n.push(v),s=s.difference(v)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},Nh={tarjanStronglyConnected:Tn,tsc:Tn,tscc:Tn,tarjanStronglyConnectedComponents:Tn},Us={};[Ra,sf,of,lf,hf,vf,pf,$f,aa,na,gi,eh,vh,bh,Sh,Ah,Oh,Nh].forEach(function(t){Ue(Us,t)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) diff --git a/assets/mutation-P8-Et3_d.js b/assets/mutation-qwHfn3Jw.js similarity index 97% rename from assets/mutation-P8-Et3_d.js rename to assets/mutation-qwHfn3Jw.js index daeb630ef9..eec8b0ae13 100644 --- a/assets/mutation-P8-Et3_d.js +++ b/assets/mutation-qwHfn3Jw.js @@ -1 +1 @@ -var x=(s,t,i)=>{if(!t.has(s))throw TypeError("Cannot "+i)};var e=(s,t,i)=>(x(s,t,"read from private field"),i?i.call(s):t.get(s)),l=(s,t,i)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,i)},h=(s,t,i,n)=>(x(s,t,"write to private field"),n?n.call(s,i):t.set(s,i),i);var c=(s,t,i)=>(x(s,t,"access private method"),i);import{n as q,c as z,a as B}from"./Markdown-xk31dQ-T.js";import{i as H,c as J}from"./Gallery-lvvI9ksR.js";var p,U,K=(U=class{constructor(){l(this,p,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),H(this.gcTime)&&h(this,p,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(J?1/0:5*60*1e3))}clearGcTimeout(){e(this,p)&&(clearTimeout(e(this,p)),h(this,p,void 0))}},p=new WeakMap,U),r,m,a,f,u,d,V,Y=(V=class extends K{constructor(t){super();l(this,u);l(this,r,void 0);l(this,m,void 0);l(this,a,void 0);l(this,f,void 0);this.mutationId=t.mutationId,h(this,m,t.defaultOptions),h(this,a,t.mutationCache),h(this,r,[]),this.state=t.state||L(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...e(this,m),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){e(this,r).includes(t)||(e(this,r).push(t),this.clearGcTimeout(),e(this,a).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,r,e(this,r).filter(i=>i!==t)),this.scheduleGc(),e(this,a).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){e(this,r).length||(this.state.status==="pending"?this.scheduleGc():e(this,a).remove(this))}continue(){var t;return((t=e(this,f))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var g,w,v,T,M,R,C,G,P,S,O,F,D,E,k,A,I,b,j,N;const i=()=>(h(this,f,z({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(o,y)=>{c(this,u,d).call(this,{type:"failed",failureCount:o,error:y})},onPause:()=>{c(this,u,d).call(this,{type:"pause"})},onContinue:()=>{c(this,u,d).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),e(this,f).promise),n=this.state.status==="pending";try{if(!n){c(this,u,d).call(this,{type:"pending",variables:t}),await((w=(g=e(this,a).config).onMutate)==null?void 0:w.call(g,t,this));const y=await((T=(v=this.options).onMutate)==null?void 0:T.call(v,t));y!==this.state.context&&c(this,u,d).call(this,{type:"pending",context:y,variables:t})}const o=await i();return await((R=(M=e(this,a).config).onSuccess)==null?void 0:R.call(M,o,t,this.state.context,this)),await((G=(C=this.options).onSuccess)==null?void 0:G.call(C,o,t,this.state.context)),await((S=(P=e(this,a).config).onSettled)==null?void 0:S.call(P,o,null,this.state.variables,this.state.context,this)),await((F=(O=this.options).onSettled)==null?void 0:F.call(O,o,null,t,this.state.context)),c(this,u,d).call(this,{type:"success",data:o}),o}catch(o){try{throw await((E=(D=e(this,a).config).onError)==null?void 0:E.call(D,o,t,this.state.context,this)),await((A=(k=this.options).onError)==null?void 0:A.call(k,o,t,this.state.context)),await((b=(I=e(this,a).config).onSettled)==null?void 0:b.call(I,void 0,o,this.state.variables,this.state.context,this)),await((N=(j=this.options).onSettled)==null?void 0:N.call(j,void 0,o,t,this.state.context)),o}finally{c(this,u,d).call(this,{type:"error",error:o})}}}},r=new WeakMap,m=new WeakMap,a=new WeakMap,f=new WeakMap,u=new WeakSet,d=function(t){const i=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!B(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),q.batch(()=>{e(this,r).forEach(n=>{n.onMutationUpdate(t)}),e(this,a).notify({mutation:this,type:"updated",action:t})})},V);function L(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}export{Y as M,K as R,L as g}; +var x=(s,t,i)=>{if(!t.has(s))throw TypeError("Cannot "+i)};var e=(s,t,i)=>(x(s,t,"read from private field"),i?i.call(s):t.get(s)),l=(s,t,i)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,i)},h=(s,t,i,n)=>(x(s,t,"write to private field"),n?n.call(s,i):t.set(s,i),i);var c=(s,t,i)=>(x(s,t,"access private method"),i);import{n as q,c as z,a as B}from"./Markdown-tpcPSstc.js";import{i as H,c as J}from"./Gallery-32-V3LXo.js";var p,U,K=(U=class{constructor(){l(this,p,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),H(this.gcTime)&&h(this,p,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(J?1/0:5*60*1e3))}clearGcTimeout(){e(this,p)&&(clearTimeout(e(this,p)),h(this,p,void 0))}},p=new WeakMap,U),r,m,a,f,u,d,V,Y=(V=class extends K{constructor(t){super();l(this,u);l(this,r,void 0);l(this,m,void 0);l(this,a,void 0);l(this,f,void 0);this.mutationId=t.mutationId,h(this,m,t.defaultOptions),h(this,a,t.mutationCache),h(this,r,[]),this.state=t.state||L(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...e(this,m),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){e(this,r).includes(t)||(e(this,r).push(t),this.clearGcTimeout(),e(this,a).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,r,e(this,r).filter(i=>i!==t)),this.scheduleGc(),e(this,a).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){e(this,r).length||(this.state.status==="pending"?this.scheduleGc():e(this,a).remove(this))}continue(){var t;return((t=e(this,f))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var g,w,v,T,M,R,C,G,P,S,O,F,D,E,k,A,I,b,j,N;const i=()=>(h(this,f,z({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(o,y)=>{c(this,u,d).call(this,{type:"failed",failureCount:o,error:y})},onPause:()=>{c(this,u,d).call(this,{type:"pause"})},onContinue:()=>{c(this,u,d).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),e(this,f).promise),n=this.state.status==="pending";try{if(!n){c(this,u,d).call(this,{type:"pending",variables:t}),await((w=(g=e(this,a).config).onMutate)==null?void 0:w.call(g,t,this));const y=await((T=(v=this.options).onMutate)==null?void 0:T.call(v,t));y!==this.state.context&&c(this,u,d).call(this,{type:"pending",context:y,variables:t})}const o=await i();return await((R=(M=e(this,a).config).onSuccess)==null?void 0:R.call(M,o,t,this.state.context,this)),await((G=(C=this.options).onSuccess)==null?void 0:G.call(C,o,t,this.state.context)),await((S=(P=e(this,a).config).onSettled)==null?void 0:S.call(P,o,null,this.state.variables,this.state.context,this)),await((F=(O=this.options).onSettled)==null?void 0:F.call(O,o,null,t,this.state.context)),c(this,u,d).call(this,{type:"success",data:o}),o}catch(o){try{throw await((E=(D=e(this,a).config).onError)==null?void 0:E.call(D,o,t,this.state.context,this)),await((A=(k=this.options).onError)==null?void 0:A.call(k,o,t,this.state.context)),await((b=(I=e(this,a).config).onSettled)==null?void 0:b.call(I,void 0,o,this.state.variables,this.state.context,this)),await((N=(j=this.options).onSettled)==null?void 0:N.call(j,void 0,o,t,this.state.context)),o}finally{c(this,u,d).call(this,{type:"error",error:o})}}}},r=new WeakMap,m=new WeakMap,a=new WeakMap,f=new WeakMap,u=new WeakSet,d=function(t){const i=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!B(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),q.batch(()=>{e(this,r).forEach(n=>{n.onMutationUpdate(t)}),e(this,a).notify({mutation:this,type:"updated",action:t})})},V);function L(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}export{Y as M,K as R,L as g}; diff --git a/assets/pieDiagram-a5166659-zPl0InYJ.js b/assets/pieDiagram-a5166659-Au0nzvDN.js similarity index 97% rename from assets/pieDiagram-a5166659-zPl0InYJ.js rename to assets/pieDiagram-a5166659-Au0nzvDN.js index 24794d0689..2a6991681f 100644 --- a/assets/pieDiagram-a5166659-zPl0InYJ.js +++ b/assets/pieDiagram-a5166659-Au0nzvDN.js @@ -1,4 +1,4 @@ -import{M as J,y as at,o as lt,p as ot,s as ct,g as ht,b as ut,a as yt,q as ft,d as pt,c as et,l as it,a3 as gt,v as dt,i as mt,z as _t}from"./mermaid.core-uOCfdc17.js";import"./LinkCard-aLl-jjA_.js";import{a as tt}from"./arc-suLvkwOy.js";import{o as vt}from"./ordinal-wXG5obU4.js";import{a as kt}from"./array-Nw74a44z.js";import{c as z}from"./path-aUcfwwLI.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./init-Hi12RPRh.js";function xt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=xt,$=null,f=z(0),b=z(J),w=z(0);function c(r){var l,g=(r=kt(r)).length,S,A,O=0,m=new Array(g),x=new Array(g),_=+f.apply(this,arguments),h=Math.min(J,Math.max(-J,b.apply(this,arguments)-_)),T,I=Math.min(Math.abs(h)/g,w.apply(this,arguments)),p=I*(h<0?-1:1),t;for(l=0;l0&&(O+=t);for(u!=null?m.sort(function(i,n){return u(x[i],x[n])}):$!=null&&m.sort(function(i,n){return $(r[i],r[n])}),l=0,A=O?(h-g*p)/O:0;l0?t*A:0)+p,x[S]={data:r[S],index:l,value:t,startAngle:_,endAngle:T,padAngle:I};return x}return c.value=function(r){return arguments.length?(e=typeof r=="function"?r:z(+r),c):e},c.sortValues=function(r){return arguments.length?(u=r,$=null,c):u},c.sort=function(r){return arguments.length?($=r,u=null,c):$},c.startAngle=function(r){return arguments.length?(f=typeof r=="function"?r:z(+r),c):f},c.endAngle=function(r){return arguments.length?(b=typeof r=="function"?r:z(+r),c):b},c.padAngle=function(r){return arguments.length?(w=typeof r=="function"?r:z(+r),c):w},c}var K=function(){var e=function(p,t,i,n){for(i=i||{},n=p.length;n--;i[p[n]]=t);return i},u=[1,3],$=[1,4],f=[1,5],b=[1,6],w=[1,10,12,14,16,18,19,20,21,22],c=[2,4],r=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],g=[2,7],S=[1,12],A=[1,13],O=[1,14],m=[1,15],x=[1,16],_=[1,17],h={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,a,o,s,P){var v=s.length-1;switch(o){case 3:a.setShowData(!0);break;case 6:this.$=s[v-1];break;case 8:a.addSection(s[v-1],a.cleanupValue(s[v]));break;case 9:this.$=s[v].trim(),a.setDiagramTitle(this.$);break;case 10:this.$=s[v].trim(),a.setAccTitle(this.$);break;case 11:case 12:this.$=s[v].trim(),a.setAccDescription(this.$);break;case 13:a.addSection(s[v].substr(8)),this.$=s[v].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:f,22:b},{1:[3]},{3:7,4:2,5:u,20:$,21:f,22:b},e(w,c,{6:8,7:[1,9]}),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{1:[2,1]},e(l,g,{8:10,9:11,1:[2,2],10:S,12:A,14:O,16:m,18:x,19:_}),e(w,c,{6:18}),e(w,[2,5]),{4:19,20:$,21:f,22:b},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,g,{8:10,9:11,1:[2,3],10:S,12:A,14:O,16:m,18:x,19:_}),e(w,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],a=[],o=[null],s=[],P=this.table,v="",d=0,V=0,F=2,M=1,B=s.slice.call(arguments,1),y=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);y.setInput(t,N.yy),N.yy.lexer=y,N.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var q=y.yylloc;s.push(q);var st=y.options&&y.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=a.pop()||y.lex()||M,typeof C!="number"&&(C instanceof Array&&(a=C,C=a.pop()),C=i.symbols_[C]||C),C}for(var k,L,E,Z,R={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),E=P[L]&&P[L][k]),typeof E>"u"||!E.length||!E[0]){var H="";W=[];for(j in P[L])this.terminals_[j]&&j>F&&W.push("'"+this.terminals_[j]+"'");y.showPosition?H="Parse error on line "+(d+1)+`: +import{M as J,y as at,o as lt,p as ot,s as ct,g as ht,b as ut,a as yt,q as ft,d as pt,c as et,l as it,a3 as gt,v as dt,i as mt,z as _t}from"./mermaid.core-YsxFu0Y0.js";import"./LinkCard-gCgkDO82.js";import{a as tt}from"./arc-l0axwUh0.js";import{o as vt}from"./ordinal-wXG5obU4.js";import{a as kt}from"./array-Nw74a44z.js";import{c as z}from"./path-aUcfwwLI.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./init-Hi12RPRh.js";function xt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=xt,$=null,f=z(0),b=z(J),w=z(0);function c(r){var l,g=(r=kt(r)).length,S,A,O=0,m=new Array(g),x=new Array(g),_=+f.apply(this,arguments),h=Math.min(J,Math.max(-J,b.apply(this,arguments)-_)),T,I=Math.min(Math.abs(h)/g,w.apply(this,arguments)),p=I*(h<0?-1:1),t;for(l=0;l0&&(O+=t);for(u!=null?m.sort(function(i,n){return u(x[i],x[n])}):$!=null&&m.sort(function(i,n){return $(r[i],r[n])}),l=0,A=O?(h-g*p)/O:0;l0?t*A:0)+p,x[S]={data:r[S],index:l,value:t,startAngle:_,endAngle:T,padAngle:I};return x}return c.value=function(r){return arguments.length?(e=typeof r=="function"?r:z(+r),c):e},c.sortValues=function(r){return arguments.length?(u=r,$=null,c):u},c.sort=function(r){return arguments.length?($=r,u=null,c):$},c.startAngle=function(r){return arguments.length?(f=typeof r=="function"?r:z(+r),c):f},c.endAngle=function(r){return arguments.length?(b=typeof r=="function"?r:z(+r),c):b},c.padAngle=function(r){return arguments.length?(w=typeof r=="function"?r:z(+r),c):w},c}var K=function(){var e=function(p,t,i,n){for(i=i||{},n=p.length;n--;i[p[n]]=t);return i},u=[1,3],$=[1,4],f=[1,5],b=[1,6],w=[1,10,12,14,16,18,19,20,21,22],c=[2,4],r=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],g=[2,7],S=[1,12],A=[1,13],O=[1,14],m=[1,15],x=[1,16],_=[1,17],h={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,a,o,s,P){var v=s.length-1;switch(o){case 3:a.setShowData(!0);break;case 6:this.$=s[v-1];break;case 8:a.addSection(s[v-1],a.cleanupValue(s[v]));break;case 9:this.$=s[v].trim(),a.setDiagramTitle(this.$);break;case 10:this.$=s[v].trim(),a.setAccTitle(this.$);break;case 11:case 12:this.$=s[v].trim(),a.setAccDescription(this.$);break;case 13:a.addSection(s[v].substr(8)),this.$=s[v].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:f,22:b},{1:[3]},{3:7,4:2,5:u,20:$,21:f,22:b},e(w,c,{6:8,7:[1,9]}),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{1:[2,1]},e(l,g,{8:10,9:11,1:[2,2],10:S,12:A,14:O,16:m,18:x,19:_}),e(w,c,{6:18}),e(w,[2,5]),{4:19,20:$,21:f,22:b},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,g,{8:10,9:11,1:[2,3],10:S,12:A,14:O,16:m,18:x,19:_}),e(w,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],a=[],o=[null],s=[],P=this.table,v="",d=0,V=0,F=2,M=1,B=s.slice.call(arguments,1),y=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);y.setInput(t,N.yy),N.yy.lexer=y,N.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var q=y.yylloc;s.push(q);var st=y.options&&y.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=a.pop()||y.lex()||M,typeof C!="number"&&(C instanceof Array&&(a=C,C=a.pop()),C=i.symbols_[C]||C),C}for(var k,L,E,Z,R={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),E=P[L]&&P[L][k]),typeof E>"u"||!E.length||!E[0]){var H="";W=[];for(j in P[L])this.terminals_[j]&&j>F&&W.push("'"+this.terminals_[j]+"'");y.showPosition?H="Parse error on line "+(d+1)+`: `+y.showPosition()+` Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":H="Parse error on line "+(d+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(H,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:q,expected:W})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(E[0]){case 1:n.push(k),o.push(y.yytext),s.push(y.yylloc),n.push(E[1]),k=null,V=y.yyleng,v=y.yytext,d=y.yylineno,q=y.yylloc;break;case 2:if(D=this.productions_[E[1]][1],R.$=o[o.length-D],R._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(R._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(R,[v,V,d,N.yy,E[1],o,s].concat(B)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[E[1]][0]),o.push(R.$),s.push(R._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},T=function(){var p={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===a.length?this.yylloc.first_column:0)+a[a.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/assets/quadrantDiagram-6c355bbc-xjEI3qTN.js b/assets/quadrantDiagram-6c355bbc-dFNqbfav.js similarity index 99% rename from assets/quadrantDiagram-6c355bbc-xjEI3qTN.js rename to assets/quadrantDiagram-6c355bbc-dFNqbfav.js index e43881be1f..160e652541 100644 --- a/assets/quadrantDiagram-6c355bbc-xjEI3qTN.js +++ b/assets/quadrantDiagram-6c355bbc-dFNqbfav.js @@ -1,4 +1,4 @@ -import{x as vt,c as yt,y as D,l as lt,s as Lt,g as Ct,o as zt,p as bt,a as Et,b as Dt,q as It,h as gt,i as Bt,d as wt}from"./mermaid.core-uOCfdc17.js";import"./LinkCard-aLl-jjA_.js";import{l as _t}from"./linear-4Asi7RTq.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./init-Hi12RPRh.js";var pt=function(){var e=function(K,n,r,o){for(r=r||{},o=K.length;o--;r[K[o]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,o,l,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),l.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),l.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),l.setAccDescription(this.$);break;case 16:l.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:l.addPoint(a[u-3],a[u-1],a[u]);break;case 18:l.setXAxisLeftText(a[u-2]),l.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",l.setXAxisLeftText(a[u-1]);break;case 20:l.setXAxisLeftText(a[u]);break;case 21:l.setYAxisBottomText(a[u-2]),l.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",l.setYAxisBottomText(a[u-1]);break;case 23:l.setYAxisBottomText(a[u]);break;case 24:l.setQuadrant1Text(a[u]);break;case 25:l.setQuadrant2Text(a[u]);break;case 26:l.setQuadrant3Text(a[u]);break;case 27:l.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=r,o}},parse:function(n){var r=this,o=[0],l=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=l.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(l=j,j=l.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,ot;;){if(J=o[o.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";ot=[];for(rt in et[J])this.terminals_[rt]&&rt>St&&ot.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: +import{x as vt,c as yt,y as D,l as lt,s as Lt,g as Ct,o as zt,p as bt,a as Et,b as Dt,q as It,h as gt,i as Bt,d as wt}from"./mermaid.core-YsxFu0Y0.js";import"./LinkCard-gCgkDO82.js";import{l as _t}from"./linear-iUXoRcso.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./init-Hi12RPRh.js";var pt=function(){var e=function(K,n,r,o){for(r=r||{},o=K.length;o--;r[K[o]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,o,l,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),l.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),l.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),l.setAccDescription(this.$);break;case 16:l.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:l.addPoint(a[u-3],a[u-1],a[u]);break;case 18:l.setXAxisLeftText(a[u-2]),l.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",l.setXAxisLeftText(a[u-1]);break;case 20:l.setXAxisLeftText(a[u]);break;case 21:l.setYAxisBottomText(a[u-2]),l.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",l.setYAxisBottomText(a[u-1]);break;case 23:l.setYAxisBottomText(a[u]);break;case 24:l.setQuadrant1Text(a[u]);break;case 25:l.setQuadrant2Text(a[u]);break;case 26:l.setQuadrant3Text(a[u]);break;case 27:l.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=r,o}},parse:function(n){var r=this,o=[0],l=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=l.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(l=j,j=l.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,ot;;){if(J=o[o.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";ot=[];for(rt in et[J])this.terminals_[rt]&&rt>St&&ot.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: `+E.showPosition()+` Expecting `+ot.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:ot})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:o.push(W),q.push(E.yytext),a.push(E.yylloc),o.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(o=o.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),o.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),mt=et[o[o.length-2]][o[o.length-1]],o.push(mt);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,o){if(this.yy.parser)this.yy.parser.parseError(r,o);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/assets/requirementDiagram-4038b16c-S7JmCgki.js b/assets/requirementDiagram-4038b16c-j4H1o8Rq.js similarity index 98% rename from assets/requirementDiagram-4038b16c-S7JmCgki.js rename to assets/requirementDiagram-4038b16c-j4H1o8Rq.js index 52fac260eb..d7fc756684 100644 --- a/assets/requirementDiagram-4038b16c-S7JmCgki.js +++ b/assets/requirementDiagram-4038b16c-j4H1o8Rq.js @@ -1,4 +1,4 @@ -import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,q as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-uOCfdc17.js";import{G as Ue,l as Be}from"./layout-TzcvurS1.js";import"./LinkCard-aLl-jjA_.js";import{l as Qe}from"./line-MxgoxcWE.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: +import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,q as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-YsxFu0Y0.js";import{G as Ue,l as Be}from"./layout-or5_ZLqg.js";import"./LinkCard-gCgkDO82.js";import{l as Qe}from"./line-aMz7DiQ_.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: `+E.showPosition()+` Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/assets/sankeyDiagram-6db3d513-LjKBNQ64.js b/assets/sankeyDiagram-6db3d513-NZxhM55r.js similarity index 98% rename from assets/sankeyDiagram-6db3d513-LjKBNQ64.js rename to assets/sankeyDiagram-6db3d513-NZxhM55r.js index 292e19d64d..453e7df2af 100644 --- a/assets/sankeyDiagram-6db3d513-LjKBNQ64.js +++ b/assets/sankeyDiagram-6db3d513-NZxhM55r.js @@ -1,4 +1,4 @@ -import{c as rt,g as mt,s as _t,a as kt,b as xt,p as vt,o as bt,q as wt,j as St,E as Lt,h as Y,i as Et}from"./mermaid.core-uOCfdc17.js";import"./LinkCard-aLl-jjA_.js";import{o as At}from"./ordinal-wXG5obU4.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./init-Hi12RPRh.js";function Tt(t){for(var n=t.length/6|0,i=new Array(n),l=0;l=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i=u)&&(i=u)}return i}function yt(t,n){let i;if(n===void 0)for(const l of t)l!=null&&(i>l||i===void 0&&l>=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i>u||i===void 0&&u>=u)&&(i=u)}return i}function Z(t,n){let i=0;if(n===void 0)for(let l of t)(l=+l)&&(i+=l);else{let l=-1;for(let u of t)(u=+n(u,++l,t))&&(i+=u)}return i}function Nt(t){return t.target.depth}function Pt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function It(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Nt)-1:0}function q(t){return function(){return t}}function lt(t,n){return G(t.source,n.source)||t.index-n.index}function at(t,n){return G(t.target,n.target)||t.index-n.index}function G(t,n){return t.y0-n.y0}function J(t){return t.value}function Ot(t){return t.index}function $t(t){return t.nodes}function zt(t){return t.links}function ct(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function ut({nodes:t}){for(const n of t){let i=n.y0,l=i;for(const u of n.sourceLinks)u.y0=i+u.width/2,i+=u.width;for(const u of n.targetLinks)u.y1=l+u.width/2,l+=u.width}}function jt(){let t=0,n=0,i=1,l=1,u=24,k=8,g,m=Ot,s=dt,o,c,p=$t,b=zt,y=6;function x(){const e={nodes:p.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:q(e),x):m},x.nodeAlign=function(e){return arguments.length?(s=typeof e=="function"?e:q(e),x):s},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(k=g=+e,x):k},x.nodes=function(e){return arguments.length?(p=typeof e=="function"?e:q(e),x):p},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:q(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,i=+e[0],l=+e[1],x):[i-t,l-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],l=+e[1][1],x):[[t,n],[i,l]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const a=new Map(e.map((h,r)=>[m(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:_,target:v}=r;typeof _!="object"&&(_=r.source=ct(a,_)),typeof v!="object"&&(v=r.target=ct(a,v)),_.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let a=new Set(e),h=new Set,r=0;for(;a.size;){for(const _ of a){_.depth=r;for(const{target:v}of _.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function N({nodes:e}){const f=e.length;let a=new Set(e),h=new Set,r=0;for(;a.size;){for(const _ of a){_.height=r;for(const{source:v}of _.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function P({nodes:e}){const f=ot(e,r=>r.depth)+1,a=(i-t-u)/(f-1),h=new Array(f);for(const r of e){const _=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=_,r.x0=t+_*a,r.x1=r.x0+u,h[_]?h[_].push(r):h[_]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,a=>(l-n-(a.length-1)*g)/Z(a,J));for(const a of e){let h=n;for(const r of a){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const _ of r.sourceLinks)_.width=_.value*f}h=(l-h+g)/(a.length+1);for(let r=0;ra.length)-1)),z(f);for(let a=0;a0))continue;let V=(U/j-v.y0)*f;v.y0+=V,v.y1+=V,w(v)}o===void 0&&_.sort(G),C(_,a)}}function $(e,f,a){for(let h=e.length,r=h-2;r>=0;--r){const _=e[r];for(const v of _){let U=0,j=0;for(const{target:F,value:K}of v.sourceLinks){let W=K*(F.layer-v.layer);U+=R(v,F)*W,j+=W}if(!(j>0))continue;let V=(U/j-v.y0)*f;v.y0+=V,v.y1+=V,w(v)}o===void 0&&_.sort(G),C(_,a)}}function C(e,f){const a=e.length>>1,h=e[a];d(e,h.y0-g,a-1,f),I(e,h.y1+g,a+1,f),d(e,l,e.length-1,f),I(e,n,0,f)}function I(e,f,a,h){for(;a1e-6&&(r.y0+=_,r.y1+=_),f=r.y1+g}}function d(e,f,a,h){for(;a>=0;--a){const r=e[a],_=(r.y1-f)*h;_>1e-6&&(r.y0-=_,r.y1-=_),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:a}}of f)a.sort(at);for(const{target:{targetLinks:a}}of e)a.sort(lt)}}function O(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:a}of e)f.sort(at),a.sort(lt)}function T(e,f){let a=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;a+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;a-=r}return a}function R(e,f){let a=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;a+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;a-=r}return a}return x}var tt=Math.PI,et=2*tt,D=1e-6,Dt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,i,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,n,i,l,u,k){this._+="C"+ +t+","+ +n+","+ +i+","+ +l+","+(this._x1=+u)+","+(this._y1=+k)},arcTo:function(t,n,i,l,u){t=+t,n=+n,i=+i,l=+l,u=+u;var k=this._x1,g=this._y1,m=i-t,s=l-n,o=k-t,c=g-n,p=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(p>D)if(!(Math.abs(c*m-s*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=i-k,y=l-g,x=m*m+s*s,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(p),N=u*Math.tan((tt-Math.acos((x+p-E)/(2*L*A)))/2),P=N/A,z=N/L;Math.abs(P-1)>D&&(this._+="L"+(t+P*o)+","+(n+P*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*m)+","+(this._y1=n+z*s)}},arc:function(t,n,i,l,u,k){t=+t,n=+n,i=+i,k=!!k;var g=i*Math.cos(l),m=i*Math.sin(l),s=t+g,o=n+m,c=1^k,p=k?l-u:u-l;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+s+","+o),i&&(p<0&&(p=p%et+et),p>Dt?this._+="A"+i+","+i+",0,1,"+c+","+(t-g)+","+(n-m)+"A"+i+","+i+",0,1,"+c+","+(this._x1=s)+","+(this._y1=o):p>D&&(this._+="A"+i+","+i+",0,"+ +(p>=tt)+","+c+","+(this._x1=t+i*Math.cos(u))+","+(this._y1=n+i*Math.sin(u))))},rect:function(t,n,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Bt(t){return t[0]}function Rt(t){return t[1]}var Ut=Array.prototype.slice;function Vt(t){return t.source}function Ft(t){return t.target}function Wt(t){var n=Vt,i=Ft,l=Bt,u=Rt,k=null;function g(){var m,s=Ut.call(arguments),o=n.apply(this,s),c=i.apply(this,s);if(k||(k=m=gt()),t(k,+l.apply(this,(s[0]=o,s)),+u.apply(this,s),+l.apply(this,(s[0]=c,s)),+u.apply(this,s)),m)return k=null,m+""||null}return g.source=function(m){return arguments.length?(n=m,g):n},g.target=function(m){return arguments.length?(i=m,g):i},g.x=function(m){return arguments.length?(l=typeof m=="function"?m:ht(+m),g):l},g.y=function(m){return arguments.length?(u=typeof m=="function"?m:ht(+m),g):u},g.context=function(m){return arguments.length?(k=m??null,g):k},g}function Yt(t,n,i,l,u){t.moveTo(n,i),t.bezierCurveTo(n=(n+l)/2,i,n,u,l,u)}function qt(){return Wt(Yt)}function Gt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return qt().source(Gt).target(Ht)}var it=function(){var t=function(m,s,o,c){for(o=o||{},c=m.length;c--;o[m[c]]=s);return o},n=[1,9],i=[1,10],l=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(s,o,c,p,b,y,x){var E=y.length-1;switch(b){case 7:const L=p.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=p.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());p.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(s,o){if(o.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=o,c}},parse:function(s){var o=this,c=[0],p=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,P=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(s,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var I=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=p.pop()||S.lex()||P,typeof v!="number"&&(v instanceof Array&&(p=v,v=p.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,R,e={},f,a,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var _="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?_="Parse error on line "+(L+1)+`: +import{c as rt,g as mt,s as _t,a as kt,b as xt,p as vt,o as bt,q as wt,j as St,E as Lt,h as Y,i as Et}from"./mermaid.core-YsxFu0Y0.js";import"./LinkCard-gCgkDO82.js";import{o as At}from"./ordinal-wXG5obU4.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./init-Hi12RPRh.js";function Tt(t){for(var n=t.length/6|0,i=new Array(n),l=0;l=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i=u)&&(i=u)}return i}function yt(t,n){let i;if(n===void 0)for(const l of t)l!=null&&(i>l||i===void 0&&l>=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i>u||i===void 0&&u>=u)&&(i=u)}return i}function Z(t,n){let i=0;if(n===void 0)for(let l of t)(l=+l)&&(i+=l);else{let l=-1;for(let u of t)(u=+n(u,++l,t))&&(i+=u)}return i}function Nt(t){return t.target.depth}function Pt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function It(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Nt)-1:0}function q(t){return function(){return t}}function lt(t,n){return G(t.source,n.source)||t.index-n.index}function at(t,n){return G(t.target,n.target)||t.index-n.index}function G(t,n){return t.y0-n.y0}function J(t){return t.value}function Ot(t){return t.index}function $t(t){return t.nodes}function zt(t){return t.links}function ct(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function ut({nodes:t}){for(const n of t){let i=n.y0,l=i;for(const u of n.sourceLinks)u.y0=i+u.width/2,i+=u.width;for(const u of n.targetLinks)u.y1=l+u.width/2,l+=u.width}}function jt(){let t=0,n=0,i=1,l=1,u=24,k=8,g,m=Ot,s=dt,o,c,p=$t,b=zt,y=6;function x(){const e={nodes:p.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:q(e),x):m},x.nodeAlign=function(e){return arguments.length?(s=typeof e=="function"?e:q(e),x):s},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(k=g=+e,x):k},x.nodes=function(e){return arguments.length?(p=typeof e=="function"?e:q(e),x):p},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:q(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,i=+e[0],l=+e[1],x):[i-t,l-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],l=+e[1][1],x):[[t,n],[i,l]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const a=new Map(e.map((h,r)=>[m(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:_,target:v}=r;typeof _!="object"&&(_=r.source=ct(a,_)),typeof v!="object"&&(v=r.target=ct(a,v)),_.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let a=new Set(e),h=new Set,r=0;for(;a.size;){for(const _ of a){_.depth=r;for(const{target:v}of _.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function N({nodes:e}){const f=e.length;let a=new Set(e),h=new Set,r=0;for(;a.size;){for(const _ of a){_.height=r;for(const{source:v}of _.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function P({nodes:e}){const f=ot(e,r=>r.depth)+1,a=(i-t-u)/(f-1),h=new Array(f);for(const r of e){const _=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=_,r.x0=t+_*a,r.x1=r.x0+u,h[_]?h[_].push(r):h[_]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,a=>(l-n-(a.length-1)*g)/Z(a,J));for(const a of e){let h=n;for(const r of a){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const _ of r.sourceLinks)_.width=_.value*f}h=(l-h+g)/(a.length+1);for(let r=0;ra.length)-1)),z(f);for(let a=0;a0))continue;let V=(U/j-v.y0)*f;v.y0+=V,v.y1+=V,w(v)}o===void 0&&_.sort(G),C(_,a)}}function $(e,f,a){for(let h=e.length,r=h-2;r>=0;--r){const _=e[r];for(const v of _){let U=0,j=0;for(const{target:F,value:K}of v.sourceLinks){let W=K*(F.layer-v.layer);U+=R(v,F)*W,j+=W}if(!(j>0))continue;let V=(U/j-v.y0)*f;v.y0+=V,v.y1+=V,w(v)}o===void 0&&_.sort(G),C(_,a)}}function C(e,f){const a=e.length>>1,h=e[a];d(e,h.y0-g,a-1,f),I(e,h.y1+g,a+1,f),d(e,l,e.length-1,f),I(e,n,0,f)}function I(e,f,a,h){for(;a1e-6&&(r.y0+=_,r.y1+=_),f=r.y1+g}}function d(e,f,a,h){for(;a>=0;--a){const r=e[a],_=(r.y1-f)*h;_>1e-6&&(r.y0-=_,r.y1-=_),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:a}}of f)a.sort(at);for(const{target:{targetLinks:a}}of e)a.sort(lt)}}function O(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:a}of e)f.sort(at),a.sort(lt)}function T(e,f){let a=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;a+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;a-=r}return a}function R(e,f){let a=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;a+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;a-=r}return a}return x}var tt=Math.PI,et=2*tt,D=1e-6,Dt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,i,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,n,i,l,u,k){this._+="C"+ +t+","+ +n+","+ +i+","+ +l+","+(this._x1=+u)+","+(this._y1=+k)},arcTo:function(t,n,i,l,u){t=+t,n=+n,i=+i,l=+l,u=+u;var k=this._x1,g=this._y1,m=i-t,s=l-n,o=k-t,c=g-n,p=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(p>D)if(!(Math.abs(c*m-s*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=i-k,y=l-g,x=m*m+s*s,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(p),N=u*Math.tan((tt-Math.acos((x+p-E)/(2*L*A)))/2),P=N/A,z=N/L;Math.abs(P-1)>D&&(this._+="L"+(t+P*o)+","+(n+P*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*m)+","+(this._y1=n+z*s)}},arc:function(t,n,i,l,u,k){t=+t,n=+n,i=+i,k=!!k;var g=i*Math.cos(l),m=i*Math.sin(l),s=t+g,o=n+m,c=1^k,p=k?l-u:u-l;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+s+","+o),i&&(p<0&&(p=p%et+et),p>Dt?this._+="A"+i+","+i+",0,1,"+c+","+(t-g)+","+(n-m)+"A"+i+","+i+",0,1,"+c+","+(this._x1=s)+","+(this._y1=o):p>D&&(this._+="A"+i+","+i+",0,"+ +(p>=tt)+","+c+","+(this._x1=t+i*Math.cos(u))+","+(this._y1=n+i*Math.sin(u))))},rect:function(t,n,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Bt(t){return t[0]}function Rt(t){return t[1]}var Ut=Array.prototype.slice;function Vt(t){return t.source}function Ft(t){return t.target}function Wt(t){var n=Vt,i=Ft,l=Bt,u=Rt,k=null;function g(){var m,s=Ut.call(arguments),o=n.apply(this,s),c=i.apply(this,s);if(k||(k=m=gt()),t(k,+l.apply(this,(s[0]=o,s)),+u.apply(this,s),+l.apply(this,(s[0]=c,s)),+u.apply(this,s)),m)return k=null,m+""||null}return g.source=function(m){return arguments.length?(n=m,g):n},g.target=function(m){return arguments.length?(i=m,g):i},g.x=function(m){return arguments.length?(l=typeof m=="function"?m:ht(+m),g):l},g.y=function(m){return arguments.length?(u=typeof m=="function"?m:ht(+m),g):u},g.context=function(m){return arguments.length?(k=m??null,g):k},g}function Yt(t,n,i,l,u){t.moveTo(n,i),t.bezierCurveTo(n=(n+l)/2,i,n,u,l,u)}function qt(){return Wt(Yt)}function Gt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return qt().source(Gt).target(Ht)}var it=function(){var t=function(m,s,o,c){for(o=o||{},c=m.length;c--;o[m[c]]=s);return o},n=[1,9],i=[1,10],l=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(s,o,c,p,b,y,x){var E=y.length-1;switch(b){case 7:const L=p.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=p.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());p.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(s,o){if(o.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=o,c}},parse:function(s){var o=this,c=[0],p=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,P=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(s,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var I=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=p.pop()||S.lex()||P,typeof v!="number"&&(v instanceof Array&&(p=v,v=p.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,R,e={},f,a,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var _="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?_="Parse error on line "+(L+1)+`: `+S.showPosition()+` Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":_="Parse error on line "+(L+1)+": Unexpected "+(w==P?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(_,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(a=this.productions_[T[1]][1],e.$=b[b.length-a],e._$={first_line:y[y.length-(a||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(a||1)].first_column,last_column:y[y.length-1].last_column},I&&(e._$.range=[y[y.length-(a||1)].range[0],y[y.length-1].range[1]]),R=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof R<"u")return R;a&&(c=c.slice(0,-1*a*2),b=b.slice(0,-1*a),y=y.slice(0,-1*a)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},k=function(){var m={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(s,o){return this.yy=o||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var o=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/assets/sequenceDiagram-465a088a-ZZ8C71kZ.js b/assets/sequenceDiagram-465a088a-3kpBpEJM.js similarity index 99% rename from assets/sequenceDiagram-465a088a-ZZ8C71kZ.js rename to assets/sequenceDiagram-465a088a-3kpBpEJM.js index 885754f022..7ea318ce15 100644 --- a/assets/sequenceDiagram-465a088a-ZZ8C71kZ.js +++ b/assets/sequenceDiagram-465a088a-3kpBpEJM.js @@ -1,4 +1,4 @@ -import{g as ke,p as Le,o as Ie,c as dt,s as ae,b as Ae,a as Ne,q as Se,l as U,d as Mt,j as w,e as Me,h as St,i as Re,u as O,m as re,z as oe,A as De,Z as Ve}from"./mermaid.core-uOCfdc17.js";import{d as Ce,a as Oe,g as Rt,b as Be,c as Ye,e as Gt}from"./svgDrawCommon-ad5ef572-ZpVsMh3H.js";import"./LinkCard-aLl-jjA_.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var qt=function(){var t=function(ht,m,_,k){for(_=_||{},k=ht.length;k--;_[ht[k]]=m);return _},e=[1,2],o=[1,3],i=[1,4],s=[2,4],n=[1,9],c=[1,11],h=[1,13],p=[1,14],a=[1,16],x=[1,17],E=[1,18],u=[1,24],g=[1,25],b=[1,26],P=[1,27],I=[1,28],R=[1,29],N=[1,30],F=[1,31],S=[1,32],tt=[1,33],W=[1,34],K=[1,35],Z=[1,36],q=[1,37],Y=[1,38],C=[1,39],G=[1,41],z=[1,42],X=[1,43],Q=[1,44],j=[1,45],y=[1,46],v=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],L=[4,5,16,50,52,53],pt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],et=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],$t=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],lt=[68,69,70],nt=[1,120],Ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(m,_,k,T,M,l,vt){var d=l.length-1;switch(M){case 3:return T.apply(l[d]),l[d];case 4:case 9:this.$=[];break;case 5:case 10:l[d-1].push(l[d]),this.$=l[d-1];break;case 6:case 7:case 11:case 12:this.$=l[d];break;case 8:case 13:this.$=[];break;case 15:l[d].type="createParticipant",this.$=l[d];break;case 16:l[d-1].unshift({type:"boxStart",boxData:T.parseBoxData(l[d-2])}),l[d-1].push({type:"boxEnd",boxText:l[d-2]}),this.$=l[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[d-2]),sequenceIndexStep:Number(l[d-1]),sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:T.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:l[d-1]};break;case 23:this.$={type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:l[d-1]};break;case 29:T.setDiagramTitle(l[d].substring(6)),this.$=l[d].substring(6);break;case 30:T.setDiagramTitle(l[d].substring(7)),this.$=l[d].substring(7);break;case 31:this.$=l[d].trim(),T.setAccTitle(this.$);break;case 32:case 33:this.$=l[d].trim(),T.setAccDescription(this.$);break;case 34:l[d-1].unshift({type:"loopStart",loopText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.LOOP_START}),l[d-1].push({type:"loopEnd",loopText:l[d-2],signalType:T.LINETYPE.LOOP_END}),this.$=l[d-1];break;case 35:l[d-1].unshift({type:"rectStart",color:T.parseMessage(l[d-2]),signalType:T.LINETYPE.RECT_START}),l[d-1].push({type:"rectEnd",color:T.parseMessage(l[d-2]),signalType:T.LINETYPE.RECT_END}),this.$=l[d-1];break;case 36:l[d-1].unshift({type:"optStart",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.OPT_START}),l[d-1].push({type:"optEnd",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.OPT_END}),this.$=l[d-1];break;case 37:l[d-1].unshift({type:"altStart",altText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.ALT_START}),l[d-1].push({type:"altEnd",signalType:T.LINETYPE.ALT_END}),this.$=l[d-1];break;case 38:l[d-1].unshift({type:"parStart",parText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.PAR_START}),l[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=l[d-1];break;case 39:l[d-1].unshift({type:"parStart",parText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.PAR_OVER_START}),l[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=l[d-1];break;case 40:l[d-1].unshift({type:"criticalStart",criticalText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.CRITICAL_START}),l[d-1].push({type:"criticalEnd",signalType:T.LINETYPE.CRITICAL_END}),this.$=l[d-1];break;case 41:l[d-1].unshift({type:"breakStart",breakText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.BREAK_START}),l[d-1].push({type:"breakEnd",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.BREAK_END}),this.$=l[d-1];break;case 43:this.$=l[d-3].concat([{type:"option",optionText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.CRITICAL_OPTION},l[d]]);break;case 45:this.$=l[d-3].concat([{type:"and",parText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.PAR_AND},l[d]]);break;case 47:this.$=l[d-3].concat([{type:"else",altText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.ALT_ELSE},l[d]]);break;case 48:l[d-3].draw="participant",l[d-3].type="addParticipant",l[d-3].description=T.parseMessage(l[d-1]),this.$=l[d-3];break;case 49:l[d-1].draw="participant",l[d-1].type="addParticipant",this.$=l[d-1];break;case 50:l[d-3].draw="actor",l[d-3].type="addParticipant",l[d-3].description=T.parseMessage(l[d-1]),this.$=l[d-3];break;case 51:l[d-1].draw="actor",l[d-1].type="addParticipant",this.$=l[d-1];break;case 52:l[d-1].type="destroyParticipant",this.$=l[d-1];break;case 53:this.$=[l[d-1],{type:"addNote",placement:l[d-2],actor:l[d-1].actor,text:l[d]}];break;case 54:l[d-2]=[].concat(l[d-1],l[d-1]).slice(0,2),l[d-2][0]=l[d-2][0].actor,l[d-2][1]=l[d-2][1].actor,this.$=[l[d-1],{type:"addNote",placement:T.PLACEMENT.OVER,actor:l[d-2].slice(0,2),text:l[d]}];break;case 55:this.$=[l[d-1],{type:"addLinks",actor:l[d-1].actor,text:l[d]}];break;case 56:this.$=[l[d-1],{type:"addALink",actor:l[d-1].actor,text:l[d]}];break;case 57:this.$=[l[d-1],{type:"addProperties",actor:l[d-1].actor,text:l[d]}];break;case 58:this.$=[l[d-1],{type:"addDetails",actor:l[d-1].actor,text:l[d]}];break;case 61:this.$=[l[d-2],l[d]];break;case 62:this.$=l[d];break;case 63:this.$=T.PLACEMENT.LEFTOF;break;case 64:this.$=T.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[d-4],l[d-1],{type:"addMessage",from:l[d-4].actor,to:l[d-1].actor,signalType:l[d-3],msg:l[d],activate:!0},{type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:l[d-1]}];break;case 66:this.$=[l[d-4],l[d-1],{type:"addMessage",from:l[d-4].actor,to:l[d-1].actor,signalType:l[d-3],msg:l[d]},{type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:l[d-4]}];break;case 67:this.$=[l[d-3],l[d-1],{type:"addMessage",from:l[d-3].actor,to:l[d-1].actor,signalType:l[d-2],msg:l[d]}];break;case 68:this.$={type:"addParticipant",actor:l[d]};break;case 69:this.$=T.LINETYPE.SOLID_OPEN;break;case 70:this.$=T.LINETYPE.DOTTED_OPEN;break;case 71:this.$=T.LINETYPE.SOLID;break;case 72:this.$=T.LINETYPE.DOTTED;break;case 73:this.$=T.LINETYPE.SOLID_CROSS;break;case 74:this.$=T.LINETYPE.DOTTED_CROSS;break;case 75:this.$=T.LINETYPE.SOLID_POINT;break;case 76:this.$=T.LINETYPE.DOTTED_POINT;break;case 77:this.$=T.parseMessage(l[d].trim().substring(1));break}},table:[{3:1,4:e,5:o,6:i},{1:[3]},{3:5,4:e,5:o,6:i},{3:6,4:e,5:o,6:i},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},t(v,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},t(v,[2,7]),t(v,[2,8]),t(v,[2,14]),{12:48,50:q,52:Y,53:C},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:y},{22:55,70:y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(v,[2,29]),t(v,[2,30]),{32:[1,61]},{34:[1,62]},t(v,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:y},{22:72,70:y},{22:73,70:y},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:y},{22:88,70:y},{22:89,70:y},{22:90,70:y},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(v,[2,6]),t(v,[2,15]),t(L,[2,9],{10:91}),t(v,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(v,[2,21]),{5:[1,95]},{5:[1,96]},t(v,[2,24]),t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,31]),t(v,[2,32]),t(pt,s,{7:97}),t(pt,s,{7:98}),t(pt,s,{7:99}),t(et,s,{40:100,7:101}),t(A,s,{42:102,7:103}),t(A,s,{7:103,42:104}),t($t,s,{45:105,7:106}),t(pt,s,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:y},t(lt,[2,69]),t(lt,[2,70]),t(lt,[2,71]),t(lt,[2,72]),t(lt,[2,73]),t(lt,[2,74]),t(lt,[2,75]),t(lt,[2,76]),{22:116,70:y},{22:118,58:117,70:y},{70:[2,63]},{70:[2,64]},{56:119,79:nt},{56:121,79:nt},{56:122,79:nt},{56:123,79:nt},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:q,52:Y,53:C},{5:[1,129]},t(v,[2,19]),t(v,[2,20]),t(v,[2,22]),t(v,[2,23]),{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,130],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,131],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{16:[1,133]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,49:[1,134],50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{16:[1,135]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,48:[1,136],50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{16:[1,137]},{16:[1,138]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,47:[1,139],50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,140],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{15:[1,141]},t(v,[2,49]),{15:[1,142]},t(v,[2,51]),t(v,[2,52]),{22:143,70:y},{22:144,70:y},{56:145,79:nt},{56:146,79:nt},{56:147,79:nt},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(v,[2,16]),t(L,[2,10]),{12:149,50:q,52:Y,53:C},t(L,[2,12]),t(L,[2,13]),t(v,[2,18]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),{15:[1,150]},t(v,[2,38]),{15:[1,151]},t(v,[2,39]),t(v,[2,40]),{15:[1,152]},t(v,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:nt},{56:156,79:nt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:y},t(L,[2,11]),t(et,s,{7:101,40:158}),t(A,s,{7:103,42:159}),t($t,s,{7:106,45:160}),t(v,[2,48]),t(v,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(m,_){if(_.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=_,k}},parse:function(m){var _=this,k=[0],T=[],M=[null],l=[],vt=this.table,d="",It=0,te=0,we=2,ee=1,ve=l.slice.call(arguments,1),B=Object.create(this.lexer),ut={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(ut.yy[Bt]=this.yy[Bt]);B.setInput(m,ut.yy),ut.yy.lexer=B,ut.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Yt=B.yylloc;l.push(Yt);var _e=B.options&&B.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(){var rt;return rt=T.pop()||B.lex()||ee,typeof rt!="number"&&(rt instanceof Array&&(T=rt,rt=T.pop()),rt=_.symbols_[rt]||rt),rt}for(var H,ft,$,Ft,yt={},At,at,ie,Nt;;){if(ft=k[k.length-1],this.defaultActions[ft]?$=this.defaultActions[ft]:((H===null||typeof H>"u")&&(H=Pe()),$=vt[ft]&&vt[ft][H]),typeof $>"u"||!$.length||!$[0]){var Wt="";Nt=[];for(At in vt[ft])this.terminals_[At]&&At>we&&Nt.push("'"+this.terminals_[At]+"'");B.showPosition?Wt="Parse error on line "+(It+1)+`: +import{g as ke,p as Le,o as Ie,c as dt,s as ae,b as Ae,a as Ne,q as Se,l as U,d as Mt,j as w,e as Me,h as St,i as Re,u as O,m as re,z as oe,A as De,Z as Ve}from"./mermaid.core-YsxFu0Y0.js";import{d as Ce,a as Oe,g as Rt,b as Be,c as Ye,e as Gt}from"./svgDrawCommon-ad5ef572-6JSuLc9B.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";var qt=function(){var t=function(ht,m,_,k){for(_=_||{},k=ht.length;k--;_[ht[k]]=m);return _},e=[1,2],o=[1,3],i=[1,4],s=[2,4],n=[1,9],c=[1,11],h=[1,13],p=[1,14],a=[1,16],x=[1,17],E=[1,18],u=[1,24],g=[1,25],b=[1,26],P=[1,27],I=[1,28],R=[1,29],N=[1,30],F=[1,31],S=[1,32],tt=[1,33],W=[1,34],K=[1,35],Z=[1,36],q=[1,37],Y=[1,38],C=[1,39],G=[1,41],z=[1,42],X=[1,43],Q=[1,44],j=[1,45],y=[1,46],v=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],L=[4,5,16,50,52,53],pt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],et=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],$t=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],lt=[68,69,70],nt=[1,120],Ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(m,_,k,T,M,l,vt){var d=l.length-1;switch(M){case 3:return T.apply(l[d]),l[d];case 4:case 9:this.$=[];break;case 5:case 10:l[d-1].push(l[d]),this.$=l[d-1];break;case 6:case 7:case 11:case 12:this.$=l[d];break;case 8:case 13:this.$=[];break;case 15:l[d].type="createParticipant",this.$=l[d];break;case 16:l[d-1].unshift({type:"boxStart",boxData:T.parseBoxData(l[d-2])}),l[d-1].push({type:"boxEnd",boxText:l[d-2]}),this.$=l[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[d-2]),sequenceIndexStep:Number(l[d-1]),sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:T.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:l[d-1]};break;case 23:this.$={type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:l[d-1]};break;case 29:T.setDiagramTitle(l[d].substring(6)),this.$=l[d].substring(6);break;case 30:T.setDiagramTitle(l[d].substring(7)),this.$=l[d].substring(7);break;case 31:this.$=l[d].trim(),T.setAccTitle(this.$);break;case 32:case 33:this.$=l[d].trim(),T.setAccDescription(this.$);break;case 34:l[d-1].unshift({type:"loopStart",loopText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.LOOP_START}),l[d-1].push({type:"loopEnd",loopText:l[d-2],signalType:T.LINETYPE.LOOP_END}),this.$=l[d-1];break;case 35:l[d-1].unshift({type:"rectStart",color:T.parseMessage(l[d-2]),signalType:T.LINETYPE.RECT_START}),l[d-1].push({type:"rectEnd",color:T.parseMessage(l[d-2]),signalType:T.LINETYPE.RECT_END}),this.$=l[d-1];break;case 36:l[d-1].unshift({type:"optStart",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.OPT_START}),l[d-1].push({type:"optEnd",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.OPT_END}),this.$=l[d-1];break;case 37:l[d-1].unshift({type:"altStart",altText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.ALT_START}),l[d-1].push({type:"altEnd",signalType:T.LINETYPE.ALT_END}),this.$=l[d-1];break;case 38:l[d-1].unshift({type:"parStart",parText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.PAR_START}),l[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=l[d-1];break;case 39:l[d-1].unshift({type:"parStart",parText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.PAR_OVER_START}),l[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=l[d-1];break;case 40:l[d-1].unshift({type:"criticalStart",criticalText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.CRITICAL_START}),l[d-1].push({type:"criticalEnd",signalType:T.LINETYPE.CRITICAL_END}),this.$=l[d-1];break;case 41:l[d-1].unshift({type:"breakStart",breakText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.BREAK_START}),l[d-1].push({type:"breakEnd",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.BREAK_END}),this.$=l[d-1];break;case 43:this.$=l[d-3].concat([{type:"option",optionText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.CRITICAL_OPTION},l[d]]);break;case 45:this.$=l[d-3].concat([{type:"and",parText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.PAR_AND},l[d]]);break;case 47:this.$=l[d-3].concat([{type:"else",altText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.ALT_ELSE},l[d]]);break;case 48:l[d-3].draw="participant",l[d-3].type="addParticipant",l[d-3].description=T.parseMessage(l[d-1]),this.$=l[d-3];break;case 49:l[d-1].draw="participant",l[d-1].type="addParticipant",this.$=l[d-1];break;case 50:l[d-3].draw="actor",l[d-3].type="addParticipant",l[d-3].description=T.parseMessage(l[d-1]),this.$=l[d-3];break;case 51:l[d-1].draw="actor",l[d-1].type="addParticipant",this.$=l[d-1];break;case 52:l[d-1].type="destroyParticipant",this.$=l[d-1];break;case 53:this.$=[l[d-1],{type:"addNote",placement:l[d-2],actor:l[d-1].actor,text:l[d]}];break;case 54:l[d-2]=[].concat(l[d-1],l[d-1]).slice(0,2),l[d-2][0]=l[d-2][0].actor,l[d-2][1]=l[d-2][1].actor,this.$=[l[d-1],{type:"addNote",placement:T.PLACEMENT.OVER,actor:l[d-2].slice(0,2),text:l[d]}];break;case 55:this.$=[l[d-1],{type:"addLinks",actor:l[d-1].actor,text:l[d]}];break;case 56:this.$=[l[d-1],{type:"addALink",actor:l[d-1].actor,text:l[d]}];break;case 57:this.$=[l[d-1],{type:"addProperties",actor:l[d-1].actor,text:l[d]}];break;case 58:this.$=[l[d-1],{type:"addDetails",actor:l[d-1].actor,text:l[d]}];break;case 61:this.$=[l[d-2],l[d]];break;case 62:this.$=l[d];break;case 63:this.$=T.PLACEMENT.LEFTOF;break;case 64:this.$=T.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[d-4],l[d-1],{type:"addMessage",from:l[d-4].actor,to:l[d-1].actor,signalType:l[d-3],msg:l[d],activate:!0},{type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:l[d-1]}];break;case 66:this.$=[l[d-4],l[d-1],{type:"addMessage",from:l[d-4].actor,to:l[d-1].actor,signalType:l[d-3],msg:l[d]},{type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:l[d-4]}];break;case 67:this.$=[l[d-3],l[d-1],{type:"addMessage",from:l[d-3].actor,to:l[d-1].actor,signalType:l[d-2],msg:l[d]}];break;case 68:this.$={type:"addParticipant",actor:l[d]};break;case 69:this.$=T.LINETYPE.SOLID_OPEN;break;case 70:this.$=T.LINETYPE.DOTTED_OPEN;break;case 71:this.$=T.LINETYPE.SOLID;break;case 72:this.$=T.LINETYPE.DOTTED;break;case 73:this.$=T.LINETYPE.SOLID_CROSS;break;case 74:this.$=T.LINETYPE.DOTTED_CROSS;break;case 75:this.$=T.LINETYPE.SOLID_POINT;break;case 76:this.$=T.LINETYPE.DOTTED_POINT;break;case 77:this.$=T.parseMessage(l[d].trim().substring(1));break}},table:[{3:1,4:e,5:o,6:i},{1:[3]},{3:5,4:e,5:o,6:i},{3:6,4:e,5:o,6:i},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},t(v,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},t(v,[2,7]),t(v,[2,8]),t(v,[2,14]),{12:48,50:q,52:Y,53:C},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:y},{22:55,70:y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(v,[2,29]),t(v,[2,30]),{32:[1,61]},{34:[1,62]},t(v,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:y},{22:72,70:y},{22:73,70:y},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:y},{22:88,70:y},{22:89,70:y},{22:90,70:y},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(v,[2,6]),t(v,[2,15]),t(L,[2,9],{10:91}),t(v,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(v,[2,21]),{5:[1,95]},{5:[1,96]},t(v,[2,24]),t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,31]),t(v,[2,32]),t(pt,s,{7:97}),t(pt,s,{7:98}),t(pt,s,{7:99}),t(et,s,{40:100,7:101}),t(A,s,{42:102,7:103}),t(A,s,{7:103,42:104}),t($t,s,{45:105,7:106}),t(pt,s,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:y},t(lt,[2,69]),t(lt,[2,70]),t(lt,[2,71]),t(lt,[2,72]),t(lt,[2,73]),t(lt,[2,74]),t(lt,[2,75]),t(lt,[2,76]),{22:116,70:y},{22:118,58:117,70:y},{70:[2,63]},{70:[2,64]},{56:119,79:nt},{56:121,79:nt},{56:122,79:nt},{56:123,79:nt},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:q,52:Y,53:C},{5:[1,129]},t(v,[2,19]),t(v,[2,20]),t(v,[2,22]),t(v,[2,23]),{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,130],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,131],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{16:[1,133]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,49:[1,134],50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{16:[1,135]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,48:[1,136],50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{16:[1,137]},{16:[1,138]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,47:[1,139],50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,140],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{15:[1,141]},t(v,[2,49]),{15:[1,142]},t(v,[2,51]),t(v,[2,52]),{22:143,70:y},{22:144,70:y},{56:145,79:nt},{56:146,79:nt},{56:147,79:nt},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(v,[2,16]),t(L,[2,10]),{12:149,50:q,52:Y,53:C},t(L,[2,12]),t(L,[2,13]),t(v,[2,18]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),{15:[1,150]},t(v,[2,38]),{15:[1,151]},t(v,[2,39]),t(v,[2,40]),{15:[1,152]},t(v,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:nt},{56:156,79:nt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:y},t(L,[2,11]),t(et,s,{7:101,40:158}),t(A,s,{7:103,42:159}),t($t,s,{7:106,45:160}),t(v,[2,48]),t(v,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(m,_){if(_.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=_,k}},parse:function(m){var _=this,k=[0],T=[],M=[null],l=[],vt=this.table,d="",It=0,te=0,we=2,ee=1,ve=l.slice.call(arguments,1),B=Object.create(this.lexer),ut={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(ut.yy[Bt]=this.yy[Bt]);B.setInput(m,ut.yy),ut.yy.lexer=B,ut.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Yt=B.yylloc;l.push(Yt);var _e=B.options&&B.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(){var rt;return rt=T.pop()||B.lex()||ee,typeof rt!="number"&&(rt instanceof Array&&(T=rt,rt=T.pop()),rt=_.symbols_[rt]||rt),rt}for(var H,ft,$,Ft,yt={},At,at,ie,Nt;;){if(ft=k[k.length-1],this.defaultActions[ft]?$=this.defaultActions[ft]:((H===null||typeof H>"u")&&(H=Pe()),$=vt[ft]&&vt[ft][H]),typeof $>"u"||!$.length||!$[0]){var Wt="";Nt=[];for(At in vt[ft])this.terminals_[At]&&At>we&&Nt.push("'"+this.terminals_[At]+"'");B.showPosition?Wt="Parse error on line "+(It+1)+`: `+B.showPosition()+` Expecting `+Nt.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Wt="Parse error on line "+(It+1)+": Unexpected "+(H==ee?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Wt,{text:B.match,token:this.terminals_[H]||H,line:B.yylineno,loc:Yt,expected:Nt})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+H);switch($[0]){case 1:k.push(H),M.push(B.yytext),l.push(B.yylloc),k.push($[1]),H=null,te=B.yyleng,d=B.yytext,It=B.yylineno,Yt=B.yylloc;break;case 2:if(at=this.productions_[$[1]][1],yt.$=M[M.length-at],yt._$={first_line:l[l.length-(at||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(at||1)].first_column,last_column:l[l.length-1].last_column},_e&&(yt._$.range=[l[l.length-(at||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(yt,[d,te,It,ut.yy,$[1],M,l].concat(ve)),typeof Ft<"u")return Ft;at&&(k=k.slice(0,-1*at*2),M=M.slice(0,-1*at),l=l.slice(0,-1*at)),k.push(this.productions_[$[1]][0]),M.push(yt.$),l.push(yt._$),ie=vt[k[k.length-2]][k[k.length-1]],k.push(ie);break;case 3:return!0}}return!0}},me=function(){var ht={EOF:1,parseError:function(_,k){if(this.yy.parser)this.yy.parser.parseError(_,k);else throw new Error(_)},setInput:function(m,_){return this.yy=_||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var _=m.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var _=m.length,k=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1&&(this.yylineno-=k.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===T.length?this.yylloc.first_column:0)+T[T.length-k.length].length-k[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),_=new Array(m.length+1).join("-");return m+this.upcomingInput()+` diff --git a/assets/spring-hZ91AlwC.js b/assets/spring-0AHu48BV.js similarity index 99% rename from assets/spring-hZ91AlwC.js rename to assets/spring-0AHu48BV.js index 60a5363ed0..7f5859418b 100644 --- a/assets/spring-hZ91AlwC.js +++ b/assets/spring-0AHu48BV.js @@ -1 +1 @@ -import{r as x,j as Ce,R as yn}from"./index-Qg-bAq5J.js";import{a as _e}from"./helper-Oi49T1hx.js";import{s as bn}from"./index-iAcAeRlm.js";const ft=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),le=x.createContext({}),dt=x.createContext(null),ht=typeof document<"u",xn=ht?x.useLayoutEffect:x.useEffect,mt=x.createContext({strict:!1}),pt=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),An="framerAppearId",gt="data-"+pt(An);function wn(e,t,n,r){const{visualElement:s}=x.useContext(le),a=x.useContext(mt),o=x.useContext(dt),c=x.useContext(ft).reducedMotion,l=x.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:c}));const i=l.current;x.useInsertionEffect(()=>{i&&i.update(n,o)});const u=x.useRef(!!(n[gt]&&!window.HandoffComplete));return xn(()=>{i&&(i.render(),u.current&&i.animationState&&i.animationState.animateChanges())}),x.useEffect(()=>{i&&(i.updateFeatures(),!u.current&&i.animationState&&i.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),i}function Cn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vn(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cn(n)&&(n.current=r))},[t])}function Ve(e){return typeof e=="string"||Array.isArray(e)}function yt(e){return typeof e=="object"&&typeof e.start=="function"}const Tn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mn=["initial",...Tn];function Fe(e){return yt(e.animate)||Mn.some(t=>Ve(e[t]))}function Sn(e){return!!(Fe(e)||e.variants)}function vn(e,t){if(Fe(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ve(n)?n:void 0,animate:Ve(r)?r:void 0}}return e.inherit!==!1?t:{}}function kn(e){const{initial:t,animate:n}=vn(e,x.useContext(le));return x.useMemo(()=>({initial:t,animate:n}),[Xe(t),Xe(n)])}function Xe(e){return Array.isArray(e)?e.join(" "):e}const Ye={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Te={};for(const e in Ye)Te[e]={isEnabled:t=>Ye[e].some(n=>!!t[n])};function Pn(e){for(const t in e)Te[t]={...Te[t],...e[t]}}const Dn=x.createContext({}),On=x.createContext({}),Fn=Symbol.for("motionComponentSymbol");function Rn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){e&&Pn(e);function a(c,l){let i;const u={...x.useContext(ft),...c,layoutId:In(c)},{isStatic:f}=u,d=kn(c),h=r(c,f);if(!f&&ht){d.visualElement=wn(s,h,u,t);const m=x.useContext(On),b=x.useContext(mt).strict;d.visualElement&&(i=d.visualElement.loadFeatures(u,b,e,m))}return x.createElement(le.Provider,{value:d},i&&d.visualElement?x.createElement(i,{visualElement:d.visualElement,...u}):null,n(s,c,Vn(h,d.visualElement,l),h,f,d.visualElement))}const o=x.forwardRef(a);return o[Fn]=s,o}function In({layoutId:e}){const t=x.useContext(Dn).id;return t&&e!==void 0?t+"-"+e:e}function Bn(e){function t(r,s={}){return Rn(e(r,s))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,s)=>(n.has(s)||n.set(s,t(s)),n.get(s))})}const Ln=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bt(e){return typeof e!="string"||e.includes("-")?!1:!!(Ln.indexOf(e)>-1||/[A-Z]/.test(e))}const xt={};function ta(e){Object.assign(xt,e)}const ue=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fe=new Set(ue);function At(e,{layout:t,layoutId:n}){return fe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xt[e]||e==="opacity")}const B=e=>!!(e&&e.getVelocity),Wn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zn=ue.length;function jn(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,s){let a="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),En=wt("--"),na=wt("var(--"),Hn=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Nn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$=(e,t,n)=>Math.min(Math.max(n,e),t),G={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},X={...G,transform:e=>$(0,1,e)},ne={...G,default:1},Y=e=>Math.round(e*1e5)/1e5,de=/(-)?([\d]*\.?[\d])+/g,Ct=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$n=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Q(e){return typeof e=="string"}const J=e=>({test:t=>Q(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=J("deg"),N=J("%"),p=J("px"),Gn=J("vh"),Kn=J("vw"),Qe={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(e*100)},Je={...G,transform:Math.round},Vt={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,size:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:ne,scaleX:ne,scaleY:ne,scaleZ:ne,skew:F,skewX:F,skewY:F,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:X,originX:Qe,originY:Qe,originZ:p,zIndex:Je,fillOpacity:X,strokeOpacity:X,numOctaves:Je};function Tt(e,t,n,r){const{style:s,vars:a,transform:o,transformOrigin:c}=e;let l=!1,i=!1,u=!0;for(const f in t){const d=t[f];if(En(f)){a[f]=d;continue}const h=Vt[f],m=Nn(d,h);if(fe.has(f)){if(l=!0,o[f]=m,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(i=!0,c[f]=m):s[f]=m}if(t.transform||(l||r?s.transform=jn(e.transform,n,u,r):s.transform&&(s.transform="none")),i){const{originX:f="50%",originY:d="50%",originZ:h=0}=c;s.transformOrigin=`${f} ${d} ${h}`}}const Re=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mt(e,t,n){for(const r in t)!B(t[r])&&!At(r,n)&&(e[r]=t[r])}function Un({transformTemplate:e},t,n){return x.useMemo(()=>{const r=Re();return Tt(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function qn(e,t,n){const r=e.style||{},s={};return Mt(s,r,e),Object.assign(s,Un(e,t,n)),e.transformValues?e.transformValues(s):s}function Zn(e,t,n){const r={},s=qn(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const _n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ae(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||_n.has(e)}let St=e=>!ae(e);function Xn(e){e&&(St=t=>t.startsWith("on")?!ae(t):e(t))}try{Xn(require("@emotion/is-prop-valid").default)}catch{}function Yn(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(St(s)||n===!0&&ae(s)||!t&&!ae(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function et(e,t,n){return typeof e=="string"?e:p.transform(t+n*e)}function Qn(e,t,n){const r=et(t,e.x,e.width),s=et(n,e.y,e.height);return`${r} ${s}`}const Jn={offset:"stroke-dashoffset",array:"stroke-dasharray"},er={offset:"strokeDashoffset",array:"strokeDasharray"};function tr(e,t,n=1,r=0,s=!0){e.pathLength=1;const a=s?Jn:er;e[a.offset]=p.transform(-r);const o=p.transform(t),c=p.transform(n);e[a.array]=`${o} ${c}`}function vt(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:l=0,...i},u,f,d){if(Tt(e,i,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:b}=e;h.transform&&(b&&(m.transform=h.transform),delete h.transform),b&&(s!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=Qn(b,s!==void 0?s:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&tr(h,o,c,l,!1)}const kt=()=>({...Re(),attrs:{}}),Pt=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nr(e,t,n,r){const s=x.useMemo(()=>{const a=kt();return vt(a,t,{enableHardwareAcceleration:!1},Pt(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Mt(a,e.style,e),s.style={...a,...s.style}}return s}function rr(e=!1){return(n,r,s,{latestValues:a},o)=>{const l=(bt(n)?nr:Zn)(r,a,o,n),u={...Yn(r,typeof n=="string",e),...l,ref:s},{children:f}=r,d=x.useMemo(()=>B(f)?f.get():f,[f]);return x.createElement(n,{...u,children:d})}}function sr(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const ar=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function or(e,t,n,r){sr(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(ar.has(s)?s:pt(s),t.attrs[s])}function Dt(e,t){const{style:n}=e,r={};for(const s in n)(B(n[s])||t.style&&B(t.style[s])||At(s,e))&&(r[s]=n[s]);return r}function ir(e,t){const n=Dt(e,t);for(const r in e)if(B(e[r])||B(t[r])){const s=ue.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=e[r]}return n}function Ot(e,t,n,r={},s={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,s)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,s)),t}function cr(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const lr=e=>Array.isArray(e),ur=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fr=e=>lr(e)?e[e.length-1]||0:e;function dr(e){const t=B(e)?e.get():e;return ur(t)?t.toValue():t}function hr({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,s,a){const o={latestValues:mr(r,s,a,e),renderState:t()};return n&&(o.mount=c=>n(r,c,o)),o}const Ft=e=>(t,n)=>{const r=x.useContext(le),s=x.useContext(dt),a=()=>hr(e,t,r,s);return n?a():cr(a)};function mr(e,t,n,r){const s={},a=r(e,{});for(const d in a)s[d]=dr(a[d]);let{initial:o,animate:c}=e;const l=Fe(e),i=Sn(e);t&&i&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?c:o;return f&&typeof f!="boolean"&&!yt(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=Ot(e,h);if(!m)return;const{transitionEnd:b,transition:C,...M}=m;for(const g in M){let y=M[g];if(Array.isArray(y)){const T=u?y.length-1:0;y=y[T]}y!==null&&(s[g]=y)}for(const g in b)s[g]=b[g]}),s}const D=e=>e;class tt{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function pr(e){let t=new tt,n=new tt,r=0,s=!1,a=!1;const o=new WeakSet,c={schedule:(l,i=!1,u=!1)=>{const f=u&&s,d=f?t:n;return i&&o.add(l),d.add(l)&&f&&s&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(s){a=!0;return}if(s=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let i=0;i(f[d]=pr(()=>n=!0),f),{}),o=f=>a[f].process(s),c=()=>{const f=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(f-s.timestamp,gr),1),s.timestamp=f,s.isProcessing=!0,re.forEach(o),s.isProcessing=!1,n&&t&&(r=!1,e(c))},l=()=>{n=!0,r=!0,s.isProcessing||e(c)};return{schedule:re.reduce((f,d)=>{const h=a[d];return f[d]=(m,b=!1,C=!1)=>(n||l(),h.schedule(m,b,C)),f},{}),cancel:f=>re.forEach(d=>a[d].cancel(f)),state:s,steps:a}}const{schedule:R,cancel:Rt,state:Me,steps:ra}=yr(typeof requestAnimationFrame<"u"?requestAnimationFrame:D,!0),br={useVisualState:Ft({scrapeMotionValuesFromProps:ir,createRenderState:kt,onMount:(e,t,{renderState:n,latestValues:r})=>{R.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),R.render(()=>{vt(n,r,{enableHardwareAcceleration:!1},Pt(t.tagName),e.transformTemplate),or(t,n)})}})},xr={useVisualState:Ft({scrapeMotionValuesFromProps:Dt,createRenderState:Re})};function Ar(e,{forwardMotionProps:t=!1},n,r){return{...bt(e)?br:xr,preloadedFeatures:n,useRender:rr(t),createVisualElement:r,Component:e}}const wr=(e,t)=>n=>t(e(n)),It=(...e)=>e.reduce(wr);function Cr(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Vr(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ie(e,t,n){const r=e.getProps();return Ot(r,t,n!==void 0?n:r.custom,Cr(e),Vr(e))}let Tr=D,Bt=D;const z=e=>e*1e3,I=e=>e/1e3,Mr={current:!1},Lt=e=>Array.isArray(e)&&typeof e[0]=="number";function Wt(e){return!!(!e||typeof e=="string"&&zt[e]||Lt(e)||Array.isArray(e)&&e.every(Wt))}const _=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_([0,.65,.55,1]),circOut:_([.55,0,1,.45]),backIn:_([.31,.01,.66,-.59]),backOut:_([.33,1.53,.69,.99])};function jt(e){if(e)return Lt(e)?_(e):Array.isArray(e)?e.map(jt):zt[e]}function Sr(e,t,n,{delay:r=0,duration:s,repeat:a=0,repeatType:o="loop",ease:c,times:l}={}){const i={[t]:n};l&&(i.offset=l);const u=jt(c);return Array.isArray(u)&&(i.easing=u),e.animate(i,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function vr(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Et=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kr=1e-7,Pr=12;function Dr(e,t,n,r,s){let a,o,c=0;do o=t+(n-t)/2,a=Et(o,r,s)-e,a>0?n=o:t=o;while(Math.abs(a)>kr&&++cDr(a,0,1,e,n);return a=>a===0||a===1?a:Et(s(a),t,r)}const Or=ee(.42,0,1,1),Fr=ee(0,0,.58,1),Ht=ee(.42,0,.58,1),Rr=e=>Array.isArray(e)&&typeof e[0]!="number",Nt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$t=e=>t=>1-e(1-t),Be=e=>1-Math.sin(Math.acos(e)),Ir=$t(Be),Br=Nt(Be),Gt=ee(.33,1.53,.69,.99),Le=$t(Gt),Lr=Nt(Le),Wr=e=>(e*=2)<1?.5*Le(e):.5*(2-Math.pow(2,-10*(e-1))),zr={linear:D,easeIn:Or,easeInOut:Ht,easeOut:Fr,circIn:Be,circInOut:Br,circOut:Ir,backIn:Le,backInOut:Lr,backOut:Gt,anticipate:Wr},nt=e=>{if(Array.isArray(e)){Bt(e.length===4);const[t,n,r,s]=e;return ee(t,n,r,s)}else if(typeof e=="string")return zr[e];return e},We=(e,t)=>n=>!!(Q(n)&&$n.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kt=(e,t,n)=>r=>{if(!Q(r))return r;const[s,a,o,c]=r.match(de);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},jr=e=>$(0,255,e),ye={...G,transform:e=>Math.round(jr(e))},W={test:We("rgb","red"),parse:Kt("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ye.transform(e)+", "+ye.transform(t)+", "+ye.transform(n)+", "+Y(X.transform(r))+")"};function Er(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Se={test:We("#"),parse:Er,transform:W.transform},H={test:We("hsl","hue"),parse:Kt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+N.transform(Y(t))+", "+N.transform(Y(n))+", "+Y(X.transform(r))+")"},k={test:e=>W.test(e)||Se.test(e)||H.test(e),parse:e=>W.test(e)?W.parse(e):H.test(e)?H.parse(e):Se.parse(e),transform:e=>Q(e)?e:e.hasOwnProperty("red")?W.transform(e):H.transform(e)},he=(e,t,n)=>-n*e+n*t+e;function be(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,a=0,o=0;if(!t)s=a=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;s=be(l,c,e+1/3),a=be(l,c,e),o=be(l,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const xe=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Nr=[Se,W,H],$r=e=>Nr.find(t=>t.test(e));function rt(e){const t=$r(e);let n=t.parse(e);return t===H&&(n=Hr(n)),n}const Ut=(e,t)=>{const n=rt(e),r=rt(t),s={...n};return a=>(s.red=xe(n.red,r.red,a),s.green=xe(n.green,r.green,a),s.blue=xe(n.blue,r.blue,a),s.alpha=he(n.alpha,r.alpha,a),W.transform(s))};function Gr(e){var t,n;return isNaN(e)&&Q(e)&&(((t=e.match(de))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ct))===null||n===void 0?void 0:n.length)||0)>0}const qt={regex:Hn,countKey:"Vars",token:"${v}",parse:D},Zt={regex:Ct,countKey:"Colors",token:"${c}",parse:k.parse},_t={regex:de,countKey:"Numbers",token:"${n}",parse:G.parse};function Ae(e,{regex:t,countKey:n,token:r,parse:s}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(s)))}function oe(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ae(n,qt),Ae(n,Zt),Ae(n,_t),n}function Xt(e){return oe(e).values}function Yt(e){const{values:t,numColors:n,numVars:r,tokenised:s}=oe(e),a=t.length;return o=>{let c=s;for(let l=0;ltypeof e=="number"?0:e;function Ur(e){const t=Xt(e);return Yt(e)(t.map(Kr))}const K={test:Gr,parse:Xt,createTransformer:Yt,getAnimatableNone:Ur},Qt=(e,t)=>n=>`${n>0?t:e}`;function Jt(e,t){return typeof e=="number"?n=>he(e,t,n):k.test(e)?Ut(e,t):e.startsWith("var(")?Qt(e,t):tn(e,t)}const en=(e,t)=>{const n=[...e],r=n.length,s=e.map((a,o)=>Jt(a,t[o]));return a=>{for(let o=0;o{const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Jt(e[s],t[s]));return s=>{for(const a in r)n[a]=r[a](s);return n}},tn=(e,t)=>{const n=K.createTransformer(t),r=oe(e),s=oe(t);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?It(en(r.values,s.values),n):Qt(e,t)},nn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},st=(e,t)=>n=>he(e,t,n);function Zr(e){return typeof e=="number"?st:typeof e=="string"?k.test(e)?Ut:tn:Array.isArray(e)?en:typeof e=="object"?qr:st}function _r(e,t,n){const r=[],s=n||Zr(e[0]),a=e.length-1;for(let o=0;ot[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=_r(t,r,s),c=o.length,l=i=>{let u=0;if(c>1)for(;ul($(e[0],e[a-1],i)):l}function Xr(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=nn(0,t,r);e.push(he(n,1,s))}}function Yr(e){const t=[0];return Xr(t,e.length-1),t}function Qr(e,t){return e.map(n=>n*t)}function Jr(e,t){return e.map(()=>t||Ht).splice(0,e.length-1)}function ie({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Rr(r)?r.map(nt):nt(r),a={done:!1,value:t[0]},o=Qr(n&&n.length===t.length?n:Yr(t),e),c=rn(o,t,{ease:Array.isArray(s)?s:Jr(t,s)});return{calculatedDuration:e,next:l=>(a.value=c(l),a.done=l>=e,a)}}function sn(e,t){return t?e*(1e3/t):0}const es=5;function an(e,t,n){const r=Math.max(t-es,0);return sn(n-e(r),t-r)}const we=.001,ts=.01,at=10,ns=.05,rs=1;function ss({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,a;Tr(e<=z(at));let o=1-t;o=$(ns,rs,o),e=$(ts,at,I(e)),o<1?(s=i=>{const u=i*o,f=u*e,d=u-n,h=ve(i,o),m=Math.exp(-f);return we-d/h*m},a=i=>{const f=i*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(i,2)*e,m=Math.exp(-f),b=ve(Math.pow(i,2),o);return(-s(i)+we>0?-1:1)*((d-h)*m)/b}):(s=i=>{const u=Math.exp(-i*e),f=(i-n)*e+1;return-we+u*f},a=i=>{const u=Math.exp(-i*e),f=(n-i)*(e*e);return u*f});const c=5/e,l=os(s,a,c);if(e=z(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const i=Math.pow(l,2)*r;return{stiffness:i,damping:o*2*Math.sqrt(r*i),duration:e}}}const as=12;function os(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function ls(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ot(e,cs)&&ot(e,is)){const n=ss(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function on({keyframes:e,restDelta:t,restSpeed:n,...r}){const s=e[0],a=e[e.length-1],o={done:!1,value:s},{stiffness:c,damping:l,mass:i,velocity:u,duration:f,isResolvedFromDuration:d}=ls(r),h=u?-I(u):0,m=l/(2*Math.sqrt(c*i)),b=a-s,C=I(Math.sqrt(c/i)),M=Math.abs(b)<5;n||(n=M?.01:2),t||(t=M?.005:.5);let g;if(m<1){const y=ve(C,m);g=T=>{const w=Math.exp(-m*C*T);return a-w*((h+m*C*b)/y*Math.sin(y*T)+b*Math.cos(y*T))}}else if(m===1)g=y=>a-Math.exp(-C*y)*(b+(h+C*b)*y);else{const y=C*Math.sqrt(m*m-1);g=T=>{const w=Math.exp(-m*C*T),O=Math.min(y*T,300);return a-w*((h+m*C*b)*Math.sinh(O)+y*b*Math.cosh(O))/y}}return{calculatedDuration:d&&f||null,next:y=>{const T=g(y);if(d)o.done=y>=f;else{let w=h;y!==0&&(m<1?w=an(g,y,T):w=0);const O=Math.abs(w)<=n,S=Math.abs(a-T)<=t;o.done=O&&S}return o.value=o.done?a:T,o}}}function it({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:l,restDelta:i=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=A=>c!==void 0&&Al,m=A=>c===void 0?l:l===void 0||Math.abs(c-A)-b*Math.exp(-A/r),y=A=>M+g(A),T=A=>{const v=g(A),j=y(A);d.done=Math.abs(v)<=i,d.value=d.done?M:j};let w,O;const S=A=>{h(d.value)&&(w=A,O=on({keyframes:[d.value,m(d.value)],velocity:an(y,A,d.value),damping:s,stiffness:a,restDelta:i,restSpeed:u}))};return S(0),{calculatedDuration:null,next:A=>{let v=!1;return!O&&w===void 0&&(v=!0,T(A),S(A)),w!==void 0&&A>w?O.next(A-w):(!v&&T(A),d)}}}const us=e=>{const t=({timestamp:n})=>e(n);return{start:()=>R.update(t,!0),stop:()=>Rt(t),now:()=>Me.isProcessing?Me.timestamp:performance.now()}},ct=2e4;function lt(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ct?1/0:t}const fs={decay:it,inertia:it,tween:ie,keyframes:ie,spring:on};function ce({autoplay:e=!0,delay:t=0,driver:n=us,keyframes:r,type:s="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:c="loop",onPlay:l,onStop:i,onComplete:u,onUpdate:f,...d}){let h=1,m=!1,b,C;const M=()=>{C=new Promise(V=>{b=V})};M();let g;const y=fs[s]||ie;let T;y!==ie&&typeof r[0]!="number"&&(T=rn([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...d,keyframes:r});let O;c==="mirror"&&(O=y({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let S="idle",A=null,v=null,j=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=lt(w));const{calculatedDuration:me}=w;let U=1/0,E=1/0;me!==null&&(U=me+o,E=U*(a+1)-o);let P=0;const pe=V=>{if(v===null)return;h>0&&(v=Math.min(v,V)),h<0&&(v=Math.min(V-E/h,v)),A!==null?P=A:P=Math.round(V-v)*h;const q=P-t*(h>=0?1:-1),$e=h>=0?q<0:q>E;P=Math.max(q,0),S==="finished"&&A===null&&(P=E);let Ge=P,Ke=w;if(a){const ge=P/U;let te=Math.floor(ge),L=ge%1;!L&&ge>=1&&(L=1),L===1&&te--,te=Math.min(te,a+1);const qe=!!(te%2);qe&&(c==="reverse"?(L=1-L,o&&(L-=o/U)):c==="mirror"&&(Ke=O));let Ze=$(0,1,L);P>E&&(Ze=c==="reverse"&&qe?1:0),Ge=Ze*U}const Z=$e?{done:!1,value:r[0]}:Ke.next(Ge);T&&(Z.value=T(Z.value));let{done:Ue}=Z;!$e&&me!==null&&(Ue=h>=0?P>=E:P<=0);const gn=A===null&&(S==="finished"||S==="running"&&Ue);return f&&f(Z.value),gn&&pn(),Z},je=()=>{g&&g.stop(),g=void 0},Ee=()=>{S="idle",je(),b(),M(),v=j=null},pn=()=>{S="finished",u&&u(),je(),b()},He=()=>{if(m)return;g||(g=n(pe));const V=g.now();l&&l(),A!==null?v=V-A:(!v||S==="finished")&&(v=V),S==="finished"&&M(),j=v,A=null,S="running",g.start()};e&&He();const Ne={then(V,q){return C.then(V,q)},get time(){return I(P)},set time(V){V=z(V),P=V,A!==null||!g||h===0?A=V:v=g.now()-V/h},get duration(){const V=w.calculatedDuration===null?lt(w):w.calculatedDuration;return I(V)},get speed(){return h},set speed(V){V===h||!g||(h=V,Ne.time=I(P))},get state(){return S},play:He,pause:()=>{S="paused",A=P},stop:()=>{m=!0,S!=="idle"&&(S="idle",i&&i(),Ee())},cancel:()=>{j!==null&&pe(j),Ee()},complete:()=>{S="finished"},sample:V=>(v=0,pe(V))};return Ne}function ds(e){let t;return()=>(t===void 0&&(t=e()),t)}const hs=ds(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ms=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),se=10,ps=2e4,gs=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Wt(t.ease);function ys(e,t,{onUpdate:n,onComplete:r,...s}){if(!(hs()&&ms.has(t)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let o=!1,c,l;const i=()=>{l=new Promise(g=>{c=g})};i();let{keyframes:u,duration:f=300,ease:d,times:h}=s;if(gs(t,s)){const g=ce({...s,repeat:0,delay:0});let y={done:!1,value:u[0]};const T=[];let w=0;for(;!y.done&&wm.cancel(),C=()=>{R.update(b),c(),i()};return m.onfinish=()=>{e.set(vr(u,s)),r&&r(),C()},{then(g,y){return l.then(g,y)},attachTimeline(g){return m.timeline=g,m.onfinish=null,D},get time(){return I(m.currentTime||0)},set time(g){m.currentTime=z(g)},get speed(){return m.playbackRate},set speed(g){m.playbackRate=g},get duration(){return I(f)},play:()=>{o||(m.play(),Rt(b))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:g}=m;if(g){const y=ce({...s,autoplay:!1});e.setWithVelocity(y.sample(g-se).value,y.sample(g).value,se)}C()},complete:()=>m.finish(),cancel:C}}function bs({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const s=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:D,pause:D,stop:D,then:a=>(a(),Promise.resolve()),cancel:D,complete:D});return t?ce({keyframes:[0,1],duration:0,delay:t,onComplete:s}):s()}const xs={type:"spring",stiffness:500,damping:25,restSpeed:10},As=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ws={type:"keyframes",duration:.8},Cs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vs=(e,{keyframes:t})=>t.length>2?ws:fe.has(e)?e.startsWith("scale")?As(t[1]):xs:Cs,ke=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(K.test(t)||t==="0")&&!t.startsWith("url(")),Ts=new Set(["brightness","contrast","saturate","opacity"]);function Ms(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(de)||[];if(!r)return e;const s=n.replace(r,"");let a=Ts.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+s+")"}const Ss=/([a-z-]*)\(.*?\)/g,Pe={...K,getAnimatableNone:e=>{const t=e.match(Ss);return t?t.map(Ms).join(" "):e}},vs={...Vt,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Pe,WebkitFilter:Pe},ks=e=>vs[e];function cn(e,t){let n=ks(e);return n!==Pe&&(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ln=e=>/^0[^.\s]+$/.test(e);function Ps(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||ln(e)}function Ds(e,t,n,r){const s=ke(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const o=r.from!==void 0?r.from:e.get();let c;const l=[];for(let i=0;is=>{const a=un(r,e)||{},o=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-z(o);const l=Ds(t,e,n,a),i=l[0],u=l[l.length-1],f=ke(e,i),d=ke(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-c,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{s(),a.onComplete&&a.onComplete()}};if(Os(a)||(h={...h,...Vs(e,h)}),h.duration&&(h.duration=z(h.duration)),h.repeatDelay&&(h.repeatDelay=z(h.repeatDelay)),!f||!d||Mr.current||a.type===!1)return bs(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=ys(t,e,h);if(m)return m}return ce(h)};function Rs(e){return!!(B(e)&&e.add)}const Is=e=>/^\-?\d*\.?\d+$/.test(e);function Bs(e,t){e.indexOf(t)===-1&&e.push(t)}function Ls(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ws{constructor(){this.subscriptions=[]}add(t){return Bs(this.subscriptions,t),()=>Ls(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let a=0;a!isNaN(parseFloat(e));class js{constructor(t,n={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=Me;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,R.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>R.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=zs(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ws);const r=this.events[t].add(n);return t==="change"?()=>{r(),R.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?sn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fn(e,t){return new js(e,t)}const dn=e=>t=>t.test(e),Es={test:e=>e==="auto",parse:e=>e},hn=[G,p,N,F,Kn,Gn,Es],sa=e=>hn.find(dn(e)),Hs=[...hn,k,K],Ns=e=>Hs.find(dn(e));function $s(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fn(n))}function ze(e,t){const n=Ie(e,t);let{transitionEnd:r={},transition:s={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const c=fr(a[o]);$s(e,o,c)}}function De(e,t){[...t].reverse().forEach(r=>{const s=e.getVariant(r);s&&ze(e,s),e.variantChildren&&e.variantChildren.forEach(a=>{De(a,t)})})}function aa(e,t){if(Array.isArray(t))return De(e,t);if(typeof t=="string")return De(e,[t]);ze(e,t)}function oa(e,t,n){var r,s;const a=Object.keys(t).filter(c=>!e.hasValue(c)),o=a.length;if(o)for(let c=0;cl.remove(f))),i.push(C)}return o&&Promise.all(i).then(()=>{o&&ze(e,o)}),i}function Oe(e,t,n={}){const r=Ie(e,t,n.custom);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(mn(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:i=0,staggerChildren:u,staggerDirection:f}=s;return qs(e,t,i+l,u,f,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[l,i]=c==="beforeChildren"?[a,o]:[o,a];return l().then(()=>i())}else return Promise.all([a(),o(n.delay)])}function qs(e,t,n=0,r=0,s=1,a){const o=[],c=(e.variantChildren.size-1)*r,l=s===1?(i=0)=>i*r:(i=0)=>c-i*r;return Array.from(e.variantChildren).sort(Zs).forEach((i,u)=>{i.notify("AnimationStart",t),o.push(Oe(i,t,{...a,delay:n+l(u)}).then(()=>i.notify("AnimationComplete",t)))}),Promise.all(o)}function Zs(e,t){return e.sortNodePosition(t)}function ca(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(a=>Oe(e,a,n));r=Promise.all(s)}else if(typeof t=="string")r=Oe(e,t,n);else{const s=typeof t=="function"?Ie(e,t,n.custom):t;r=Promise.all(mn(e,s,n))}return r.then(()=>e.notify("AnimationComplete",t))}const _s=Bn(Ar),Xs=x.memo(x.forwardRef(({children:e,...t},n)=>Ce.jsx(_s.button,{initial:!0,whileFocus:{scale:1.02},whileHover:{scale:1.02},whileTap:{scale:.95},...t,ref:n,children:e}))),Ys=e=>yn.createElement("a",e,e.children),ut=bn({base:"inline-flex items-center gap-2 justify-center rounded-lg py-2 px-3 text-sm outline-offset-2 transition active:transition-none",variants:{variant:{primary:_e("bg-accent text-zinc-100","active:contrast-125 hover:contrast-[1.10]","font-semibold","disabled:bg-gray-400 disabled:opacity-30 disabled:dark:bg-gray-800 disabled:dark:text-slate-50 disabled:cursor-not-allowed","dark:text-neutral-800"),secondary:_e("group rounded-full bg-gradient-to-b from-zinc-50/50 to-white/90 px-3 py-2 shadow-lg shadow-zinc-800/5 ring-1 ring-zinc-900/5 backdrop-blur transition dark:from-zinc-900/50 dark:to-zinc-800/90 dark:ring-white/10 dark:hover:ring-white/20","disabled:bg-gray-400 disabled:opacity-30 disabled:dark:bg-gray-800 disabled:dark:text-slate-50 disabled:cursor-not-allowed")}}}),la=({variant:e="primary",className:t,href:n,...r})=>n?Ce.jsx(Ys,{href:n,className:ut({variant:e,className:t}),...r}):Ce.jsx(Xs,{className:ut({variant:e,className:t}),...r}),ua={type:"spring",damping:24},fa={type:"spring",stiffness:300,damping:20},da={duration:.35,type:"spring",stiffness:120,damping:20};export{Fe as $,Cn as A,Fs as B,N as C,p as D,K as E,ta as F,On as G,Ir as H,Bs as I,Ls as J,Ws as K,Dn as L,Xs as M,un as N,ra as O,dt as P,dr as Q,xt as R,la as S,na as T,Is as U,ue as V,sa as W,Bt as X,ht as Y,G as Z,Rs as _,cr as a,Sn as a0,fe as a1,Ot as a2,Te as a3,Mn as a4,ia as a5,oa as a6,ks as a7,En as a8,Tt as a9,Dt as aa,sr as ab,ar as ac,pt as ad,ir as ae,vt as af,or as ag,Pt as ah,bt as ai,Pn as aj,mt as ak,ce as al,aa as am,fa as b,Ys as c,ua as d,fn as e,R as f,ft as g,Rt as h,B as i,yt as j,lr as k,Ve as l,_s as m,D as n,ca as o,It as p,z as q,Ie as r,da as s,I as t,xn as u,Tn as v,Me as w,he as x,nn as y,$ as z}; +import{r as x,j as Ce,R as yn}from"./index-HRfeE_7B.js";import{a as _e}from"./helper-Oi49T1hx.js";import{s as bn}from"./index-iAcAeRlm.js";const ft=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),le=x.createContext({}),dt=x.createContext(null),ht=typeof document<"u",xn=ht?x.useLayoutEffect:x.useEffect,mt=x.createContext({strict:!1}),pt=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),An="framerAppearId",gt="data-"+pt(An);function wn(e,t,n,r){const{visualElement:s}=x.useContext(le),a=x.useContext(mt),o=x.useContext(dt),c=x.useContext(ft).reducedMotion,l=x.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:c}));const i=l.current;x.useInsertionEffect(()=>{i&&i.update(n,o)});const u=x.useRef(!!(n[gt]&&!window.HandoffComplete));return xn(()=>{i&&(i.render(),u.current&&i.animationState&&i.animationState.animateChanges())}),x.useEffect(()=>{i&&(i.updateFeatures(),!u.current&&i.animationState&&i.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),i}function Cn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vn(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cn(n)&&(n.current=r))},[t])}function Ve(e){return typeof e=="string"||Array.isArray(e)}function yt(e){return typeof e=="object"&&typeof e.start=="function"}const Tn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mn=["initial",...Tn];function Fe(e){return yt(e.animate)||Mn.some(t=>Ve(e[t]))}function Sn(e){return!!(Fe(e)||e.variants)}function vn(e,t){if(Fe(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ve(n)?n:void 0,animate:Ve(r)?r:void 0}}return e.inherit!==!1?t:{}}function kn(e){const{initial:t,animate:n}=vn(e,x.useContext(le));return x.useMemo(()=>({initial:t,animate:n}),[Xe(t),Xe(n)])}function Xe(e){return Array.isArray(e)?e.join(" "):e}const Ye={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Te={};for(const e in Ye)Te[e]={isEnabled:t=>Ye[e].some(n=>!!t[n])};function Pn(e){for(const t in e)Te[t]={...Te[t],...e[t]}}const Dn=x.createContext({}),On=x.createContext({}),Fn=Symbol.for("motionComponentSymbol");function Rn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){e&&Pn(e);function a(c,l){let i;const u={...x.useContext(ft),...c,layoutId:In(c)},{isStatic:f}=u,d=kn(c),h=r(c,f);if(!f&&ht){d.visualElement=wn(s,h,u,t);const m=x.useContext(On),b=x.useContext(mt).strict;d.visualElement&&(i=d.visualElement.loadFeatures(u,b,e,m))}return x.createElement(le.Provider,{value:d},i&&d.visualElement?x.createElement(i,{visualElement:d.visualElement,...u}):null,n(s,c,Vn(h,d.visualElement,l),h,f,d.visualElement))}const o=x.forwardRef(a);return o[Fn]=s,o}function In({layoutId:e}){const t=x.useContext(Dn).id;return t&&e!==void 0?t+"-"+e:e}function Bn(e){function t(r,s={}){return Rn(e(r,s))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,s)=>(n.has(s)||n.set(s,t(s)),n.get(s))})}const Ln=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bt(e){return typeof e!="string"||e.includes("-")?!1:!!(Ln.indexOf(e)>-1||/[A-Z]/.test(e))}const xt={};function ta(e){Object.assign(xt,e)}const ue=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fe=new Set(ue);function At(e,{layout:t,layoutId:n}){return fe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xt[e]||e==="opacity")}const B=e=>!!(e&&e.getVelocity),Wn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zn=ue.length;function jn(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,s){let a="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),En=wt("--"),na=wt("var(--"),Hn=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Nn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$=(e,t,n)=>Math.min(Math.max(n,e),t),G={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},X={...G,transform:e=>$(0,1,e)},ne={...G,default:1},Y=e=>Math.round(e*1e5)/1e5,de=/(-)?([\d]*\.?[\d])+/g,Ct=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$n=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Q(e){return typeof e=="string"}const J=e=>({test:t=>Q(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=J("deg"),N=J("%"),p=J("px"),Gn=J("vh"),Kn=J("vw"),Qe={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(e*100)},Je={...G,transform:Math.round},Vt={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,size:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:ne,scaleX:ne,scaleY:ne,scaleZ:ne,skew:F,skewX:F,skewY:F,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:X,originX:Qe,originY:Qe,originZ:p,zIndex:Je,fillOpacity:X,strokeOpacity:X,numOctaves:Je};function Tt(e,t,n,r){const{style:s,vars:a,transform:o,transformOrigin:c}=e;let l=!1,i=!1,u=!0;for(const f in t){const d=t[f];if(En(f)){a[f]=d;continue}const h=Vt[f],m=Nn(d,h);if(fe.has(f)){if(l=!0,o[f]=m,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(i=!0,c[f]=m):s[f]=m}if(t.transform||(l||r?s.transform=jn(e.transform,n,u,r):s.transform&&(s.transform="none")),i){const{originX:f="50%",originY:d="50%",originZ:h=0}=c;s.transformOrigin=`${f} ${d} ${h}`}}const Re=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mt(e,t,n){for(const r in t)!B(t[r])&&!At(r,n)&&(e[r]=t[r])}function Un({transformTemplate:e},t,n){return x.useMemo(()=>{const r=Re();return Tt(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function qn(e,t,n){const r=e.style||{},s={};return Mt(s,r,e),Object.assign(s,Un(e,t,n)),e.transformValues?e.transformValues(s):s}function Zn(e,t,n){const r={},s=qn(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const _n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ae(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||_n.has(e)}let St=e=>!ae(e);function Xn(e){e&&(St=t=>t.startsWith("on")?!ae(t):e(t))}try{Xn(require("@emotion/is-prop-valid").default)}catch{}function Yn(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(St(s)||n===!0&&ae(s)||!t&&!ae(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function et(e,t,n){return typeof e=="string"?e:p.transform(t+n*e)}function Qn(e,t,n){const r=et(t,e.x,e.width),s=et(n,e.y,e.height);return`${r} ${s}`}const Jn={offset:"stroke-dashoffset",array:"stroke-dasharray"},er={offset:"strokeDashoffset",array:"strokeDasharray"};function tr(e,t,n=1,r=0,s=!0){e.pathLength=1;const a=s?Jn:er;e[a.offset]=p.transform(-r);const o=p.transform(t),c=p.transform(n);e[a.array]=`${o} ${c}`}function vt(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:l=0,...i},u,f,d){if(Tt(e,i,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:b}=e;h.transform&&(b&&(m.transform=h.transform),delete h.transform),b&&(s!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=Qn(b,s!==void 0?s:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&tr(h,o,c,l,!1)}const kt=()=>({...Re(),attrs:{}}),Pt=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nr(e,t,n,r){const s=x.useMemo(()=>{const a=kt();return vt(a,t,{enableHardwareAcceleration:!1},Pt(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Mt(a,e.style,e),s.style={...a,...s.style}}return s}function rr(e=!1){return(n,r,s,{latestValues:a},o)=>{const l=(bt(n)?nr:Zn)(r,a,o,n),u={...Yn(r,typeof n=="string",e),...l,ref:s},{children:f}=r,d=x.useMemo(()=>B(f)?f.get():f,[f]);return x.createElement(n,{...u,children:d})}}function sr(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const ar=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function or(e,t,n,r){sr(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(ar.has(s)?s:pt(s),t.attrs[s])}function Dt(e,t){const{style:n}=e,r={};for(const s in n)(B(n[s])||t.style&&B(t.style[s])||At(s,e))&&(r[s]=n[s]);return r}function ir(e,t){const n=Dt(e,t);for(const r in e)if(B(e[r])||B(t[r])){const s=ue.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=e[r]}return n}function Ot(e,t,n,r={},s={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,s)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,s)),t}function cr(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const lr=e=>Array.isArray(e),ur=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fr=e=>lr(e)?e[e.length-1]||0:e;function dr(e){const t=B(e)?e.get():e;return ur(t)?t.toValue():t}function hr({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,s,a){const o={latestValues:mr(r,s,a,e),renderState:t()};return n&&(o.mount=c=>n(r,c,o)),o}const Ft=e=>(t,n)=>{const r=x.useContext(le),s=x.useContext(dt),a=()=>hr(e,t,r,s);return n?a():cr(a)};function mr(e,t,n,r){const s={},a=r(e,{});for(const d in a)s[d]=dr(a[d]);let{initial:o,animate:c}=e;const l=Fe(e),i=Sn(e);t&&i&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?c:o;return f&&typeof f!="boolean"&&!yt(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=Ot(e,h);if(!m)return;const{transitionEnd:b,transition:C,...M}=m;for(const g in M){let y=M[g];if(Array.isArray(y)){const T=u?y.length-1:0;y=y[T]}y!==null&&(s[g]=y)}for(const g in b)s[g]=b[g]}),s}const D=e=>e;class tt{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function pr(e){let t=new tt,n=new tt,r=0,s=!1,a=!1;const o=new WeakSet,c={schedule:(l,i=!1,u=!1)=>{const f=u&&s,d=f?t:n;return i&&o.add(l),d.add(l)&&f&&s&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(s){a=!0;return}if(s=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let i=0;i(f[d]=pr(()=>n=!0),f),{}),o=f=>a[f].process(s),c=()=>{const f=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(f-s.timestamp,gr),1),s.timestamp=f,s.isProcessing=!0,re.forEach(o),s.isProcessing=!1,n&&t&&(r=!1,e(c))},l=()=>{n=!0,r=!0,s.isProcessing||e(c)};return{schedule:re.reduce((f,d)=>{const h=a[d];return f[d]=(m,b=!1,C=!1)=>(n||l(),h.schedule(m,b,C)),f},{}),cancel:f=>re.forEach(d=>a[d].cancel(f)),state:s,steps:a}}const{schedule:R,cancel:Rt,state:Me,steps:ra}=yr(typeof requestAnimationFrame<"u"?requestAnimationFrame:D,!0),br={useVisualState:Ft({scrapeMotionValuesFromProps:ir,createRenderState:kt,onMount:(e,t,{renderState:n,latestValues:r})=>{R.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),R.render(()=>{vt(n,r,{enableHardwareAcceleration:!1},Pt(t.tagName),e.transformTemplate),or(t,n)})}})},xr={useVisualState:Ft({scrapeMotionValuesFromProps:Dt,createRenderState:Re})};function Ar(e,{forwardMotionProps:t=!1},n,r){return{...bt(e)?br:xr,preloadedFeatures:n,useRender:rr(t),createVisualElement:r,Component:e}}const wr=(e,t)=>n=>t(e(n)),It=(...e)=>e.reduce(wr);function Cr(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Vr(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ie(e,t,n){const r=e.getProps();return Ot(r,t,n!==void 0?n:r.custom,Cr(e),Vr(e))}let Tr=D,Bt=D;const z=e=>e*1e3,I=e=>e/1e3,Mr={current:!1},Lt=e=>Array.isArray(e)&&typeof e[0]=="number";function Wt(e){return!!(!e||typeof e=="string"&&zt[e]||Lt(e)||Array.isArray(e)&&e.every(Wt))}const _=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_([0,.65,.55,1]),circOut:_([.55,0,1,.45]),backIn:_([.31,.01,.66,-.59]),backOut:_([.33,1.53,.69,.99])};function jt(e){if(e)return Lt(e)?_(e):Array.isArray(e)?e.map(jt):zt[e]}function Sr(e,t,n,{delay:r=0,duration:s,repeat:a=0,repeatType:o="loop",ease:c,times:l}={}){const i={[t]:n};l&&(i.offset=l);const u=jt(c);return Array.isArray(u)&&(i.easing=u),e.animate(i,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function vr(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Et=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kr=1e-7,Pr=12;function Dr(e,t,n,r,s){let a,o,c=0;do o=t+(n-t)/2,a=Et(o,r,s)-e,a>0?n=o:t=o;while(Math.abs(a)>kr&&++cDr(a,0,1,e,n);return a=>a===0||a===1?a:Et(s(a),t,r)}const Or=ee(.42,0,1,1),Fr=ee(0,0,.58,1),Ht=ee(.42,0,.58,1),Rr=e=>Array.isArray(e)&&typeof e[0]!="number",Nt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$t=e=>t=>1-e(1-t),Be=e=>1-Math.sin(Math.acos(e)),Ir=$t(Be),Br=Nt(Be),Gt=ee(.33,1.53,.69,.99),Le=$t(Gt),Lr=Nt(Le),Wr=e=>(e*=2)<1?.5*Le(e):.5*(2-Math.pow(2,-10*(e-1))),zr={linear:D,easeIn:Or,easeInOut:Ht,easeOut:Fr,circIn:Be,circInOut:Br,circOut:Ir,backIn:Le,backInOut:Lr,backOut:Gt,anticipate:Wr},nt=e=>{if(Array.isArray(e)){Bt(e.length===4);const[t,n,r,s]=e;return ee(t,n,r,s)}else if(typeof e=="string")return zr[e];return e},We=(e,t)=>n=>!!(Q(n)&&$n.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kt=(e,t,n)=>r=>{if(!Q(r))return r;const[s,a,o,c]=r.match(de);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},jr=e=>$(0,255,e),ye={...G,transform:e=>Math.round(jr(e))},W={test:We("rgb","red"),parse:Kt("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ye.transform(e)+", "+ye.transform(t)+", "+ye.transform(n)+", "+Y(X.transform(r))+")"};function Er(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Se={test:We("#"),parse:Er,transform:W.transform},H={test:We("hsl","hue"),parse:Kt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+N.transform(Y(t))+", "+N.transform(Y(n))+", "+Y(X.transform(r))+")"},k={test:e=>W.test(e)||Se.test(e)||H.test(e),parse:e=>W.test(e)?W.parse(e):H.test(e)?H.parse(e):Se.parse(e),transform:e=>Q(e)?e:e.hasOwnProperty("red")?W.transform(e):H.transform(e)},he=(e,t,n)=>-n*e+n*t+e;function be(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,a=0,o=0;if(!t)s=a=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;s=be(l,c,e+1/3),a=be(l,c,e),o=be(l,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const xe=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Nr=[Se,W,H],$r=e=>Nr.find(t=>t.test(e));function rt(e){const t=$r(e);let n=t.parse(e);return t===H&&(n=Hr(n)),n}const Ut=(e,t)=>{const n=rt(e),r=rt(t),s={...n};return a=>(s.red=xe(n.red,r.red,a),s.green=xe(n.green,r.green,a),s.blue=xe(n.blue,r.blue,a),s.alpha=he(n.alpha,r.alpha,a),W.transform(s))};function Gr(e){var t,n;return isNaN(e)&&Q(e)&&(((t=e.match(de))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ct))===null||n===void 0?void 0:n.length)||0)>0}const qt={regex:Hn,countKey:"Vars",token:"${v}",parse:D},Zt={regex:Ct,countKey:"Colors",token:"${c}",parse:k.parse},_t={regex:de,countKey:"Numbers",token:"${n}",parse:G.parse};function Ae(e,{regex:t,countKey:n,token:r,parse:s}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(s)))}function oe(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ae(n,qt),Ae(n,Zt),Ae(n,_t),n}function Xt(e){return oe(e).values}function Yt(e){const{values:t,numColors:n,numVars:r,tokenised:s}=oe(e),a=t.length;return o=>{let c=s;for(let l=0;ltypeof e=="number"?0:e;function Ur(e){const t=Xt(e);return Yt(e)(t.map(Kr))}const K={test:Gr,parse:Xt,createTransformer:Yt,getAnimatableNone:Ur},Qt=(e,t)=>n=>`${n>0?t:e}`;function Jt(e,t){return typeof e=="number"?n=>he(e,t,n):k.test(e)?Ut(e,t):e.startsWith("var(")?Qt(e,t):tn(e,t)}const en=(e,t)=>{const n=[...e],r=n.length,s=e.map((a,o)=>Jt(a,t[o]));return a=>{for(let o=0;o{const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Jt(e[s],t[s]));return s=>{for(const a in r)n[a]=r[a](s);return n}},tn=(e,t)=>{const n=K.createTransformer(t),r=oe(e),s=oe(t);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?It(en(r.values,s.values),n):Qt(e,t)},nn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},st=(e,t)=>n=>he(e,t,n);function Zr(e){return typeof e=="number"?st:typeof e=="string"?k.test(e)?Ut:tn:Array.isArray(e)?en:typeof e=="object"?qr:st}function _r(e,t,n){const r=[],s=n||Zr(e[0]),a=e.length-1;for(let o=0;ot[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=_r(t,r,s),c=o.length,l=i=>{let u=0;if(c>1)for(;ul($(e[0],e[a-1],i)):l}function Xr(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=nn(0,t,r);e.push(he(n,1,s))}}function Yr(e){const t=[0];return Xr(t,e.length-1),t}function Qr(e,t){return e.map(n=>n*t)}function Jr(e,t){return e.map(()=>t||Ht).splice(0,e.length-1)}function ie({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Rr(r)?r.map(nt):nt(r),a={done:!1,value:t[0]},o=Qr(n&&n.length===t.length?n:Yr(t),e),c=rn(o,t,{ease:Array.isArray(s)?s:Jr(t,s)});return{calculatedDuration:e,next:l=>(a.value=c(l),a.done=l>=e,a)}}function sn(e,t){return t?e*(1e3/t):0}const es=5;function an(e,t,n){const r=Math.max(t-es,0);return sn(n-e(r),t-r)}const we=.001,ts=.01,at=10,ns=.05,rs=1;function ss({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,a;Tr(e<=z(at));let o=1-t;o=$(ns,rs,o),e=$(ts,at,I(e)),o<1?(s=i=>{const u=i*o,f=u*e,d=u-n,h=ve(i,o),m=Math.exp(-f);return we-d/h*m},a=i=>{const f=i*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(i,2)*e,m=Math.exp(-f),b=ve(Math.pow(i,2),o);return(-s(i)+we>0?-1:1)*((d-h)*m)/b}):(s=i=>{const u=Math.exp(-i*e),f=(i-n)*e+1;return-we+u*f},a=i=>{const u=Math.exp(-i*e),f=(n-i)*(e*e);return u*f});const c=5/e,l=os(s,a,c);if(e=z(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const i=Math.pow(l,2)*r;return{stiffness:i,damping:o*2*Math.sqrt(r*i),duration:e}}}const as=12;function os(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function ls(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ot(e,cs)&&ot(e,is)){const n=ss(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function on({keyframes:e,restDelta:t,restSpeed:n,...r}){const s=e[0],a=e[e.length-1],o={done:!1,value:s},{stiffness:c,damping:l,mass:i,velocity:u,duration:f,isResolvedFromDuration:d}=ls(r),h=u?-I(u):0,m=l/(2*Math.sqrt(c*i)),b=a-s,C=I(Math.sqrt(c/i)),M=Math.abs(b)<5;n||(n=M?.01:2),t||(t=M?.005:.5);let g;if(m<1){const y=ve(C,m);g=T=>{const w=Math.exp(-m*C*T);return a-w*((h+m*C*b)/y*Math.sin(y*T)+b*Math.cos(y*T))}}else if(m===1)g=y=>a-Math.exp(-C*y)*(b+(h+C*b)*y);else{const y=C*Math.sqrt(m*m-1);g=T=>{const w=Math.exp(-m*C*T),O=Math.min(y*T,300);return a-w*((h+m*C*b)*Math.sinh(O)+y*b*Math.cosh(O))/y}}return{calculatedDuration:d&&f||null,next:y=>{const T=g(y);if(d)o.done=y>=f;else{let w=h;y!==0&&(m<1?w=an(g,y,T):w=0);const O=Math.abs(w)<=n,S=Math.abs(a-T)<=t;o.done=O&&S}return o.value=o.done?a:T,o}}}function it({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:l,restDelta:i=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=A=>c!==void 0&&Al,m=A=>c===void 0?l:l===void 0||Math.abs(c-A)-b*Math.exp(-A/r),y=A=>M+g(A),T=A=>{const v=g(A),j=y(A);d.done=Math.abs(v)<=i,d.value=d.done?M:j};let w,O;const S=A=>{h(d.value)&&(w=A,O=on({keyframes:[d.value,m(d.value)],velocity:an(y,A,d.value),damping:s,stiffness:a,restDelta:i,restSpeed:u}))};return S(0),{calculatedDuration:null,next:A=>{let v=!1;return!O&&w===void 0&&(v=!0,T(A),S(A)),w!==void 0&&A>w?O.next(A-w):(!v&&T(A),d)}}}const us=e=>{const t=({timestamp:n})=>e(n);return{start:()=>R.update(t,!0),stop:()=>Rt(t),now:()=>Me.isProcessing?Me.timestamp:performance.now()}},ct=2e4;function lt(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ct?1/0:t}const fs={decay:it,inertia:it,tween:ie,keyframes:ie,spring:on};function ce({autoplay:e=!0,delay:t=0,driver:n=us,keyframes:r,type:s="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:c="loop",onPlay:l,onStop:i,onComplete:u,onUpdate:f,...d}){let h=1,m=!1,b,C;const M=()=>{C=new Promise(V=>{b=V})};M();let g;const y=fs[s]||ie;let T;y!==ie&&typeof r[0]!="number"&&(T=rn([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...d,keyframes:r});let O;c==="mirror"&&(O=y({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let S="idle",A=null,v=null,j=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=lt(w));const{calculatedDuration:me}=w;let U=1/0,E=1/0;me!==null&&(U=me+o,E=U*(a+1)-o);let P=0;const pe=V=>{if(v===null)return;h>0&&(v=Math.min(v,V)),h<0&&(v=Math.min(V-E/h,v)),A!==null?P=A:P=Math.round(V-v)*h;const q=P-t*(h>=0?1:-1),$e=h>=0?q<0:q>E;P=Math.max(q,0),S==="finished"&&A===null&&(P=E);let Ge=P,Ke=w;if(a){const ge=P/U;let te=Math.floor(ge),L=ge%1;!L&&ge>=1&&(L=1),L===1&&te--,te=Math.min(te,a+1);const qe=!!(te%2);qe&&(c==="reverse"?(L=1-L,o&&(L-=o/U)):c==="mirror"&&(Ke=O));let Ze=$(0,1,L);P>E&&(Ze=c==="reverse"&&qe?1:0),Ge=Ze*U}const Z=$e?{done:!1,value:r[0]}:Ke.next(Ge);T&&(Z.value=T(Z.value));let{done:Ue}=Z;!$e&&me!==null&&(Ue=h>=0?P>=E:P<=0);const gn=A===null&&(S==="finished"||S==="running"&&Ue);return f&&f(Z.value),gn&&pn(),Z},je=()=>{g&&g.stop(),g=void 0},Ee=()=>{S="idle",je(),b(),M(),v=j=null},pn=()=>{S="finished",u&&u(),je(),b()},He=()=>{if(m)return;g||(g=n(pe));const V=g.now();l&&l(),A!==null?v=V-A:(!v||S==="finished")&&(v=V),S==="finished"&&M(),j=v,A=null,S="running",g.start()};e&&He();const Ne={then(V,q){return C.then(V,q)},get time(){return I(P)},set time(V){V=z(V),P=V,A!==null||!g||h===0?A=V:v=g.now()-V/h},get duration(){const V=w.calculatedDuration===null?lt(w):w.calculatedDuration;return I(V)},get speed(){return h},set speed(V){V===h||!g||(h=V,Ne.time=I(P))},get state(){return S},play:He,pause:()=>{S="paused",A=P},stop:()=>{m=!0,S!=="idle"&&(S="idle",i&&i(),Ee())},cancel:()=>{j!==null&&pe(j),Ee()},complete:()=>{S="finished"},sample:V=>(v=0,pe(V))};return Ne}function ds(e){let t;return()=>(t===void 0&&(t=e()),t)}const hs=ds(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ms=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),se=10,ps=2e4,gs=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Wt(t.ease);function ys(e,t,{onUpdate:n,onComplete:r,...s}){if(!(hs()&&ms.has(t)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let o=!1,c,l;const i=()=>{l=new Promise(g=>{c=g})};i();let{keyframes:u,duration:f=300,ease:d,times:h}=s;if(gs(t,s)){const g=ce({...s,repeat:0,delay:0});let y={done:!1,value:u[0]};const T=[];let w=0;for(;!y.done&&wm.cancel(),C=()=>{R.update(b),c(),i()};return m.onfinish=()=>{e.set(vr(u,s)),r&&r(),C()},{then(g,y){return l.then(g,y)},attachTimeline(g){return m.timeline=g,m.onfinish=null,D},get time(){return I(m.currentTime||0)},set time(g){m.currentTime=z(g)},get speed(){return m.playbackRate},set speed(g){m.playbackRate=g},get duration(){return I(f)},play:()=>{o||(m.play(),Rt(b))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:g}=m;if(g){const y=ce({...s,autoplay:!1});e.setWithVelocity(y.sample(g-se).value,y.sample(g).value,se)}C()},complete:()=>m.finish(),cancel:C}}function bs({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const s=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:D,pause:D,stop:D,then:a=>(a(),Promise.resolve()),cancel:D,complete:D});return t?ce({keyframes:[0,1],duration:0,delay:t,onComplete:s}):s()}const xs={type:"spring",stiffness:500,damping:25,restSpeed:10},As=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ws={type:"keyframes",duration:.8},Cs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vs=(e,{keyframes:t})=>t.length>2?ws:fe.has(e)?e.startsWith("scale")?As(t[1]):xs:Cs,ke=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(K.test(t)||t==="0")&&!t.startsWith("url(")),Ts=new Set(["brightness","contrast","saturate","opacity"]);function Ms(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(de)||[];if(!r)return e;const s=n.replace(r,"");let a=Ts.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+s+")"}const Ss=/([a-z-]*)\(.*?\)/g,Pe={...K,getAnimatableNone:e=>{const t=e.match(Ss);return t?t.map(Ms).join(" "):e}},vs={...Vt,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Pe,WebkitFilter:Pe},ks=e=>vs[e];function cn(e,t){let n=ks(e);return n!==Pe&&(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ln=e=>/^0[^.\s]+$/.test(e);function Ps(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||ln(e)}function Ds(e,t,n,r){const s=ke(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const o=r.from!==void 0?r.from:e.get();let c;const l=[];for(let i=0;is=>{const a=un(r,e)||{},o=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-z(o);const l=Ds(t,e,n,a),i=l[0],u=l[l.length-1],f=ke(e,i),d=ke(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-c,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{s(),a.onComplete&&a.onComplete()}};if(Os(a)||(h={...h,...Vs(e,h)}),h.duration&&(h.duration=z(h.duration)),h.repeatDelay&&(h.repeatDelay=z(h.repeatDelay)),!f||!d||Mr.current||a.type===!1)return bs(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=ys(t,e,h);if(m)return m}return ce(h)};function Rs(e){return!!(B(e)&&e.add)}const Is=e=>/^\-?\d*\.?\d+$/.test(e);function Bs(e,t){e.indexOf(t)===-1&&e.push(t)}function Ls(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ws{constructor(){this.subscriptions=[]}add(t){return Bs(this.subscriptions,t),()=>Ls(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let a=0;a!isNaN(parseFloat(e));class js{constructor(t,n={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=Me;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,R.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>R.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=zs(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ws);const r=this.events[t].add(n);return t==="change"?()=>{r(),R.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?sn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fn(e,t){return new js(e,t)}const dn=e=>t=>t.test(e),Es={test:e=>e==="auto",parse:e=>e},hn=[G,p,N,F,Kn,Gn,Es],sa=e=>hn.find(dn(e)),Hs=[...hn,k,K],Ns=e=>Hs.find(dn(e));function $s(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fn(n))}function ze(e,t){const n=Ie(e,t);let{transitionEnd:r={},transition:s={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const c=fr(a[o]);$s(e,o,c)}}function De(e,t){[...t].reverse().forEach(r=>{const s=e.getVariant(r);s&&ze(e,s),e.variantChildren&&e.variantChildren.forEach(a=>{De(a,t)})})}function aa(e,t){if(Array.isArray(t))return De(e,t);if(typeof t=="string")return De(e,[t]);ze(e,t)}function oa(e,t,n){var r,s;const a=Object.keys(t).filter(c=>!e.hasValue(c)),o=a.length;if(o)for(let c=0;cl.remove(f))),i.push(C)}return o&&Promise.all(i).then(()=>{o&&ze(e,o)}),i}function Oe(e,t,n={}){const r=Ie(e,t,n.custom);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(mn(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:i=0,staggerChildren:u,staggerDirection:f}=s;return qs(e,t,i+l,u,f,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[l,i]=c==="beforeChildren"?[a,o]:[o,a];return l().then(()=>i())}else return Promise.all([a(),o(n.delay)])}function qs(e,t,n=0,r=0,s=1,a){const o=[],c=(e.variantChildren.size-1)*r,l=s===1?(i=0)=>i*r:(i=0)=>c-i*r;return Array.from(e.variantChildren).sort(Zs).forEach((i,u)=>{i.notify("AnimationStart",t),o.push(Oe(i,t,{...a,delay:n+l(u)}).then(()=>i.notify("AnimationComplete",t)))}),Promise.all(o)}function Zs(e,t){return e.sortNodePosition(t)}function ca(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(a=>Oe(e,a,n));r=Promise.all(s)}else if(typeof t=="string")r=Oe(e,t,n);else{const s=typeof t=="function"?Ie(e,t,n.custom):t;r=Promise.all(mn(e,s,n))}return r.then(()=>e.notify("AnimationComplete",t))}const _s=Bn(Ar),Xs=x.memo(x.forwardRef(({children:e,...t},n)=>Ce.jsx(_s.button,{initial:!0,whileFocus:{scale:1.02},whileHover:{scale:1.02},whileTap:{scale:.95},...t,ref:n,children:e}))),Ys=e=>yn.createElement("a",e,e.children),ut=bn({base:"inline-flex items-center gap-2 justify-center rounded-lg py-2 px-3 text-sm outline-offset-2 transition active:transition-none",variants:{variant:{primary:_e("bg-accent text-zinc-100","active:contrast-125 hover:contrast-[1.10]","font-semibold","disabled:bg-gray-400 disabled:opacity-30 disabled:dark:bg-gray-800 disabled:dark:text-slate-50 disabled:cursor-not-allowed","dark:text-neutral-800"),secondary:_e("group rounded-full bg-gradient-to-b from-zinc-50/50 to-white/90 px-3 py-2 shadow-lg shadow-zinc-800/5 ring-1 ring-zinc-900/5 backdrop-blur transition dark:from-zinc-900/50 dark:to-zinc-800/90 dark:ring-white/10 dark:hover:ring-white/20","disabled:bg-gray-400 disabled:opacity-30 disabled:dark:bg-gray-800 disabled:dark:text-slate-50 disabled:cursor-not-allowed")}}}),la=({variant:e="primary",className:t,href:n,...r})=>n?Ce.jsx(Ys,{href:n,className:ut({variant:e,className:t}),...r}):Ce.jsx(Xs,{className:ut({variant:e,className:t}),...r}),ua={type:"spring",damping:24},fa={type:"spring",stiffness:300,damping:20},da={duration:.35,type:"spring",stiffness:120,damping:20};export{Fe as $,Cn as A,Fs as B,N as C,p as D,K as E,ta as F,On as G,Ir as H,Bs as I,Ls as J,Ws as K,Dn as L,Xs as M,un as N,ra as O,dt as P,dr as Q,xt as R,la as S,na as T,Is as U,ue as V,sa as W,Bt as X,ht as Y,G as Z,Rs as _,cr as a,Sn as a0,fe as a1,Ot as a2,Te as a3,Mn as a4,ia as a5,oa as a6,ks as a7,En as a8,Tt as a9,Dt as aa,sr as ab,ar as ac,pt as ad,ir as ae,vt as af,or as ag,Pt as ah,bt as ai,Pn as aj,mt as ak,ce as al,aa as am,fa as b,Ys as c,ua as d,fn as e,R as f,ft as g,Rt as h,B as i,yt as j,lr as k,Ve as l,_s as m,D as n,ca as o,It as p,z as q,Ie as r,da as s,I as t,xn as u,Tn as v,Me as w,he as x,nn as y,$ as z}; diff --git a/assets/stateDiagram-b620d43f-y0IcZQu2.js b/assets/stateDiagram-b620d43f-Ae8zvNyx.js similarity index 96% rename from assets/stateDiagram-b620d43f-y0IcZQu2.js rename to assets/stateDiagram-b620d43f-Ae8zvNyx.js index f3ba69cfa9..33948b560c 100644 --- a/assets/stateDiagram-b620d43f-y0IcZQu2.js +++ b/assets/stateDiagram-b620d43f-Ae8zvNyx.js @@ -1 +1 @@ -import{p as P,d as N,s as W}from"./styles-bbc3fe3b-gfxx_Tsk.js";import{c as t,h as H,l as b,i as R,j as T,B as v,u as U}from"./mermaid.core-uOCfdc17.js";import{G as C,l as F}from"./layout-TzcvurS1.js";import"./LinkCard-aLl-jjA_.js";import{l as $}from"./line-MxgoxcWE.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,a)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,a)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let i=!0,r=!0;a.descriptions.forEach(function(l){i||(o(p,l,r),r=!1),i=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,a,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,i=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();a.doc,l=i-c,x>p&&(l=(p-d)/2+c),Math.abs(i-m.x)p&&(l=i-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",i+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,a)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(a.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,a,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const i=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of i){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",a+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,a)=>{a.attr("class","state-note");const o=a.append("rect").attr("x",0).attr("y",t().state.padding),c=a.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,a){const o=a.id,c={id:o,label:a.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");a.type==="start"&&O(s),a.type==="end"&&_(s),(a.type==="fork"||a.type==="join")&&q(s,a),a.type==="note"&&j(a.note.text,s),a.type==="divider"&&X(s),a.type==="default"&&a.descriptions.length===0&&J(s,a),a.type==="default"&&a.descriptions.length>0&&Y(s,a);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,a,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(r=>!Number.isNaN(r.y));const s=a.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),p.attr("marker-end","url("+i+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(a.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,a,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+a));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),i=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${a}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,i,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,a,o,c,s,g,p)=>{const i=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(i.node(n)))});let E=w.getBBox();i.edges().forEach(function(n){n!==void 0&&i.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(i.edge(n))),K(a,i.edge(n),i.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,i),k},et={setConf:Q,draw:D},ut={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{ut as diagram}; +import{p as P,d as N,s as W}from"./styles-bbc3fe3b-IoBkQh0A.js";import{c as t,h as H,l as b,i as R,j as T,B as v,u as U}from"./mermaid.core-YsxFu0Y0.js";import{G as C,l as F}from"./layout-or5_ZLqg.js";import"./LinkCard-gCgkDO82.js";import{l as $}from"./line-aMz7DiQ_.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,a)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,a)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let i=!0,r=!0;a.descriptions.forEach(function(l){i||(o(p,l,r),r=!1),i=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,a,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,i=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(a.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();a.doc,l=i-c,x>p&&(l=(p-d)/2+c),Math.abs(i-m.x)p&&(l=i-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",i+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,a)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(a.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,a,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const i=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of i){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",a+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,a)=>{a.attr("class","state-note");const o=a.append("rect").attr("x",0).attr("y",t().state.padding),c=a.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,a){const o=a.id,c={id:o,label:a.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");a.type==="start"&&O(s),a.type==="end"&&_(s),(a.type==="fork"||a.type==="join")&&q(s,a),a.type==="note"&&j(a.note.text,s),a.type==="divider"&&X(s),a.type==="default"&&a.descriptions.length===0&&J(s,a),a.type==="default"&&a.descriptions.length>0&&Y(s,a);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,a,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};a.points=a.points.filter(r=>!Number.isNaN(r.y));const s=a.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),p.attr("marker-end","url("+i+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(a.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,a,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+a));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),i=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${a}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,i,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,a,o,c,s,g,p)=>{const i=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(i.node(n)))});let E=w.getBBox();i.edges().forEach(function(n){n!==void 0&&i.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(i.edge(n))),K(a,i.edge(n),i.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,i),k},et={setConf:Q,draw:D},ut={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{ut as diagram}; diff --git a/assets/stateDiagram-v2-2671c3d1-IJSNIfX0.js b/assets/stateDiagram-v2-2671c3d1-ivzK-thD.js similarity index 89% rename from assets/stateDiagram-v2-2671c3d1-IJSNIfX0.js rename to assets/stateDiagram-v2-2671c3d1-ivzK-thD.js index a9af543693..e216d1e9b9 100644 --- a/assets/stateDiagram-v2-2671c3d1-IJSNIfX0.js +++ b/assets/stateDiagram-v2-2671c3d1-ivzK-thD.js @@ -1 +1 @@ -import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-bbc3fe3b-gfxx_Tsk.js";import{G as tt}from"./layout-TzcvurS1.js";import{l as E,c as g,h as x,u as et,i as ot,j as w}from"./mermaid.core-uOCfdc17.js";import{r as st}from"./index-67a42d7d-g0Z27jYt.js";import"./LinkCard-aLl-jjA_.js";import"./index-Qg-bAq5J.js";import"./edges-80f1ebb6-FlrRuN4S.js";import"./createText-aebacdfe-SYhAe-WO.js";import"./line-MxgoxcWE.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{zt as diagram}; +import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-bbc3fe3b-IoBkQh0A.js";import{G as tt}from"./layout-or5_ZLqg.js";import{l as E,c as g,h as x,u as et,i as ot,j as w}from"./mermaid.core-YsxFu0Y0.js";import{r as st}from"./index-67a42d7d-z0cWI9_8.js";import"./LinkCard-gCgkDO82.js";import"./index-HRfeE_7B.js";import"./edges-80f1ebb6-rGuwxB-z.js";import"./createText-aebacdfe-H6z3pXul.js";import"./line-aMz7DiQ_.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{zt as diagram}; diff --git a/assets/styles-4ba6ed67-4o_0kKs1.js b/assets/styles-4ba6ed67-iT2JB7rU.js similarity index 99% rename from assets/styles-4ba6ed67-4o_0kKs1.js rename to assets/styles-4ba6ed67-iT2JB7rU.js index 5dc280661b..d1d1766d32 100644 --- a/assets/styles-4ba6ed67-4o_0kKs1.js +++ b/assets/styles-4ba6ed67-iT2JB7rU.js @@ -1,4 +1,4 @@ -import{s as Xe,g as qe,a as We,b as He,c as F,o as Je,p as Ze,j as v,q as $e,l as et,u as Pe,h as U,d as tt,C as ye}from"./mermaid.core-uOCfdc17.js";var De=function(){var e=function(L,u,a,o){for(a=a||{},o=L.length;o--;a[L[o]]=u);return a},n=[1,16],r=[1,17],h=[1,18],l=[1,37],A=[1,38],g=[1,24],D=[1,22],B=[1,23],_=[1,29],ne=[1,30],ue=[1,31],re=[1,32],ae=[1,33],le=[1,34],ce=[1,25],oe=[1,26],he=[1,27],Ae=[1,28],d=[1,42],E=[1,39],C=[1,40],m=[1,41],k=[1,43],pe=[1,9],c=[1,8,9],Y=[1,54],K=[1,55],j=[1,56],Q=[1,57],X=[1,58],fe=[1,59],de=[1,60],q=[1,8,9,38],Ne=[1,71],V=[1,8,9,12,13,21,36,38,41,58,59,60,61,62,63,64,69,71],W=[1,8,9,12,13,19,21,36,38,41,45,58,59,60,61,62,63,64,69,71,84,86,87,88,89],H=[13,84,86,87,88,89],M=[13,63,64,84,86,87,88,89],ve=[13,58,59,60,61,62,84,86,87,88,89],Ee=[1,90],Ce=[1,8,9,36,38,41],J=[1,8,9,21],me={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,cssClassStatement:27,noteStatement:28,direction:29,acc_title:30,acc_title_value:31,acc_descr:32,acc_descr_value:33,acc_descr_multiline_value:34,namespaceIdentifier:35,STRUCT_START:36,classStatements:37,STRUCT_STOP:38,NAMESPACE:39,classIdentifier:40,STYLE_SEPARATOR:41,members:42,CLASS:43,ANNOTATION_START:44,ANNOTATION_END:45,MEMBER:46,SEPARATOR:47,relation:48,NOTE_FOR:49,noteText:50,NOTE:51,direction_tb:52,direction_bt:53,direction_rl:54,direction_lr:55,relationType:56,lineType:57,AGGREGATION:58,EXTENSION:59,COMPOSITION:60,DEPENDENCY:61,LOLLIPOP:62,LINE:63,DOTTED_LINE:64,CALLBACK:65,LINK:66,LINK_TARGET:67,CLICK:68,CALLBACK_NAME:69,CALLBACK_ARGS:70,HREF:71,CSSCLASS:72,commentToken:73,textToken:74,graphCodeTokens:75,textNoTagsToken:76,TAGSTART:77,TAGEND:78,"==":79,"--":80,PCT:81,DEFAULT:82,SPACE:83,MINUS:84,keywords:85,UNICODE_TEXT:86,NUM:87,ALPHA:88,BQUOTE_STR:89,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",30:"acc_title",31:"acc_title_value",32:"acc_descr",33:"acc_descr_value",34:"acc_descr_multiline_value",36:"STRUCT_START",38:"STRUCT_STOP",39:"NAMESPACE",41:"STYLE_SEPARATOR",43:"CLASS",44:"ANNOTATION_START",45:"ANNOTATION_END",46:"MEMBER",47:"SEPARATOR",49:"NOTE_FOR",51:"NOTE",52:"direction_tb",53:"direction_bt",54:"direction_rl",55:"direction_lr",58:"AGGREGATION",59:"EXTENSION",60:"COMPOSITION",61:"DEPENDENCY",62:"LOLLIPOP",63:"LINE",64:"DOTTED_LINE",65:"CALLBACK",66:"LINK",67:"LINK_TARGET",68:"CLICK",69:"CALLBACK_NAME",70:"CALLBACK_ARGS",71:"HREF",72:"CSSCLASS",75:"graphCodeTokens",77:"TAGSTART",78:"TAGEND",79:"==",80:"--",81:"PCT",82:"DEFAULT",83:"SPACE",84:"MINUS",85:"keywords",86:"UNICODE_TEXT",87:"NUM",88:"ALPHA",89:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[35,2],[37,1],[37,2],[37,3],[23,1],[23,3],[23,4],[23,6],[40,2],[40,3],[25,4],[42,1],[42,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[28,3],[28,2],[29,1],[29,1],[29,1],[29,1],[48,3],[48,2],[48,2],[48,1],[56,1],[56,1],[56,1],[56,1],[56,1],[57,1],[57,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[73,1],[73,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[76,1],[76,1],[76,1],[76,1],[16,1],[16,1],[16,1],[16,1],[18,1],[50,1]],performAction:function(u,a,o,i,p,t,G){var s=t.length-1;switch(p){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 26:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 27:case 28:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 29:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 30:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 31:this.$=t[s],i.addNamespace(t[s]);break;case 32:this.$=[t[s]];break;case 33:this.$=[t[s-1]];break;case 34:t[s].unshift(t[s-2]),this.$=t[s];break;case 36:i.setCssClass(t[s-2],t[s]);break;case 37:i.addMembers(t[s-3],t[s-1]);break;case 38:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 39:this.$=t[s],i.addClass(t[s]);break;case 40:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 41:i.addAnnotation(t[s],t[s-2]);break;case 42:this.$=[t[s]];break;case 43:t[s].push(t[s-1]),this.$=t[s];break;case 44:break;case 45:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 46:break;case 47:break;case 48:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 51:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 52:i.addNote(t[s],t[s-1]);break;case 53:i.addNote(t[s]);break;case 54:i.setDirection("TB");break;case 55:i.setDirection("BT");break;case 56:i.setDirection("RL");break;case 57:i.setDirection("LR");break;case 58:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 59:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 61:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 62:this.$=i.relationType.AGGREGATION;break;case 63:this.$=i.relationType.EXTENSION;break;case 64:this.$=i.relationType.COMPOSITION;break;case 65:this.$=i.relationType.DEPENDENCY;break;case 66:this.$=i.relationType.LOLLIPOP;break;case 67:this.$=i.lineType.LINE;break;case 68:this.$=i.lineType.DOTTED_LINE;break;case 69:case 75:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 70:case 76:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 71:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 72:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 74:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 78:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 79:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 80:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 82:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 83:i.setCssClass(t[s-1],t[s]);break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:n,32:r,34:h,35:20,39:l,40:21,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(pe,[2,5],{8:[1,44]}),{8:[1,45]},e(c,[2,16],{21:[1,46]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),{31:[1,47]},{33:[1,48]},e(c,[2,28]),e(c,[2,44],{48:49,56:52,57:53,13:[1,50],21:[1,51],58:Y,59:K,60:j,61:Q,62:X,63:fe,64:de}),{36:[1,61]},e(q,[2,35],{36:[1,63],41:[1,62]}),e(c,[2,46]),e(c,[2,47]),{16:64,84:d,86:E,87:C,88:m},{16:35,17:65,18:36,84:d,86:E,87:C,88:m,89:k},{16:35,17:66,18:36,84:d,86:E,87:C,88:m,89:k},{16:35,17:67,18:36,84:d,86:E,87:C,88:m,89:k},{13:[1,68]},{16:35,17:69,18:36,84:d,86:E,87:C,88:m,89:k},{13:Ne,50:70},e(c,[2,54]),e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(V,[2,11],{16:35,18:36,17:72,19:[1,73],84:d,86:E,87:C,88:m,89:k}),e(V,[2,12],{19:[1,74]}),{15:75,16:76,84:d,86:E,87:C,88:m},{16:35,17:77,18:36,84:d,86:E,87:C,88:m,89:k},e(W,[2,97]),e(W,[2,98]),e(W,[2,99]),e(W,[2,100]),e([1,8,9,12,13,19,21,36,38,41,58,59,60,61,62,63,64,69,71],[2,101]),e(pe,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,17:19,35:20,40:21,16:35,18:36,5:78,30:n,32:r,34:h,39:l,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k}),{5:79,10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:n,32:r,34:h,35:20,39:l,40:21,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k},e(c,[2,17]),e(c,[2,26]),e(c,[2,27]),{13:[1,81],16:35,17:80,18:36,84:d,86:E,87:C,88:m,89:k},{48:82,56:52,57:53,58:Y,59:K,60:j,61:Q,62:X,63:fe,64:de},e(c,[2,45]),{57:83,63:fe,64:de},e(H,[2,61],{56:84,58:Y,59:K,60:j,61:Q,62:X}),e(M,[2,62]),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(ve,[2,67]),e(ve,[2,68]),{8:[1,86],23:87,37:85,40:21,43:A},{16:88,84:d,86:E,87:C,88:m},{42:89,46:Ee},{45:[1,91]},{13:[1,92]},{13:[1,93]},{69:[1,94],71:[1,95]},{16:96,84:d,86:E,87:C,88:m},{13:Ne,50:97},e(c,[2,53]),e(c,[2,102]),e(V,[2,13]),e(V,[2,14]),e(V,[2,15]),{36:[2,31]},{15:98,16:76,36:[2,9],84:d,86:E,87:C,88:m},e(Ce,[2,39],{11:99,12:[1,100]}),e(pe,[2,7]),{9:[1,101]},e(J,[2,48]),{16:35,17:102,18:36,84:d,86:E,87:C,88:m,89:k},{13:[1,104],16:35,17:103,18:36,84:d,86:E,87:C,88:m,89:k},e(H,[2,60],{56:105,58:Y,59:K,60:j,61:Q,62:X}),e(H,[2,59]),{38:[1,106]},{23:87,37:107,40:21,43:A},{8:[1,108],38:[2,32]},e(q,[2,36],{36:[1,109]}),{38:[1,110]},{38:[2,42],42:111,46:Ee},{16:35,17:112,18:36,84:d,86:E,87:C,88:m,89:k},e(c,[2,69],{13:[1,113]}),e(c,[2,71],{13:[1,115],67:[1,114]}),e(c,[2,75],{13:[1,116],70:[1,117]}),{13:[1,118]},e(c,[2,83]),e(c,[2,52]),{36:[2,10]},e(Ce,[2,40]),{13:[1,119]},{1:[2,4]},e(J,[2,50]),e(J,[2,49]),{16:35,17:120,18:36,84:d,86:E,87:C,88:m,89:k},e(H,[2,58]),e(c,[2,29]),{38:[1,121]},{23:87,37:122,38:[2,33],40:21,43:A},{42:123,46:Ee},e(q,[2,37]),{38:[2,43]},e(c,[2,41]),e(c,[2,70]),e(c,[2,72]),e(c,[2,73],{67:[1,124]}),e(c,[2,76]),e(c,[2,77],{13:[1,125]}),e(c,[2,79],{13:[1,127],67:[1,126]}),{14:[1,128]},e(J,[2,51]),e(c,[2,30]),{38:[2,34]},{38:[1,129]},e(c,[2,74]),e(c,[2,78]),e(c,[2,80]),e(c,[2,81],{67:[1,130]}),e(Ce,[2,8]),e(q,[2,38]),e(c,[2,82])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],75:[2,31],98:[2,10],101:[2,4],111:[2,43],122:[2,34]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var o=new Error(u);throw o.hash=a,o}},parse:function(u){var a=this,o=[0],i=[],p=[null],t=[],G=this.table,s="",Z=0,Le=0,Ye=2,xe=1,Ke=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(I.yy[ge]=this.yy[ge]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var ke=b.yylloc;t.push(ke);var je=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qe(){var N;return N=i.pop()||b.lex()||xe,typeof N!="number"&&(N instanceof Array&&(i=N,N=i.pop()),N=a.symbols_[N]||N),N}for(var T,O,y,Te,w={},$,S,Ie,ee;;){if(O=o[o.length-1],this.defaultActions[O]?y=this.defaultActions[O]:((T===null||typeof T>"u")&&(T=Qe()),y=G[O]&&G[O][T]),typeof y>"u"||!y.length||!y[0]){var Fe="";ee=[];for($ in G[O])this.terminals_[$]&&$>Ye&&ee.push("'"+this.terminals_[$]+"'");b.showPosition?Fe="Parse error on line "+(Z+1)+`: +import{s as Xe,g as qe,a as We,b as He,c as F,o as Je,p as Ze,j as v,q as $e,l as et,u as Pe,h as U,d as tt,C as ye}from"./mermaid.core-YsxFu0Y0.js";var De=function(){var e=function(L,u,a,o){for(a=a||{},o=L.length;o--;a[L[o]]=u);return a},n=[1,16],r=[1,17],h=[1,18],l=[1,37],A=[1,38],g=[1,24],D=[1,22],B=[1,23],_=[1,29],ne=[1,30],ue=[1,31],re=[1,32],ae=[1,33],le=[1,34],ce=[1,25],oe=[1,26],he=[1,27],Ae=[1,28],d=[1,42],E=[1,39],C=[1,40],m=[1,41],k=[1,43],pe=[1,9],c=[1,8,9],Y=[1,54],K=[1,55],j=[1,56],Q=[1,57],X=[1,58],fe=[1,59],de=[1,60],q=[1,8,9,38],Ne=[1,71],V=[1,8,9,12,13,21,36,38,41,58,59,60,61,62,63,64,69,71],W=[1,8,9,12,13,19,21,36,38,41,45,58,59,60,61,62,63,64,69,71,84,86,87,88,89],H=[13,84,86,87,88,89],M=[13,63,64,84,86,87,88,89],ve=[13,58,59,60,61,62,84,86,87,88,89],Ee=[1,90],Ce=[1,8,9,36,38,41],J=[1,8,9,21],me={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,cssClassStatement:27,noteStatement:28,direction:29,acc_title:30,acc_title_value:31,acc_descr:32,acc_descr_value:33,acc_descr_multiline_value:34,namespaceIdentifier:35,STRUCT_START:36,classStatements:37,STRUCT_STOP:38,NAMESPACE:39,classIdentifier:40,STYLE_SEPARATOR:41,members:42,CLASS:43,ANNOTATION_START:44,ANNOTATION_END:45,MEMBER:46,SEPARATOR:47,relation:48,NOTE_FOR:49,noteText:50,NOTE:51,direction_tb:52,direction_bt:53,direction_rl:54,direction_lr:55,relationType:56,lineType:57,AGGREGATION:58,EXTENSION:59,COMPOSITION:60,DEPENDENCY:61,LOLLIPOP:62,LINE:63,DOTTED_LINE:64,CALLBACK:65,LINK:66,LINK_TARGET:67,CLICK:68,CALLBACK_NAME:69,CALLBACK_ARGS:70,HREF:71,CSSCLASS:72,commentToken:73,textToken:74,graphCodeTokens:75,textNoTagsToken:76,TAGSTART:77,TAGEND:78,"==":79,"--":80,PCT:81,DEFAULT:82,SPACE:83,MINUS:84,keywords:85,UNICODE_TEXT:86,NUM:87,ALPHA:88,BQUOTE_STR:89,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",30:"acc_title",31:"acc_title_value",32:"acc_descr",33:"acc_descr_value",34:"acc_descr_multiline_value",36:"STRUCT_START",38:"STRUCT_STOP",39:"NAMESPACE",41:"STYLE_SEPARATOR",43:"CLASS",44:"ANNOTATION_START",45:"ANNOTATION_END",46:"MEMBER",47:"SEPARATOR",49:"NOTE_FOR",51:"NOTE",52:"direction_tb",53:"direction_bt",54:"direction_rl",55:"direction_lr",58:"AGGREGATION",59:"EXTENSION",60:"COMPOSITION",61:"DEPENDENCY",62:"LOLLIPOP",63:"LINE",64:"DOTTED_LINE",65:"CALLBACK",66:"LINK",67:"LINK_TARGET",68:"CLICK",69:"CALLBACK_NAME",70:"CALLBACK_ARGS",71:"HREF",72:"CSSCLASS",75:"graphCodeTokens",77:"TAGSTART",78:"TAGEND",79:"==",80:"--",81:"PCT",82:"DEFAULT",83:"SPACE",84:"MINUS",85:"keywords",86:"UNICODE_TEXT",87:"NUM",88:"ALPHA",89:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[35,2],[37,1],[37,2],[37,3],[23,1],[23,3],[23,4],[23,6],[40,2],[40,3],[25,4],[42,1],[42,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[28,3],[28,2],[29,1],[29,1],[29,1],[29,1],[48,3],[48,2],[48,2],[48,1],[56,1],[56,1],[56,1],[56,1],[56,1],[57,1],[57,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[73,1],[73,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[76,1],[76,1],[76,1],[76,1],[16,1],[16,1],[16,1],[16,1],[18,1],[50,1]],performAction:function(u,a,o,i,p,t,G){var s=t.length-1;switch(p){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 26:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 27:case 28:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 29:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 30:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 31:this.$=t[s],i.addNamespace(t[s]);break;case 32:this.$=[t[s]];break;case 33:this.$=[t[s-1]];break;case 34:t[s].unshift(t[s-2]),this.$=t[s];break;case 36:i.setCssClass(t[s-2],t[s]);break;case 37:i.addMembers(t[s-3],t[s-1]);break;case 38:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 39:this.$=t[s],i.addClass(t[s]);break;case 40:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 41:i.addAnnotation(t[s],t[s-2]);break;case 42:this.$=[t[s]];break;case 43:t[s].push(t[s-1]),this.$=t[s];break;case 44:break;case 45:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 46:break;case 47:break;case 48:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 51:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 52:i.addNote(t[s],t[s-1]);break;case 53:i.addNote(t[s]);break;case 54:i.setDirection("TB");break;case 55:i.setDirection("BT");break;case 56:i.setDirection("RL");break;case 57:i.setDirection("LR");break;case 58:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 59:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 61:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 62:this.$=i.relationType.AGGREGATION;break;case 63:this.$=i.relationType.EXTENSION;break;case 64:this.$=i.relationType.COMPOSITION;break;case 65:this.$=i.relationType.DEPENDENCY;break;case 66:this.$=i.relationType.LOLLIPOP;break;case 67:this.$=i.lineType.LINE;break;case 68:this.$=i.lineType.DOTTED_LINE;break;case 69:case 75:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 70:case 76:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 71:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 72:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 74:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 78:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 79:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 80:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 82:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 83:i.setCssClass(t[s-1],t[s]);break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:n,32:r,34:h,35:20,39:l,40:21,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(pe,[2,5],{8:[1,44]}),{8:[1,45]},e(c,[2,16],{21:[1,46]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),{31:[1,47]},{33:[1,48]},e(c,[2,28]),e(c,[2,44],{48:49,56:52,57:53,13:[1,50],21:[1,51],58:Y,59:K,60:j,61:Q,62:X,63:fe,64:de}),{36:[1,61]},e(q,[2,35],{36:[1,63],41:[1,62]}),e(c,[2,46]),e(c,[2,47]),{16:64,84:d,86:E,87:C,88:m},{16:35,17:65,18:36,84:d,86:E,87:C,88:m,89:k},{16:35,17:66,18:36,84:d,86:E,87:C,88:m,89:k},{16:35,17:67,18:36,84:d,86:E,87:C,88:m,89:k},{13:[1,68]},{16:35,17:69,18:36,84:d,86:E,87:C,88:m,89:k},{13:Ne,50:70},e(c,[2,54]),e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(V,[2,11],{16:35,18:36,17:72,19:[1,73],84:d,86:E,87:C,88:m,89:k}),e(V,[2,12],{19:[1,74]}),{15:75,16:76,84:d,86:E,87:C,88:m},{16:35,17:77,18:36,84:d,86:E,87:C,88:m,89:k},e(W,[2,97]),e(W,[2,98]),e(W,[2,99]),e(W,[2,100]),e([1,8,9,12,13,19,21,36,38,41,58,59,60,61,62,63,64,69,71],[2,101]),e(pe,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,17:19,35:20,40:21,16:35,18:36,5:78,30:n,32:r,34:h,39:l,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k}),{5:79,10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:n,32:r,34:h,35:20,39:l,40:21,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k},e(c,[2,17]),e(c,[2,26]),e(c,[2,27]),{13:[1,81],16:35,17:80,18:36,84:d,86:E,87:C,88:m,89:k},{48:82,56:52,57:53,58:Y,59:K,60:j,61:Q,62:X,63:fe,64:de},e(c,[2,45]),{57:83,63:fe,64:de},e(H,[2,61],{56:84,58:Y,59:K,60:j,61:Q,62:X}),e(M,[2,62]),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(ve,[2,67]),e(ve,[2,68]),{8:[1,86],23:87,37:85,40:21,43:A},{16:88,84:d,86:E,87:C,88:m},{42:89,46:Ee},{45:[1,91]},{13:[1,92]},{13:[1,93]},{69:[1,94],71:[1,95]},{16:96,84:d,86:E,87:C,88:m},{13:Ne,50:97},e(c,[2,53]),e(c,[2,102]),e(V,[2,13]),e(V,[2,14]),e(V,[2,15]),{36:[2,31]},{15:98,16:76,36:[2,9],84:d,86:E,87:C,88:m},e(Ce,[2,39],{11:99,12:[1,100]}),e(pe,[2,7]),{9:[1,101]},e(J,[2,48]),{16:35,17:102,18:36,84:d,86:E,87:C,88:m,89:k},{13:[1,104],16:35,17:103,18:36,84:d,86:E,87:C,88:m,89:k},e(H,[2,60],{56:105,58:Y,59:K,60:j,61:Q,62:X}),e(H,[2,59]),{38:[1,106]},{23:87,37:107,40:21,43:A},{8:[1,108],38:[2,32]},e(q,[2,36],{36:[1,109]}),{38:[1,110]},{38:[2,42],42:111,46:Ee},{16:35,17:112,18:36,84:d,86:E,87:C,88:m,89:k},e(c,[2,69],{13:[1,113]}),e(c,[2,71],{13:[1,115],67:[1,114]}),e(c,[2,75],{13:[1,116],70:[1,117]}),{13:[1,118]},e(c,[2,83]),e(c,[2,52]),{36:[2,10]},e(Ce,[2,40]),{13:[1,119]},{1:[2,4]},e(J,[2,50]),e(J,[2,49]),{16:35,17:120,18:36,84:d,86:E,87:C,88:m,89:k},e(H,[2,58]),e(c,[2,29]),{38:[1,121]},{23:87,37:122,38:[2,33],40:21,43:A},{42:123,46:Ee},e(q,[2,37]),{38:[2,43]},e(c,[2,41]),e(c,[2,70]),e(c,[2,72]),e(c,[2,73],{67:[1,124]}),e(c,[2,76]),e(c,[2,77],{13:[1,125]}),e(c,[2,79],{13:[1,127],67:[1,126]}),{14:[1,128]},e(J,[2,51]),e(c,[2,30]),{38:[2,34]},{38:[1,129]},e(c,[2,74]),e(c,[2,78]),e(c,[2,80]),e(c,[2,81],{67:[1,130]}),e(Ce,[2,8]),e(q,[2,38]),e(c,[2,82])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],75:[2,31],98:[2,10],101:[2,4],111:[2,43],122:[2,34]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var o=new Error(u);throw o.hash=a,o}},parse:function(u){var a=this,o=[0],i=[],p=[null],t=[],G=this.table,s="",Z=0,Le=0,Ye=2,xe=1,Ke=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(I.yy[ge]=this.yy[ge]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var ke=b.yylloc;t.push(ke);var je=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qe(){var N;return N=i.pop()||b.lex()||xe,typeof N!="number"&&(N instanceof Array&&(i=N,N=i.pop()),N=a.symbols_[N]||N),N}for(var T,O,y,Te,w={},$,S,Ie,ee;;){if(O=o[o.length-1],this.defaultActions[O]?y=this.defaultActions[O]:((T===null||typeof T>"u")&&(T=Qe()),y=G[O]&&G[O][T]),typeof y>"u"||!y.length||!y[0]){var Fe="";ee=[];for($ in G[O])this.terminals_[$]&&$>Ye&&ee.push("'"+this.terminals_[$]+"'");b.showPosition?Fe="Parse error on line "+(Z+1)+`: `+b.showPosition()+` Expecting `+ee.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Fe="Parse error on line "+(Z+1)+": Unexpected "+(T==xe?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Fe,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:ke,expected:ee})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+T);switch(y[0]){case 1:o.push(T),p.push(b.yytext),t.push(b.yylloc),o.push(y[1]),T=null,Le=b.yyleng,s=b.yytext,Z=b.yylineno,ke=b.yylloc;break;case 2:if(S=this.productions_[y[1]][1],w.$=p[p.length-S],w._$={first_line:t[t.length-(S||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(S||1)].first_column,last_column:t[t.length-1].last_column},je&&(w._$.range=[t[t.length-(S||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(w,[s,Le,Z,I.yy,y[1],p,t].concat(Ke)),typeof Te<"u")return Te;S&&(o=o.slice(0,-1*S*2),p=p.slice(0,-1*S),t=t.slice(0,-1*S)),o.push(this.productions_[y[1]][0]),p.push(w.$),t.push(w._$),Ie=G[o[o.length-2]][o[o.length-1]],o.push(Ie);break;case 3:return!0}}return!0}},ze=function(){var L={EOF:1,parseError:function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,o=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===i.length?this.yylloc.first_column:0)+i[i.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/assets/styles-b966c4ae-YImdFhsJ.js b/assets/styles-b966c4ae-isWPc7ie.js similarity index 98% rename from assets/styles-b966c4ae-YImdFhsJ.js rename to assets/styles-b966c4ae-isWPc7ie.js index 53ed1413ed..561411470c 100644 --- a/assets/styles-b966c4ae-YImdFhsJ.js +++ b/assets/styles-b966c4ae-isWPc7ie.js @@ -1,4 +1,4 @@ -import{G as q}from"./layout-TzcvurS1.js";import{a4 as D,a5 as F,a6 as M,a7 as R,a8 as U,a9 as j,aa as W,X as N,l as y,F as X,c as C,j as G,V as $,W as E,h as _,u as H,U as J,ab as K}from"./mermaid.core-uOCfdc17.js";import{r as Q}from"./index-67a42d7d-g0Z27jYt.js";function Y(e){return typeof e=="string"?new D([document.querySelectorAll(e)],[document.documentElement]):new D([M(e)],F)}const Z=(e,r)=>R.lang.round(U.parse(e)[r]),O=Z;function be(e,r){return!!e.children(r).length}function fe(e){return L(e.v)+":"+L(e.w)+":"+L(e.name)}var ee=/:/g;function L(e){return e?String(e).replace(ee,"\\:"):""}function te(e,r){r&&e.attr("style",r)}function ue(e,r,c){r&&e.attr("class",r).attr("class",c+" "+e.attr("class"))}function we(e,r){var c=r.graph();if(j(c)){var a=c.transition;if(W(a))return a(e)}return e}function le(e,r){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=r.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}te(a,r.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const z={},re=function(e){const r=Object.keys(e);for(const c of r)z[c]=e[c]},V=function(e,r,c,a,i,d){const u=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const l=e[p];let g="default";l.classes.length>0&&(g=l.classes.join(" ")),g=g+" flowchart-label";const w=N(l.styles);let t=l.text!==void 0?l.text:l.id,s;if(y.info("vertex",l,l.labelType),l.labelType==="markdown")y.info("vertex",l,l.labelType);else if(X(C().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};s=le(u,m).node(),s.parentNode.removeChild(s)}else{const m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",w.labelStyle.replace("color:","fill:"));const k=t.split(G.lineBreakRegex);for(const T of k){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=T,m.appendChild(v)}s=m}let b=0,o="";switch(l.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}r.setNode(l.id,{labelStyle:w.labelStyle,shape:o,labelText:t,labelType:l.labelType,rx:b,ry:b,class:g,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:d.db.getTooltip(l.id)||"",domId:d.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:C().flowchart.padding}),y.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:w.style,id:l.id,domId:d.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:C().flowchart.padding})})},P=function(e,r,c){y.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}e.forEach(function(n){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,y.info("abc78 new entry",p,i[p])):(i[p]++,y.info("abc78 new entry",p,i[p]));let l=p+"-"+i[p];y.info("abc78 new link id to be used is",p,l,i[p]);const g="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=$(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=$(e.defaultInterpolate,E):t.curve=$(z.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=n.text.replace(G.lineBreakRegex,` +import{G as q}from"./layout-or5_ZLqg.js";import{a4 as D,a5 as F,a6 as M,a7 as R,a8 as U,a9 as j,aa as W,X as N,l as y,F as X,c as C,j as G,V as $,W as E,h as _,u as H,U as J,ab as K}from"./mermaid.core-YsxFu0Y0.js";import{r as Q}from"./index-67a42d7d-z0cWI9_8.js";function Y(e){return typeof e=="string"?new D([document.querySelectorAll(e)],[document.documentElement]):new D([M(e)],F)}const Z=(e,r)=>R.lang.round(U.parse(e)[r]),O=Z;function be(e,r){return!!e.children(r).length}function fe(e){return L(e.v)+":"+L(e.w)+":"+L(e.name)}var ee=/:/g;function L(e){return e?String(e).replace(ee,"\\:"):""}function te(e,r){r&&e.attr("style",r)}function ue(e,r,c){r&&e.attr("class",r).attr("class",c+" "+e.attr("class"))}function we(e,r){var c=r.graph();if(j(c)){var a=c.transition;if(W(a))return a(e)}return e}function le(e,r){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=r.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}te(a,r.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const z={},re=function(e){const r=Object.keys(e);for(const c of r)z[c]=e[c]},V=function(e,r,c,a,i,d){const u=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const l=e[p];let g="default";l.classes.length>0&&(g=l.classes.join(" ")),g=g+" flowchart-label";const w=N(l.styles);let t=l.text!==void 0?l.text:l.id,s;if(y.info("vertex",l,l.labelType),l.labelType==="markdown")y.info("vertex",l,l.labelType);else if(X(C().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};s=le(u,m).node(),s.parentNode.removeChild(s)}else{const m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",w.labelStyle.replace("color:","fill:"));const k=t.split(G.lineBreakRegex);for(const T of k){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=T,m.appendChild(v)}s=m}let b=0,o="";switch(l.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}r.setNode(l.id,{labelStyle:w.labelStyle,shape:o,labelText:t,labelType:l.labelType,rx:b,ry:b,class:g,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:d.db.getTooltip(l.id)||"",domId:d.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:C().flowchart.padding}),y.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:w.style,id:l.id,domId:d.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:C().flowchart.padding})})},P=function(e,r,c){y.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}e.forEach(function(n){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,y.info("abc78 new entry",p,i[p])):(i[p]++,y.info("abc78 new entry",p,i[p]));let l=p+"-"+i[p];y.info("abc78 new link id to be used is",p,l,i[p]);const g="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=$(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=$(e.defaultInterpolate,E):t.curve=$(z.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=n.text.replace(G.lineBreakRegex,` `),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=l,t.classes="flowchart-link "+g+" "+w,r.setEdge(n.start,n.end,t,a)})},ae=function(e,r){return r.db.getClasses()},oe=async function(e,r,c,a){y.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=C(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let l;d==="sandbox"&&(l=_("#i"+r));const g=d==="sandbox"?_(l.nodes()[0].contentDocument.body):_("body"),w=d==="sandbox"?l.nodes()[0].contentDocument:document,t=new q({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();y.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],y.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),m=a.db.getEdges();y.info("Edges",m);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Y("cluster").append("text");for(let f=0;f{const c=O,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return K(a,i,d,r)},se=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; diff --git a/assets/styles-bbc3fe3b-gfxx_Tsk.js b/assets/styles-bbc3fe3b-IoBkQh0A.js similarity index 99% rename from assets/styles-bbc3fe3b-gfxx_Tsk.js rename to assets/styles-bbc3fe3b-IoBkQh0A.js index 91367d0d5a..b8f1c86f39 100644 --- a/assets/styles-bbc3fe3b-gfxx_Tsk.js +++ b/assets/styles-bbc3fe3b-IoBkQh0A.js @@ -1,4 +1,4 @@ -import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,o as Xt,p as Kt,l as D,j as ot,q as Wt,Y as Jt}from"./mermaid.core-uOCfdc17.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`: +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,o as Xt,p as Kt,l as D,j as ot,q as Wt,Y as Jt}from"./mermaid.core-YsxFu0Y0.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`: `+S.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(v+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,v=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,v,A.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/assets/svgDrawCommon-ad5ef572-ZpVsMh3H.js b/assets/svgDrawCommon-ad5ef572-6JSuLc9B.js similarity index 95% rename from assets/svgDrawCommon-ad5ef572-ZpVsMh3H.js rename to assets/svgDrawCommon-ad5ef572-6JSuLc9B.js index f9386f613e..4e3d89223b 100644 --- a/assets/svgDrawCommon-ad5ef572-ZpVsMh3H.js +++ b/assets/svgDrawCommon-ad5ef572-6JSuLc9B.js @@ -1 +1 @@ -import{D as o,m as i}from"./mermaid.core-uOCfdc17.js";const c=(s,t)=>{const r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const e in t.attrs)r.attr(e,t.attrs[e]);return t.class!==void 0&&r.attr("class",t.class),r},x=(s,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(s,r).lower()},d=(s,t)=>{const r=t.text.replace(o," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class!==void 0&&e.attr("class",t.class);const n=e.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),e},h=(s,t,r,e)=>{const n=s.append("image");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",a)},y=(s,t,r,e)=>{const n=s.append("use");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),p=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,c as d,p as e,d as f,g}; +import{D as o,m as i}from"./mermaid.core-YsxFu0Y0.js";const c=(s,t)=>{const r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const e in t.attrs)r.attr(e,t.attrs[e]);return t.class!==void 0&&r.attr("class",t.class),r},x=(s,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(s,r).lower()},d=(s,t)=>{const r=t.text.replace(o," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class!==void 0&&e.attr("class",t.class);const n=e.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),e},h=(s,t,r,e)=>{const n=s.append("image");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",a)},y=(s,t,r,e)=>{const n=s.append("use");n.attr("x",t),n.attr("y",r);const a=i.sanitizeUrl(e);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),p=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,c as d,p as e,d as f,g}; diff --git a/assets/timeline-definition-732a2638-5RBH9ibF.js b/assets/timeline-definition-732a2638-Duw5fbqt.js similarity index 98% rename from assets/timeline-definition-732a2638-5RBH9ibF.js rename to assets/timeline-definition-732a2638-Duw5fbqt.js index b1c730ac87..d440e44084 100644 --- a/assets/timeline-definition-732a2638-5RBH9ibF.js +++ b/assets/timeline-definition-732a2638-Duw5fbqt.js @@ -1,4 +1,4 @@ -import{_ as ft,q as gt,c as mt,l as E,h as G,U as xt,$ as _t,a0 as bt,a1 as kt}from"./mermaid.core-uOCfdc17.js";import"./LinkCard-aLl-jjA_.js";import{a as D}from"./arc-suLvkwOy.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./path-aUcfwwLI.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: +import{_ as ft,q as gt,c as mt,l as E,h as G,U as xt,$ as _t,a0 as bt,a1 as kt}from"./mermaid.core-YsxFu0Y0.js";import"./LinkCard-gCgkDO82.js";import{a as D}from"./arc-l0axwUh0.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./path-aUcfwwLI.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),l.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:l[l.length-(N||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(N||1)].first_column,last_column:l[l.length-1].last_column},P&&(R._$.range=[l[l.length-(N||1)].range[0],l[l.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,l].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),l=l.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),l.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/assets/utils-C0Upvd9p.js b/assets/utils-DGmE6P1M.js similarity index 93% rename from assets/utils-C0Upvd9p.js rename to assets/utils-DGmE6P1M.js index 15319ed8d0..a958546b61 100644 --- a/assets/utils-C0Upvd9p.js +++ b/assets/utils-DGmE6P1M.js @@ -1,7 +1,7 @@ -import{r as u,j as l,_ as k,c as pe,g as je}from"./index-Qg-bAq5J.js";import{o as W,i as Ae,$ as Ye,h as ke,D as Le,j as Te,l as Ne,e as v,c as S,m as Fe}from"./LinkCard-aLl-jjA_.js";import{a as p,e as se,u as ae,s as Ee,g as $e,j as Oe}from"./Divider-ZvsSiSkZ.js";import{c as Re}from"./Gallery-lvvI9ksR.js";import{A as ye}from"./Collapse-gGRmuqb3.js";import{m as L,d as Ie,b as He}from"./spring-hZ91AlwC.js";import{d as T,b as Be}from"./Markdown-xk31dQ-T.js";import{c as N}from"./helper-Oi49T1hx.js";import{d as qe}from"./customParseFormat-q3ZbyGZe.js";var he=Symbol.for("immer-nothing"),ce=Symbol.for("immer-draftable"),f=Symbol.for("immer-state");function _(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var P=Object.getPrototypeOf;function D(e){return!!e&&!!e[f]}function g(e){var t;return e?ge(e)||Array.isArray(e)||!!e[ce]||!!((t=e.constructor)!=null&&t[ce])||E(e)||$(e):!1}var Ge=Object.prototype.constructor.toString();function ge(e){if(!e||typeof e!="object")return!1;const t=P(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Ge}function z(e,t){F(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function F(e){const t=e[f];return t?t.type_:Array.isArray(e)?1:E(e)?2:$(e)?3:0}function V(e,t){return F(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xe(e,t,r){const n=F(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ue(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function E(e){return e instanceof Map}function $(e){return e instanceof Set}function h(e){return e.copy_||e.base_}function Q(e,t){if(E(e))return new Map(e);if($(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&ge(e))return P(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[f];let n=Reflect.ownKeys(r);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Ke),Object.freeze(e),t&&z(e,(r,n)=>te(n,!0))),e}function Ke(){_(2)}function O(e){return Object.isFrozen(e)}var We={};function x(e){const t=We[e];return t||_(0,e),t}var C;function be(){return C}function Ve(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function le(e,t){t&&(x("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function X(e){Z(e),e.drafts_.forEach(Qe),e.drafts_=null}function Z(e){e===C&&(C=e.parent_)}function ue(e){return C=Ve(C,e)}function Qe(e){const t=e[f];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function de(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[f].modified_&&(X(t),_(4)),g(e)&&(e=A(t,e),t.parent_||Y(t,e)),t.patches_&&x("Patches").generateReplacementPatches_(r[f].base_,e,t.patches_,t.inversePatches_)):e=A(t,r,[]),X(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==he?e:void 0}function A(e,t,r){if(O(t))return t;const n=t[f];if(!n)return z(t,(o,s)=>fe(e,n,t,o,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Y(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let s=o,i=!1;n.type_===3&&(s=new Set(o),o.clear(),i=!0),z(s,(a,c)=>fe(e,n,o,a,c,r,i)),Y(e,o,!1),r&&e.patches_&&x("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fe(e,t,r,n,o,s,i){if(D(o)){const a=s&&t&&t.type_!==3&&!V(t.assigned_,n)?s.concat(n):void 0,c=A(e,o,a);if(xe(r,n,c),D(c))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(g(o)&&!O(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;A(e,o),(!t||!t.scope_.parent_)&&Y(e,o)}}function Y(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&te(t,r)}function Xe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:be(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,s=re;r&&(o=[n],s=j);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return n.draft_=a,n.revoke_=i,a}var re={get(e,t){if(t===f)return e;const r=h(e);if(!V(r,t))return Ze(e,r,t);const n=r[t];return e.finalized_||!g(n)?n:n===G(e.base_,t)?(U(e),e.copy_[t]=ee(n,e)):n},has(e,t){return t in h(e)},ownKeys(e){return Reflect.ownKeys(h(e))},set(e,t,r){const n=Me(h(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=G(h(e),t),s=o==null?void 0:o[f];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ue(r,o)&&(r!==void 0||V(e.base_,t)))return!0;U(e),J(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return G(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,U(e),J(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=h(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){_(11)},getPrototypeOf(e){return P(e.base_)},setPrototypeOf(){_(12)}},j={};z(re,(e,t)=>{j[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});j.deleteProperty=function(e,t){return j.set.call(this,e,t,void 0)};j.set=function(e,t,r){return re.set.call(this,e[0],t,r,e[0])};function G(e,t){const r=e[f];return(r?h(r):e)[t]}function Ze(e,t,r){var o;const n=Me(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Me(e,t){if(!(t in e))return;let r=P(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=P(r)}}function J(e){e.modified_||(e.modified_=!0,e.parent_&&J(e.parent_))}function U(e){e.copy_||(e.copy_=Q(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Je=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const s=r;r=t;const i=this;return function(c=s,...d){return i.produce(c,b=>r.call(this,b,...d))}}typeof r!="function"&&_(6),n!==void 0&&typeof n!="function"&&_(7);let o;if(g(t)){const s=ue(this),i=ee(t,void 0);let a=!0;try{o=r(i),a=!1}finally{a?X(s):Z(s)}return le(s,n),de(o,s)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===he&&(o=void 0),this.autoFreeze_&&te(o,!0),n){const s=[],i=[];x("Patches").generateReplacementPatches_(t,o,s,i),n(s,i)}return o}else _(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,c=>t(c,...a));let n,o;return[this.produce(t,r,(i,a)=>{n=i,o=a}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){g(e)||_(8),D(e)&&(e=et(e));const t=ue(this),r=ee(e,void 0);return r[f].isManual_=!0,Z(t),r}finishDraft(e,t){const r=e&&e[f];(!r||!r.isManual_)&&_(9);const{scope_:n}=r;return le(n,t),de(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=x("Patches").applyPatches_;return D(e)?n(e,t):this.produce(e,o=>n(o,t))}};function ee(e,t){const r=E(e)?x("MapSet").proxyMap_(e,t):$(e)?x("MapSet").proxySet_(e,t):Xe(e,t);return(t?t.scope_:be()).drafts_.push(r),r}function et(e){return D(e)||_(10,e),Pe(e)}function Pe(e){if(!g(e)||O(e))return e;const t=e[f];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Q(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Q(e,!0);return z(r,(n,o)=>{xe(r,n,Pe(o))}),t&&(t.finalized_=!1),r}var m=new Je,tt=m.produce;m.produceWithPatches.bind(m);m.setAutoFreeze.bind(m);m.setUseStrictShallowCopy.bind(m);m.applyPatches.bind(m);m.createDraft.bind(m);m.finishDraft.bind(m);let rt=Object.freeze([]),nt=e=>{let t=u.useRef(!1);!t.current&&(t.current=!0,e==null||e())},De=()=>{var e;let t=u.createContext(null),r=p(null),n=u.memo(o=>{var s;let{data:i,children:a}=o,c=(s=u.useContext(t))!==null&&s!==void 0?s:r,d=se(c);return nt(()=>{d(i)}),u.useEffect(()=>{d(i)},[i]),u.useEffect(()=>(d(i),()=>{d(null)}),[]),a});return n.displayName="ModelDataProvider",{ModelDataAtomProvider:o=>{let{children:s,overrideAtom:i}=o;return l.jsx(t.Provider,{value:i??r,children:s})},ModelDataProvider:n,useModelDataSelector:(o,s)=>{var i;let a=(i=u.useContext(t))!==null&&i!==void 0?i:r,c=u.useCallback(d=>d?o(d):null,s||rt);return ae(Ee(a,c))},useSetModelData:()=>se((e=u.useContext(t))!==null&&e!==void 0?e:r),useGetModelData:()=>{var o;let s=(o=u.useContext(t))!==null&&o!==void 0?o:r,i=$e();return()=>i.get(s)},useModelData:()=>{var o;return ae((o=u.useContext(t))!==null&&o!==void 0?o:r)},setGlobalModelData:o=>{let s=W();s.set(r,tt(s.get(r),o))},getGlobalModelData:()=>W().get(r),ModelDataAtomContext:t}},me=W();me.get,me.set;function Lt(e){return l.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:l.jsx("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z"})})}const ve=p(""),we=p("");p("");p(!0);p(e=>{const t=e(ve),r=e(we);return t!==""&&r!==""});p(e=>{const t=e(ve),r=e(we);return t!==""&&r!==""});const ot=u.createContext(!1),Tt=e=>{const[t,r]=u.useState(!1),n=u.useRef(null);return u.useEffect(()=>{if(!n.current)return;const o=n.current;return o.oncopy=s=>{Ae()||(s.preventDefault(),r(!0))},()=>{o.oncopy=null}},[]),u.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(o)}}},[t]),l.jsxs(ot.Provider,{value:!0,children:[l.jsx("div",{ref:n,children:e.children}),l.jsx(Ye,{open:!0,children:l.jsx(ye,{children:t&&l.jsxs(ke,{children:[l.jsx(Le,{}),l.jsx(Te,{asChild:!0,children:l.jsxs(L.div,{className:"fixed inset-0 z-[11] flex flex-col gap-4 center",exit:{opacity:0},onClick:()=>{r(!1)},children:[l.jsx("div",{className:"pointer-events-none mt-0 text-3xl font-medium text-red-400 dark:text-orange-500",children:"注意:"}),l.jsx("div",{className:"pointer-events-none my-3 text-lg text-neutral-900 text-opacity-80 dark:text-zinc-100",children:l.jsx("p",{children:"本文章为站长原创,保留版权所有,禁止复制。"})})]})})]})})})]})};T(()=>k(()=>import("./CommentRoot-Sjs_Ns2-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.CommentAreaRoot));T(()=>k(()=>import("./Comments-o-HIrYe0.js").then(e=>e.q),__vite__mapDeps([12,1,2,13,7,8,9,5,6,10,11,14,15,16,17,18,19,20,21,22]),import.meta.url).then(e=>e.Comments));const Nt=T(()=>k(()=>import("./index-gtcHzGbV.js"),__vite__mapDeps([25,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.CommentBoxRoot));var it={exports:{}};(function(e,t){(function(r,n){e.exports=n(Ne)})(pe,function(r){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,a){return a==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,a){var c=100*i+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(s,null,!0),s})})(it);var Se={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,o,s){var i=o.prototype,a=i.format;s.en.formats=r,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,b=function(H,w){return H.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(oe,B,M){var q=M&&M.toUpperCase();return B||w[M]||r[M]||w[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ie,ze,Ce){return ze||Ce.slice(1)})})}(c,d===void 0?{}:d);return a.call(this,b)}}})})(Se);var st=Se.exports;const at=je(st);v.extend(qe);v.extend(at);v.locale("zh-cn");const ct=(e,t)=>v(e).format(t),K=(e,t=new Date)=>{if(!e)return"";e=new Date(e);const r=60*1e3,n=r*60,o=n*24,s=o*30,i=o*365,a=+t-+e;if(ae,lt={root:()=>R({queryKey:["aggregation"],queryFn:async()=>S.aggregate.getAggregateData("shiro").then(e=>e.$serialized),gcTime:1e3*60*10,meta:{forceHydration:!0},staleTime:Re?1e3*60*10:void 0})};var I=(e=>(e.Home="",e.Posts="/posts",e.Post="/posts/",e.Notes="/notes",e.Note="/notes/",e.NoteTopics="/notes/topics",e.NoteTopic="/notes/topics/",e.Timelime="/timeline",e.Login="/login",e.Page="/",e.Categories="/categories",e.Category="/categories/",e.Projects="/projects",e.Project="/projects/",e.Says="/says",e.Friends="/friends",e.Thinking="/thinking",e.PageDeletd="/common/deleted",e))(I||{});function ne(e,t){let r=e;switch(e){case"/notes/":{r+=t.id,t.password&&(r+=`?password=${t.password}`);break}case"/posts/":{const n=t;r+=`${n.category}/${n.slug}`;break}case"/posts":{const n=t;r+=`?${new URLSearchParams(n).toString()}`;break}case"/timeline":{const n=t;r+=`?${new URLSearchParams(n).toString()}`;break}case"/notes/topics/":case"/categories/":case"/":{r+=t.slug;break}case"":{r="/";break}case"/projects/":{r+=t.id;break}}return r}const ut="latest",dt={byNid:(e,t)=>R({queryKey:["note",e],meta:{hydrationRoutePath:ne(I.Note,{id:e}),shouldHydration:r=>{const n=r==null?void 0:r.data;return!(n!=null&&n.secret?v(n==null?void 0:n.secret).isAfter(new Date):!1)}},queryFn:async({queryKey:r})=>{const[,n]=r;return n===ut?(await S.note.getLatest()).$serialized:{...await S.note.getNoteById(+r[1],t)}}})},ft={bySlug:e=>R({queryKey:["page",e],meta:{hydrationRoutePath:ne(I.Page,{slug:e})},queryFn:async({queryKey:t})=>{const[,r]=t;return(await S.page.getBySlug(r)).$serialized}})},mt={bySlug:(e,t)=>R({queryKey:["post",e,t],meta:{hydrationRoutePath:ne(I.Post,{category:e,slug:t})},queryFn:async({queryKey:r})=>{const[,n,o]=r;return(await S.post.getPost(n,o)).$serialized}})},Ft={aggregation:lt,note:dt,post:mt,page:ft},{ModelDataProvider:Et,ModelDataAtomProvider:$t,getGlobalModelData:Ot,setGlobalModelData:Rt,useModelDataSelector:It,useSetModelData:Ht}=De(),Bt=({children:e,className:t,as:r="main"})=>l.jsx(r,{className:N("relative bg-slate-50 dark:bg-zinc-900 md:col-start-1 lg:col-auto","-m-4 p-[2rem_1rem] md:m-0 lg:p-[30px_45px]","rounded-[0_6px_6px_0] border-zinc-200/70 shadow-sm dark:border-neutral-800 dark:shadow-[#333] lg:border","note-layout-main","min-w-0","print:!border-none print:!bg-transparent print:!shadow-none",t),children:e});function _t(e,t){const[r,n]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}const qt=e=>{const{children:t}=e,r=_t(t,300);return l.jsx(ye,{mode:"popLayout",initial:!1,children:l.jsx(L.span,{initial:{opacity:0,y:-16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16,position:"absolute"},transition:Ie,children:r},r)})};function pt(e=""){var t;return new URL(e,(t=Fe())==null?void 0:t.url.webUrl)}function yt(e){return y(e.title)&&y(e.slug)&&!y(e.order)}function ht(e){return y(e.title)&&y(e.slug)&&y(e.order)}function gt(e){return y(e.title)&&y(e.nid)}function xt(e){return yt(e)?e.category?`/posts/${e.category.slug}/${encodeURIComponent(e.slug)}`:(console.error("PostModel.category is missing!!!!!"),"#"):ht(e)?`/${e.slug}`:gt(e)?`/notes/${e.nid}`:"/"}function y(e){return e!=null}pt.build=xt;p({x:0,y:0});p(!1);T(()=>k(()=>import("./index-ZzDqB3uo.js"),__vite__mapDeps([26,1,2]),import.meta.url).then(e=>e.QRCodeSVG));const bt=e=>{const{onKeyDown:t,onCompositionStart:r,onCompositionEnd:n}=e,o=u.useRef(!1),s=u.useCallback(c=>{o.current=!0,r==null||r(c)},[r]),i=u.useCallback(c=>{o.current=!1,n==null||n(c)},[n]),a=u.useCallback(c=>{if(t==null||t(c),o.current){c.stopPropagation();return}},[t]);return{onCompositionEnd:i,onCompositionStart:s,onKeyDown:a}},Mt=u.forwardRef(({className:e,...t},r)=>{const n=bt(t);return l.jsx("input",{ref:r,className:N("min-w-0 flex-auto appearance-none rounded-lg border ring-accent/20 duration-200 sm:text-sm","bg-base-100 px-3 py-[calc(theme(spacing.2)-1px)] placeholder:text-zinc-400 focus:outline-none focus:ring-2","border-zinc-900/10 dark:border-zinc-700","focus:border-accent-focus dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500",t.type==="password"?"font-mono":"font-[system-ui]",e),...t,...n})});Mt.displayName="Input";const Pt=p(!1),Dt=()=>Oe.get(Pt),Gt=e=>{const{from:t,to:r,initial:n,preset:o}=e,s=a=>{const{timeout:c={},duration:d=.5,animation:b={},as:H="div",delay:w=0,lcpOptimization:oe=!1,...B}=a,{enter:M=w,exit:q=w}=c,ie=L[H];return l.jsx(ie,{initial:u.useMemo(()=>oe?Dt()?n||t:!0:n||t,[]),animate:{...r,transition:{duration:d,...o||He,...b.enter,delay:M/1e3}},exit:{...t,transition:{duration:d,...b.exit,delay:q/1e3}},transition:{duration:d},...B,children:a.children})},i=u.memo(s);return i.displayName="MemoedTransitionView",i},Ut=e=>{const[t,r]=u.useState(K(e.date)),{displayAbsoluteTimeAfterDay:n=29}=e;return u.useEffect(()=>{r(K(e.date));let o=setInterval(()=>{r(K(e.date))},1e3);return Math.abs(v(e.date).diff(new Date,"d"))>n&&(o=clearInterval(o),r(ct(e.date,"YY 年 M 月 D 日"))),()=>{o=clearInterval(o)}},[e.date,n]),l.jsx(l.Fragment,{children:t})},{ModelDataProvider:Kt,ModelDataAtomProvider:Wt,getGlobalModelData:Vt,setGlobalModelData:Qt,useModelDataSelector:Xt}=De(),_e=({children:e,className:t,duration:r=.6})=>{const n=u.useRef(null),[o,s]=u.useState("auto");return u.useEffect(()=>{if(n.current){const i=new ResizeObserver(a=>{const c=a[0].contentRect.height;s(c)});return i.observe(n.current),()=>{i.disconnect()}}},[]),l.jsx(L.div,{className:N("overflow-hidden",t),style:{height:o},initial:!1,animate:{height:o},transition:{duration:r},children:l.jsx("div",{ref:n,children:e})})},Zt=e=>{const{cid:t}=e,{data:r,isLoading:n,error:o}=Be({queryKey:["getSummary",t],queryFn:async({queryKey:i})=>{const[,a]=i,c=await fetch(`/api/xlog/summary?cid=${a}`,{next:{revalidate:60*10}}).then(d=>d.json());if(!c)throw new Error("请求错误");if(!c.data)throw new Error("内容暂时无法获取");return c},enabled:!!t,staleTime:1e3*60*60*24*7,retryDelay:5e3});let s=l.jsxs("div",{className:N("space-y-2 rounded-xl border border-slate-200 p-4 dark:border-neutral-800",e.className),children:[l.jsxs("div",{className:"flex items-center",children:[l.jsx("i",{className:"icon-[mingcute--sparkles-line] mr-2 text-lg"}),"AI 生成的摘要"]}),l.jsxs(_e,{duration:.3,children:[l.jsx("div",{className:"text-base-content/85 !m-0 text-sm leading-loose",children:n?l.jsxs("div",{className:"space-y-2",children:[l.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"}),l.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"}),l.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"})]}):r==null?void 0:r.data}),n&&l.jsxs("p",{className:"border-slate-200 text-right text-sm dark:border-slate-800 ",children:["(此服务由"," ",l.jsx("a",{href:"https://xlog.app",target:"_blank",rel:"noreferrer",children:"xLog"})," ","驱动)"]})]})]});return(!t||o)&&(s=null),l.jsx(_e,{duration:.2,className:"mt-4 print:hidden",children:s})},Jt=e=>{var t,r;return(r=(t=e==null?void 0:e.meta)==null?void 0:t.xLog)==null?void 0:r.cid};export{_e as A,Tt as B,Nt as C,Mt as I,Lt as M,qt as N,Bt as P,I as R,Zt as X,Ut as a,Wt as b,Gt as c,Kt as d,It as e,ct as f,Jt as g,$t as h,Et as i,bt as j,pt as k,tt as p,Ft as q,ne as r,Xt as u}; +import{r as u,j as l,_ as k,c as pe,g as je}from"./index-HRfeE_7B.js";import{o as W,i as Ae,$ as Ye,h as ke,D as Le,j as Te,l as Ne,e as v,c as S,m as Fe}from"./LinkCard-gCgkDO82.js";import{a as p,e as se,u as ae,s as Ee,g as $e,j as Oe}from"./Divider-sIhvLlX0.js";import{c as Re}from"./Gallery-32-V3LXo.js";import{A as ye}from"./Collapse-JZfrBou4.js";import{m as L,d as Ie,b as He}from"./spring-0AHu48BV.js";import{d as T,b as Be}from"./Markdown-tpcPSstc.js";import{c as N}from"./helper-Oi49T1hx.js";import{d as qe}from"./customParseFormat-ePfR8DqR.js";var he=Symbol.for("immer-nothing"),ce=Symbol.for("immer-draftable"),f=Symbol.for("immer-state");function _(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var P=Object.getPrototypeOf;function D(e){return!!e&&!!e[f]}function g(e){var t;return e?ge(e)||Array.isArray(e)||!!e[ce]||!!((t=e.constructor)!=null&&t[ce])||E(e)||$(e):!1}var Ge=Object.prototype.constructor.toString();function ge(e){if(!e||typeof e!="object")return!1;const t=P(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Ge}function z(e,t){F(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function F(e){const t=e[f];return t?t.type_:Array.isArray(e)?1:E(e)?2:$(e)?3:0}function V(e,t){return F(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xe(e,t,r){const n=F(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ue(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function E(e){return e instanceof Map}function $(e){return e instanceof Set}function h(e){return e.copy_||e.base_}function Q(e,t){if(E(e))return new Map(e);if($(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&ge(e))return P(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[f];let n=Reflect.ownKeys(r);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Ke),Object.freeze(e),t&&z(e,(r,n)=>te(n,!0))),e}function Ke(){_(2)}function O(e){return Object.isFrozen(e)}var We={};function x(e){const t=We[e];return t||_(0,e),t}var C;function be(){return C}function Ve(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function le(e,t){t&&(x("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function X(e){Z(e),e.drafts_.forEach(Qe),e.drafts_=null}function Z(e){e===C&&(C=e.parent_)}function ue(e){return C=Ve(C,e)}function Qe(e){const t=e[f];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function de(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[f].modified_&&(X(t),_(4)),g(e)&&(e=A(t,e),t.parent_||Y(t,e)),t.patches_&&x("Patches").generateReplacementPatches_(r[f].base_,e,t.patches_,t.inversePatches_)):e=A(t,r,[]),X(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==he?e:void 0}function A(e,t,r){if(O(t))return t;const n=t[f];if(!n)return z(t,(o,s)=>fe(e,n,t,o,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Y(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let s=o,i=!1;n.type_===3&&(s=new Set(o),o.clear(),i=!0),z(s,(a,c)=>fe(e,n,o,a,c,r,i)),Y(e,o,!1),r&&e.patches_&&x("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fe(e,t,r,n,o,s,i){if(D(o)){const a=s&&t&&t.type_!==3&&!V(t.assigned_,n)?s.concat(n):void 0,c=A(e,o,a);if(xe(r,n,c),D(c))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(g(o)&&!O(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;A(e,o),(!t||!t.scope_.parent_)&&Y(e,o)}}function Y(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&te(t,r)}function Xe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:be(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,s=re;r&&(o=[n],s=j);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return n.draft_=a,n.revoke_=i,a}var re={get(e,t){if(t===f)return e;const r=h(e);if(!V(r,t))return Ze(e,r,t);const n=r[t];return e.finalized_||!g(n)?n:n===G(e.base_,t)?(U(e),e.copy_[t]=ee(n,e)):n},has(e,t){return t in h(e)},ownKeys(e){return Reflect.ownKeys(h(e))},set(e,t,r){const n=Me(h(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=G(h(e),t),s=o==null?void 0:o[f];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ue(r,o)&&(r!==void 0||V(e.base_,t)))return!0;U(e),J(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return G(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,U(e),J(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=h(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){_(11)},getPrototypeOf(e){return P(e.base_)},setPrototypeOf(){_(12)}},j={};z(re,(e,t)=>{j[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});j.deleteProperty=function(e,t){return j.set.call(this,e,t,void 0)};j.set=function(e,t,r){return re.set.call(this,e[0],t,r,e[0])};function G(e,t){const r=e[f];return(r?h(r):e)[t]}function Ze(e,t,r){var o;const n=Me(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Me(e,t){if(!(t in e))return;let r=P(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=P(r)}}function J(e){e.modified_||(e.modified_=!0,e.parent_&&J(e.parent_))}function U(e){e.copy_||(e.copy_=Q(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Je=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const s=r;r=t;const i=this;return function(c=s,...d){return i.produce(c,b=>r.call(this,b,...d))}}typeof r!="function"&&_(6),n!==void 0&&typeof n!="function"&&_(7);let o;if(g(t)){const s=ue(this),i=ee(t,void 0);let a=!0;try{o=r(i),a=!1}finally{a?X(s):Z(s)}return le(s,n),de(o,s)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===he&&(o=void 0),this.autoFreeze_&&te(o,!0),n){const s=[],i=[];x("Patches").generateReplacementPatches_(t,o,s,i),n(s,i)}return o}else _(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,c=>t(c,...a));let n,o;return[this.produce(t,r,(i,a)=>{n=i,o=a}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){g(e)||_(8),D(e)&&(e=et(e));const t=ue(this),r=ee(e,void 0);return r[f].isManual_=!0,Z(t),r}finishDraft(e,t){const r=e&&e[f];(!r||!r.isManual_)&&_(9);const{scope_:n}=r;return le(n,t),de(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=x("Patches").applyPatches_;return D(e)?n(e,t):this.produce(e,o=>n(o,t))}};function ee(e,t){const r=E(e)?x("MapSet").proxyMap_(e,t):$(e)?x("MapSet").proxySet_(e,t):Xe(e,t);return(t?t.scope_:be()).drafts_.push(r),r}function et(e){return D(e)||_(10,e),Pe(e)}function Pe(e){if(!g(e)||O(e))return e;const t=e[f];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Q(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Q(e,!0);return z(r,(n,o)=>{xe(r,n,Pe(o))}),t&&(t.finalized_=!1),r}var m=new Je,tt=m.produce;m.produceWithPatches.bind(m);m.setAutoFreeze.bind(m);m.setUseStrictShallowCopy.bind(m);m.applyPatches.bind(m);m.createDraft.bind(m);m.finishDraft.bind(m);let rt=Object.freeze([]),nt=e=>{let t=u.useRef(!1);!t.current&&(t.current=!0,e==null||e())},De=()=>{var e;let t=u.createContext(null),r=p(null),n=u.memo(o=>{var s;let{data:i,children:a}=o,c=(s=u.useContext(t))!==null&&s!==void 0?s:r,d=se(c);return nt(()=>{d(i)}),u.useEffect(()=>{d(i)},[i]),u.useEffect(()=>(d(i),()=>{d(null)}),[]),a});return n.displayName="ModelDataProvider",{ModelDataAtomProvider:o=>{let{children:s,overrideAtom:i}=o;return l.jsx(t.Provider,{value:i??r,children:s})},ModelDataProvider:n,useModelDataSelector:(o,s)=>{var i;let a=(i=u.useContext(t))!==null&&i!==void 0?i:r,c=u.useCallback(d=>d?o(d):null,s||rt);return ae(Ee(a,c))},useSetModelData:()=>se((e=u.useContext(t))!==null&&e!==void 0?e:r),useGetModelData:()=>{var o;let s=(o=u.useContext(t))!==null&&o!==void 0?o:r,i=$e();return()=>i.get(s)},useModelData:()=>{var o;return ae((o=u.useContext(t))!==null&&o!==void 0?o:r)},setGlobalModelData:o=>{let s=W();s.set(r,tt(s.get(r),o))},getGlobalModelData:()=>W().get(r),ModelDataAtomContext:t}},me=W();me.get,me.set;function Lt(e){return l.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:l.jsx("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z"})})}const ve=p(""),we=p("");p("");p(!0);p(e=>{const t=e(ve),r=e(we);return t!==""&&r!==""});p(e=>{const t=e(ve),r=e(we);return t!==""&&r!==""});const ot=u.createContext(!1),Tt=e=>{const[t,r]=u.useState(!1),n=u.useRef(null);return u.useEffect(()=>{if(!n.current)return;const o=n.current;return o.oncopy=s=>{Ae()||(s.preventDefault(),r(!0))},()=>{o.oncopy=null}},[]),u.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(o)}}},[t]),l.jsxs(ot.Provider,{value:!0,children:[l.jsx("div",{ref:n,children:e.children}),l.jsx(Ye,{open:!0,children:l.jsx(ye,{children:t&&l.jsxs(ke,{children:[l.jsx(Le,{}),l.jsx(Te,{asChild:!0,children:l.jsxs(L.div,{className:"fixed inset-0 z-[11] flex flex-col gap-4 center",exit:{opacity:0},onClick:()=>{r(!1)},children:[l.jsx("div",{className:"pointer-events-none mt-0 text-3xl font-medium text-red-400 dark:text-orange-500",children:"注意:"}),l.jsx("div",{className:"pointer-events-none my-3 text-lg text-neutral-900 text-opacity-80 dark:text-zinc-100",children:l.jsx("p",{children:"本文章为站长原创,保留版权所有,禁止复制。"})})]})})]})})})]})};T(()=>k(()=>import("./CommentRoot-wSPVoFqK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.CommentAreaRoot));T(()=>k(()=>import("./Comments-g86CJBuN.js").then(e=>e.q),__vite__mapDeps([12,1,2,13,7,8,9,5,6,10,11,14,15,16,17,18,19,20,21,22]),import.meta.url).then(e=>e.Comments));const Nt=T(()=>k(()=>import("./index-h07iLZP_.js"),__vite__mapDeps([25,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.CommentBoxRoot));var it={exports:{}};(function(e,t){(function(r,n){e.exports=n(Ne)})(pe,function(r){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,a){return a==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,a){var c=100*i+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(s,null,!0),s})})(it);var Se={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,o,s){var i=o.prototype,a=i.format;s.en.formats=r,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,b=function(H,w){return H.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(oe,B,M){var q=M&&M.toUpperCase();return B||w[M]||r[M]||w[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ie,ze,Ce){return ze||Ce.slice(1)})})}(c,d===void 0?{}:d);return a.call(this,b)}}})})(Se);var st=Se.exports;const at=je(st);v.extend(qe);v.extend(at);v.locale("zh-cn");const ct=(e,t)=>v(e).format(t),K=(e,t=new Date)=>{if(!e)return"";e=new Date(e);const r=60*1e3,n=r*60,o=n*24,s=o*30,i=o*365,a=+t-+e;if(ae,lt={root:()=>R({queryKey:["aggregation"],queryFn:async()=>S.aggregate.getAggregateData("shiro").then(e=>e.$serialized),gcTime:1e3*60*10,meta:{forceHydration:!0},staleTime:Re?1e3*60*10:void 0})};var I=(e=>(e.Home="",e.Posts="/posts",e.Post="/posts/",e.Notes="/notes",e.Note="/notes/",e.NoteTopics="/notes/topics",e.NoteTopic="/notes/topics/",e.Timelime="/timeline",e.Login="/login",e.Page="/",e.Categories="/categories",e.Category="/categories/",e.Projects="/projects",e.Project="/projects/",e.Says="/says",e.Friends="/friends",e.Thinking="/thinking",e.PageDeletd="/common/deleted",e))(I||{});function ne(e,t){let r=e;switch(e){case"/notes/":{r+=t.id,t.password&&(r+=`?password=${t.password}`);break}case"/posts/":{const n=t;r+=`${n.category}/${n.slug}`;break}case"/posts":{const n=t;r+=`?${new URLSearchParams(n).toString()}`;break}case"/timeline":{const n=t;r+=`?${new URLSearchParams(n).toString()}`;break}case"/notes/topics/":case"/categories/":case"/":{r+=t.slug;break}case"":{r="/";break}case"/projects/":{r+=t.id;break}}return r}const ut="latest",dt={byNid:(e,t)=>R({queryKey:["note",e],meta:{hydrationRoutePath:ne(I.Note,{id:e}),shouldHydration:r=>{const n=r==null?void 0:r.data;return!(n!=null&&n.secret?v(n==null?void 0:n.secret).isAfter(new Date):!1)}},queryFn:async({queryKey:r})=>{const[,n]=r;return n===ut?(await S.note.getLatest()).$serialized:{...await S.note.getNoteById(+r[1],t)}}})},ft={bySlug:e=>R({queryKey:["page",e],meta:{hydrationRoutePath:ne(I.Page,{slug:e})},queryFn:async({queryKey:t})=>{const[,r]=t;return(await S.page.getBySlug(r)).$serialized}})},mt={bySlug:(e,t)=>R({queryKey:["post",e,t],meta:{hydrationRoutePath:ne(I.Post,{category:e,slug:t})},queryFn:async({queryKey:r})=>{const[,n,o]=r;return(await S.post.getPost(n,o)).$serialized}})},Ft={aggregation:lt,note:dt,post:mt,page:ft},{ModelDataProvider:Et,ModelDataAtomProvider:$t,getGlobalModelData:Ot,setGlobalModelData:Rt,useModelDataSelector:It,useSetModelData:Ht}=De(),Bt=({children:e,className:t,as:r="main"})=>l.jsx(r,{className:N("relative bg-slate-50 dark:bg-zinc-900 md:col-start-1 lg:col-auto","-m-4 p-[2rem_1rem] md:m-0 lg:p-[30px_45px]","rounded-[0_6px_6px_0] border-zinc-200/70 shadow-sm dark:border-neutral-800 dark:shadow-[#333] lg:border","note-layout-main","min-w-0","print:!border-none print:!bg-transparent print:!shadow-none",t),children:e});function _t(e,t){const[r,n]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}const qt=e=>{const{children:t}=e,r=_t(t,300);return l.jsx(ye,{mode:"popLayout",initial:!1,children:l.jsx(L.span,{initial:{opacity:0,y:-16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16,position:"absolute"},transition:Ie,children:r},r)})};function pt(e=""){var t;return new URL(e,(t=Fe())==null?void 0:t.url.webUrl)}function yt(e){return y(e.title)&&y(e.slug)&&!y(e.order)}function ht(e){return y(e.title)&&y(e.slug)&&y(e.order)}function gt(e){return y(e.title)&&y(e.nid)}function xt(e){return yt(e)?e.category?`/posts/${e.category.slug}/${encodeURIComponent(e.slug)}`:(console.error("PostModel.category is missing!!!!!"),"#"):ht(e)?`/${e.slug}`:gt(e)?`/notes/${e.nid}`:"/"}function y(e){return e!=null}pt.build=xt;p({x:0,y:0});p(!1);T(()=>k(()=>import("./index-nkXcnT3N.js"),__vite__mapDeps([26,1,2]),import.meta.url).then(e=>e.QRCodeSVG));const bt=e=>{const{onKeyDown:t,onCompositionStart:r,onCompositionEnd:n}=e,o=u.useRef(!1),s=u.useCallback(c=>{o.current=!0,r==null||r(c)},[r]),i=u.useCallback(c=>{o.current=!1,n==null||n(c)},[n]),a=u.useCallback(c=>{if(t==null||t(c),o.current){c.stopPropagation();return}},[t]);return{onCompositionEnd:i,onCompositionStart:s,onKeyDown:a}},Mt=u.forwardRef(({className:e,...t},r)=>{const n=bt(t);return l.jsx("input",{ref:r,className:N("min-w-0 flex-auto appearance-none rounded-lg border ring-accent/20 duration-200 sm:text-sm","bg-base-100 px-3 py-[calc(theme(spacing.2)-1px)] placeholder:text-zinc-400 focus:outline-none focus:ring-2","border-zinc-900/10 dark:border-zinc-700","focus:border-accent-focus dark:bg-zinc-700/[0.15] dark:text-zinc-200 dark:placeholder:text-zinc-500",t.type==="password"?"font-mono":"font-[system-ui]",e),...t,...n})});Mt.displayName="Input";const Pt=p(!1),Dt=()=>Oe.get(Pt),Gt=e=>{const{from:t,to:r,initial:n,preset:o}=e,s=a=>{const{timeout:c={},duration:d=.5,animation:b={},as:H="div",delay:w=0,lcpOptimization:oe=!1,...B}=a,{enter:M=w,exit:q=w}=c,ie=L[H];return l.jsx(ie,{initial:u.useMemo(()=>oe?Dt()?n||t:!0:n||t,[]),animate:{...r,transition:{duration:d,...o||He,...b.enter,delay:M/1e3}},exit:{...t,transition:{duration:d,...b.exit,delay:q/1e3}},transition:{duration:d},...B,children:a.children})},i=u.memo(s);return i.displayName="MemoedTransitionView",i},Ut=e=>{const[t,r]=u.useState(K(e.date)),{displayAbsoluteTimeAfterDay:n=29}=e;return u.useEffect(()=>{r(K(e.date));let o=setInterval(()=>{r(K(e.date))},1e3);return Math.abs(v(e.date).diff(new Date,"d"))>n&&(o=clearInterval(o),r(ct(e.date,"YY 年 M 月 D 日"))),()=>{o=clearInterval(o)}},[e.date,n]),l.jsx(l.Fragment,{children:t})},{ModelDataProvider:Kt,ModelDataAtomProvider:Wt,getGlobalModelData:Vt,setGlobalModelData:Qt,useModelDataSelector:Xt}=De(),_e=({children:e,className:t,duration:r=.6})=>{const n=u.useRef(null),[o,s]=u.useState("auto");return u.useEffect(()=>{if(n.current){const i=new ResizeObserver(a=>{const c=a[0].contentRect.height;s(c)});return i.observe(n.current),()=>{i.disconnect()}}},[]),l.jsx(L.div,{className:N("overflow-hidden",t),style:{height:o},initial:!1,animate:{height:o},transition:{duration:r},children:l.jsx("div",{ref:n,children:e})})},Zt=e=>{const{cid:t}=e,{data:r,isLoading:n,error:o}=Be({queryKey:["getSummary",t],queryFn:async({queryKey:i})=>{const[,a]=i,c=await fetch(`/api/xlog/summary?cid=${a}`,{next:{revalidate:60*10}}).then(d=>d.json());if(!c)throw new Error("请求错误");if(!c.data)throw new Error("内容暂时无法获取");return c},enabled:!!t,staleTime:1e3*60*60*24*7,retryDelay:5e3});let s=l.jsxs("div",{className:N("space-y-2 rounded-xl border border-slate-200 p-4 dark:border-neutral-800",e.className),children:[l.jsxs("div",{className:"flex items-center",children:[l.jsx("i",{className:"icon-[mingcute--sparkles-line] mr-2 text-lg"}),"AI 生成的摘要"]}),l.jsxs(_e,{duration:.3,children:[l.jsx("div",{className:"text-base-content/85 !m-0 text-sm leading-loose",children:n?l.jsxs("div",{className:"space-y-2",children:[l.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"}),l.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"}),l.jsx("span",{className:"block h-5 w-full animate-pulse rounded-xl bg-zinc-200 dark:bg-neutral-800"})]}):r==null?void 0:r.data}),n&&l.jsxs("p",{className:"border-slate-200 text-right text-sm dark:border-slate-800 ",children:["(此服务由"," ",l.jsx("a",{href:"https://xlog.app",target:"_blank",rel:"noreferrer",children:"xLog"})," ","驱动)"]})]})]});return(!t||o)&&(s=null),l.jsx(_e,{duration:.2,className:"mt-4 print:hidden",children:s})},Jt=e=>{var t,r;return(r=(t=e==null?void 0:e.meta)==null?void 0:t.xLog)==null?void 0:r.cid};export{_e as A,Tt as B,Nt as C,Mt as I,Lt as M,qt as N,Bt as P,I as R,Zt as X,Ut as a,Wt as b,Gt as c,Kt as d,It as e,ct as f,Jt as g,$t as h,Et as i,bt as j,pt as k,tt as p,Ft as q,ne as r,Xt as u}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./CommentRoot-Sjs_Ns2-.js","./index-Qg-bAq5J.js","./index-rkaKEyS4.css","./Root-lR48gj-U.js","./index-_qoN1KWb.js","./LinkCard-aLl-jjA_.js","./Divider-ZvsSiSkZ.js","./helper-Oi49T1hx.js","./spring-hZ91AlwC.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Comments-o-HIrYe0.js","./Markdown-xk31dQ-T.js","./Collapse-gGRmuqb3.js","./Gallery-lvvI9ksR.js","./Gallery-cCMf-PmV.css","./RichLink-sK7aRcsj.js","./Markdown-nufn1r_q.css","./infiniteQueryBehavior-7TM6yZv8.js","./FlexText-AbEHEN8T.js","./PinIconToggle-vlWhC9Tj.js","./Comments-rnEXEs_g.css","./mutation-P8-Et3_d.js","./customParseFormat-q3ZbyGZe.js","./index-gtcHzGbV.js","./index-ZzDqB3uo.js"] + __vite__mapDeps.viteFileDeps = ["./CommentRoot-wSPVoFqK.js","./index-HRfeE_7B.js","./index-rkaKEyS4.css","./Root-_xDfetAB.js","./index-GZJTCUEG.js","./LinkCard-gCgkDO82.js","./Divider-sIhvLlX0.js","./helper-Oi49T1hx.js","./spring-0AHu48BV.js","./index-iAcAeRlm.js","./env-jTYMx4r5.js","./LinkCard-TdGDteo_.css","./Comments-g86CJBuN.js","./Markdown-tpcPSstc.js","./Collapse-JZfrBou4.js","./Gallery-32-V3LXo.js","./Gallery-cCMf-PmV.css","./RichLink-6jHOm4uG.js","./Markdown-nufn1r_q.css","./infiniteQueryBehavior-Ju3wkMyP.js","./FlexText-0MKUXZWJ.js","./PinIconToggle-EjPj0VvX.js","./Comments-rnEXEs_g.css","./mutation-qwHfn3Jw.js","./customParseFormat-ePfR8DqR.js","./index-h07iLZP_.js","./index-nkXcnT3N.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/xychartDiagram-f746c04c-MI7kdoOm.js b/assets/xychartDiagram-f746c04c-TcMXd8nC.js similarity index 98% rename from assets/xychartDiagram-f746c04c-MI7kdoOm.js rename to assets/xychartDiagram-f746c04c-TcMXd8nC.js index 29687710fa..e84f784d22 100644 --- a/assets/xychartDiagram-f746c04c-MI7kdoOm.js +++ b/assets/xychartDiagram-f746c04c-TcMXd8nC.js @@ -1,4 +1,4 @@ -import{x as zt,a2 as ot,a3 as wt,y as Ft,s as Nt,g as Xt,o as Yt,p as St,a as Ht,b as $t,q as Ut,l as Ct,v as qt,i as jt,d as Gt}from"./mermaid.core-uOCfdc17.js";import{a as Qt}from"./createText-aebacdfe-SYhAe-WO.js";import"./LinkCard-aLl-jjA_.js";import{i as Kt}from"./init-Hi12RPRh.js";import{o as Zt}from"./ordinal-wXG5obU4.js";import{l as pt}from"./linear-4Asi7RTq.js";import{l as ft}from"./line-MxgoxcWE.js";import"./index-Qg-bAq5J.js";import"./Divider-ZvsSiSkZ.js";import"./helper-Oi49T1hx.js";import"./spring-hZ91AlwC.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,E,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?E=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),E=F[W]&&F[W][D]),typeof E>"u"||!E.length||!E[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: +import{x as zt,a2 as ot,a3 as wt,y as Ft,s as Nt,g as Xt,o as Yt,p as St,a as Ht,b as $t,q as Ut,l as Ct,v as qt,i as jt,d as Gt}from"./mermaid.core-YsxFu0Y0.js";import{a as Qt}from"./createText-aebacdfe-H6z3pXul.js";import"./LinkCard-gCgkDO82.js";import{i as Kt}from"./init-Hi12RPRh.js";import{o as Zt}from"./ordinal-wXG5obU4.js";import{l as pt}from"./linear-iUXoRcso.js";import{l as ft}from"./line-aMz7DiQ_.js";import"./index-HRfeE_7B.js";import"./Divider-sIhvLlX0.js";import"./helper-Oi49T1hx.js";import"./spring-0AHu48BV.js";import"./index-iAcAeRlm.js";import"./env-jTYMx4r5.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,E,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?E=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),E=F[W]&&F[W][D]),typeof E>"u"||!E.length||!E[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(E[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(E[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[E[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,E[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[E[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/index.html b/index.html index 789b8715b0..9bc930abb5 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ React Components - +