most-box 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/out/admin/index.html +0 -0
- package/out/app/index.html +0 -0
- package/out/assets/{AppShell-CQhg6DJU.js → AppShell-OiOEqXPr.js} +1 -1
- package/out/assets/ChatUi-Cif5LRF3.js +1 -0
- package/out/assets/CopyButton-Dm7krgbq.js +1 -0
- package/out/assets/LanguageToggle-B4ZNuBCV.js +1 -0
- package/out/assets/LogoIcon-B2fFe0l1.js +1 -0
- package/out/assets/MarketingHeader-yIZuQP7m.js +1 -0
- package/out/assets/MarketingLayout-DVH0Nx7S.js +1 -0
- package/out/assets/{MarketingThemeToggle-DBaC9bjz.js → MarketingThemeToggle-qlwCZU1o.js} +1 -1
- package/out/assets/{MilkdownEditor-BqJzntYE.js → MilkdownEditor-_TGlDyA_.js} +1 -1
- package/out/assets/MoveModal-BVr4Q7-b.js +1 -0
- package/out/assets/Nav-5xeettNJ.js +1 -0
- package/out/assets/NoteSidebar-DpniUKmy.js +1 -0
- package/out/assets/OpenSidebarButton-BfgG2HIT.js +1 -0
- package/out/assets/PemBlock-CxwIepth.js +1 -0
- package/out/assets/SidebarAccount-Zg5DZblE.js +1 -0
- package/out/assets/arrow-right-CL9YSDVS.js +1 -0
- package/out/assets/channelApi-DNdJfsJ-.js +1 -0
- package/out/assets/chevron-down-CnLh_-aO.js +1 -0
- package/out/assets/{circle-alert-W0iyN4sC.js → circle-alert-oiiRDvhx.js} +1 -1
- package/out/assets/cloud-BEe2N89j.js +1 -0
- package/out/assets/code-9LB8QqxL.js +1 -0
- package/out/assets/{copy-C1MttOli.js → copy-giX4rmFJ.js} +1 -1
- package/out/assets/{download-y7SZXu6E.js → download-D0oMEYQZ.js} +1 -1
- package/out/assets/{downloadValidation-B0p9Ai_9.js → downloadValidation-Bk1VsBBo.js} +1 -1
- package/out/assets/external-link-Cm2WCUxv.js +1 -0
- package/out/assets/filePreview-BZ50vZZf.js +1 -0
- package/out/assets/game-Bvz4dspe.js +1 -0
- package/out/assets/{hard-drive-D13Qbobu.js → hard-drive-B3CQbcp2.js} +1 -1
- package/out/assets/index-BkZvz4WA.css +1 -0
- package/out/assets/index-WCK14Vja.js +34 -0
- package/out/assets/index.lazy-5Q6GuMNT.js +1 -0
- package/out/assets/index.lazy-5jq6EFXa.js +3 -0
- package/out/assets/index.lazy-7n1Q-NrA.js +3 -0
- package/out/assets/index.lazy-BFnOyQFj.js +1 -0
- package/out/assets/index.lazy-B_oPp6qK.js +1 -0
- package/out/assets/index.lazy-BvY50KVz.js +1 -0
- package/out/assets/index.lazy-C0Kn_amZ.js +1 -0
- package/out/assets/index.lazy-C3cek3Gn.js +1 -0
- package/out/assets/index.lazy-CLpPkdy1.js +1 -0
- package/out/assets/index.lazy-Cpr1kApf.js +2 -0
- package/out/assets/index.lazy-CuwLZiUK.js +1 -0
- package/out/assets/index.lazy-DDc3Ylgf.js +2 -0
- package/out/assets/index.lazy-Dg3aqOss.js +1 -0
- package/out/assets/{key-round-CZniN9lv.js → key-round-CzuljhND.js} +1 -1
- package/out/assets/{lock-D5OSNhep.js → lock-D2NhNoJW.js} +1 -1
- package/out/assets/message-square-DwBq_Go5.js +1 -0
- package/out/assets/mp-Bln2MB9G.js +1 -0
- package/out/assets/{music-CbUskKgg.js → music-CB73K5Gz.js} +1 -1
- package/out/assets/{notebook-pen-DqKDQ6MJ.js → notebook-pen-Up7r5zoI.js} +1 -1
- package/out/assets/play-OszVgROb.js +1 -0
- package/out/assets/plus-BbxQG_Ai.js +1 -0
- package/out/assets/{save-DkH1n_Ov.js → save-CiqyiifY.js} +1 -1
- package/out/assets/search-gqAPOsgS.js +1 -0
- package/out/assets/{send-Cl6NtD2T.js → send-vwCWsZGP.js} +1 -1
- package/out/assets/shield-check-CxWxsNLc.js +1 -0
- package/out/assets/{trash-2-BBjpgK_f.js → trash-2-DNGr8IgF.js} +1 -1
- package/out/assets/{triangle-alert-l98G8u9O.js → triangle-alert-B_1BlX1b.js} +1 -1
- package/out/assets/{upload-ByP6Ydde.js → upload-Dxl7GUzb.js} +1 -1
- package/out/assets/useChannelMessages-7bYKXU_R.js +3 -0
- package/out/assets/useGameRoom-DqA1mkfk.js +1 -0
- package/out/assets/wallet-DlkawdPJ.js +1 -0
- package/out/assets/{wifi-Bm4biAjc.js → wifi-sBOKcPFM.js} +1 -1
- package/out/avatars/default/LICENSE.md +7 -0
- package/out/avatars/default/dusk.svg +100 -0
- package/out/avatars/default/ember.svg +55 -0
- package/out/avatars/default/mint.svg +29 -0
- package/out/avatars/default/ocean.svg +25 -0
- package/out/avatars/default/sage.svg +34 -0
- package/out/avatars/default/violet.svg +60 -0
- package/out/chat/index.html +0 -0
- package/out/chat/join/index.html +0 -0
- package/out/demo/index.html +0 -0
- package/out/download/index.html +4 -3
- package/out/game/gandengyan/index.html +0 -0
- package/out/game/index.html +0 -0
- package/out/game/zhajinhua/index.html +0 -0
- package/out/index.html +4 -3
- package/out/note/index.html +0 -0
- package/out/ping/index.html +4 -3
- package/out/profile/index.html +0 -0
- package/out/web3/index.html +0 -0
- package/package.json +1 -1
- package/public/avatars/default/LICENSE.md +7 -0
- package/public/avatars/default/dusk.svg +100 -0
- package/public/avatars/default/ember.svg +55 -0
- package/public/avatars/default/mint.svg +29 -0
- package/public/avatars/default/ocean.svg +25 -0
- package/public/avatars/default/sage.svg +34 -0
- package/public/avatars/default/violet.svg +60 -0
- package/server/src/core/channelIdentity.js +2 -13
- package/server/src/http/app.js +1 -3
- package/server/src/index.js +286 -249
- package/server/src/utils/avatar.js +44 -3
- package/out/assets/ChatUi-BepWs-ZU.js +0 -1
- package/out/assets/LanguageToggle-CtzCCAYv.js +0 -1
- package/out/assets/LogoIcon-Dxto3Sb4.js +0 -1
- package/out/assets/MarketingLayout-BQw0IS2i.js +0 -1
- package/out/assets/MoveModal-4D9n11Kw.js +0 -1
- package/out/assets/Nav-9MDdvgNs.js +0 -1
- package/out/assets/NoteSidebar-C-rIt32H.js +0 -1
- package/out/assets/OpenSidebarButton-Dd0JmKuE.js +0 -1
- package/out/assets/PemBlock-C8dEIzu-.js +0 -1
- package/out/assets/SidebarAccount-ClS-N0lq.js +0 -1
- package/out/assets/arrow-right-urE9Rd7j.js +0 -1
- package/out/assets/channelApi-BwQU0-h1.js +0 -1
- package/out/assets/check-DUNsD2t6.js +0 -1
- package/out/assets/chevron-down-D6mpsfv4.js +0 -1
- package/out/assets/cloud-BMyOoC2x.js +0 -1
- package/out/assets/code-B1Cb_Icm.js +0 -1
- package/out/assets/filePreview-UI9NH34f.js +0 -1
- package/out/assets/game-CdU3xnZo.js +0 -1
- package/out/assets/image-DJCA16l_.js +0 -1
- package/out/assets/index-BdaFEQG-.css +0 -1
- package/out/assets/index-QxXZzOUL.js +0 -33
- package/out/assets/index.lazy-BBTTFanX.js +0 -1
- package/out/assets/index.lazy-BG4ZylHD.js +0 -2
- package/out/assets/index.lazy-Bi-6ZXZX.js +0 -1
- package/out/assets/index.lazy-BixWVr0B.js +0 -1
- package/out/assets/index.lazy-BjFwNYy5.js +0 -3
- package/out/assets/index.lazy-C8EIQsXY.js +0 -2
- package/out/assets/index.lazy-CarNe2uu.js +0 -1
- package/out/assets/index.lazy-DEuGu3H3.js +0 -1
- package/out/assets/index.lazy-GPyILCA7.js +0 -3
- package/out/assets/index.lazy-I8ofndXl.js +0 -1
- package/out/assets/index.lazy-TxhWsA7y.js +0 -1
- package/out/assets/index.lazy-azfky8k7.js +0 -1
- package/out/assets/log-out-B6phyZ5z.js +0 -1
- package/out/assets/play-BIl8q9eU.js +0 -1
- package/out/assets/plus-BxxbpH6Q.js +0 -1
- package/out/assets/search-BQi5Z0E-.js +0 -1
- package/out/assets/useChannelMessages-BgbYfF2c.js +0 -3
- package/out/assets/useGameRoom-DPmweWwe.js +0 -1
- package/out/assets/wallet-c7zIhNSM.js +0 -1
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ npx most-box@latest
|
|
|
193
193
|
|
|
194
194
|
## 路线图
|
|
195
195
|
|
|
196
|
-
### v0.2.
|
|
196
|
+
### v0.2.1(当前版本)
|
|
197
197
|
|
|
198
198
|
- ✅ P2P 文件上传与下载
|
|
199
199
|
- ✅ 确定性 CID 生成
|
|
@@ -227,8 +227,8 @@ npx most-box@latest
|
|
|
227
227
|
发布新版本时,推送 tag 即可自动构建:
|
|
228
228
|
|
|
229
229
|
```bash
|
|
230
|
-
git tag v0.2.
|
|
231
|
-
git push origin v0.2.
|
|
230
|
+
git tag v0.2.1
|
|
231
|
+
git push origin v0.2.1
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
触发后自动执行:
|
package/out/admin/index.html
CHANGED
|
Binary file
|
package/out/app/index.html
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{t as r}from"./LanguageToggle-
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{t as r}from"./LanguageToggle-B4ZNuBCV.js";import{J as i,Z as a}from"./index-WCK14Vja.js";var o=i(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),s=t(e(),1);function c(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window?window.matchMedia(e).matches:!1}function l(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,s.useState)(n?t:c(e));return(0,s.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function u(e=!1,t={}){let[n,r]=(0,s.useState)(e),i=(0,s.useCallback)(()=>{r(e=>e||(t.onOpen?.(),!0))},[t.onOpen]),a=(0,s.useCallback)(()=>{r(e=>e&&(t.onClose?.(),!1))},[t.onClose]);return[n,{open:i,close:a,toggle:(0,s.useCallback)(()=>{n?a():i()},[a,i,n]),set:r}]}var d=n(),f=(0,s.createContext)(null);function p(){let e=(0,s.useContext)(f);if(!e)throw Error(`useAppShell must be used within AppShell`);return e}function m({sidebar:e,className:t=``,headerTitle:n,headerRight:i,sidebarToggleReplacement:c,defaultHide:p=!1,children:m}){let[h,g]=u(!1),[_,v]=(0,s.useState)(p),y=(0,s.useRef)(p),b=l(`(max-width: 768px)`),{t:x}=a(),S=(0,s.useCallback)((e={})=>{g.close(),e.collapse&&v(!0)},[g]);(0,s.useEffect)(()=>{p!==y.current&&(p?S({collapse:!0}):v(!1),y.current=p)},[p,S]);let C=()=>{b?g.toggle():v(!_)},w=()=>{b?g.open():v(!1)},T=b?h:!_;return(0,d.jsx)(f.Provider,{value:{closeSidebar:S,openSidebar:w,isSidebarVisible:T},children:(0,d.jsxs)(`div`,{className:[`app-layout`,t].filter(Boolean).join(` `),children:[(0,d.jsx)(`div`,{className:`sidebar-overlay ${h?`visible`:``}`,onClick:()=>S()}),(0,d.jsx)(`div`,{className:`sidebar ${h?`open`:``} ${_?`collapsed`:``}`,children:e({closeSidebar:S,openSidebar:w})}),(0,d.jsxs)(`div`,{className:`main-content`,children:[(0,d.jsxs)(`header`,{className:`app-header`,children:[(0,d.jsxs)(`div`,{className:`header-left`,children:[c??(0,d.jsx)(`button`,{onClick:C,className:`btn btn-icon sidebar-toggle-btn`,"aria-label":x(b?`appShell.openMenu`:_?`appShell.expandSidebar`:`appShell.collapseSidebar`),children:(0,d.jsx)(o,{size:16})}),n]}),(0,d.jsxs)(`div`,{className:`header-right`,children:[(0,d.jsx)(r,{className:`btn btn-icon app-language-toggle`}),i]})]}),m]})]})})}export{p as n,u as r,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import{t}from"./arrow-right-CL9YSDVS.js";import{t as n}from"./circle-alert-oiiRDvhx.js";import{t as r}from"./download-D0oMEYQZ.js";import{n as i,t as a}from"./plus-BbxQG_Ai.js";import{n as o,t as s}from"./trash-2-DNGr8IgF.js";import{a as c,i as l,n as u,r as d}from"./filePreview-BZ50vZZf.js";import{t as f}from"./message-square-DwBq_Go5.js";import{t as p}from"./music-CB73K5Gz.js";import{G as m,J as h,Z as g,c as _}from"./index-WCK14Vja.js";var v=h(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),y=h(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),b=e();function x(e){return!e||e<=0?``:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function S(e){let t=String(e||``).split(`/`);return t[t.length-1]||e}function C(e){return e===`image`?(0,b.jsx)(l,{size:20}):e===`video`?(0,b.jsx)(c,{size:20}):e===`audio`?(0,b.jsx)(p,{size:20}):(0,b.jsx)(o,{size:20})}function w({attachment:e,status:t=`idle`,pending:i=!1,onOpen:a}){let{t:o}=g(),s=t===`checking`,c=[`ui-file-action`,`chat-attachment-action`,t===`error`?`error`:``,t===`available`?`available`:``].filter(Boolean).join(` `),l=x(e.size)||o(`chat.mostboxFile`);return(0,b.jsxs)(`button`,{type:`button`,className:`ui-file-card chat-attachment-card`,onClick:()=>a?.(e),disabled:i||s,title:e.link,translate:`no`,children:[(0,b.jsx)(`span`,{className:`ui-file-icon chat-attachment-icon ${e.kind}`,children:s?(0,b.jsx)(d,{size:20,className:`ui-spinner chat-attachment-spinner`}):C(e.kind)}),(0,b.jsxs)(`span`,{className:`ui-file-info chat-attachment-info`,children:[(0,b.jsx)(`span`,{className:`ui-file-name chat-attachment-name`,translate:`no`,children:S(e.fileName)}),(0,b.jsx)(`span`,{className:`ui-file-meta chat-attachment-meta`,translate:`yes`,children:i?o(`chat.sending`):l})]}),(0,b.jsx)(`span`,{className:c,translate:`yes`,children:s?o(`chat.checking`):t===`available`?(0,b.jsx)(m,{size:16}):t===`error`?(0,b.jsx)(n,{size:17}):(0,b.jsx)(r,{size:16})})]})}var T=[{key:`image`,labelKey:`chat.attachment.image`,accept:`image/*`,icon:l},{key:`video`,labelKey:`chat.attachment.video`,accept:`video/*`,icon:c},{key:`file`,labelKey:`chat.attachment.file`,accept:``,icon:o}],E=T.map(e=>e.accept).join(`,`);function D({children:e}){return(0,b.jsx)(`div`,{className:`message-bubble`,translate:`no`,children:e})}function O({children:e}){return(0,b.jsx)(`div`,{className:`message-bubble has-attachment`,children:e})}function k({variant:e,pending:t=!1,avatarSrc:n,author:r,time:i,children:a}){return(0,b.jsxs)(`div`,{className:[`chat-message`,e,t?`pending`:``].filter(Boolean).join(` `),children:[(0,b.jsx)(`img`,{className:`msg-avatar`,src:n,alt:`avatar`}),(0,b.jsxs)(`div`,{className:`msg-content`,children:[(0,b.jsx)(`span`,{className:`message-author`,translate:`no`,children:r}),a,(0,b.jsx)(`span`,{className:`message-time`,children:i})]})]})}function A({active:e=!1,pinned:t=!1,unread:n=!1,title:r,onSelect:a,onTogglePin:o,onRename:c,onLeave:l}){let{t:d}=g(),p=!!(o||c||l);return(0,b.jsxs)(`div`,{className:[`sidebar-nav-btn`,e?`active`:``,t?`pinned`:``,n?`unread`:``].filter(Boolean).join(` `),onClick:a,role:`button`,tabIndex:0,onKeyDown:e=>{e.target===e.currentTarget&&e.key===`Enter`&&a?.()},children:[(0,b.jsxs)(`span`,{className:`chat-channel-icon-wrap`,children:[(0,b.jsx)(f,{size:16}),n&&(0,b.jsx)(`span`,{className:`chat-channel-unread-dot`,title:d(`chat.unread`),"aria-hidden":`true`})]}),(0,b.jsx)(`span`,{className:`chat-channel-title`,children:(0,b.jsx)(`span`,{className:`chat-channel-title-text`,translate:`no`,children:r})}),p&&(0,b.jsx)(_,{ariaLabel:d(`chat.channelActions`),className:`channel-actions-anchor`,placement:`bottom-end`,items:[{key:`pin`,label:d(t?`chat.unpin`:`chat.pin`),icon:t?(0,b.jsx)(y,{size:16}):(0,b.jsx)(v,{size:16}),onSelect:()=>o?.()},{key:`rename`,label:d(`chat.rename`),icon:(0,b.jsx)(u,{size:16}),onSelect:()=>c?.()},{key:`delete`,label:d(`chat.delete`),icon:(0,b.jsx)(s,{size:16}),onSelect:()=>l?.()}],renderTrigger:e=>(0,b.jsx)(`button`,{...e,className:`leave-channel-btn channel-actions-trigger`,title:d(`common.moreActions`),"aria-label":d(`common.moreActions`),children:(0,b.jsx)(i,{size:16})})})]})}function j({members:e,isLoading:t=!1}){let{t:n}=g();return t&&e.length===0?(0,b.jsx)(`div`,{className:`ui-empty-inline channel-members-empty`,children:n(`chat.loadingMembers`)}):e.length===0?(0,b.jsx)(`div`,{className:`ui-empty-inline channel-members-empty`,children:n(`chat.noMembers`)}):(0,b.jsx)(`div`,{className:`channel-members-grid`,children:e.map(e=>(0,b.jsxs)(`div`,{className:`channel-member`,children:[(0,b.jsx)(`img`,{className:`channel-member-avatar`,src:e.avatarSrc,alt:`avatar`}),(0,b.jsx)(`span`,{className:`channel-member-name`,translate:`no`,children:e.name})]},e.id))})}function M({message:e,placeholder:n,disabled:r=!1,isPublishingAttachment:i=!1,attachmentButtonTitle:o,attachmentInputRef:s,onMessageChange:c,onSend:l,onSelectAttachmentFiles:u}){let{t:f}=g(),p=r||i,m=r||!e.trim(),h=o||f(`chat.attachment.add`);function v(e,t){t?.(e.currentTarget.files),e.currentTarget.value=``}function y(t){t.key===`Enter`&&e.trim()&&l()}function x(e){if(p)return;let t=s?.current;t&&(t.accept=e,t.click())}return(0,b.jsxs)(`div`,{className:`chat-input-area`,children:[(0,b.jsx)(`input`,{ref:s,type:`file`,accept:E,className:`chat-file-input`,onChange:e=>v(e,u)}),(0,b.jsx)(_,{ariaLabel:f(`chat.attachmentType`),placement:`top-start`,disabled:p,items:T.map(e=>{let t=e.icon;return{key:e.key,label:f(e.labelKey),icon:(0,b.jsx)(t,{size:16}),onSelect:()=>x(e.accept)}}),renderTrigger:e=>(0,b.jsx)(`button`,{...e,className:`btn btn-circle chat-tool-btn`,"aria-label":h,children:i?(0,b.jsx)(d,{size:18,className:`ui-spinner chat-attachment-spinner`}):(0,b.jsx)(a,{size:18})})}),(0,b.jsx)(`input`,{type:`text`,className:`input input-pill`,placeholder:n,value:e,disabled:r,onChange:e=>c(e.target.value),onKeyDown:y}),(0,b.jsx)(`button`,{type:`button`,className:`btn btn-circle btn-primary send-btn`,onClick:l,disabled:m,title:f(`chat.sendMessage`),children:(0,b.jsx)(t,{size:18})})]})}export{k as a,S as c,M as i,O as n,D as o,A as r,w as s,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{i as r}from"./LanguageToggle-B4ZNuBCV.js";import{t as i}from"./copy-giX4rmFJ.js";import{Z as a}from"./index-WCK14Vja.js";var o=t(e(),1),s=n();function c({text:e,label:t,copiedLabel:n,className:c=`btn btn-icon`,iconSize:l=14}){let{t:u}=a(),[d,f]=(0,o.useState)(!1),p=n||u(`common.copied`),m=t||u(`common.copy`);async function h(){try{await navigator.clipboard.writeText(e),f(!0),setTimeout(()=>f(!1),1500)}catch{}}return(0,s.jsxs)(`button`,{type:`button`,className:c,onClick:h,title:d?p:m,children:[d?(0,s.jsx)(r,{size:l}):(0,s.jsx)(i,{size:l}),t?d?p:t:null]})}export{c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import{$ as t,J as n,Q as r,Z as i,c as a}from"./index-WCK14Vja.js";var o=n(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),s=n(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),c=n(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),l=n(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),u=e();function d({className:e=``}){let{locale:n,localeName:c,setLocale:l,t:d}=i(),f=d(`common.locale.choose`),p=`${f} (${d(`common.locale.current`)}: ${c})`;return(0,u.jsx)(a,{ariaLabel:f,placement:`bottom-end`,items:r.map(e=>({key:e,label:t[e],icon:e===n?(0,u.jsx)(o,{size:16}):(0,u.jsx)(`span`,{"aria-hidden":`true`}),onSelect:()=>{e!==n&&l(e)}})),renderTrigger:t=>(0,u.jsx)(`button`,{...t,className:[`language-toggle`,e].filter(Boolean).join(` `),"aria-label":f,title:p,children:(0,u.jsx)(s,{size:16})})})}export{o as i,l as n,c as r,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";var t=e();function n({size:e=24}){return(0,t.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,t.jsx)(`rect`,{x:`2`,y:`2`,width:`8`,height:`8`,rx:`2`,fill:`var(--accent)`,opacity:`0.4`}),(0,t.jsx)(`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`2`,fill:`var(--accent)`,opacity:`0.7`}),(0,t.jsx)(`rect`,{x:`2`,y:`14`,width:`8`,height:`8`,rx:`2`,fill:`var(--accent)`,opacity:`0.7`}),(0,t.jsx)(`rect`,{x:`14`,y:`14`,width:`8`,height:`8`,rx:`2`,fill:`var(--accent)`})]})}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import{t}from"./LanguageToggle-B4ZNuBCV.js";import{nt as n,q as r}from"./index-WCK14Vja.js";import{t as i}from"./MarketingThemeToggle-qlwCZU1o.js";var a=e();function o(){return(0,a.jsx)(`nav`,{className:`mkt-nav`,children:(0,a.jsxs)(`div`,{className:`mkt-nav-inner`,children:[(0,a.jsxs)(n,{to:`/`,className:`mkt-nav-logo`,children:[(0,a.jsx)(r,{size:18}),(0,a.jsx)(`span`,{children:`MOST PEOPLE`})]}),(0,a.jsxs)(`div`,{className:`mkt-nav-cta`,children:[(0,a.jsx)(i,{}),(0,a.jsx)(t,{className:`mkt-theme-toggle`})]})]})})}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import"./index-WCK14Vja.js";import{n as t,t as n}from"./Nav-5xeettNJ.js";var r=e();function i({children:e,header:i}){return(0,r.jsxs)(`div`,{className:`mkt-layout`,children:[i??(0,r.jsx)(n,{}),(0,r.jsx)(`main`,{className:`mkt-layout-main`,children:e}),(0,r.jsx)(t,{})]})}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{n as r,r as i}from"./LanguageToggle-
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{n as r,r as i}from"./LanguageToggle-B4ZNuBCV.js";import{Z as a}from"./index-WCK14Vja.js";var o=t(e(),1),s=n();function c(){let[e,t]=(0,o.useState)(!1),{t:n}=a();return(0,o.useEffect)(()=>{let e=localStorage.getItem(`theme`),n=window.matchMedia(`(prefers-color-scheme: dark)`).matches;(e===`dark`||!e&&n)&&t(!0)},[]),(0,o.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,e?`dark`:`light`),localStorage.setItem(`theme`,e?`dark`:`light`)},[e]),(0,s.jsx)(`button`,{type:`button`,className:`mkt-theme-toggle`,onClick:()=>t(!e),"aria-label":n(`common.theme.toggle`),title:n(`common.theme.toggle`),children:e?(0,s.jsx)(r,{size:16}):(0,s.jsx)(i,{size:16})})}export{c as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-BPs0Xns9.js","assets/dist-zyJb88Zz.js","assets/dist-CbTzBiwL.js","assets/dist-C-Tg23jc.js","assets/dist-IGpXmkFm.js","assets/dist-D94V9Zlh.js","assets/jsx-runtime-Bt-cYkS5.js","assets/dist-B0JrbG7f.js","assets/dist-DJdv-Ma3.js","assets/dist-Br_5lLVO.js","assets/dist-yZ96GF-e.js","assets/dist-chOCTzB2.js","assets/dist-IN8WN7NI.js","assets/dist-CqQavSZV.js","assets/dist-DCX0ws1K.js","assets/dist-CfU9fwWz.js","assets/dist-BFSyuOuw.js","assets/dist-C3lbe8SW.js","assets/dist-DvWZsW-D.js","assets/dist-DTL5jL08.js","assets/dist-BAJKKN4w.js","assets/dist-CMmmtl3f.js","assets/dist-DBnWo8ZP.js","assets/dockerfile-BLkNEvjs.js","assets/simple-mode-DRpGK0lJ.js","assets/factor-D7LVTn2l.js","assets/nsis-AQ_alPln.js","assets/pug-DyBTKFx8.js","assets/javascript-8HiN0ThV.js","assets/dist-BzqqCPi2.js","assets/dist-8QDHqrPN.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as e,n as t,o as n,r,t as i}from"./jsx-runtime-Bt-cYkS5.js";import{G as a,t as o}from"./index-QxXZzOUL.js";import{$ as s,A as c,B as l,Ct as u,Dt as d,E as f,Et as p,F as m,H as h,I as g,J as _,K as v,L as y,Mt as b,O as x,Ot as S,P as C,R as ee,S as te,St as w,T as ne,Tt as re,U as ie,V as ae,W as oe,X as se,Y as ce,Z as le,a as T,at as ue,bt as de,c as fe,ct as pe,dt as me,et as he,f as ge,ft as E,g as _e,gt as ve,it as ye,j as be,kt as xe,l as Se,lt as Ce,mt as we,n as Te,nt as Ee,o as De,ot as Oe,pt as ke,q as Ae,st as je,t as Me,tt as Ne,ut as Pe,v as Fe,vt as Ie,w as Le,wt as Re,x as ze,xt as Be,z as Ve}from"./dist-CbTzBiwL.js";import{i as He,n as Ue,o as We,r as Ge}from"./dist-zyJb88Zz.js";var Ke=typeof global==`object`&&global&&global.Object===Object&&global,qe=typeof self==`object`&&self&&self.Object===Object&&self,Je=Ke||qe||Function(`return this`)(),Ye=Je.Symbol,Xe=Object.prototype,Ze=Xe.hasOwnProperty,Qe=Xe.toString,$e=Ye?Ye.toStringTag:void 0;function et(e){var t=Ze.call(e,$e),n=e[$e];try{e[$e]=void 0;var r=!0}catch{}var i=Qe.call(e);return r&&(t?e[$e]=n:delete e[$e]),i}var tt=Object.prototype.toString;function nt(e){return tt.call(e)}var rt=`[object Null]`,it=`[object Undefined]`,at=Ye?Ye.toStringTag:void 0;function ot(e){return e==null?e===void 0?it:rt:at&&at in Object(e)?et(e):nt(e)}function st(e){return typeof e==`object`&&!!e}var ct=`[object Symbol]`;function lt(e){return typeof e==`symbol`||st(e)&&ot(e)==ct}var ut=Array.isArray,dt=/\s/;function ft(e){for(var t=e.length;t--&&dt.test(e.charAt(t)););return t}var pt=/^\s+/;function mt(e){return e&&e.slice(0,ft(e)+1).replace(pt,``)}function ht(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var gt=NaN,_t=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,bt=parseInt;function xt(e){if(typeof e==`number`)return e;if(lt(e))return gt;if(ht(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ht(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=mt(e);var n=vt.test(e);return n||yt.test(e)?bt(e.slice(2),n?2:8):_t.test(e)?gt:+e}function St(e){return e}var Ct=`[object AsyncFunction]`,wt=`[object Function]`,Tt=`[object GeneratorFunction]`,Et=`[object Proxy]`;function Dt(e){if(!ht(e))return!1;var t=ot(e);return t==wt||t==Tt||t==Ct||t==Et}var Ot=Je[`__core-js_shared__`],kt=function(){var e=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function At(e){return!!kt&&kt in e}var jt=Function.prototype.toString;function Mt(e){if(e!=null){try{return jt.call(e)}catch{}try{return e+``}catch{}}return``}var Nt=/[\\^$.*+?()[\]{}|]/g,Pt=/^\[object .+?Constructor\]$/,Ft=Function.prototype,It=Object.prototype,Lt=Ft.toString,Rt=It.hasOwnProperty,zt=RegExp(`^`+Lt.call(Rt).replace(Nt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Bt(e){return!ht(e)||At(e)?!1:(Dt(e)?zt:Pt).test(Mt(e))}function Vt(e,t){return e?.[t]}function Ht(e,t){var n=Vt(e,t);return Bt(n)?n:void 0}var Ut=Object.create,Wt=function(){function e(){}return function(t){if(!ht(t))return{};if(Ut)return Ut(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Kt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var qt=800,Jt=16,Yt=Date.now;function Xt(e){var t=0,n=0;return function(){var r=Yt(),i=Jt-(r-n);if(n=r,i>0){if(++t>=qt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Zt(e){return function(){return e}}var Qt=function(){try{var e=Ht(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),$t=Xt(Qt?function(e,t){return Qt(e,`toString`,{configurable:!0,enumerable:!1,value:Zt(t),writable:!0})}:St),en=9007199254740991,tn=/^(?:0|[1-9]\d*)$/;function nn(e,t){var n=typeof e;return t??=en,!!t&&(n==`number`||n!=`symbol`&&tn.test(e))&&e>-1&&e%1==0&&e<t}function rn(e,t,n){t==`__proto__`&&Qt?Qt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function an(e,t){return e===t||e!==e&&t!==t}var on=Object.prototype.hasOwnProperty;function sn(e,t,n){var r=e[t];(!(on.call(e,t)&&an(r,n))||n===void 0&&!(t in e))&&rn(e,t,n)}function cn(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?rn(n,s,c):sn(n,s,c)}return n}var ln=Math.max;function un(e,t,n){return t=ln(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ln(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Gt(e,this,s)}}function dn(e,t){return $t(un(e,t,St),e+``)}var fn=9007199254740991;function pn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=fn}function mn(e){return e!=null&&pn(e.length)&&!Dt(e)}function hn(e,t,n){if(!ht(n))return!1;var r=typeof t;return(r==`number`?mn(n)&&nn(t,n.length):r==`string`&&t in n)?an(n[t],e):!1}function gn(e){return dn(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&hn(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var _n=Object.prototype;function vn(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||_n)}function yn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var bn=`[object Arguments]`;function xn(e){return st(e)&&ot(e)==bn}var Sn=Object.prototype,Cn=Sn.hasOwnProperty,wn=Sn.propertyIsEnumerable,Tn=xn(function(){return arguments}())?xn:function(e){return st(e)&&Cn.call(e,`callee`)&&!wn.call(e,`callee`)};function En(){return!1}var Dn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,On=Dn&&typeof module==`object`&&module&&!module.nodeType&&module,kn=On&&On.exports===Dn?Je.Buffer:void 0,An=(kn?kn.isBuffer:void 0)||En,jn=`[object Arguments]`,Mn=`[object Array]`,Nn=`[object Boolean]`,Pn=`[object Date]`,Fn=`[object Error]`,In=`[object Function]`,Ln=`[object Map]`,Rn=`[object Number]`,zn=`[object Object]`,Bn=`[object RegExp]`,Vn=`[object Set]`,Hn=`[object String]`,Un=`[object WeakMap]`,Wn=`[object ArrayBuffer]`,Gn=`[object DataView]`,Kn=`[object Float32Array]`,qn=`[object Float64Array]`,Jn=`[object Int8Array]`,Yn=`[object Int16Array]`,Xn=`[object Int32Array]`,Zn=`[object Uint8Array]`,Qn=`[object Uint8ClampedArray]`,$n=`[object Uint16Array]`,er=`[object Uint32Array]`,tr={};tr[Kn]=tr[qn]=tr[Jn]=tr[Yn]=tr[Xn]=tr[Zn]=tr[Qn]=tr[$n]=tr[er]=!0,tr[jn]=tr[Mn]=tr[Wn]=tr[Nn]=tr[Gn]=tr[Pn]=tr[Fn]=tr[In]=tr[Ln]=tr[Rn]=tr[zn]=tr[Bn]=tr[Vn]=tr[Hn]=tr[Un]=!1;function nr(e){return st(e)&&pn(e.length)&&!!tr[ot(e)]}function rr(e){return function(t){return e(t)}}var ir=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ar=ir&&typeof module==`object`&&module&&!module.nodeType&&module,or=ar&&ar.exports===ir&&Ke.process,sr=function(){try{return ar&&ar.require&&ar.require(`util`).types||or&&or.binding&&or.binding(`util`)}catch{}}(),cr=sr&&sr.isTypedArray,lr=cr?rr(cr):nr,ur=Object.prototype.hasOwnProperty;function dr(e,t){var n=ut(e),r=!n&&Tn(e),i=!n&&!r&&An(e),a=!n&&!r&&!i&&lr(e),o=n||r||i||a,s=o?yn(e.length,String):[],c=s.length;for(var l in e)(t||ur.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||nn(l,c)))&&s.push(l);return s}function fr(e,t){return function(n){return e(t(n))}}function pr(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var mr=Object.prototype.hasOwnProperty;function hr(e){if(!ht(e))return pr(e);var t=vn(e),n=[];for(var r in e)r==`constructor`&&(t||!mr.call(e,r))||n.push(r);return n}function gr(e){return mn(e)?dr(e,!0):hr(e)}var _r=Ht(Object,`create`);function vr(){this.__data__=_r?_r(null):{},this.size=0}function yr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var br=`__lodash_hash_undefined__`,xr=Object.prototype.hasOwnProperty;function Sr(e){var t=this.__data__;if(_r){var n=t[e];return n===br?void 0:n}return xr.call(t,e)?t[e]:void 0}var Cr=Object.prototype.hasOwnProperty;function wr(e){var t=this.__data__;return _r?t[e]!==void 0:Cr.call(t,e)}var Tr=`__lodash_hash_undefined__`;function Er(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=_r&&t===void 0?Tr:t,this}function Dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dr.prototype.clear=vr,Dr.prototype.delete=yr,Dr.prototype.get=Sr,Dr.prototype.has=wr,Dr.prototype.set=Er;function Or(){this.__data__=[],this.size=0}function kr(e,t){for(var n=e.length;n--;)if(an(e[n][0],t))return n;return-1}var Ar=Array.prototype.splice;function jr(e){var t=this.__data__,n=kr(t,e);return n<0?!1:(n==t.length-1?t.pop():Ar.call(t,n,1),--this.size,!0)}function Mr(e){var t=this.__data__,n=kr(t,e);return n<0?void 0:t[n][1]}function Nr(e){return kr(this.__data__,e)>-1}function Pr(e,t){var n=this.__data__,r=kr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fr.prototype.clear=Or,Fr.prototype.delete=jr,Fr.prototype.get=Mr,Fr.prototype.has=Nr,Fr.prototype.set=Pr;var Ir=Ht(Je,`Map`);function Lr(){this.size=0,this.__data__={hash:new Dr,map:new(Ir||Fr),string:new Dr}}function Rr(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function zr(e,t){var n=e.__data__;return Rr(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Br(e){var t=zr(this,e).delete(e);return this.size-=+!!t,t}function Vr(e){return zr(this,e).get(e)}function Hr(e){return zr(this,e).has(e)}function Ur(e,t){var n=zr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wr.prototype.clear=Lr,Wr.prototype.delete=Br,Wr.prototype.get=Vr,Wr.prototype.has=Hr,Wr.prototype.set=Ur;var Gr=fr(Object.getPrototypeOf,Object),Kr=`[object Object]`,qr=Function.prototype,Jr=Object.prototype,Yr=qr.toString,Xr=Jr.hasOwnProperty,Zr=Yr.call(Object);function Qr(e){if(!st(e)||ot(e)!=Kr)return!1;var t=Gr(e);if(t===null)return!0;var n=Xr.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Yr.call(n)==Zr}function $r(){this.__data__=new Fr,this.size=0}function ei(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}var ri=200;function ii(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!Ir||r.length<ri-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wr(r)}return n.set(e,t),this.size=n.size,this}function ai(e){var t=this.__data__=new Fr(e);this.size=t.size}ai.prototype.clear=$r,ai.prototype.delete=ei,ai.prototype.get=ti,ai.prototype.has=ni,ai.prototype.set=ii;var oi=typeof exports==`object`&&exports&&!exports.nodeType&&exports,si=oi&&typeof module==`object`&&module&&!module.nodeType&&module,ci=si&&si.exports===oi?Je.Buffer:void 0,li=ci?ci.allocUnsafe:void 0;function ui(e,t){if(t)return e.slice();var n=e.length,r=li?li(n):new e.constructor(n);return e.copy(r),r}var di=Je.Uint8Array;function fi(e){var t=new e.constructor(e.byteLength);return new di(t).set(new di(e)),t}function pi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e){return typeof e.constructor==`function`&&!vn(e)?Wt(Gr(e)):{}}function hi(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var gi=hi(),_i=function(){return Je.Date.now()},vi=`Expected a function`,yi=Math.max,bi=Math.min;function xi(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(vi);t=xt(t)||0,ht(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?yi(xt(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?bi(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=_i();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(_i())}function x(){var e=_i(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}function Si(e,t,n){(n!==void 0&&!an(e[t],n)||n===void 0&&!(t in e))&&rn(e,t,n)}function Ci(e){return st(e)&&mn(e)}function wi(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Ti(e){return cn(e,gr(e))}function Ei(e,t,n,r,i,a,o){var s=wi(e,n),c=wi(t,n),l=o.get(c);if(l){Si(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=ut(c),p=!f&&An(c),m=!f&&!p&&lr(c);u=c,f||p||m?ut(s)?u=s:Ci(s)?u=Kt(s):p?(d=!1,u=ui(c,!0)):m?(d=!1,u=pi(c,!0)):u=[]:Qr(c)||Tn(c)?(u=s,Tn(s)?u=Ti(s):(!ht(s)||Dt(s))&&(u=mi(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Si(e,n,u)}function Di(e,t,n,r,i){e!==t&&gi(t,function(a,o){if(i||=new ai,ht(a))Ei(e,t,o,n,Di,r,i);else{var s=r?r(wi(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Si(e,o,s)}},gr)}function Oi(e,t,n,r,i,a){return ht(e)&&ht(t)&&(a.set(t,e),Di(e,t,void 0,Oi,a),a.delete(t)),e}var ki=gn(function(e,t,n,r){Di(e,t,n,r)}),Ai=dn(function(e){return e.push(void 0,Oi),Gt(ki,void 0,e)}),ji=`Expected a function`;function Mi(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ji);return ht(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),xi(e,t,{leading:r,maxWait:t,trailing:i})}var Ni=n(t(),1);function D(e){return new De(fe.define(e))}function Pi(e){return o(()=>import(`./dist-BPs0Xns9.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1,2,3]))}var Fi=[T.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return o(()=>import(`./dist-IGpXmkFm.js`).then(e=>e.cpp()),__vite__mapDeps([4,2,3]))}}),T.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return o(()=>import(`./dist-IGpXmkFm.js`).then(e=>e.cpp()),__vite__mapDeps([4,2,3]))}}),T.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return Pi(`Cassandra`)}}),T.of({name:`CSS`,extensions:[`css`],load(){return o(()=>import(`./dist-D94V9Zlh.js`).then(e=>e.i).then(e=>e.css()),__vite__mapDeps([5,6,2,3]))}}),T.of({name:`Go`,extensions:[`go`],load(){return o(()=>import(`./dist-B0JrbG7f.js`).then(e=>e.go()),__vite__mapDeps([7,1,2,3]))}}),T.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return o(()=>import(`./dist-DJdv-Ma3.js`).then(e=>e.html()),__vite__mapDeps([8,5,6,2,3,9,1]))}}),T.of({name:`Java`,extensions:[`java`],load(){return o(()=>import(`./dist-yZ96GF-e.js`).then(e=>e.java()),__vite__mapDeps([10,2,3]))}}),T.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript()),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return o(()=>import(`./dist-chOCTzB2.js`).then(e=>e.jinja()),__vite__mapDeps([11,8,5,6,2,3,9,1]))}}),T.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return o(()=>import(`./dist-IN8WN7NI.js`).then(e=>e.json()),__vite__mapDeps([12,2,3]))}}),T.of({name:`JSX`,extensions:[`jsx`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0})),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`LESS`,extensions:[`less`],load(){return o(()=>import(`./dist-CqQavSZV.js`).then(e=>e.less()),__vite__mapDeps([13,5,6,2,3]))}}),T.of({name:`Liquid`,extensions:[`liquid`],load(){return o(()=>import(`./dist-DCX0ws1K.js`).then(e=>e.liquid()),__vite__mapDeps([14,8,5,6,2,3,9,1]))}}),T.of({name:`MariaDB SQL`,load(){return Pi(`MariaSQL`)}}),T.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return o(()=>import(`./dist-CfU9fwWz.js`).then(e=>e.markdown()),__vite__mapDeps([15,1,2,8,5,6,3,9]))}}),T.of({name:`MS SQL`,load(){return Pi(`MSSQL`)}}),T.of({name:`MySQL`,load(){return Pi(`MySQL`)}}),T.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return o(()=>import(`./dist-BFSyuOuw.js`).then(e=>e.php()),__vite__mapDeps([16,8,5,6,2,3,9,1]))}}),T.of({name:`PLSQL`,extensions:[`pls`],load(){return Pi(`PLSQL`)}}),T.of({name:`PostgreSQL`,load(){return Pi(`PostgreSQL`)}}),T.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return o(()=>import(`./dist-C3lbe8SW.js`).then(e=>e.python()),__vite__mapDeps([17,1,2,3]))}}),T.of({name:`Rust`,extensions:[`rs`],load(){return o(()=>import(`./dist-DvWZsW-D.js`).then(e=>e.rust()),__vite__mapDeps([18,2,3]))}}),T.of({name:`Sass`,extensions:[`sass`],load(){return o(()=>import(`./dist-DTL5jL08.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([19,5,6,2,3]))}}),T.of({name:`SCSS`,extensions:[`scss`],load(){return o(()=>import(`./dist-DTL5jL08.js`).then(e=>e.sass()),__vite__mapDeps([19,5,6,2,3]))}}),T.of({name:`SQL`,extensions:[`sql`],load(){return Pi(`StandardSQL`)}}),T.of({name:`SQLite`,load(){return Pi(`SQLite`)}}),T.of({name:`TSX`,extensions:[`tsx`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0,typescript:!0})),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return o(()=>import(`./dist-BAJKKN4w.js`).then(e=>e.wast()),__vite__mapDeps([20,2,3]))}}),T.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return o(()=>import(`./dist-CMmmtl3f.js`).then(e=>e.xml()),__vite__mapDeps([21,2,3]))}}),T.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return o(()=>import(`./dist-DBnWo8ZP.js`).then(e=>e.yaml()),__vite__mapDeps([22,2,3]))}}),T.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return o(()=>import(`./apl-CnwPGSsG.js`).then(e=>D(e.apl)),[])}}),T.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return o(()=>import(`./asciiarmor-qTkVPQu6.js`).then(e=>D(e.asciiArmor)),[])}}),T.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return o(()=>import(`./asn1-Dr8qZg38.js`).then(e=>D(e.asn1({}))),[])}}),T.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return o(()=>import(`./asterisk-Bja0s6e1.js`).then(e=>D(e.asterisk)),[])}}),T.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return o(()=>import(`./brainfuck-D5EjA2JK.js`).then(e=>D(e.brainfuck)),[])}}),T.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return o(()=>import(`./cobol-B_OZ4V-R.js`).then(e=>D(e.cobol)),[])}}),T.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.csharp)),[])}}),T.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return o(()=>import(`./clojure-BflJGmDX.js`).then(e=>D(e.clojure)),[])}}),T.of({name:`ClojureScript`,extensions:[`cljs`],load(){return o(()=>import(`./clojure-BflJGmDX.js`).then(e=>D(e.clojure)),[])}}),T.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return o(()=>import(`./css-CYpP4FRV.js`).then(e=>D(e.gss)),[])}}),T.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return o(()=>import(`./cmake-CyVbuzPu.js`).then(e=>D(e.cmake)),[])}}),T.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return o(()=>import(`./coffeescript-B2pKbFk8.js`).then(e=>D(e.coffeeScript)),[])}}),T.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return o(()=>import(`./commonlisp-CcllspGY.js`).then(e=>D(e.commonLisp)),[])}}),T.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return o(()=>import(`./cypher-p9eYesGn.js`).then(e=>D(e.cypher)),[])}}),T.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return o(()=>import(`./python-BqYw9LYJ.js`).then(e=>D(e.cython)),[])}}),T.of({name:`Crystal`,extensions:[`cr`],load(){return o(()=>import(`./crystal-M5-qzICs.js`).then(e=>D(e.crystal)),[])}}),T.of({name:`D`,extensions:[`d`],load(){return o(()=>import(`./d-BhMjBjQP.js`).then(e=>D(e.d)),[])}}),T.of({name:`Dart`,extensions:[`dart`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.dart)),[])}}),T.of({name:`diff`,extensions:[`diff`,`patch`],load(){return o(()=>import(`./diff-ChtP43wD.js`).then(e=>D(e.diff)),[])}}),T.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return o(()=>import(`./dockerfile-BLkNEvjs.js`).then(e=>D(e.dockerFile)),__vite__mapDeps([23,24]))}}),T.of({name:`DTD`,extensions:[`dtd`],load(){return o(()=>import(`./dtd-DTF72YNO.js`).then(e=>D(e.dtd)),[])}}),T.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return o(()=>import(`./dylan-C6jEEEk-.js`).then(e=>D(e.dylan)),[])}}),T.of({name:`EBNF`,load(){return o(()=>import(`./ebnf-D4c0_ac3.js`).then(e=>D(e.ebnf)),[])}}),T.of({name:`ECL`,extensions:[`ecl`],load(){return o(()=>import(`./ecl-BSZaIHnp.js`).then(e=>D(e.ecl)),[])}}),T.of({name:`edn`,extensions:[`edn`],load(){return o(()=>import(`./clojure-BflJGmDX.js`).then(e=>D(e.clojure)),[])}}),T.of({name:`Eiffel`,extensions:[`e`],load(){return o(()=>import(`./eiffel-BEjRio4Q.js`).then(e=>D(e.eiffel)),[])}}),T.of({name:`Elm`,extensions:[`elm`],load(){return o(()=>import(`./elm-Cshzl8qu.js`).then(e=>D(e.elm)),[])}}),T.of({name:`Erlang`,extensions:[`erl`],load(){return o(()=>import(`./erlang-DaB2Rkuy.js`).then(e=>D(e.erlang)),[])}}),T.of({name:`Esper`,load(){return o(()=>import(`./sql-DcCJ9jop.js`).then(e=>D(e.esper)),[])}}),T.of({name:`Factor`,extensions:[`factor`],load(){return o(()=>import(`./factor-D7LVTn2l.js`).then(e=>D(e.factor)),__vite__mapDeps([25,24]))}}),T.of({name:`FCL`,load(){return o(()=>import(`./fcl-ClOhbFR7.js`).then(e=>D(e.fcl)),[])}}),T.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return o(()=>import(`./forth-Cezjo90N.js`).then(e=>D(e.forth)),[])}}),T.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return o(()=>import(`./fortran-Bt6PBEDR.js`).then(e=>D(e.fortran)),[])}}),T.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return o(()=>import(`./mllike-B45xgp2S.js`).then(e=>D(e.fSharp)),[])}}),T.of({name:`Gas`,extensions:[`s`],load(){return o(()=>import(`./gas-BHEdbvp9.js`).then(e=>D(e.gas)),[])}}),T.of({name:`Gherkin`,extensions:[`feature`],load(){return o(()=>import(`./gherkin-oBAE_ms0.js`).then(e=>D(e.gherkin)),[])}}),T.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return o(()=>import(`./groovy-BC3IOsC8.js`).then(e=>D(e.groovy)),[])}}),T.of({name:`Haskell`,extensions:[`hs`],load(){return o(()=>import(`./haskell-BRsoo5mP.js`).then(e=>D(e.haskell)),[])}}),T.of({name:`Haxe`,extensions:[`hx`],load(){return o(()=>import(`./haxe-DjVOVvNP.js`).then(e=>D(e.haxe)),[])}}),T.of({name:`HXML`,extensions:[`hxml`],load(){return o(()=>import(`./haxe-DjVOVvNP.js`).then(e=>D(e.hxml)),[])}}),T.of({name:`HTTP`,load(){return o(()=>import(`./http-CLVgA2GD.js`).then(e=>D(e.http)),[])}}),T.of({name:`IDL`,extensions:[`pro`],load(){return o(()=>import(`./idl-BUZw3wgd.js`).then(e=>D(e.idl)),[])}}),T.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return o(()=>import(`./javascript-8HiN0ThV.js`).then(e=>D(e.jsonld)),[])}}),T.of({name:`Julia`,extensions:[`jl`],load(){return o(()=>import(`./julia-CQfgDRfP.js`).then(e=>D(e.julia)),[])}}),T.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.kotlin)),[])}}),T.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return o(()=>import(`./livescript-BXxG0Yva.js`).then(e=>D(e.liveScript)),[])}}),T.of({name:`Lua`,extensions:[`lua`],load(){return o(()=>import(`./lua-CiA1ziua.js`).then(e=>D(e.lua)),[])}}),T.of({name:`mIRC`,extensions:[`mrc`],load(){return o(()=>import(`./mirc-C9zpzAZU.js`).then(e=>D(e.mirc)),[])}}),T.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return o(()=>import(`./mathematica-u8YMmbU0.js`).then(e=>D(e.mathematica)),[])}}),T.of({name:`Modelica`,extensions:[`mo`],load(){return o(()=>import(`./modelica-CqHI_q-D.js`).then(e=>D(e.modelica)),[])}}),T.of({name:`MUMPS`,extensions:[`mps`],load(){return o(()=>import(`./mumps-CW_TBmxz.js`).then(e=>D(e.mumps)),[])}}),T.of({name:`Mbox`,extensions:[`mbox`],load(){return o(()=>import(`./mbox-BEMVcqjs.js`).then(e=>D(e.mbox)),[])}}),T.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return o(()=>import(`./nginx-BMaDbqW3.js`).then(e=>D(e.nginx)),[])}}),T.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return o(()=>import(`./nsis-AQ_alPln.js`).then(e=>D(e.nsis)),__vite__mapDeps([26,24]))}}),T.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return o(()=>import(`./ntriples-d28e9m0E.js`).then(e=>D(e.ntriples)),[])}}),T.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.objectiveC)),[])}}),T.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.objectiveCpp)),[])}}),T.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return o(()=>import(`./mllike-B45xgp2S.js`).then(e=>D(e.oCaml)),[])}}),T.of({name:`Octave`,extensions:[`m`],load(){return o(()=>import(`./octave-D2Q8cUp1.js`).then(e=>D(e.octave)),[])}}),T.of({name:`Oz`,extensions:[`oz`],load(){return o(()=>import(`./oz-BwTct_5T.js`).then(e=>D(e.oz)),[])}}),T.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return o(()=>import(`./pascal-Dp_KdFgX.js`).then(e=>D(e.pascal)),[])}}),T.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return o(()=>import(`./perl-CdEHsPfU.js`).then(e=>D(e.perl)),[])}}),T.of({name:`Pig`,extensions:[`pig`],load(){return o(()=>import(`./pig-AF4Hwhju.js`).then(e=>D(e.pig)),[])}}),T.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return o(()=>import(`./powershell-CzG71I4L.js`).then(e=>D(e.powerShell)),[])}}),T.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return o(()=>import(`./properties-C357ku5U.js`).then(e=>D(e.properties)),[])}}),T.of({name:`ProtoBuf`,extensions:[`proto`],load(){return o(()=>import(`./protobuf-D1ij_kNL.js`).then(e=>D(e.protobuf)),[])}}),T.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return o(()=>import(`./pug-DyBTKFx8.js`).then(e=>D(e.pug)),__vite__mapDeps([27,28]))}}),T.of({name:`Puppet`,extensions:[`pp`],load(){return o(()=>import(`./puppet-B4hC2X4m.js`).then(e=>D(e.puppet)),[])}}),T.of({name:`Q`,extensions:[`q`],load(){return o(()=>import(`./q-B9NhS7L_.js`).then(e=>D(e.q)),[])}}),T.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return o(()=>import(`./r-DADKenSm.js`).then(e=>D(e.r)),[])}}),T.of({name:`RPM Changes`,load(){return o(()=>import(`./rpm-gpDK5sbt.js`).then(e=>D(e.rpmChanges)),[])}}),T.of({name:`RPM Spec`,extensions:[`spec`],load(){return o(()=>import(`./rpm-gpDK5sbt.js`).then(e=>D(e.rpmSpec)),[])}}),T.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return o(()=>import(`./ruby-DsYpTuWg.js`).then(e=>D(e.ruby)),[])}}),T.of({name:`SAS`,extensions:[`sas`],load(){return o(()=>import(`./sas-C2OyD2Y6.js`).then(e=>D(e.sas)),[])}}),T.of({name:`Scala`,extensions:[`scala`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.scala)),[])}}),T.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return o(()=>import(`./scheme-CyDdOh7e.js`).then(e=>D(e.scheme)),[])}}),T.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return o(()=>import(`./shell-Du5Qg9im.js`).then(e=>D(e.shell)),[])}}),T.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return o(()=>import(`./sieve-BAxa3IjF.js`).then(e=>D(e.sieve)),[])}}),T.of({name:`Smalltalk`,extensions:[`st`],load(){return o(()=>import(`./smalltalk-BLp5-jwC.js`).then(e=>D(e.smalltalk)),[])}}),T.of({name:`Solr`,load(){return o(()=>import(`./solr-BBopId9w.js`).then(e=>D(e.solr)),[])}}),T.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return o(()=>import(`./mllike-B45xgp2S.js`).then(e=>D(e.sml)),[])}}),T.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return o(()=>import(`./sparql-Dz-mlCAC.js`).then(e=>D(e.sparql)),[])}}),T.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return o(()=>import(`./spreadsheet-CTIncYxj.js`).then(e=>D(e.spreadsheet)),[])}}),T.of({name:`Squirrel`,extensions:[`nut`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.squirrel)),[])}}),T.of({name:`Stylus`,extensions:[`styl`],load(){return o(()=>import(`./stylus-DLLZ8dgm.js`).then(e=>D(e.stylus)),[])}}),T.of({name:`Swift`,extensions:[`swift`],load(){return o(()=>import(`./swift-DKB6_1j6.js`).then(e=>D(e.swift)),[])}}),T.of({name:`sTeX`,load(){return o(()=>import(`./stex-sDrdk2BW.js`).then(e=>D(e.stex)),[])}}),T.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return o(()=>import(`./stex-sDrdk2BW.js`).then(e=>D(e.stex)),[])}}),T.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return o(()=>import(`./verilog-D-x6ne0Z.js`).then(e=>D(e.verilog)),[])}}),T.of({name:`Tcl`,extensions:[`tcl`],load(){return o(()=>import(`./tcl-BGfruO1u.js`).then(e=>D(e.tcl)),[])}}),T.of({name:`Textile`,extensions:[`textile`],load(){return o(()=>import(`./textile-DWBqthVk.js`).then(e=>D(e.textile)),[])}}),T.of({name:`TiddlyWiki`,load(){return o(()=>import(`./tiddlywiki-VlUiK86J.js`).then(e=>D(e.tiddlyWiki)),[])}}),T.of({name:`Tiki wiki`,load(){return o(()=>import(`./tiki-CxVlf5KZ.js`).then(e=>D(e.tiki)),[])}}),T.of({name:`TOML`,extensions:[`toml`],load(){return o(()=>import(`./toml-LvoKBwCs.js`).then(e=>D(e.toml)),[])}}),T.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return o(()=>import(`./troff-C2dAgh7P.js`).then(e=>D(e.troff)),[])}}),T.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return o(()=>import(`./ttcn-BePYh-hG.js`).then(e=>D(e.ttcn)),[])}}),T.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return o(()=>import(`./ttcn-cfg-CY0aot7Q.js`).then(e=>D(e.ttcnCfg)),[])}}),T.of({name:`Turtle`,extensions:[`ttl`],load(){return o(()=>import(`./turtle-Cx3rYX2g.js`).then(e=>D(e.turtle)),[])}}),T.of({name:`Web IDL`,extensions:[`webidl`],load(){return o(()=>import(`./webidl-D5jiJvOU.js`).then(e=>D(e.webIDL)),[])}}),T.of({name:`VB.NET`,extensions:[`vb`],load(){return o(()=>import(`./vb-BthdM_4N.js`).then(e=>D(e.vb)),[])}}),T.of({name:`VBScript`,extensions:[`vbs`],load(){return o(()=>import(`./vbscript-D9f6rSsU.js`).then(e=>D(e.vbScript)),[])}}),T.of({name:`Velocity`,extensions:[`vtl`],load(){return o(()=>import(`./velocity-CqftRsjg.js`).then(e=>D(e.velocity)),[])}}),T.of({name:`Verilog`,extensions:[`v`],load(){return o(()=>import(`./verilog-D-x6ne0Z.js`).then(e=>D(e.verilog)),[])}}),T.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return o(()=>import(`./vhdl-CMrOq2q1.js`).then(e=>D(e.vhdl)),[])}}),T.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return o(()=>import(`./xquery-fj_R-kMw.js`).then(e=>D(e.xQuery)),[])}}),T.of({name:`Yacas`,extensions:[`ys`],load(){return o(()=>import(`./yacas-CXXgtw0p.js`).then(e=>D(e.yacas)),[])}}),T.of({name:`Z80`,extensions:[`z80`],load(){return o(()=>import(`./z80-CL1naaMV.js`).then(e=>D(e.z80)),[])}}),T.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return o(()=>import(`./mscgen-qgSLujhx.js`).then(e=>D(e.mscgen)),[])}}),T.of({name:`Xù`,extensions:[`xu`],load(){return o(()=>import(`./mscgen-qgSLujhx.js`).then(e=>D(e.xu)),[])}}),T.of({name:`MsGenny`,extensions:[`msgenny`],load(){return o(()=>import(`./mscgen-qgSLujhx.js`).then(e=>D(e.msgenny)),[])}}),T.of({name:`Vue`,extensions:[`vue`],load(){return o(()=>import(`./dist-BzqqCPi2.js`).then(e=>e.vue()),__vite__mapDeps([29,8,5,6,2,3,9,1]))}}),T.of({name:`Angular Template`,load(){return o(()=>import(`./dist-8QDHqrPN.js`).then(e=>e.angular()),__vite__mapDeps([30,8,5,6,2,3,9,1]))}})],Ii=`#e5c07b`,Li=`#e06c75`,Ri=`#56b6c2`,zi=`#ffffff`,Bi=`#abb2bf`,Vi=`#7d8799`,Hi=`#61afef`,Ui=`#98c379`,Wi=`#d19a66`,Gi=`#c678dd`,Ki=`#21252b`,qi=`#2c313a`,Ji=`#282c34`,Yi=`#353a42`,Xi=`#3E4451`,Zi=`#528bff`,Qi=[y.theme({"&":{color:Bi,backgroundColor:Ji},".cm-content":{caretColor:Zi},".cm-cursor, .cm-dropCursor":{borderLeftColor:Zi},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Xi},".cm-panels":{backgroundColor:Ki,color:Bi},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid #457dff`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:`#6199ff2f`},".cm-activeLine":{backgroundColor:`#6699ff0b`},".cm-selectionMatch":{backgroundColor:`#aafe661a`},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:`#bad0f847`},".cm-gutters":{backgroundColor:Ji,color:Vi,border:`none`},".cm-activeLineGutter":{backgroundColor:qi},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:Yi},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Yi,borderBottomColor:Yi},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:qi,color:Bi}}},{dark:!0}),c(Me.define([{tag:C.keyword,color:Gi},{tag:[C.name,C.deleted,C.character,C.propertyName,C.macroName],color:Li},{tag:[C.function(C.variableName),C.labelName],color:Hi},{tag:[C.color,C.constant(C.name),C.standard(C.name)],color:Wi},{tag:[C.definition(C.name),C.separator],color:Bi},{tag:[C.typeName,C.className,C.number,C.changed,C.annotation,C.modifier,C.self,C.namespace],color:Ii},{tag:[C.operator,C.operatorKeyword,C.url,C.escape,C.regexp,C.link,C.special(C.string)],color:Ri},{tag:[C.meta,C.comment],color:Vi},{tag:C.strong,fontWeight:`bold`},{tag:C.emphasis,fontStyle:`italic`},{tag:C.strikethrough,textDecoration:`line-through`},{tag:C.link,color:Vi,textDecoration:`underline`},{tag:C.heading,fontWeight:`bold`,color:Li},{tag:[C.atom,C.bool,C.special(C.variableName)],color:Wi},{tag:[C.processingInstruction,C.string,C.inserted],color:Ui},{tag:C.invalid,color:zi}]))],$i=function(e){return e.docTypeError=`docTypeError`,e.contextNotFound=`contextNotFound`,e.timerNotFound=`timerNotFound`,e.ctxCallOutOfScope=`ctxCallOutOfScope`,e.createNodeInParserFail=`createNodeInParserFail`,e.stackOverFlow=`stackOverFlow`,e.parserMatchError=`parserMatchError`,e.serializerMatchError=`serializerMatchError`,e.getAtomFromSchemaFail=`getAtomFromSchemaFail`,e.expectDomTypeError=`expectDomTypeError`,e.callCommandBeforeEditorView=`callCommandBeforeEditorView`,e.missingRootElement=`missingRootElement`,e.missingNodeInSchema=`missingNodeInSchema`,e.missingMarkInSchema=`missingMarkInSchema`,e.ctxNotBind=`ctxNotBind`,e.missingYjsDoc=`missingYjsDoc`,e.aiProviderError=`aiProviderError`,e.aiBuildContextError=`aiBuildContextError`,e}({}),ea=class extends Error{constructor(e,t,n){super(t,n),this.name=`MilkdownError`,this.code=e,n?.cause!==void 0&&(this.cause=n.cause)}},ta=(e,t)=>typeof t==`function`?`[Function]`:t,na=e=>JSON.stringify(e,ta);function ra(e){return new ea($i.docTypeError,`Doc type error, unsupported type: ${na(e)}`)}function ia(e){return new ea($i.contextNotFound,`Context "${e}" not found, do you forget to inject it?`)}function aa(e){return new ea($i.timerNotFound,`Timer "${e}" not found, do you forget to record it?`)}function oa(){return new ea($i.ctxCallOutOfScope,`Should not call a context out of the plugin.`)}function sa(e,t,n){let r=`Cannot create node for ${`name`in e?e.name:e}`,i=e=>{if(e==null)return`null`;if(Array.isArray(e))return`[${e.map(i).join(`, `)}]`;if(typeof e==`object`)return`toJSON`in e&&typeof e.toJSON==`function`?JSON.stringify(e.toJSON()):`spec`in e?JSON.stringify(e.spec):JSON.stringify(e);if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return JSON.stringify(e);if(typeof e==`function`)return`[Function: ${e.name||`anonymous`}]`;try{return String(e)}catch{return`[Unserializable]`}},a=[[`[Description]`,r],[`[Attributes]`,t],[`[Content]`,(n??[]).map(e=>e?typeof e==`object`&&`type`in e?`${e}`:i(e):`null`)]].reduce((e,[t,n])=>{let r=`${t}: ${i(n)}.`;return e.concat(r)},[]);return new ea($i.createNodeInParserFail,a.join(`
|
|
2
|
+
import{i as e,n as t,o as n,r,t as i}from"./jsx-runtime-Bt-cYkS5.js";import{Z as a,t as o}from"./index-WCK14Vja.js";import{$ as s,A as c,B as l,Ct as u,Dt as d,E as f,Et as p,F as m,H as h,I as g,J as _,K as v,L as y,Mt as b,O as x,Ot as S,P as C,R as ee,S as te,St as w,T as ne,Tt as re,U as ie,V as ae,W as oe,X as se,Y as ce,Z as le,a as T,at as ue,bt as de,c as fe,ct as pe,dt as me,et as he,f as ge,ft as E,g as _e,gt as ve,it as ye,j as be,kt as xe,l as Se,lt as Ce,mt as we,n as Te,nt as Ee,o as De,ot as Oe,pt as ke,q as Ae,st as je,t as Me,tt as Ne,ut as Pe,v as Fe,vt as Ie,w as Le,wt as Re,x as ze,xt as Be,z as Ve}from"./dist-CbTzBiwL.js";import{i as He,n as Ue,o as We,r as Ge}from"./dist-zyJb88Zz.js";var Ke=typeof global==`object`&&global&&global.Object===Object&&global,qe=typeof self==`object`&&self&&self.Object===Object&&self,Je=Ke||qe||Function(`return this`)(),Ye=Je.Symbol,Xe=Object.prototype,Ze=Xe.hasOwnProperty,Qe=Xe.toString,$e=Ye?Ye.toStringTag:void 0;function et(e){var t=Ze.call(e,$e),n=e[$e];try{e[$e]=void 0;var r=!0}catch{}var i=Qe.call(e);return r&&(t?e[$e]=n:delete e[$e]),i}var tt=Object.prototype.toString;function nt(e){return tt.call(e)}var rt=`[object Null]`,it=`[object Undefined]`,at=Ye?Ye.toStringTag:void 0;function ot(e){return e==null?e===void 0?it:rt:at&&at in Object(e)?et(e):nt(e)}function st(e){return typeof e==`object`&&!!e}var ct=`[object Symbol]`;function lt(e){return typeof e==`symbol`||st(e)&&ot(e)==ct}var ut=Array.isArray,dt=/\s/;function ft(e){for(var t=e.length;t--&&dt.test(e.charAt(t)););return t}var pt=/^\s+/;function mt(e){return e&&e.slice(0,ft(e)+1).replace(pt,``)}function ht(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var gt=NaN,_t=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,bt=parseInt;function xt(e){if(typeof e==`number`)return e;if(lt(e))return gt;if(ht(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ht(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=mt(e);var n=vt.test(e);return n||yt.test(e)?bt(e.slice(2),n?2:8):_t.test(e)?gt:+e}function St(e){return e}var Ct=`[object AsyncFunction]`,wt=`[object Function]`,Tt=`[object GeneratorFunction]`,Et=`[object Proxy]`;function Dt(e){if(!ht(e))return!1;var t=ot(e);return t==wt||t==Tt||t==Ct||t==Et}var Ot=Je[`__core-js_shared__`],kt=function(){var e=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function At(e){return!!kt&&kt in e}var jt=Function.prototype.toString;function Mt(e){if(e!=null){try{return jt.call(e)}catch{}try{return e+``}catch{}}return``}var Nt=/[\\^$.*+?()[\]{}|]/g,Pt=/^\[object .+?Constructor\]$/,Ft=Function.prototype,It=Object.prototype,Lt=Ft.toString,Rt=It.hasOwnProperty,zt=RegExp(`^`+Lt.call(Rt).replace(Nt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Bt(e){return!ht(e)||At(e)?!1:(Dt(e)?zt:Pt).test(Mt(e))}function Vt(e,t){return e?.[t]}function Ht(e,t){var n=Vt(e,t);return Bt(n)?n:void 0}var Ut=Object.create,Wt=function(){function e(){}return function(t){if(!ht(t))return{};if(Ut)return Ut(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Kt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var qt=800,Jt=16,Yt=Date.now;function Xt(e){var t=0,n=0;return function(){var r=Yt(),i=Jt-(r-n);if(n=r,i>0){if(++t>=qt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Zt(e){return function(){return e}}var Qt=function(){try{var e=Ht(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),$t=Xt(Qt?function(e,t){return Qt(e,`toString`,{configurable:!0,enumerable:!1,value:Zt(t),writable:!0})}:St),en=9007199254740991,tn=/^(?:0|[1-9]\d*)$/;function nn(e,t){var n=typeof e;return t??=en,!!t&&(n==`number`||n!=`symbol`&&tn.test(e))&&e>-1&&e%1==0&&e<t}function rn(e,t,n){t==`__proto__`&&Qt?Qt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function an(e,t){return e===t||e!==e&&t!==t}var on=Object.prototype.hasOwnProperty;function sn(e,t,n){var r=e[t];(!(on.call(e,t)&&an(r,n))||n===void 0&&!(t in e))&&rn(e,t,n)}function cn(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?rn(n,s,c):sn(n,s,c)}return n}var ln=Math.max;function un(e,t,n){return t=ln(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ln(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Gt(e,this,s)}}function dn(e,t){return $t(un(e,t,St),e+``)}var fn=9007199254740991;function pn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=fn}function mn(e){return e!=null&&pn(e.length)&&!Dt(e)}function hn(e,t,n){if(!ht(n))return!1;var r=typeof t;return(r==`number`?mn(n)&&nn(t,n.length):r==`string`&&t in n)?an(n[t],e):!1}function gn(e){return dn(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&hn(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var _n=Object.prototype;function vn(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||_n)}function yn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var bn=`[object Arguments]`;function xn(e){return st(e)&&ot(e)==bn}var Sn=Object.prototype,Cn=Sn.hasOwnProperty,wn=Sn.propertyIsEnumerable,Tn=xn(function(){return arguments}())?xn:function(e){return st(e)&&Cn.call(e,`callee`)&&!wn.call(e,`callee`)};function En(){return!1}var Dn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,On=Dn&&typeof module==`object`&&module&&!module.nodeType&&module,kn=On&&On.exports===Dn?Je.Buffer:void 0,An=(kn?kn.isBuffer:void 0)||En,jn=`[object Arguments]`,Mn=`[object Array]`,Nn=`[object Boolean]`,Pn=`[object Date]`,Fn=`[object Error]`,In=`[object Function]`,Ln=`[object Map]`,Rn=`[object Number]`,zn=`[object Object]`,Bn=`[object RegExp]`,Vn=`[object Set]`,Hn=`[object String]`,Un=`[object WeakMap]`,Wn=`[object ArrayBuffer]`,Gn=`[object DataView]`,Kn=`[object Float32Array]`,qn=`[object Float64Array]`,Jn=`[object Int8Array]`,Yn=`[object Int16Array]`,Xn=`[object Int32Array]`,Zn=`[object Uint8Array]`,Qn=`[object Uint8ClampedArray]`,$n=`[object Uint16Array]`,er=`[object Uint32Array]`,tr={};tr[Kn]=tr[qn]=tr[Jn]=tr[Yn]=tr[Xn]=tr[Zn]=tr[Qn]=tr[$n]=tr[er]=!0,tr[jn]=tr[Mn]=tr[Wn]=tr[Nn]=tr[Gn]=tr[Pn]=tr[Fn]=tr[In]=tr[Ln]=tr[Rn]=tr[zn]=tr[Bn]=tr[Vn]=tr[Hn]=tr[Un]=!1;function nr(e){return st(e)&&pn(e.length)&&!!tr[ot(e)]}function rr(e){return function(t){return e(t)}}var ir=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ar=ir&&typeof module==`object`&&module&&!module.nodeType&&module,or=ar&&ar.exports===ir&&Ke.process,sr=function(){try{return ar&&ar.require&&ar.require(`util`).types||or&&or.binding&&or.binding(`util`)}catch{}}(),cr=sr&&sr.isTypedArray,lr=cr?rr(cr):nr,ur=Object.prototype.hasOwnProperty;function dr(e,t){var n=ut(e),r=!n&&Tn(e),i=!n&&!r&&An(e),a=!n&&!r&&!i&&lr(e),o=n||r||i||a,s=o?yn(e.length,String):[],c=s.length;for(var l in e)(t||ur.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||nn(l,c)))&&s.push(l);return s}function fr(e,t){return function(n){return e(t(n))}}function pr(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var mr=Object.prototype.hasOwnProperty;function hr(e){if(!ht(e))return pr(e);var t=vn(e),n=[];for(var r in e)r==`constructor`&&(t||!mr.call(e,r))||n.push(r);return n}function gr(e){return mn(e)?dr(e,!0):hr(e)}var _r=Ht(Object,`create`);function vr(){this.__data__=_r?_r(null):{},this.size=0}function yr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var br=`__lodash_hash_undefined__`,xr=Object.prototype.hasOwnProperty;function Sr(e){var t=this.__data__;if(_r){var n=t[e];return n===br?void 0:n}return xr.call(t,e)?t[e]:void 0}var Cr=Object.prototype.hasOwnProperty;function wr(e){var t=this.__data__;return _r?t[e]!==void 0:Cr.call(t,e)}var Tr=`__lodash_hash_undefined__`;function Er(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=_r&&t===void 0?Tr:t,this}function Dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dr.prototype.clear=vr,Dr.prototype.delete=yr,Dr.prototype.get=Sr,Dr.prototype.has=wr,Dr.prototype.set=Er;function Or(){this.__data__=[],this.size=0}function kr(e,t){for(var n=e.length;n--;)if(an(e[n][0],t))return n;return-1}var Ar=Array.prototype.splice;function jr(e){var t=this.__data__,n=kr(t,e);return n<0?!1:(n==t.length-1?t.pop():Ar.call(t,n,1),--this.size,!0)}function Mr(e){var t=this.__data__,n=kr(t,e);return n<0?void 0:t[n][1]}function Nr(e){return kr(this.__data__,e)>-1}function Pr(e,t){var n=this.__data__,r=kr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fr.prototype.clear=Or,Fr.prototype.delete=jr,Fr.prototype.get=Mr,Fr.prototype.has=Nr,Fr.prototype.set=Pr;var Ir=Ht(Je,`Map`);function Lr(){this.size=0,this.__data__={hash:new Dr,map:new(Ir||Fr),string:new Dr}}function Rr(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function zr(e,t){var n=e.__data__;return Rr(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Br(e){var t=zr(this,e).delete(e);return this.size-=+!!t,t}function Vr(e){return zr(this,e).get(e)}function Hr(e){return zr(this,e).has(e)}function Ur(e,t){var n=zr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wr.prototype.clear=Lr,Wr.prototype.delete=Br,Wr.prototype.get=Vr,Wr.prototype.has=Hr,Wr.prototype.set=Ur;var Gr=fr(Object.getPrototypeOf,Object),Kr=`[object Object]`,qr=Function.prototype,Jr=Object.prototype,Yr=qr.toString,Xr=Jr.hasOwnProperty,Zr=Yr.call(Object);function Qr(e){if(!st(e)||ot(e)!=Kr)return!1;var t=Gr(e);if(t===null)return!0;var n=Xr.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Yr.call(n)==Zr}function $r(){this.__data__=new Fr,this.size=0}function ei(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}var ri=200;function ii(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!Ir||r.length<ri-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wr(r)}return n.set(e,t),this.size=n.size,this}function ai(e){var t=this.__data__=new Fr(e);this.size=t.size}ai.prototype.clear=$r,ai.prototype.delete=ei,ai.prototype.get=ti,ai.prototype.has=ni,ai.prototype.set=ii;var oi=typeof exports==`object`&&exports&&!exports.nodeType&&exports,si=oi&&typeof module==`object`&&module&&!module.nodeType&&module,ci=si&&si.exports===oi?Je.Buffer:void 0,li=ci?ci.allocUnsafe:void 0;function ui(e,t){if(t)return e.slice();var n=e.length,r=li?li(n):new e.constructor(n);return e.copy(r),r}var di=Je.Uint8Array;function fi(e){var t=new e.constructor(e.byteLength);return new di(t).set(new di(e)),t}function pi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e){return typeof e.constructor==`function`&&!vn(e)?Wt(Gr(e)):{}}function hi(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var gi=hi(),_i=function(){return Je.Date.now()},vi=`Expected a function`,yi=Math.max,bi=Math.min;function xi(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(vi);t=xt(t)||0,ht(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?yi(xt(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?bi(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=_i();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(_i())}function x(){var e=_i(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}function Si(e,t,n){(n!==void 0&&!an(e[t],n)||n===void 0&&!(t in e))&&rn(e,t,n)}function Ci(e){return st(e)&&mn(e)}function wi(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Ti(e){return cn(e,gr(e))}function Ei(e,t,n,r,i,a,o){var s=wi(e,n),c=wi(t,n),l=o.get(c);if(l){Si(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=ut(c),p=!f&&An(c),m=!f&&!p&&lr(c);u=c,f||p||m?ut(s)?u=s:Ci(s)?u=Kt(s):p?(d=!1,u=ui(c,!0)):m?(d=!1,u=pi(c,!0)):u=[]:Qr(c)||Tn(c)?(u=s,Tn(s)?u=Ti(s):(!ht(s)||Dt(s))&&(u=mi(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Si(e,n,u)}function Di(e,t,n,r,i){e!==t&&gi(t,function(a,o){if(i||=new ai,ht(a))Ei(e,t,o,n,Di,r,i);else{var s=r?r(wi(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Si(e,o,s)}},gr)}function Oi(e,t,n,r,i,a){return ht(e)&&ht(t)&&(a.set(t,e),Di(e,t,void 0,Oi,a),a.delete(t)),e}var ki=gn(function(e,t,n,r){Di(e,t,n,r)}),Ai=dn(function(e){return e.push(void 0,Oi),Gt(ki,void 0,e)}),ji=`Expected a function`;function Mi(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ji);return ht(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),xi(e,t,{leading:r,maxWait:t,trailing:i})}var Ni=n(t(),1);function D(e){return new De(fe.define(e))}function Pi(e){return o(()=>import(`./dist-BPs0Xns9.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1,2,3]))}var Fi=[T.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return o(()=>import(`./dist-IGpXmkFm.js`).then(e=>e.cpp()),__vite__mapDeps([4,2,3]))}}),T.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return o(()=>import(`./dist-IGpXmkFm.js`).then(e=>e.cpp()),__vite__mapDeps([4,2,3]))}}),T.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return Pi(`Cassandra`)}}),T.of({name:`CSS`,extensions:[`css`],load(){return o(()=>import(`./dist-D94V9Zlh.js`).then(e=>e.i).then(e=>e.css()),__vite__mapDeps([5,6,2,3]))}}),T.of({name:`Go`,extensions:[`go`],load(){return o(()=>import(`./dist-B0JrbG7f.js`).then(e=>e.go()),__vite__mapDeps([7,1,2,3]))}}),T.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return o(()=>import(`./dist-DJdv-Ma3.js`).then(e=>e.html()),__vite__mapDeps([8,5,6,2,3,9,1]))}}),T.of({name:`Java`,extensions:[`java`],load(){return o(()=>import(`./dist-yZ96GF-e.js`).then(e=>e.java()),__vite__mapDeps([10,2,3]))}}),T.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript()),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return o(()=>import(`./dist-chOCTzB2.js`).then(e=>e.jinja()),__vite__mapDeps([11,8,5,6,2,3,9,1]))}}),T.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return o(()=>import(`./dist-IN8WN7NI.js`).then(e=>e.json()),__vite__mapDeps([12,2,3]))}}),T.of({name:`JSX`,extensions:[`jsx`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0})),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`LESS`,extensions:[`less`],load(){return o(()=>import(`./dist-CqQavSZV.js`).then(e=>e.less()),__vite__mapDeps([13,5,6,2,3]))}}),T.of({name:`Liquid`,extensions:[`liquid`],load(){return o(()=>import(`./dist-DCX0ws1K.js`).then(e=>e.liquid()),__vite__mapDeps([14,8,5,6,2,3,9,1]))}}),T.of({name:`MariaDB SQL`,load(){return Pi(`MariaSQL`)}}),T.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return o(()=>import(`./dist-CfU9fwWz.js`).then(e=>e.markdown()),__vite__mapDeps([15,1,2,8,5,6,3,9]))}}),T.of({name:`MS SQL`,load(){return Pi(`MSSQL`)}}),T.of({name:`MySQL`,load(){return Pi(`MySQL`)}}),T.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return o(()=>import(`./dist-BFSyuOuw.js`).then(e=>e.php()),__vite__mapDeps([16,8,5,6,2,3,9,1]))}}),T.of({name:`PLSQL`,extensions:[`pls`],load(){return Pi(`PLSQL`)}}),T.of({name:`PostgreSQL`,load(){return Pi(`PostgreSQL`)}}),T.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return o(()=>import(`./dist-C3lbe8SW.js`).then(e=>e.python()),__vite__mapDeps([17,1,2,3]))}}),T.of({name:`Rust`,extensions:[`rs`],load(){return o(()=>import(`./dist-DvWZsW-D.js`).then(e=>e.rust()),__vite__mapDeps([18,2,3]))}}),T.of({name:`Sass`,extensions:[`sass`],load(){return o(()=>import(`./dist-DTL5jL08.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([19,5,6,2,3]))}}),T.of({name:`SCSS`,extensions:[`scss`],load(){return o(()=>import(`./dist-DTL5jL08.js`).then(e=>e.sass()),__vite__mapDeps([19,5,6,2,3]))}}),T.of({name:`SQL`,extensions:[`sql`],load(){return Pi(`StandardSQL`)}}),T.of({name:`SQLite`,load(){return Pi(`SQLite`)}}),T.of({name:`TSX`,extensions:[`tsx`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0,typescript:!0})),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return o(()=>import(`./dist-Br_5lLVO.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([9,6,1,2,3]))}}),T.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return o(()=>import(`./dist-BAJKKN4w.js`).then(e=>e.wast()),__vite__mapDeps([20,2,3]))}}),T.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return o(()=>import(`./dist-CMmmtl3f.js`).then(e=>e.xml()),__vite__mapDeps([21,2,3]))}}),T.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return o(()=>import(`./dist-DBnWo8ZP.js`).then(e=>e.yaml()),__vite__mapDeps([22,2,3]))}}),T.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return o(()=>import(`./apl-CnwPGSsG.js`).then(e=>D(e.apl)),[])}}),T.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return o(()=>import(`./asciiarmor-qTkVPQu6.js`).then(e=>D(e.asciiArmor)),[])}}),T.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return o(()=>import(`./asn1-Dr8qZg38.js`).then(e=>D(e.asn1({}))),[])}}),T.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return o(()=>import(`./asterisk-Bja0s6e1.js`).then(e=>D(e.asterisk)),[])}}),T.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return o(()=>import(`./brainfuck-D5EjA2JK.js`).then(e=>D(e.brainfuck)),[])}}),T.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return o(()=>import(`./cobol-B_OZ4V-R.js`).then(e=>D(e.cobol)),[])}}),T.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.csharp)),[])}}),T.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return o(()=>import(`./clojure-BflJGmDX.js`).then(e=>D(e.clojure)),[])}}),T.of({name:`ClojureScript`,extensions:[`cljs`],load(){return o(()=>import(`./clojure-BflJGmDX.js`).then(e=>D(e.clojure)),[])}}),T.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return o(()=>import(`./css-CYpP4FRV.js`).then(e=>D(e.gss)),[])}}),T.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return o(()=>import(`./cmake-CyVbuzPu.js`).then(e=>D(e.cmake)),[])}}),T.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return o(()=>import(`./coffeescript-B2pKbFk8.js`).then(e=>D(e.coffeeScript)),[])}}),T.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return o(()=>import(`./commonlisp-CcllspGY.js`).then(e=>D(e.commonLisp)),[])}}),T.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return o(()=>import(`./cypher-p9eYesGn.js`).then(e=>D(e.cypher)),[])}}),T.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return o(()=>import(`./python-BqYw9LYJ.js`).then(e=>D(e.cython)),[])}}),T.of({name:`Crystal`,extensions:[`cr`],load(){return o(()=>import(`./crystal-M5-qzICs.js`).then(e=>D(e.crystal)),[])}}),T.of({name:`D`,extensions:[`d`],load(){return o(()=>import(`./d-BhMjBjQP.js`).then(e=>D(e.d)),[])}}),T.of({name:`Dart`,extensions:[`dart`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.dart)),[])}}),T.of({name:`diff`,extensions:[`diff`,`patch`],load(){return o(()=>import(`./diff-ChtP43wD.js`).then(e=>D(e.diff)),[])}}),T.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return o(()=>import(`./dockerfile-BLkNEvjs.js`).then(e=>D(e.dockerFile)),__vite__mapDeps([23,24]))}}),T.of({name:`DTD`,extensions:[`dtd`],load(){return o(()=>import(`./dtd-DTF72YNO.js`).then(e=>D(e.dtd)),[])}}),T.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return o(()=>import(`./dylan-C6jEEEk-.js`).then(e=>D(e.dylan)),[])}}),T.of({name:`EBNF`,load(){return o(()=>import(`./ebnf-D4c0_ac3.js`).then(e=>D(e.ebnf)),[])}}),T.of({name:`ECL`,extensions:[`ecl`],load(){return o(()=>import(`./ecl-BSZaIHnp.js`).then(e=>D(e.ecl)),[])}}),T.of({name:`edn`,extensions:[`edn`],load(){return o(()=>import(`./clojure-BflJGmDX.js`).then(e=>D(e.clojure)),[])}}),T.of({name:`Eiffel`,extensions:[`e`],load(){return o(()=>import(`./eiffel-BEjRio4Q.js`).then(e=>D(e.eiffel)),[])}}),T.of({name:`Elm`,extensions:[`elm`],load(){return o(()=>import(`./elm-Cshzl8qu.js`).then(e=>D(e.elm)),[])}}),T.of({name:`Erlang`,extensions:[`erl`],load(){return o(()=>import(`./erlang-DaB2Rkuy.js`).then(e=>D(e.erlang)),[])}}),T.of({name:`Esper`,load(){return o(()=>import(`./sql-DcCJ9jop.js`).then(e=>D(e.esper)),[])}}),T.of({name:`Factor`,extensions:[`factor`],load(){return o(()=>import(`./factor-D7LVTn2l.js`).then(e=>D(e.factor)),__vite__mapDeps([25,24]))}}),T.of({name:`FCL`,load(){return o(()=>import(`./fcl-ClOhbFR7.js`).then(e=>D(e.fcl)),[])}}),T.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return o(()=>import(`./forth-Cezjo90N.js`).then(e=>D(e.forth)),[])}}),T.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return o(()=>import(`./fortran-Bt6PBEDR.js`).then(e=>D(e.fortran)),[])}}),T.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return o(()=>import(`./mllike-B45xgp2S.js`).then(e=>D(e.fSharp)),[])}}),T.of({name:`Gas`,extensions:[`s`],load(){return o(()=>import(`./gas-BHEdbvp9.js`).then(e=>D(e.gas)),[])}}),T.of({name:`Gherkin`,extensions:[`feature`],load(){return o(()=>import(`./gherkin-oBAE_ms0.js`).then(e=>D(e.gherkin)),[])}}),T.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return o(()=>import(`./groovy-BC3IOsC8.js`).then(e=>D(e.groovy)),[])}}),T.of({name:`Haskell`,extensions:[`hs`],load(){return o(()=>import(`./haskell-BRsoo5mP.js`).then(e=>D(e.haskell)),[])}}),T.of({name:`Haxe`,extensions:[`hx`],load(){return o(()=>import(`./haxe-DjVOVvNP.js`).then(e=>D(e.haxe)),[])}}),T.of({name:`HXML`,extensions:[`hxml`],load(){return o(()=>import(`./haxe-DjVOVvNP.js`).then(e=>D(e.hxml)),[])}}),T.of({name:`HTTP`,load(){return o(()=>import(`./http-CLVgA2GD.js`).then(e=>D(e.http)),[])}}),T.of({name:`IDL`,extensions:[`pro`],load(){return o(()=>import(`./idl-BUZw3wgd.js`).then(e=>D(e.idl)),[])}}),T.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return o(()=>import(`./javascript-8HiN0ThV.js`).then(e=>D(e.jsonld)),[])}}),T.of({name:`Julia`,extensions:[`jl`],load(){return o(()=>import(`./julia-CQfgDRfP.js`).then(e=>D(e.julia)),[])}}),T.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.kotlin)),[])}}),T.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return o(()=>import(`./livescript-BXxG0Yva.js`).then(e=>D(e.liveScript)),[])}}),T.of({name:`Lua`,extensions:[`lua`],load(){return o(()=>import(`./lua-CiA1ziua.js`).then(e=>D(e.lua)),[])}}),T.of({name:`mIRC`,extensions:[`mrc`],load(){return o(()=>import(`./mirc-C9zpzAZU.js`).then(e=>D(e.mirc)),[])}}),T.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return o(()=>import(`./mathematica-u8YMmbU0.js`).then(e=>D(e.mathematica)),[])}}),T.of({name:`Modelica`,extensions:[`mo`],load(){return o(()=>import(`./modelica-CqHI_q-D.js`).then(e=>D(e.modelica)),[])}}),T.of({name:`MUMPS`,extensions:[`mps`],load(){return o(()=>import(`./mumps-CW_TBmxz.js`).then(e=>D(e.mumps)),[])}}),T.of({name:`Mbox`,extensions:[`mbox`],load(){return o(()=>import(`./mbox-BEMVcqjs.js`).then(e=>D(e.mbox)),[])}}),T.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return o(()=>import(`./nginx-BMaDbqW3.js`).then(e=>D(e.nginx)),[])}}),T.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return o(()=>import(`./nsis-AQ_alPln.js`).then(e=>D(e.nsis)),__vite__mapDeps([26,24]))}}),T.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return o(()=>import(`./ntriples-d28e9m0E.js`).then(e=>D(e.ntriples)),[])}}),T.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.objectiveC)),[])}}),T.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.objectiveCpp)),[])}}),T.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return o(()=>import(`./mllike-B45xgp2S.js`).then(e=>D(e.oCaml)),[])}}),T.of({name:`Octave`,extensions:[`m`],load(){return o(()=>import(`./octave-D2Q8cUp1.js`).then(e=>D(e.octave)),[])}}),T.of({name:`Oz`,extensions:[`oz`],load(){return o(()=>import(`./oz-BwTct_5T.js`).then(e=>D(e.oz)),[])}}),T.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return o(()=>import(`./pascal-Dp_KdFgX.js`).then(e=>D(e.pascal)),[])}}),T.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return o(()=>import(`./perl-CdEHsPfU.js`).then(e=>D(e.perl)),[])}}),T.of({name:`Pig`,extensions:[`pig`],load(){return o(()=>import(`./pig-AF4Hwhju.js`).then(e=>D(e.pig)),[])}}),T.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return o(()=>import(`./powershell-CzG71I4L.js`).then(e=>D(e.powerShell)),[])}}),T.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return o(()=>import(`./properties-C357ku5U.js`).then(e=>D(e.properties)),[])}}),T.of({name:`ProtoBuf`,extensions:[`proto`],load(){return o(()=>import(`./protobuf-D1ij_kNL.js`).then(e=>D(e.protobuf)),[])}}),T.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return o(()=>import(`./pug-DyBTKFx8.js`).then(e=>D(e.pug)),__vite__mapDeps([27,28]))}}),T.of({name:`Puppet`,extensions:[`pp`],load(){return o(()=>import(`./puppet-B4hC2X4m.js`).then(e=>D(e.puppet)),[])}}),T.of({name:`Q`,extensions:[`q`],load(){return o(()=>import(`./q-B9NhS7L_.js`).then(e=>D(e.q)),[])}}),T.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return o(()=>import(`./r-DADKenSm.js`).then(e=>D(e.r)),[])}}),T.of({name:`RPM Changes`,load(){return o(()=>import(`./rpm-gpDK5sbt.js`).then(e=>D(e.rpmChanges)),[])}}),T.of({name:`RPM Spec`,extensions:[`spec`],load(){return o(()=>import(`./rpm-gpDK5sbt.js`).then(e=>D(e.rpmSpec)),[])}}),T.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return o(()=>import(`./ruby-DsYpTuWg.js`).then(e=>D(e.ruby)),[])}}),T.of({name:`SAS`,extensions:[`sas`],load(){return o(()=>import(`./sas-C2OyD2Y6.js`).then(e=>D(e.sas)),[])}}),T.of({name:`Scala`,extensions:[`scala`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.scala)),[])}}),T.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return o(()=>import(`./scheme-CyDdOh7e.js`).then(e=>D(e.scheme)),[])}}),T.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return o(()=>import(`./shell-Du5Qg9im.js`).then(e=>D(e.shell)),[])}}),T.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return o(()=>import(`./sieve-BAxa3IjF.js`).then(e=>D(e.sieve)),[])}}),T.of({name:`Smalltalk`,extensions:[`st`],load(){return o(()=>import(`./smalltalk-BLp5-jwC.js`).then(e=>D(e.smalltalk)),[])}}),T.of({name:`Solr`,load(){return o(()=>import(`./solr-BBopId9w.js`).then(e=>D(e.solr)),[])}}),T.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return o(()=>import(`./mllike-B45xgp2S.js`).then(e=>D(e.sml)),[])}}),T.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return o(()=>import(`./sparql-Dz-mlCAC.js`).then(e=>D(e.sparql)),[])}}),T.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return o(()=>import(`./spreadsheet-CTIncYxj.js`).then(e=>D(e.spreadsheet)),[])}}),T.of({name:`Squirrel`,extensions:[`nut`],load(){return o(()=>import(`./clike-DHH8Ad3s.js`).then(e=>D(e.squirrel)),[])}}),T.of({name:`Stylus`,extensions:[`styl`],load(){return o(()=>import(`./stylus-DLLZ8dgm.js`).then(e=>D(e.stylus)),[])}}),T.of({name:`Swift`,extensions:[`swift`],load(){return o(()=>import(`./swift-DKB6_1j6.js`).then(e=>D(e.swift)),[])}}),T.of({name:`sTeX`,load(){return o(()=>import(`./stex-sDrdk2BW.js`).then(e=>D(e.stex)),[])}}),T.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return o(()=>import(`./stex-sDrdk2BW.js`).then(e=>D(e.stex)),[])}}),T.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return o(()=>import(`./verilog-D-x6ne0Z.js`).then(e=>D(e.verilog)),[])}}),T.of({name:`Tcl`,extensions:[`tcl`],load(){return o(()=>import(`./tcl-BGfruO1u.js`).then(e=>D(e.tcl)),[])}}),T.of({name:`Textile`,extensions:[`textile`],load(){return o(()=>import(`./textile-DWBqthVk.js`).then(e=>D(e.textile)),[])}}),T.of({name:`TiddlyWiki`,load(){return o(()=>import(`./tiddlywiki-VlUiK86J.js`).then(e=>D(e.tiddlyWiki)),[])}}),T.of({name:`Tiki wiki`,load(){return o(()=>import(`./tiki-CxVlf5KZ.js`).then(e=>D(e.tiki)),[])}}),T.of({name:`TOML`,extensions:[`toml`],load(){return o(()=>import(`./toml-LvoKBwCs.js`).then(e=>D(e.toml)),[])}}),T.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return o(()=>import(`./troff-C2dAgh7P.js`).then(e=>D(e.troff)),[])}}),T.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return o(()=>import(`./ttcn-BePYh-hG.js`).then(e=>D(e.ttcn)),[])}}),T.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return o(()=>import(`./ttcn-cfg-CY0aot7Q.js`).then(e=>D(e.ttcnCfg)),[])}}),T.of({name:`Turtle`,extensions:[`ttl`],load(){return o(()=>import(`./turtle-Cx3rYX2g.js`).then(e=>D(e.turtle)),[])}}),T.of({name:`Web IDL`,extensions:[`webidl`],load(){return o(()=>import(`./webidl-D5jiJvOU.js`).then(e=>D(e.webIDL)),[])}}),T.of({name:`VB.NET`,extensions:[`vb`],load(){return o(()=>import(`./vb-BthdM_4N.js`).then(e=>D(e.vb)),[])}}),T.of({name:`VBScript`,extensions:[`vbs`],load(){return o(()=>import(`./vbscript-D9f6rSsU.js`).then(e=>D(e.vbScript)),[])}}),T.of({name:`Velocity`,extensions:[`vtl`],load(){return o(()=>import(`./velocity-CqftRsjg.js`).then(e=>D(e.velocity)),[])}}),T.of({name:`Verilog`,extensions:[`v`],load(){return o(()=>import(`./verilog-D-x6ne0Z.js`).then(e=>D(e.verilog)),[])}}),T.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return o(()=>import(`./vhdl-CMrOq2q1.js`).then(e=>D(e.vhdl)),[])}}),T.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return o(()=>import(`./xquery-fj_R-kMw.js`).then(e=>D(e.xQuery)),[])}}),T.of({name:`Yacas`,extensions:[`ys`],load(){return o(()=>import(`./yacas-CXXgtw0p.js`).then(e=>D(e.yacas)),[])}}),T.of({name:`Z80`,extensions:[`z80`],load(){return o(()=>import(`./z80-CL1naaMV.js`).then(e=>D(e.z80)),[])}}),T.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return o(()=>import(`./mscgen-qgSLujhx.js`).then(e=>D(e.mscgen)),[])}}),T.of({name:`Xù`,extensions:[`xu`],load(){return o(()=>import(`./mscgen-qgSLujhx.js`).then(e=>D(e.xu)),[])}}),T.of({name:`MsGenny`,extensions:[`msgenny`],load(){return o(()=>import(`./mscgen-qgSLujhx.js`).then(e=>D(e.msgenny)),[])}}),T.of({name:`Vue`,extensions:[`vue`],load(){return o(()=>import(`./dist-BzqqCPi2.js`).then(e=>e.vue()),__vite__mapDeps([29,8,5,6,2,3,9,1]))}}),T.of({name:`Angular Template`,load(){return o(()=>import(`./dist-8QDHqrPN.js`).then(e=>e.angular()),__vite__mapDeps([30,8,5,6,2,3,9,1]))}})],Ii=`#e5c07b`,Li=`#e06c75`,Ri=`#56b6c2`,zi=`#ffffff`,Bi=`#abb2bf`,Vi=`#7d8799`,Hi=`#61afef`,Ui=`#98c379`,Wi=`#d19a66`,Gi=`#c678dd`,Ki=`#21252b`,qi=`#2c313a`,Ji=`#282c34`,Yi=`#353a42`,Xi=`#3E4451`,Zi=`#528bff`,Qi=[y.theme({"&":{color:Bi,backgroundColor:Ji},".cm-content":{caretColor:Zi},".cm-cursor, .cm-dropCursor":{borderLeftColor:Zi},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Xi},".cm-panels":{backgroundColor:Ki,color:Bi},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid #457dff`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:`#6199ff2f`},".cm-activeLine":{backgroundColor:`#6699ff0b`},".cm-selectionMatch":{backgroundColor:`#aafe661a`},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:`#bad0f847`},".cm-gutters":{backgroundColor:Ji,color:Vi,border:`none`},".cm-activeLineGutter":{backgroundColor:qi},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:Yi},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Yi,borderBottomColor:Yi},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:qi,color:Bi}}},{dark:!0}),c(Me.define([{tag:C.keyword,color:Gi},{tag:[C.name,C.deleted,C.character,C.propertyName,C.macroName],color:Li},{tag:[C.function(C.variableName),C.labelName],color:Hi},{tag:[C.color,C.constant(C.name),C.standard(C.name)],color:Wi},{tag:[C.definition(C.name),C.separator],color:Bi},{tag:[C.typeName,C.className,C.number,C.changed,C.annotation,C.modifier,C.self,C.namespace],color:Ii},{tag:[C.operator,C.operatorKeyword,C.url,C.escape,C.regexp,C.link,C.special(C.string)],color:Ri},{tag:[C.meta,C.comment],color:Vi},{tag:C.strong,fontWeight:`bold`},{tag:C.emphasis,fontStyle:`italic`},{tag:C.strikethrough,textDecoration:`line-through`},{tag:C.link,color:Vi,textDecoration:`underline`},{tag:C.heading,fontWeight:`bold`,color:Li},{tag:[C.atom,C.bool,C.special(C.variableName)],color:Wi},{tag:[C.processingInstruction,C.string,C.inserted],color:Ui},{tag:C.invalid,color:zi}]))],$i=function(e){return e.docTypeError=`docTypeError`,e.contextNotFound=`contextNotFound`,e.timerNotFound=`timerNotFound`,e.ctxCallOutOfScope=`ctxCallOutOfScope`,e.createNodeInParserFail=`createNodeInParserFail`,e.stackOverFlow=`stackOverFlow`,e.parserMatchError=`parserMatchError`,e.serializerMatchError=`serializerMatchError`,e.getAtomFromSchemaFail=`getAtomFromSchemaFail`,e.expectDomTypeError=`expectDomTypeError`,e.callCommandBeforeEditorView=`callCommandBeforeEditorView`,e.missingRootElement=`missingRootElement`,e.missingNodeInSchema=`missingNodeInSchema`,e.missingMarkInSchema=`missingMarkInSchema`,e.ctxNotBind=`ctxNotBind`,e.missingYjsDoc=`missingYjsDoc`,e.aiProviderError=`aiProviderError`,e.aiBuildContextError=`aiBuildContextError`,e}({}),ea=class extends Error{constructor(e,t,n){super(t,n),this.name=`MilkdownError`,this.code=e,n?.cause!==void 0&&(this.cause=n.cause)}},ta=(e,t)=>typeof t==`function`?`[Function]`:t,na=e=>JSON.stringify(e,ta);function ra(e){return new ea($i.docTypeError,`Doc type error, unsupported type: ${na(e)}`)}function ia(e){return new ea($i.contextNotFound,`Context "${e}" not found, do you forget to inject it?`)}function aa(e){return new ea($i.timerNotFound,`Timer "${e}" not found, do you forget to record it?`)}function oa(){return new ea($i.ctxCallOutOfScope,`Should not call a context out of the plugin.`)}function sa(e,t,n){let r=`Cannot create node for ${`name`in e?e.name:e}`,i=e=>{if(e==null)return`null`;if(Array.isArray(e))return`[${e.map(i).join(`, `)}]`;if(typeof e==`object`)return`toJSON`in e&&typeof e.toJSON==`function`?JSON.stringify(e.toJSON()):`spec`in e?JSON.stringify(e.spec):JSON.stringify(e);if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return JSON.stringify(e);if(typeof e==`function`)return`[Function: ${e.name||`anonymous`}]`;try{return String(e)}catch{return`[Unserializable]`}},a=[[`[Description]`,r],[`[Attributes]`,t],[`[Content]`,(n??[]).map(e=>e?typeof e==`object`&&`type`in e?`${e}`:i(e):`null`)]].reduce((e,[t,n])=>{let r=`${t}: ${i(n)}.`;return e.concat(r)},[]);return new ea($i.createNodeInParserFail,a.join(`
|
|
3
3
|
`))}function ca(){return new ea($i.stackOverFlow,`Stack over flow, cannot pop on an empty stack.`)}function la(e){return new ea($i.parserMatchError,`Cannot match target parser for node: ${na(e)}.`)}function ua(e){return new ea($i.serializerMatchError,`Cannot match target serializer for node: ${na(e)}.`)}function da(e,t){return new ea($i.getAtomFromSchemaFail,`Cannot get ${e}: ${t} from schema.`)}function fa(e){return new ea($i.expectDomTypeError,`Expect to be a dom, but get: ${na(e)}.`)}function pa(){return new ea($i.callCommandBeforeEditorView,`You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized`)}function ma(e){return new ea($i.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${e}" in schema.`)}function ha(e){return new ea($i.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${e}" in schema.`)}function ga(e){try{return na(e)}catch{return`[Unserializable]`}}function _a(e){let t=e instanceof Error?e.message:ga(e);return new ea($i.aiProviderError,`AI provider error: ${t}`,{cause:e})}function va(e){let t=e instanceof Error?e.message:ga(e);return new ea($i.aiBuildContextError,`AI buildContext failed: ${t}`,{cause:e})}var ya=class{constructor(){this.sliceMap=new Map,this.get=e=>{let t=typeof e==`string`?[...this.sliceMap.values()].find(t=>t.type.name===e):this.sliceMap.get(e.id);if(!t)throw ia(typeof e==`string`?e:e.name);return t},this.remove=e=>{let t=typeof e==`string`?[...this.sliceMap.values()].find(t=>t.type.name===e):this.sliceMap.get(e.id);t&&this.sliceMap.delete(t.type.id)},this.has=e=>typeof e==`string`?[...this.sliceMap.values()].some(t=>t.type.name===e):this.sliceMap.has(e.id)}},ba=class{#e;#t;#n;constructor(e,t,n){this.#e=[],this.#n=()=>{this.#e.forEach(e=>e(this.#t))},this.set=e=>{this.#t=e,this.#n()},this.get=()=>this.#t,this.update=e=>{this.#t=e(this.#t),this.#n()},this.type=n,this.#t=t,e.set(n.id,this)}on(e){return this.#e.push(e),()=>{this.#e=this.#e.filter(t=>t!==e)}}once(e){let t=this.on(n=>{e(n),t()});return t}off(e){this.#e=this.#e.filter(t=>t!==e)}offAll(){this.#e=[]}},xa=class{constructor(e,t){this.id=Symbol(`Context-${t}`),this.name=t,this._defaultValue=e,this._typeInfo=()=>{throw oa()}}create(e,t=this._defaultValue){return new ba(e,t,this)}},Sa=(e,t)=>new xa(e,t),Ca=class{#e;#t;#n;#r;#i;#a;#o;constructor(e,t,n){this.#r=new Set,this.#i=new Set,this.#a=new Map,this.#o=new Map,this.read=()=>({metadata:this.#e,injectedSlices:[...this.#r].map(e=>({name:typeof e==`string`?e:e.name,value:this.#s(e)})),consumedSlices:[...this.#i].map(e=>({name:typeof e==`string`?e:e.name,value:this.#s(e)})),recordedTimers:[...this.#a].map(([e,{duration:t}])=>({name:e.name,duration:t,status:this.#c(e)})),waitTimers:[...this.#o].map(([e,{duration:t}])=>({name:e.name,duration:t,status:this.#c(e)}))}),this.onRecord=e=>{this.#a.set(e,{start:Date.now(),duration:0})},this.onClear=e=>{this.#a.delete(e)},this.onDone=e=>{let t=this.#a.get(e);t&&(t.duration=Date.now()-t.start)},this.onWait=(e,t)=>{let n=Date.now();t.finally(()=>{this.#o.set(e,{duration:Date.now()-n})}).catch(console.error)},this.onInject=e=>{this.#r.add(e)},this.onRemove=e=>{this.#r.delete(e)},this.onUse=e=>{this.#i.add(e)},this.#s=e=>this.#t.get(e).get(),this.#c=e=>this.#n.get(e).status,this.#t=e,this.#n=t,this.#e=n}#s;#c},wa=class e{#e;#t;#n;#r;constructor(t,n,r){this.produce=t=>t&&Object.keys(t).length?new e(this.#e,this.#t,{...t}):this,this.inject=(e,t)=>{let n=e.create(this.#e.sliceMap);return t!=null&&n.set(t),this.#r?.onInject(e),this},this.remove=e=>(this.#e.remove(e),this.#r?.onRemove(e),this),this.record=e=>(e.create(this.#t.store),this.#r?.onRecord(e),this),this.clearTimer=e=>(this.#t.remove(e),this.#r?.onClear(e),this),this.isInjected=e=>this.#e.has(e),this.isRecorded=e=>this.#t.has(e),this.use=e=>(this.#r?.onUse(e),this.#e.get(e)),this.get=e=>this.use(e).get(),this.set=(e,t)=>this.use(e).set(t),this.update=(e,t)=>this.use(e).update(t),this.timer=e=>this.#t.get(e),this.done=e=>{this.timer(e).done(),this.#r?.onDone(e)},this.wait=e=>{let t=this.timer(e).start();return this.#r?.onWait(e,t),t},this.waitTimers=async e=>{await Promise.all(this.get(e).map(e=>this.wait(e)))},this.#e=t,this.#t=n,this.#n=r,r&&(this.#r=new Ca(t,n,r))}get meta(){return this.#n}get inspector(){return this.#r}},Ta=class{constructor(){this.store=new Map,this.get=e=>{let t=this.store.get(e.id);if(!t)throw aa(e.name);return t},this.remove=e=>{this.store.delete(e.id)},this.has=e=>this.store.has(e.id)}},Ea=class{#e;#t;#n;#r;constructor(e,t){this.#e=null,this.#t=null,this.#r=`pending`,this.start=()=>(this.#e??=new Promise((e,t)=>{this.#t=t=>{t instanceof CustomEvent&&t.detail.id===this.#n&&(this.#r=`resolved`,this.#i(),t.stopImmediatePropagation(),e())},this.#a(()=>{this.#r===`pending`&&(this.#r=`rejected`),this.#i(),t(Error(`Timing ${this.type.name} timeout.`))}),this.#r=`pending`,addEventListener(this.type.name,this.#t)}),this.#e),this.done=()=>{let e=new CustomEvent(this.type.name,{detail:{id:this.#n}});dispatchEvent(e)},this.#i=()=>{this.#t&&removeEventListener(this.type.name,this.#t)},this.#a=e=>{setTimeout(()=>{e()},this.type.timeout)},this.#n=Symbol(t.name),this.type=t,e.set(t.id,this)}get status(){return this.#r}#i;#a},Da=class{constructor(e,t=3e3){this.create=e=>new Ea(e,this),this.id=Symbol(`Timer-${e}`),this.name=e,this.timeout=t}},Oa=(e,t=3e3)=>new Da(e,t),ka={};function Aa(e,t){let n=t||ka;return ja(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ja(e,t,n){if(Na(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Ma(e.children,t,n)}return Array.isArray(e)?Ma(e,t,n):``}function Ma(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ja(e[i],t,n);return r.join(``)}function Na(e){return!!(e&&typeof e==`object`)}var Pa=document.createElement(`i`);function Fa(e){let t=`&`+e+`;`;Pa.innerHTML=t;let n=Pa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function Ia(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function La(e,t){return e.length>0?(Ia(e,e.length,0,t),e):t}var Ra={}.hasOwnProperty;function za(e){let t={},n=-1;for(;++n<e.length;)Ba(t,e[n]);return t}function Ba(e,t){let n;for(n in t){let r=(Ra.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Ra.call(r,a)||(r[a]=[]);let e=i[a];Va(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Va(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Ia(e,0,0,r)}function Ha(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Ua(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Wa=to(/[A-Za-z]/),Ga=to(/[\dA-Za-z]/),Ka=to(/[#-'*+\--9=?A-Z^-~]/);function qa(e){return e!==null&&(e<32||e===127)}var Ja=to(/\d/),Ya=to(/[\dA-Fa-f]/),Xa=to(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function Za(e){return e!==null&&(e<0||e===32)}function Qa(e){return e===-2||e===-1||e===32}var $a=to(/\p{P}|\p{S}/u),eo=to(/\s/);function to(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function no(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Qa(r)?(e.enter(n),s(r)):t(r)}function s(r){return Qa(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var ro={tokenize:io};function io(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),no(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return O(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var ao={tokenize:so},oo={tokenize:co};function so(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Ia(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(oo,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(oo,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return O(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;Ia(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function co(e,t,n){return no(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function lo(e){if(e===null||Za(e)||eo(e))return 1;if($a(e))return 2}function uo(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var fo={name:`attention`,resolveAll:po,tokenize:mo};function po(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};ho(d,-c),ho(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=La(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=La(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=La(l,uo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=La(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=La(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Ia(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function mo(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=lo(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=lo(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function ho(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var go={name:`autolink`,tokenize:_o};function _o(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Wa(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Ga(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Ga(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||qa(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Ka(t)?(e.consume(t),l):n(t)}function u(e){return Ga(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Ga(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var vo={partial:!0,tokenize:yo};function yo(e,t,n){return r;function r(t){return Qa(t)?no(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||O(e)?t(e):n(e)}}var bo={continuation:{tokenize:So},exit:Co,name:`blockQuote`,tokenize:xo};function xo(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Qa(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function So(e,t,n){let r=this;return i;function i(t){return Qa(t)?no(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(bo,t,n)(r)}}function Co(e){e.exit(`blockQuote`)}var wo={name:`characterEscape`,tokenize:To};function To(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Xa(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Eo={name:`characterReference`,tokenize:Do};function Do(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Ga,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Ya,u):(e.enter(`characterReferenceValue`),a=7,o=Ja,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Ga&&!Fa(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Oo={partial:!0,tokenize:jo},ko={concrete:!0,name:`codeFenced`,tokenize:Ao};function Ao(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Qa(t)?no(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||O(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Oo,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||O(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Qa(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),no(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||O(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||O(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Qa(t)?no(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||O(t)?e.check(Oo,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||O(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Qa(t)?no(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Qa(t)?no(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||O(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function jo(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Mo={name:`codeIndented`,tokenize:Po},No={partial:!0,tokenize:Fo};function Po(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),no(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):O(t)?e.attempt(No,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||O(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function Fo(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):O(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):no(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):O(e)?i(e):n(e)}}var Io={name:`codeText`,previous:Ro,resolve:Lo,tokenize:zo};function Lo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Ro(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function zo(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):O(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||O(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Bo=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Vo(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Vo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Vo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Vo(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Vo(this.left,t.reverse())}}};function Vo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ho(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Bo(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Uo(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Ia(e,0,1/0,u.slice(0)),!l}function Uo(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Wo={resolve:Ko,tokenize:qo},Go={partial:!0,tokenize:Jo};function Ko(e){return Ho(e),e}function qo(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):O(t)?e.check(Go,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Jo(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),no(e,a,`linePrefix`)}function a(i){if(i===null||O(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Yo(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||qa(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||O(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Za(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||qa(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Xo(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):O(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||O(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Qa(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Zo(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):O(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),no(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||O(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Qo(e,t){let n;return r;function r(i){return O(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Qa(i)?no(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var $o={name:`definition`,tokenize:ts},es={partial:!0,tokenize:ns};function ts(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Xo.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Ua(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Za(t)?Qo(e,l)(t):l(t)}function l(t){return Yo(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(es,d,d)(t)}function d(t){return Qa(t)?no(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||O(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function ns(e,t,n){return r;function r(t){return Za(t)?Qo(e,i)(t):n(t)}function i(t){return Zo(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Qa(t)?no(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||O(e)?t(e):n(e)}}var rs={name:`hardBreakEscape`,tokenize:is};function is(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return O(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var as={name:`headingAtx`,resolve:ss,tokenize:cs};function ss(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},Ia(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function cs(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Za(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||O(n)?(e.exit(`atxHeading`),t(n)):Qa(n)?no(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Za(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ls=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),us=[`pre`,`script`,`style`,`textarea`],ds={concrete:!0,name:`htmlFlow`,resolveTo:ms,tokenize:hs},fs={partial:!0,tokenize:_s},ps={partial:!0,tokenize:gs};function ms(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hs(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ue):Wa(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Wa(a)?(e.consume(a),i=4,r.interrupt?t:ue):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ue):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:re:m):n(i)}function h(t){return Wa(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Za(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&us.includes(l)?(i=1,r.interrupt?t(s):re(s)):ls.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):re(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Ga(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:re):n(i)}function v(t){return Qa(t)?(e.consume(t),v):w(t)}function y(t){return t===47?(e.consume(t),w):t===58||t===95||Wa(t)?(e.consume(t),b):Qa(t)?(e.consume(t),y):w(t)}function b(t){return t===45||t===46||t===58||t===95||Ga(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Qa(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Qa(t)?(e.consume(t),S):ee(t)}function C(t){return t===c?(e.consume(t),c=null,te):t===null||O(t)?n(t):(e.consume(t),C)}function ee(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Za(t)?x(t):(e.consume(t),ee)}function te(e){return e===47||e===62||Qa(e)?y(e):n(e)}function w(t){return t===62?(e.consume(t),ne):n(t)}function ne(t){return t===null||O(t)?re(t):Qa(t)?(e.consume(t),ne):n(t)}function re(t){return t===45&&i===2?(e.consume(t),se):t===60&&i===1?(e.consume(t),ce):t===62&&i===4?(e.consume(t),de):t===63&&i===3?(e.consume(t),ue):t===93&&i===5?(e.consume(t),T):O(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(fs,fe,ie)(t)):t===null||O(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(t){return e.check(ps,ae,fe)(t)}function ae(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oe}function oe(t){return t===null||O(t)?ie(t):(e.enter(`htmlFlowData`),re(t))}function se(t){return t===45?(e.consume(t),ue):re(t)}function ce(t){return t===47?(e.consume(t),o=``,le):re(t)}function le(t){if(t===62){let n=o.toLowerCase();return us.includes(n)?(e.consume(t),de):re(t)}return Wa(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),le):re(t)}function T(t){return t===93?(e.consume(t),ue):re(t)}function ue(t){return t===62?(e.consume(t),de):t===45&&i===2?(e.consume(t),ue):re(t)}function de(t){return t===null||O(t)?(e.exit(`htmlFlowData`),fe(t)):(e.consume(t),de)}function fe(n){return e.exit(`htmlFlow`),t(n)}}function gs(e,t,n){let r=this;return i;function i(t){return O(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function _s(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(vo,t,n)}}var vs={name:`htmlText`,tokenize:ys};function ys(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Wa(t)?(e.consume(t),ee):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Wa(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):O(t)?(o=d,ce(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?se(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):O(t)?(o=h,ce(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?se(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?se(t):O(t)?(o=v,ce(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):O(t)?(o=y,ce(t)):(e.consume(t),y)}function b(e){return e===62?se(e):y(e)}function x(t){return Wa(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Ga(t)?(e.consume(t),S):C(t)}function C(t){return O(t)?(o=C,ce(t)):Qa(t)?(e.consume(t),C):se(t)}function ee(t){return t===45||Ga(t)?(e.consume(t),ee):t===47||t===62||Za(t)?te(t):n(t)}function te(t){return t===47?(e.consume(t),se):t===58||t===95||Wa(t)?(e.consume(t),w):O(t)?(o=te,ce(t)):Qa(t)?(e.consume(t),te):se(t)}function w(t){return t===45||t===46||t===58||t===95||Ga(t)?(e.consume(t),w):ne(t)}function ne(t){return t===61?(e.consume(t),re):O(t)?(o=ne,ce(t)):Qa(t)?(e.consume(t),ne):te(t)}function re(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ie):O(t)?(o=re,ce(t)):Qa(t)?(e.consume(t),re):(e.consume(t),ae)}function ie(t){return t===i?(e.consume(t),i=void 0,oe):t===null?n(t):O(t)?(o=ie,ce(t)):(e.consume(t),ie)}function ae(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Za(t)?te(t):(e.consume(t),ae)}function oe(e){return e===47||e===62||Za(e)?te(e):n(e)}function se(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ce(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),le}function le(t){return Qa(t)?no(e,T,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):T(t)}function T(t){return e.enter(`htmlTextData`),o(t)}}var bs={name:`labelEnd`,resolveAll:ws,resolveTo:Ts,tokenize:Es},xs={tokenize:Ds},Ss={tokenize:Os},Cs={tokenize:ks};function ws(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Ia(e,0,e.length,n),e}function Ts(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=La(s,e.slice(a+1,a+r+3)),s=La(s,[[`enter`,u,t]]),s=La(s,uo(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=La(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=La(s,e.slice(o+1)),s=La(s,[[`exit`,c,t]]),Ia(e,a,e.length,s),e}function Es(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Ua(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(xs,u,o?u:d)(t):t===91?e.attempt(Ss,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Cs,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Ds(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Za(t)?Qo(e,a)(t):a(t)}function a(t){return t===41?u(t):Yo(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Za(t)?Qo(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Zo(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Za(t)?Qo(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Os(e,t,n){let r=this;return i;function i(t){return Xo.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Ua(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function ks(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var As={name:`labelStartImage`,resolveAll:bs.resolveAll,tokenize:js};function js(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Ms={name:`labelStartLink`,resolveAll:bs.resolveAll,tokenize:Ns};function Ns(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Ps={name:`lineEnding`,tokenize:Fs};function Fs(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),no(e,t,`linePrefix`)}}var Is={name:`thematicBreak`,tokenize:Ls};function Ls(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||O(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Qa(t)?no(e,s,`whitespace`)(t):s(t))}}var Rs={continuation:{tokenize:Hs},exit:Ws,name:`list`,tokenize:Vs},zs={partial:!0,tokenize:Gs},Bs={partial:!0,tokenize:Us};function Vs(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ja(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Is,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ja(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(vo,r.interrupt?n:u,e.attempt(zs,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Qa(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Hs(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(vo,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,no(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Qa(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Bs,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,no(e,e.attempt(Rs,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Us(e,t,n){let r=this;return no(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Ws(e){e.exit(this.containerState.type)}function Gs(e,t,n){let r=this;return no(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Qa(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ks={name:`setextUnderline`,resolveTo:qs,tokenize:Js};function qs(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Js(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Qa(t)?no(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||O(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ys={tokenize:Xs};function Xs(e){let t=this,n=e.attempt(vo,r,e.attempt(this.parser.constructs.flowInitial,i,no(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wo,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Zs={resolveAll:tc()},Qs=ec(`string`),$s=ec(`text`);function ec(e){return{resolveAll:tc(e===`text`?nc:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function tc(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function nc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var rc=e({attentionMarkers:()=>dc,contentInitial:()=>ac,disable:()=>fc,document:()=>ic,flow:()=>sc,flowInitial:()=>oc,insideSpan:()=>uc,string:()=>cc,text:()=>lc}),ic={42:Rs,43:Rs,45:Rs,48:Rs,49:Rs,50:Rs,51:Rs,52:Rs,53:Rs,54:Rs,55:Rs,56:Rs,57:Rs,62:bo},ac={91:$o},oc={[-2]:Mo,[-1]:Mo,32:Mo},sc={35:as,42:Is,45:[Ks,Is],60:ds,61:Ks,95:Is,96:ko,126:ko},cc={38:Eo,92:wo},lc={[-5]:Ps,[-4]:Ps,[-3]:Ps,33:As,38:Eo,42:fo,60:[go,vs],91:Ms,92:[rs,wo],93:bs,95:fo,96:Io},uc={null:[fo,Zs]},dc={null:[42,95]},fc={null:[]};function pc(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=La(o,e),g(),o[o.length-1]===null?(ee(t,0),l.events=uo(a,l.events,l),l.events):[]}function f(e,t){return hc(p(e),t)}function p(e){return mc(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,w()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){O(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,w()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){ee(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=te(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function ee(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ia(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function te(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function mc(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function hc(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
4
4
|
`;break;case-3:o=`\r
|
|
5
5
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function gc(e){let t={constructs:za([rc,...(e||{}).extensions||[]]),content:n(ro),defined:[],document:n(ao),flow:n(Ys),lazy:{},string:n(Qs),text:n($s)};return t;function n(e){return n;function n(n){return pc(t,e,n)}}}function _c(e){for(;!Ho(e););return e}var vc=/[\0\t\n\r]/g;function yc(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(vc.lastIndex=u,c=vc.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var bc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xc(e){return e.replace(bc,Sc)}function Sc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Ha(n.slice(t?2:1),t?16:10)}return Fa(n)||e}function Cc(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Tc(e.position):`start`in e||`end`in e?Tc(e):`line`in e||`column`in e?wc(e):``}function wc(e){return Ec(e&&e.line)+`:`+Ec(e&&e.column)}function Tc(e){return wc(e&&e.start)+`-`+wc(e&&e.end)}function Ec(e){return e&&typeof e==`number`?e:1}var Dc={}.hasOwnProperty;function Oc(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),kc(n)(_c(gc(n).document().write(yc()(e,t,!0))))}function kc(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Oe),autolinkProtocol:te,autolinkEmail:te,atxHeading:a(we),blockQuote:a(ye),characterEscape:te,characterReference:te,codeFenced:a(be),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(be,o),codeText:a(xe,o),codeTextData:te,data:te,codeFlowValue:te,definition:a(Se),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ce),hardBreakEscape:a(Te),hardBreakTrailing:a(Te),htmlFlow:a(Ee,o),htmlFlowData:te,htmlText:a(Ee,o),htmlTextData:te,image:a(De),label:o,link:a(Oe),listItem:a(Ae),listItemValue:f,listOrdered:a(ke,d),listUnordered:a(ke),paragraph:a(je),reference:pe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(we),strong:a(Me),thematicBreak:a(Pe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ve,autolinkProtocol:_e,blockQuote:c(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:ge,characterReference:E,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:w,codeIndented:c(_),codeText:c(oe),codeTextData:w,data:w,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(re),hardBreakTrailing:c(re),htmlFlow:c(ie),htmlFlowData:w,htmlText:c(ae),htmlTextData:w,image:c(ce),label:T,labelText:le,lineEnding:ne,link:c(se),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:me,resourceDestinationString:ue,resourceTitleString:de,resource:fe,setextHeading:c(ee),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};jc(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Dc.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Nc).call(a,void 0,e[0])}for(r.position={start:Ac(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ac(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ac(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Nc).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Cc({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Ac(e.end)}function u(){return Aa(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ua(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function te(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Ne(),n.position={start:Ac(e.start),end:void 0},t.push(n)),this.stack.push(n)}function w(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ac(e.end)}function ne(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Ac(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(te.call(this,e),w.call(this,e))}function re(){this.data.atHardBreak=!0}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function se(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ce(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function le(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=xc(t),n.identifier=Ua(t).toLowerCase()}function T(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ue(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function de(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function fe(){this.data.inReference=void 0}function pe(){this.data.referenceType=`collapsed`}function me(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ua(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function he(e){this.data.characterReferenceType=e.type}function ge(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Ha(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Fa(t);let i=this.stack[this.stack.length-1];i.value+=r}function E(e){let t=this.stack.pop();t.position.end=Ac(e.end)}function _e(e){w.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ve(e){w.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ye(){return{type:`blockquote`,children:[]}}function be(){return{type:`code`,lang:null,meta:null,value:``}}function xe(){return{type:`inlineCode`,value:``}}function Se(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function Ce(){return{type:`emphasis`,children:[]}}function we(){return{type:`heading`,depth:0,children:[]}}function Te(){return{type:`break`}}function Ee(){return{type:`html`,value:``}}function De(){return{type:`image`,title:null,url:``,alt:null}}function Oe(){return{type:`link`,title:null,url:``,children:[]}}function ke(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Ae(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function je(){return{type:`paragraph`,children:[]}}function Me(){return{type:`strong`,children:[]}}function Ne(){return{type:`text`,value:``}}function Pe(){return{type:`thematicBreak`}}}function Ac(e){return{line:e.line,column:e.column,offset:e.offset}}function jc(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?jc(e,r):Mc(e,r)}}function Mc(e,t){let n;for(n in t)if(Dc.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Nc(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Cc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cc({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Cc({start:t.start,end:t.end})+`) is still open`)}function Pc(e){let t=this;t.parser=n;function n(n){return Oc(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}var Fc={}.hasOwnProperty;function Ic(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Fc.call(t,e)){let n=String(t[e]);i=Fc.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Lc={}.hasOwnProperty;function Rc(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)Rc(e,t.extensions[n]);for(r in t)if(Lc.call(t,r))switch(r){case`extensions`:break;case`unsafe`:zc(e[r],t[r]);break;case`join`:zc(e[r],t[r]);break;case`handlers`:Bc(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function zc(e,t){t&&e.push(...t)}function Bc(e,t){t&&Object.assign(e,t)}function Vc(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Hc);return i(),o}function Hc(e,t,n){return`>`+(n?``:` `)+e}function Uc(e,t){return Wc(e,t.inConstruct,!0)&&!Wc(e,t.notInConstruct,!1)}function Wc(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Gc(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{n as r}from"./upload-Dxl7GUzb.js";import{n as i}from"./trash-2-DNGr8IgF.js";import{a,i as o,t as s}from"./filePreview-BZ50vZZf.js";import{t as c}from"./music-CB73K5Gz.js";import{J as l,U as u,Z as d,f}from"./index-WCK14Vja.js";var p=l(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),m=n();function h(e){let t=e.lastIndexOf(`/`);return t===-1?{folder:``,name:e}:{folder:e.substring(0,t),name:e.substring(t+1)}}function g({file:e,isSelected:t,onSelect:n,onPreview:r}){let l=s(e.fileName),u=(0,m.jsx)(i,{size:24,color:`#fff`});return l===`image`?u=(0,m.jsx)(o,{size:24,color:`#fff`}):l===`video`?u=(0,m.jsx)(a,{size:24,color:`#fff`}):l===`audio`&&(u=(0,m.jsx)(c,{size:24,color:`#fff`})),(0,m.jsxs)(`div`,{"data-id":e.cid,onClick:()=>n(e.cid),onDoubleClick:()=>r(e),className:`card ${t?`selected`:``}`,children:[(0,m.jsx)(`div`,{className:`card-icon ${e.starred?`starred`:`file`}`,children:u}),(0,m.jsx)(`p`,{className:`card-name`,translate:`no`,children:h(e.fileName).name})]})}function _({folder:e,onClick:t}){return(0,m.jsxs)(`div`,{onClick:t,className:`card`,children:[(0,m.jsx)(`div`,{className:`card-icon folder`,children:(0,m.jsx)(r,{size:28,color:`#fff`})}),(0,m.jsx)(`p`,{className:`card-name`,translate:`no`,children:e.name})]})}var v=t(e(),1);function y(e,t){return e?[{path:``,name:t},...e.split(`/`).filter(Boolean).map((e,t,n)=>({path:n.slice(0,t+1).join(`/`),name:e}))]:[]}function b({items:e,allFolders:t,currentPath:n,onMove:i,onClose:a}){let[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(n),{t:p}=d(),h=y(o,p(`move.root`));function g(){i(o||c.trim())}let _=t.filter(e=>{if(o===``)return!e.path.includes(`/`);let t=o+`/`;return e.path.startsWith(t)?!e.path.substring(t.length).includes(`/`):!1});return(0,m.jsx)(f,{onClose:a,children:(0,m.jsxs)(`div`,{className:`move-modal`,onClick:e=>e.stopPropagation(),children:[(0,m.jsxs)(`div`,{className:`modal-header`,children:[(0,m.jsx)(`h3`,{children:p(`move.title`)}),(0,m.jsx)(`button`,{type:`button`,onClick:a,className:`btn btn-icon`,children:(0,m.jsx)(u,{size:18})})]}),(0,m.jsx)(`p`,{className:`move-modal-desc`,children:p(`move.selectedCount`,{count:e.length})}),(0,m.jsx)(`div`,{className:`move-new-folder`,children:(0,m.jsx)(`input`,{type:`text`,className:`input`,value:c,onChange:e=>l(e.target.value),placeholder:p(`move.pathPlaceholder`),translate:`no`})}),(0,m.jsx)(`p`,{className:`move-modal-hint`,children:p(`move.pathExample`)}),(0,m.jsx)(`div`,{className:`move-breadcrumb`,children:h.map((e,t)=>(0,m.jsxs)(v.Fragment,{children:[t>0&&(0,m.jsx)(`span`,{className:`breadcrumb-separator`,children:`/`}),(0,m.jsx)(`button`,{type:`button`,onClick:()=>{s(e.path),l(e.path)},className:`move-breadcrumb-btn ${o===e.path&&!c?`active`:``}`,children:(0,m.jsx)(`span`,{translate:e.path?`no`:`yes`,children:e.name})})]},e.path))}),(0,m.jsxs)(`div`,{className:`move-folder-list`,children:[_.length===0&&(0,m.jsx)(`p`,{className:`move-modal-empty`,children:p(`move.noSubfolders`)}),_.map(e=>(0,m.jsxs)(`button`,{type:`button`,onClick:()=>s(e.path),className:`move-folder-item ${o===e.path&&!c?`selected`:``}`,children:[(0,m.jsx)(r,{size:16}),(0,m.jsx)(`span`,{translate:`no`,children:e.name})]},e.path))]}),(0,m.jsxs)(`div`,{className:`modal-actions`,children:[(0,m.jsx)(`button`,{type:`button`,onClick:a,className:`btn btn-secondary`,children:p(`common.cancel`)}),(0,m.jsx)(`button`,{type:`button`,onClick:g,className:`btn btn-primary`,children:p(`move.action`)})]})]})})}export{p as a,h as i,g as n,_ as r,b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import{t}from"./LanguageToggle-B4ZNuBCV.js";import{t as n}from"./download-D0oMEYQZ.js";import{Z as r,a as i,m as a,nt as o,p as s}from"./index-WCK14Vja.js";import{t as c}from"./MarketingThemeToggle-qlwCZU1o.js";import{t as l}from"./LogoIcon-B2fFe0l1.js";var u={name:`most-box`,version:`0.2.1`,description:`MostBox - P2P file sharing application`,type:`module`,main:`electron/main.js`,bin:{"most-box":`server/cli.js`},files:[`out`,`public`,`electron`,`server/src`,`server/index.js`,`server/cli.js`],scripts:{start:`vite`,server:`node --watch server/index.js`,dev:`vite`,build:`vite build && node scripts/prepare-start-static.mjs`,preview:`vite preview`,serve:`npm run build && node server/index.js`,test:`node --test server/tests/**/*.test.js`,"test:unit":`node --test server/tests/unit/*.test.js`,"test:frontend":`node --test src/tests/*.test.js`,"test:protocol":`node --test --test-name-pattern "extracts CID and filename|matches golden CID samples|publishes a file from Buffer|lists published files|pulls through local seed nodes" server/tests/unit/cid.test.js server/tests/integration/cid.test.js server/tests/integration/engine.test.js`,typecheck:`tsc -p tsconfig.typecheck.json`,"typecheck:strict-router":`tsc -p tsconfig.strict-router.json`,"check:static-output":`node scripts/check-static-output.mjs`,format:`npx prettier --write .`,lint:`npx eslint .`,"r2:cors":`node scripts/configure-r2-cors.mjs`,"electron:dev":`concurrently "npm run build" "wait-on out/index.html && electron ."`,"electron:rebuild":`electron-rebuild -f -w sodium-native`,"electron:build":`npm run build && npm run electron:rebuild && electron-builder`,"electron:build:win":`npm run build && npm run electron:rebuild && electron-builder --win`,"electron:build:win:x64":`npm run electron:build:win -- --x64`,"electron:build:win:arm64":`npm run electron:build:win -- --arm64`,"electron:build:mac":`npm run build && npm run electron:rebuild && electron-builder --mac`,"electron:build:linux":`npm run build && npm run electron:rebuild && electron-builder --linux`},keywords:[`p2p`,`file-sharing`,`hyperswarm`,`hyperdrive`],license:`MIT`,dependencies:{"@dicebear/collection":`^9.4.2`,"@dicebear/core":`^9.4.2`,"@hono/node-server":`^2.0.4`,"@tanstack/react-router":`^1.170.15`,"@tanstack/react-start":`^1.168.25`,b4a:`^1.8.1`,busboy:`^1.6.0`,corestore:`^7.10.0`,dayjs:`^1.11.21`,ethers:`^6.16.0`,eventemitter3:`^5.0.4`,hono:`^4.12.23`,hypercore:`^11.33.1`,hyperdrive:`^13.3.2`,hyperswarm:`^4.17.0`,"ipfs-unixfs-importer":`^17.0.1`,multiformats:`^14.0.0`,tweetnacl:`^1.0.3`,ws:`^8.21.0`},devDependencies:{"@electron/rebuild":`^4.0.4`,"@eslint/js":`^10.0.1`,"@iconify/react":`^6.0.2`,"@mantine/hooks":`^9.3.0`,"@milkdown/crepe":`^7.21.2`,"@milkdown/utils":`^7.21.2`,"@types/react":`^19.2.16`,"@vitejs/plugin-react":`^6.0.2`,concurrently:`^10.0.3`,electron:`^42.3.3`,"electron-builder":`^26.8.1`,esbuild:`^0.28.0`,eslint:`^10.4.1`,globals:`^17.6.0`,ky:`^2.0.2`,"lucide-react":`^1.17.0`,prettier:`^3.8.3`,"qrcode.react":`^4.2.0`,react:`^19.2.7`,"react-dom":`^19.2.7`,typescript:`6.0.3`,"typescript-eslint":`^8.60.1`,vite:`^8.0.16`,"wait-on":`^9.0.10`,zustand:`^5.0.14`},overrides:{"brace-expansion":`5.0.6`,postcss:`8.5.15`,ws:`$ws`},build:{appId:`com.mostbox.app`,productName:`MostBox`,publish:[{provider:`github`,releaseType:`release`}],directories:{output:`dist`},afterPack:`electron/afterPack.cjs`,files:[`out/**/*`,`electron/**/*`,`server/src/**/*`,`server/index.js`,`server/cli.js`,`package.json`,`!**/*.map`,`!electron/**/*.test.js`,`!server/tests/**/*`],asarUnpack:[`**/*.node`,`**/sodium-native/**`],win:{target:[`nsis`],artifactName:"${productName}-${version}-win-${arch}-setup.${ext}",icon:`public/logo.ico`},nsis:{oneClick:!1,allowToChangeInstallationDirectory:!0,createDesktopShortcut:!0,createStartMenuShortcut:!0,shortcutName:`MostBox`},mac:{artifactName:"${productName}-${version}-mac-${arch}.${ext}",target:[{target:`dmg`,arch:[`x64`,`arm64`]}],icon:`public/logo-512.png`,category:`public.app-category.utilities`},dmg:{contents:[{x:130,y:220},{x:410,y:220,type:`link`,path:`/Applications`}]},linux:{artifactName:"${productName}-${version}-linux-${arch}.${ext}",target:[{target:`AppImage`,arch:[`x64`,`arm64`]}],icon:`public/logo-512.png`,category:`Utility`}}},d=e(),f=[{to:`/`,labelKey:`footer.about`},{to:`/ping/`,labelKey:`footer.network`},{href:`https://github.com/most-people/most`,labelKey:null,label:`GitHub`,external:!0}],p=u.version;function m(){let{t:e}=r();return(0,d.jsx)(`footer`,{className:`mkt-footer`,children:(0,d.jsx)(`div`,{className:`mkt-container`,children:(0,d.jsxs)(`div`,{className:`mkt-footer-inner`,children:[(0,d.jsx)(`div`,{className:`mkt-footer-links`,children:f.map(t=>`external`in t?(0,d.jsx)(`a`,{href:t.href,target:`_blank`,rel:`noopener noreferrer`,children:t.label},t.href):(0,d.jsx)(o,{to:t.to,children:e(t.labelKey)},t.to))}),(0,d.jsxs)(`span`,{className:`mkt-footer-copy`,children:[`© `,new Date().getFullYear(),` MOST PEOPLE · MIT License`]}),(0,d.jsxs)(`span`,{className:`mkt-footer-build`,translate:`no`,children:[`v`,p]})]})})})}function h(){let e=a(e=>e.identity),u=a(e=>e.openLoginModal),{t:f}=r(),p=s(),m=e?.displayName||e?.username||f(`nav.openWeb`);return(0,d.jsx)(`nav`,{className:`mkt-nav`,children:(0,d.jsxs)(`div`,{className:`mkt-nav-inner`,children:[(0,d.jsxs)(o,{to:`/`,className:`mkt-nav-logo`,children:[(0,d.jsx)(l,{}),`MOST PEOPLE`]}),(0,d.jsxs)(`div`,{className:`mkt-nav-cta`,children:[(0,d.jsx)(c,{}),(0,d.jsx)(t,{className:`mkt-theme-toggle`}),!p&&(0,d.jsxs)(o,{to:`/download/`,className:`btn btn-primary mkt-nav-preview`,children:[(0,d.jsx)(n,{size:16}),f(`nav.downloadClient`)]}),e?(0,d.jsx)(o,{to:`/profile/`,className:`mkt-nav-avatar-trigger`,"aria-label":f(`nav.profile`),title:m,children:(0,d.jsx)(`img`,{className:`mkt-nav-avatar`,src:i(e.address,e.avatar),alt:``,"aria-hidden":`true`})}):(0,d.jsx)(`button`,{type:`button`,className:`btn btn-secondary`,onClick:u,children:f(`nav.getStarted`)})]})]})})}export{m as n,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{t as r}from"./chevron-down-CnLh_-aO.js";import{n as i,r as a,t as o}from"./upload-Dxl7GUzb.js";import{n as s,t as c}from"./triangle-alert-B_1BlX1b.js";import{t as l}from"./cloud-BEe2N89j.js";import{t as u}from"./download-D0oMEYQZ.js";import{n as d}from"./plus-BbxQG_Ai.js";import{B as f,U as p,V as m,Z as h,f as g,m as _,q as v}from"./index-WCK14Vja.js";import{t as y}from"./SidebarAccount-Zg5DZblE.js";var b=t(e(),1),x=n();function S({sync:e}){let{t}=h(),n=(0,b.useRef)(null),[r,i]=(0,b.useState)(!1),a=_(e=>e.wallet),f=e.action!==null;(0,b.useEffect)(()=>{if(!r)return;function e(e){n.current?.contains(e.target)||i(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[r]);async function p(e){i(!1),await e()}return(0,x.jsxs)(`div`,{className:`note-more`,ref:n,children:[(0,x.jsx)(`button`,{className:`btn btn-icon note-more-trigger`,onClick:()=>i(e=>!e),title:t(`common.moreActions`),"aria-label":t(`common.moreActions`),children:(0,x.jsx)(d,{size:16})}),r&&(0,x.jsxs)(`div`,{className:`note-more-menu`,children:[(0,x.jsxs)(`div`,{className:`ui-notice note-sync-status ${e.hasConflict?`warning conflict`:``}`,children:[(0,x.jsx)(`span`,{className:`ui-icon-tile note-sync-status-icon ${e.hasConflict?`warning`:``}`,children:e.hasConflict?(0,x.jsx)(c,{size:16}):e.status===`synced`?(0,x.jsx)(s,{size:16}):(0,x.jsx)(l,{size:16})}),(0,x.jsxs)(`span`,{children:[(0,x.jsx)(`strong`,{children:t(`note.sync.title`)}),(0,x.jsx)(`small`,{children:e.statusLabel})]})]}),(0,x.jsxs)(`button`,{className:`note-more-item`,onClick:()=>p(e.exportLocalBackup),disabled:!a||f,children:[(0,x.jsx)(o,{size:16}),t(`note.sync.exportLocal`)]}),(0,x.jsxs)(`button`,{className:`note-more-item`,onClick:()=>p(e.importLocalBackup),disabled:!a||f,children:[(0,x.jsx)(u,{size:16}),t(`note.sync.importLocal`)]})]})]})}function C(e){return e.type===`directory`?m(e.path?`${e.path}/${e.name}`:e.name):f(e)}function w({target:e,directories:t,onMove:n,onClose:o}){let{t:s}=h(),c=m(e.path||``),l=C(e),u=t.filter(t=>e.type===`directory`?t.path!==l&&!t.path.startsWith(`${l}/`):!0),[d,f]=(0,b.useState)(c),[_,v]=(0,b.useState)(``),[y,S]=(0,b.useState)(new Set),w=m(_),T=_.trim()?w:d,E=m(T)===c,D=new Map;for(let e of u){let t=D.get(e.parentPath)||[];t.push(e),D.set(e.parentPath,t)}let O=u.filter(e=>{if(!e.parentPath)return!0;let t=e.parentPath.split(`/`).filter(Boolean);return t.every((e,n)=>y.has(t.slice(0,n+1).join(`/`)))}),k=[{label:s(`note.root`),path:``},...d.split(`/`).filter(Boolean).map((e,t,n)=>({label:e,path:n.slice(0,t+1).join(`/`)}))];function A(e){f(m(e)),v(``)}function j(e){A(e),D.has(e)&&S(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}function M(){E||n(T)}return(0,x.jsx)(g,{onClose:o,children:(0,x.jsxs)(`div`,{className:`note-move-modal`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`div`,{className:`modal-header`,children:[(0,x.jsx)(`h3`,{children:s(`note.move.title`)}),(0,x.jsx)(`button`,{className:`btn btn-icon`,onClick:o,children:(0,x.jsx)(p,{size:18})})]}),(0,x.jsxs)(`div`,{className:`note-move-target`,children:[(0,x.jsx)(`span`,{children:s(`note.move.moving`)}),(0,x.jsx)(`strong`,{translate:`no`,children:e.name})]}),(0,x.jsx)(`div`,{className:`note-move-path`,children:k.map((e,t)=>(0,x.jsxs)(b.Fragment,{children:[t>0&&(0,x.jsx)(`span`,{children:`/`}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>A(e.path),children:(0,x.jsx)(`span`,{translate:e.path?`no`:`yes`,children:e.label})})]},e.path||`root`))}),(0,x.jsxs)(`div`,{className:`note-move-folder-list`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`note-move-folder-item ${d===``?`selected`:``}`,onClick:()=>A(``),children:[(0,x.jsx)(`span`,{className:`note-move-folder-spacer`}),(0,x.jsx)(i,{className:`note-move-folder-icon`,size:16}),(0,x.jsx)(`span`,{children:s(`note.root`)})]}),u.length===0?(0,x.jsx)(`p`,{className:`note-move-empty`,children:s(`note.move.noFolders`)}):O.map(e=>{let t=D.has(e.path),n=y.has(e.path);return(0,x.jsxs)(`button`,{type:`button`,className:`note-move-folder-item note-move-depth-${Math.min(e.depth,4)} ${d===e.path?`selected`:``}`,onClick:()=>j(e.path),children:[t?n?(0,x.jsx)(r,{className:`note-move-expander`,size:14}):(0,x.jsx)(a,{className:`note-move-expander`,size:14}):(0,x.jsx)(`span`,{className:`note-move-folder-spacer`}),(0,x.jsx)(i,{className:`note-move-folder-icon`,size:16}),(0,x.jsx)(`span`,{translate:`no`,children:e.name}),e.parentPath&&(0,x.jsx)(`small`,{translate:`no`,children:e.parentPath})]},e.path)})]}),(0,x.jsx)(`input`,{className:`input input-compact`,value:_,onChange:e=>v(e.target.value),placeholder:s(`note.move.pathPlaceholder`),translate:`no`}),(0,x.jsxs)(`div`,{className:`note-move-destination`,children:[(0,x.jsx)(`span`,{children:s(`note.move.destinationLabel`)}),(0,x.jsx)(`span`,{translate:T?`no`:`yes`,children:T||s(`note.root`)})]}),(0,x.jsxs)(`div`,{className:`modal-actions`,children:[(0,x.jsx)(`button`,{className:`btn btn-secondary`,onClick:o,children:s(`common.cancel`)}),(0,x.jsx)(`button`,{className:`btn btn-primary`,onClick:M,disabled:E,children:s(`note.action.move`)})]})]})})}function T({children:e}){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`sidebar-header sidebar-header-link`,onClick:()=>{window.location.href=`/`},children:[(0,x.jsx)(v,{size:18}),(0,x.jsx)(`h1`,{children:`MOST PEOPLE`})]}),e,(0,x.jsx)(y,{})]})}export{w as n,S as r,T as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import{n as t}from"./AppShell-OiOEqXPr.js";import{J as n,Z as r}from"./index-WCK14Vja.js";var i=n(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),a=e();function o({label:e,className:n=``,variant:o=`primary`}){let{isSidebarVisible:s,openSidebar:c}=t(),{t:l}=r(),u=o===`primary`?`btn-primary`:``,d=e||l(`appShell.openSidebar`);return s?null:(0,a.jsxs)(`button`,{type:`button`,className:`btn ${u} sidebar-open-hint ${n}`.trim(),onClick:c,children:[(0,a.jsx)(i,{size:16}),d]})}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-Bt-cYkS5.js";import{t}from"./download-D0oMEYQZ.js";import{J as n,Z as r}from"./index-WCK14Vja.js";import{t as i}from"./CopyButton-Dm7krgbq.js";var a=n(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),o=e();function s({icon:e,message:t,className:n=`empty-state glass`}){return(0,o.jsxs)(`div`,{className:n,children:[(0,o.jsx)(`div`,{className:`empty-state-icon`,children:e}),(0,o.jsx)(`p`,{children:t})]})}function c({title:e,icon:t,children:n,accent:r=!1}){return(0,o.jsxs)(`div`,{className:`web3-key-card ${r?`accent`:``}`,children:[(0,o.jsxs)(`div`,{className:`web3-key-card-header`,children:[(0,o.jsx)(`span`,{className:`web3-key-card-icon`,children:t}),(0,o.jsx)(`span`,{className:`web3-key-card-title`,children:e})]}),(0,o.jsx)(`div`,{className:`web3-key-card-body`,translate:`no`,children:n})]})}function l({label:e,pem:n,filename:a}){let{t:s}=r();function c(){let e=new Blob([n],{type:`text/plain`}),t=URL.createObjectURL(e),r=document.createElement(`a`);r.href=t,r.download=a,r.click(),URL.revokeObjectURL(t)}return(0,o.jsxs)(`div`,{className:`web3-pem-block`,children:[(0,o.jsxs)(`div`,{className:`web3-pem-header`,children:[(0,o.jsx)(`span`,{className:`web3-pem-label`,children:e}),(0,o.jsxs)(`div`,{className:`web3-pem-actions`,children:[(0,o.jsx)(i,{text:n,label:s(`common.copy`),className:`btn btn-sm`,iconSize:14}),(0,o.jsxs)(`button`,{type:`button`,className:`btn btn-sm btn-primary`,onClick:c,title:s(`common.download`),children:[(0,o.jsx)(t,{size:14}),s(`common.download`)]})]})]}),(0,o.jsx)(`textarea`,{className:`textarea mono`,value:n,readOnly:!0,rows:6,translate:`no`})]})}export{a as i,c as n,s as r,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{Z as r,a as i,m as a,nt as o,u as s}from"./index-WCK14Vja.js";var c=t(e(),1),l=n();function u({className:e=``}){let t=a(e=>e.identity),n=a(e=>e.openLoginModal),u=a(e=>e.logoutUser),[d,f]=(0,c.useState)(!1),{t:p}=r();return(0,l.jsxs)(`div`,{className:`chat-sidebar-footer sidebar-account ${e}`,children:[(0,l.jsxs)(`div`,{className:`user-info`,children:[t?(0,l.jsx)(o,{to:`/profile/`,className:`user-avatar-link`,"aria-label":p(`nav.profile`),title:p(`nav.profile`),children:(0,l.jsx)(`img`,{className:`user-avatar-img`,src:i(t.address,t.avatar),alt:``,"aria-hidden":`true`})}):(0,l.jsx)(`img`,{className:`user-avatar-img`,src:i(void 0,void 0),alt:``,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:`user-name`,title:t?.address,children:(0,l.jsx)(`span`,{translate:t?.displayName?`no`:`yes`,children:t?.displayName||p(`account.notSignedIn`)})})]}),t?(0,l.jsx)(`button`,{type:`button`,className:`btn btn-secondary logout-btn`,onClick:()=>f(!0),children:p(`account.logout`)}):(0,l.jsx)(`button`,{className:`btn btn-primary login-btn`,onClick:n,children:p(`account.signIn`)}),d&&(0,l.jsx)(s,{title:p(`account.logoutTitle`),message:p(`account.logoutConfirm`),confirmText:p(`account.logout`),danger:!0,onConfirm:()=>{u(),f(!1)},onClose:()=>f(!1)})]})}export{u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,_ as t}from"./index-WCK14Vja.js";var n={getChannels(e={}){let n=new URLSearchParams;e.type&&n.set(`type`,e.type),e.excludeType&&n.set(`excludeType`,e.excludeType);let r=n.toString();return t.get(r?`/api/channels?${r}`:`/api/channels`).json()},createChannel(e,n=`personal`,r={}){return t.post(`/api/channels`,{json:{name:e,type:n,...r}}).json()},leaveChannel(e){return t.delete(`/api/channels`,{json:{channelKey:e}}).json()},getChannelMessages(e,n=100,r=0){return t.get(`/api/channels/${encodeURIComponent(e)}/messages?limit=${n}&offset=${r}`).json()},sendChannelMessage({channelName:e,content:n,author:r,authorName:i,avatar:a,attachment:o}){return t.post(`/api/channels/${encodeURIComponent(e)}/messages`,{json:o?{content:n,author:r,authorName:i,avatar:a,attachment:o}:{content:n,author:r,authorName:i,avatar:a}}).json()},getChannelMembers(e){return t.get(`/api/channels/${encodeURIComponent(e)}/members`).json()},getChannelPeers(e){return t.get(`/api/channels/${encodeURIComponent(e)}/peers`).json()},setChannelRemark(e,n){return t.put(`/api/channels/${encodeURIComponent(e)}/remark`,{json:{remark:n}}).json()},setChannelPinned(e,n){return t.put(`/api/channels/${encodeURIComponent(e)}/pin`,{json:{pinned:n}}).json()},getFileDownloadUrl(t){return e(`/api/files/${t}/download`)}};export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{n as r}from"./trash-2-
|
|
1
|
+
import{n as e,o as t,t as n}from"./jsx-runtime-Bt-cYkS5.js";import{n as r}from"./trash-2-DNGr8IgF.js";import{r as i}from"./filePreview-BZ50vZZf.js";import{t as a}from"./music-CB73K5Gz.js";import{C as o,H as s,S as c,U as l,Z as u,_ as d,x as f}from"./index-WCK14Vja.js";var p=t(e(),1),m=n();function h(e){return e===`image`||e===`video`||e===`audio`}function g({item:e,isBackendReady:t,getFileDownloadUrl:n,onClose:o}){let{t:s}=u(),[d,f]=(0,p.useState)(``),[g,_]=(0,p.useState)(!1),[v,y]=(0,p.useState)(``),[b,x]=(0,p.useState)(``);return(0,p.useEffect)(()=>{if(e.subtype!==`text`)return;let r=!1;if(f(``),x(``),!t){f(s(`preview.loadFailed`));return}return _(!0),(async()=>{try{let t=await fetch(n(e.cid),{headers:{...await c(`GET`,`/api/files/${e.cid}/download`),Range:`bytes=0-9999`}});if(!t.ok)throw Error(s(`preview.loadFailed`));let i=await t.text();r||f(i||s(`preview.emptyFile`))}catch{r||f(s(`preview.loadFailed`))}finally{r||_(!1)}})(),()=>{r=!0}},[n,t,e.cid,e.subtype]),(0,p.useEffect)(()=>{if(!h(e.subtype)){y(``);return}if(y(``),x(``),!t){x(s(`preview.loadFailed`));return}let r=``,i=!1;return(async()=>{try{let t=await fetch(n(e.cid),{headers:await c(`GET`,`/api/files/${e.cid}/download`)});if(!t.ok)throw Error(s(`preview.loadFailed`));let a=URL.createObjectURL(await t.blob());r=a,i||y(a)}catch{i||x(s(`preview.loadFailed`))}})(),()=>{i=!0,r&&URL.revokeObjectURL(r)}},[n,t,e.cid,e.subtype]),(0,m.jsxs)(`div`,{className:`preview-overlay`,onClick:o,children:[(0,m.jsx)(`button`,{type:`button`,className:`preview-close`,onClick:o,"aria-label":s(`preview.close`),children:(0,m.jsx)(l,{size:20})}),(0,m.jsxs)(`div`,{onClick:e=>e.stopPropagation(),children:[e.subtype===`image`&&(0,m.jsx)(`div`,{className:`preview-media-wrapper`,children:v?(0,m.jsx)(`img`,{src:v,alt:e.fileName,translate:`no`}):b?(0,m.jsxs)(`div`,{className:`preview-unsupported`,children:[(0,m.jsx)(r,{size:48,className:`preview-file-icon`}),(0,m.jsx)(`p`,{translate:`no`,children:e.fileName}),(0,m.jsx)(`p`,{className:`preview-unsupported-hint`,children:b})]}):(0,m.jsx)(`div`,{className:`preview-loading`,children:(0,m.jsx)(`div`,{className:`preview-loading-spinner`})})}),e.subtype===`video`&&(0,m.jsx)(`div`,{className:`preview-media-wrapper`,children:v?(0,m.jsx)(`video`,{src:v,controls:!0}):b?(0,m.jsxs)(`div`,{className:`preview-unsupported`,children:[(0,m.jsx)(r,{size:48,className:`preview-file-icon`}),(0,m.jsx)(`p`,{translate:`no`,children:e.fileName}),(0,m.jsx)(`p`,{className:`preview-unsupported-hint`,children:b})]}):(0,m.jsx)(`div`,{className:`preview-loading`,children:(0,m.jsx)(`div`,{className:`preview-loading-spinner`})})}),e.subtype===`audio`&&(0,m.jsxs)(`div`,{className:`preview-audio`,children:[(0,m.jsx)(`div`,{className:`preview-audio-icon`,children:(0,m.jsx)(a,{size:36,color:`var(--accent)`})}),(0,m.jsx)(`p`,{className:`preview-audio-filename`,translate:`no`,children:e.fileName}),v?(0,m.jsx)(`audio`,{className:`preview-audio-player`,src:v,controls:!0}):(0,m.jsx)(`div`,{className:`preview-text-loading`,children:b?(0,m.jsx)(`p`,{children:b}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i,{size:24,className:`preview-text-spinner`}),(0,m.jsx)(`p`,{children:s(`preview.audioLoading`)})]})})]}),e.subtype===`file`&&(0,m.jsxs)(`div`,{className:`preview-unsupported`,children:[(0,m.jsx)(r,{size:48,className:`preview-file-icon`}),(0,m.jsx)(`p`,{translate:`no`,children:e.fileName}),(0,m.jsx)(`p`,{className:`preview-unsupported-hint`,children:s(`preview.unsupported`)})]}),e.subtype===`text`&&(0,m.jsxs)(`div`,{className:`preview-text-container`,children:[(0,m.jsx)(`div`,{className:`preview-text-header`,children:(0,m.jsx)(`span`,{translate:`no`,children:e.fileName})}),g?(0,m.jsxs)(`div`,{className:`preview-text-loading`,children:[(0,m.jsx)(i,{size:24,className:`preview-text-spinner`}),(0,m.jsx)(`p`,{children:s(`preview.textLoading`)}),(0,m.jsx)(`p`,{className:`preview-text-loading-hint`,children:s(`preview.firstSyncHint`)})]}):(0,m.jsx)(`pre`,{className:`preview-text`,translate:`no`,children:d||s(`preview.emptyFile`)})]})]})]})}var _={CID_EMPTY:`cid_empty`,INVALID_CID_FORMAT:`invalid_cid_format`,CID_V1_REQUIRED:`cid_v1_required`,CID_DIGEST_LENGTH:`cid_digest_length`,LINK_EMPTY:`link_empty`,INVALID_URL:`invalid_url`,INVALID_PROTOCOL:`invalid_protocol`,UNSUPPORTED_PATH:`unsupported_path`,FILENAME_REQUIRED:`filename_required`,UNSUPPORTED_QUERY_PARAM:`unsupported_query_param`};function v(e){return{valid:!1,errorCode:e}}function y(e,t){return{cid:``,errorCode:e,...t?{details:t}:{}}}function b(e){if(!e||typeof e!=`string`)return v(_.CID_EMPTY);let t;try{t=s.parse(e)}catch{return v(_.INVALID_CID_FORMAT)}return t.version===1?t.multihash.digest.length===32?{valid:!0}:v(_.CID_DIGEST_LENGTH):v(_.CID_V1_REQUIRED)}function x(e){if(!e||typeof e!=`string`)return y(_.LINK_EMPTY);let t;try{t=new URL(e)}catch{return y(_.INVALID_URL)}if(t.protocol!==`most:`)return y(_.INVALID_PROTOCOL);if(t.pathname&&t.pathname!==`/`)return y(_.UNSUPPORTED_PATH);let n=t.hostname,r=t.searchParams.get(`filename`),i=[...t.searchParams.keys()].find(e=>e!==`filename`),a=b(n);return a.valid?!r||!r.trim()?y(_.FILENAME_REQUIRED):i?y(_.UNSUPPORTED_QUERY_PARAM,{param:i}):{cid:n,fileName:r}:y(a.errorCode)}var S={timeout:`检测等待超时,暂时没有等到在线种子响应。请确认分享者或其他下载者仍在线做种,稍后再检测。`,offline:`无法连接本地节点,请确认 MostBox 后端正在运行后再检测。`,missingApi:`当前后端还没有检测接口,请重启 MostBox 后端后再试。`,validation:`链接格式不正确,请粘贴完整的 most://<cid>?filename=... 分享链接。`,nameConflict:`下载目录已有同名文件,请先重命名或移走后再检测。`,noPeer:`暂时没有发现在线种子。请确认分享者或其他下载者仍在线做种,稍后再检测。`,permission:`下载目录不可写,请检查目录权限后再检测。`,starting:`本地节点还没有启动完成,请稍等几秒后重新检测。`,server:`本地节点检测时出错,请稍后重试或查看节点日志。`,fallback:`检测未通过,请确认链接完整、发布者在线且本机网络正常。`};_.INVALID_URL,_.INVALID_PROTOCOL,_.UNSUPPORTED_PATH,_.CID_EMPTY,_.INVALID_CID_FORMAT,_.CID_V1_REQUIRED,_.CID_DIGEST_LENGTH,_.FILENAME_REQUIRED;function C(e={},t=``){if(t===`TimeoutError`)return S.timeout;if(!e.status)return S.offline;if(e.status===404)return S.missingApi;switch(e.code){case`VALIDATION_ERROR`:return S.validation;case`CONFLICT`:return e.error?`${e.error},请先处理同名文件后再下载。`:S.nameConflict;case`PEER_NOT_FOUND`:return S.noPeer;case`PERMISSION_ERROR`:return e.error?`下载目录不可写:${e.error}`:S.permission;case`ENGINE_NOT_INITIALIZED`:return S.starting;default:break}return e.status===503?S.noPeer:e.status>=500?S.server:e.error?`检测未通过:${e.error}`:S.fallback}async function w(e,t){let n=new FormData;n.append(`file`,e,t||e.name);let r=await d.post(`/api/publish`,{body:n});if(!r.ok){let e=await r.json().catch(()=>({error:r.statusText}));throw Error(e.error||`Request failed`)}return r.json()}async function T(e){return C(await f(e),e&&typeof e==`object`&&`name`in e?String(e.name):``)}var E={listPublishedFiles:()=>d.get(`/api/files`).json(),listTrashFiles:()=>d.get(`/api/trash`).json(),deletePublishedFile:e=>d.delete(`/api/files/${e}`).json(),restoreTrashFile:e=>d.post(`/api/trash/${e}/restore`).json(),permanentDeleteTrashFile:e=>d.delete(`/api/trash/${e}`).json(),emptyTrash:()=>d.delete(`/api/trash`).json(),toggleStar:e=>d.post(`/api/files/${e}/star`).json(),getConfig:()=>d.get(`/api/config`).json(),getDataPath:()=>d.get(`/api/config/data-path`).json(),getNetworkAddresses:()=>d.get(`/api/network`).json(),saveConfig:e=>d.post(`/api/config`,{json:e}).json(),publishFile:w,checkDownload:(e,t={})=>{let n=typeof t.timeout==`number`?{link:e,timeout:t.timeout}:{link:e};return d.post(`/api/download/check`,{json:n,timeout:t.requestTimeout??15e3}).json()},downloadFile:e=>d.post(`/api/download`,{json:{link:e}}).json(),cacheFile:e=>d.post(`/api/files/${e}/cache`).json(),cancelDownload:e=>d.post(`/api/download/cancel`,{json:{taskId:e}}).json(),getFileDownloadUrl:e=>o(`/api/files/${e}/download`),moveFile:(e,t)=>d.post(`/api/move`,{json:{cid:e,newFileName:t}}).json(),renameFolder:(e,t)=>d.post(`/api/folder/rename`,{json:{oldPath:e,newPath:t}}).json()},D={[_.LINK_EMPTY]:`app.download.validation.empty`,[_.INVALID_URL]:`app.download.validation.invalidUrl`,[_.INVALID_PROTOCOL]:`app.download.validation.protocol`,[_.UNSUPPORTED_PATH]:`app.download.validation.path`,[_.CID_EMPTY]:`app.download.validation.invalidCid`,[_.INVALID_CID_FORMAT]:`app.download.validation.invalidCid`,[_.CID_V1_REQUIRED]:`app.download.validation.cidV1`,[_.CID_DIGEST_LENGTH]:`app.download.validation.cidDigest`,[_.FILENAME_REQUIRED]:`app.download.validation.filenameRequired`};function O(e){if(!e)return{key:`app.download.validation.empty`};let t=x(e);return t.errorCode?t.errorCode===_.UNSUPPORTED_QUERY_PARAM?{key:`app.download.validation.unsupportedParam`,params:{param:t.details?.param||``}}:{key:D[t.errorCode||``]||`app.download.validation.generic`}:null}function k(e,t){let n=O(e);return n?t(n.key,n.params):null}export{g as i,E as n,T as r,k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as e}from"./index-WCK14Vja.js";var t=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]);export{t};
|