vibelet 1.2.237 → 1.2.238
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 +35 -0
- package/dist/index.cjs +1 -1
- package/dist/inventory-scan-worker.cjs +1 -1
- package/dist/runtime-version.cjs +1 -1
- package/dist/vibelet.mjs +357 -244
- package/dist/web/assets/App-C21-MM7L.js +2 -0
- package/dist/web/assets/App-CbEM8WX0.css +1 -0
- package/dist/web/assets/BrowserControlPanel-CkKIuEsj.js +1 -0
- package/dist/web/assets/{ChipGroup-DCvI-4nb.js → ChipGroup-YMpjYR9P.js} +1 -1
- package/dist/web/assets/FilesControlPanel-CwbB5lm2.js +1 -0
- package/dist/web/assets/GlobalPendingDialog-DqEBvP53.js +1 -0
- package/dist/web/assets/{ImageViewer-ChfsVDQe.js → ImageViewer-CK5ZHIVv.js} +1 -1
- package/dist/web/assets/{LanguageSettingsPanel-P7H9JLtq.js → LanguageSettingsPanel-BXx4BvyU.js} +1 -1
- package/dist/web/assets/{MarkdownModePanel-B4zGnWRC.js → MarkdownModePanel-VRQHdCgq.js} +1 -1
- package/dist/web/assets/NewSessionDialog-CuL1-FFv.js +1 -0
- package/dist/web/assets/{NotificationSettingsPanel-BAcpsROS.js → NotificationSettingsPanel-D78c9Tv6.js} +1 -1
- package/dist/web/assets/{RemoteLifeOSBlock-C46RjZWn.js → RemoteLifeOSBlock-BjYrjRa2.js} +2 -2
- package/dist/web/assets/RemoteWorkspaceSettings-7jz8oX59.css +1 -0
- package/dist/web/assets/RemoteWorkspaceSettings-B9yBCaSU.js +1 -0
- package/dist/web/assets/{SessionTerminalPanel-pCQpIA-I.js → SessionTerminalPanel-D_XqGjcx.js} +1 -1
- package/dist/web/assets/{ThemeSettingsPanel-JUF7qFiS.js → ThemeSettingsPanel-BAHOGS0L.js} +1 -1
- package/dist/web/assets/{abnfDiagram-VRR7QNED-BUn7dXdz.js → abnfDiagram-VRR7QNED-C_g14JDy.js} +1 -1
- package/dist/web/assets/arc-Dlh78dPq.js +1 -0
- package/dist/web/assets/{architectureDiagram-ZJ3FMSHR-QlFDuk3c.js → architectureDiagram-ZJ3FMSHR-r6osYFBK.js} +1 -1
- package/dist/web/assets/{arrow-right-BkDm1nz1.js → arrow-right-BtC2L5Xy.js} +1 -1
- package/dist/web/assets/{blockDiagram-677ZJIJ3-Di1jkO8N.js → blockDiagram-677ZJIJ3-Dt1NkFp6.js} +1 -1
- package/dist/web/assets/{c4Diagram-LMCZKHZV-BIE5S3xC.js → c4Diagram-LMCZKHZV-DgzJiNGp.js} +1 -1
- package/dist/web/assets/channel-CoeVE6la.js +1 -0
- package/dist/web/assets/{chunk-2Q5K7J3B-BZdVpYMm.js → chunk-2Q5K7J3B-CuStQQP5.js} +1 -1
- package/dist/web/assets/{chunk-32BRIVSS-DniTjuKD.js → chunk-32BRIVSS-CqcvfQyF.js} +1 -1
- package/dist/web/assets/{chunk-5VM5RSS4-zU4WGQUt.js → chunk-5VM5RSS4-ClfzIwi_.js} +1 -1
- package/dist/web/assets/{chunk-EX3LRPZG-B_EGZWf3.js → chunk-EX3LRPZG-km8mrFBg.js} +1 -1
- package/dist/web/assets/{chunk-JWPE2WC7-8R4xqfzd.js → chunk-JWPE2WC7-CwqQJZta.js} +1 -1
- package/dist/web/assets/{chunk-MOJQB5TN-CmpQblce.js → chunk-MOJQB5TN-D6HJ3YLS.js} +1 -1
- package/dist/web/assets/{chunk-RYQCIY6F-DrT9S-SZ.js → chunk-RYQCIY6F-DzxL_I7L.js} +1 -1
- package/dist/web/assets/{chunk-V7JOEXUC-CEP012wY.js → chunk-V7JOEXUC-Cx4-zn7N.js} +1 -1
- package/dist/web/assets/{chunk-VR4S4FIN-DcSau3fK.js → chunk-VR4S4FIN-uFIJLxCS.js} +1 -1
- package/dist/web/assets/{chunk-XXDRQBXY-BoXCe4yS.js → chunk-XXDRQBXY-Cg2Q6HPU.js} +1 -1
- package/dist/web/assets/classDiagram-OUVF2IWQ-UcfsFNaj.js +1 -0
- package/dist/web/assets/classDiagram-v2-EOCWNBFH-UcfsFNaj.js +1 -0
- package/dist/web/assets/{clsx-DNJkZJoV.js → clsx-dhsJw0G5.js} +1 -1
- package/dist/web/assets/{collectMessageImages-CUMbRGiF.js → collectMessageImages-ZyOAE6id.js} +1 -1
- package/dist/web/assets/{cose-bilkent-JH36ORCC-DKrqebqO.js → cose-bilkent-JH36ORCC-CcjvJAJB.js} +1 -1
- package/dist/web/assets/{cynefin-VYW2F7L2-bQLn5vS2.js → cynefin-VYW2F7L2-fGkbWpUF.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-TSTJHNR4-ezXQFC9o.js → cynefinDiagram-TSTJHNR4-Cvuw_uxU.js} +1 -1
- package/dist/web/assets/{dagre-VKFMJZFB-CDV8r_Bq.js → dagre-VKFMJZFB-D07owLRU.js} +1 -1
- package/dist/web/assets/{diagram-FQU43EPY-BICapB67.js → diagram-FQU43EPY-C8yKetrQ.js} +1 -1
- package/dist/web/assets/{diagram-G47NLZAW-TuVLjwN6.js → diagram-G47NLZAW-CM7slttO.js} +1 -1
- package/dist/web/assets/{diagram-NH7WQ7WH-B3dBWl3F.js → diagram-NH7WQ7WH-CAqIaHvI.js} +1 -1
- package/dist/web/assets/{diagram-OA4YK3LP-DeIQlN-6.js → diagram-OA4YK3LP-s_8LmV3Y.js} +1 -1
- package/dist/web/assets/{diagram-WEI45ONY-DZcwYcod.js → diagram-WEI45ONY-DcL-hbJN.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-CCIWWBDH-4KcDP5Zj.js → ebnfDiagram-CCIWWBDH-BiY1-WEY.js} +1 -1
- package/dist/web/assets/{erDiagram-Q63AITRT-D4KIuggo.js → erDiagram-Q63AITRT-iIeyBkVv.js} +1 -1
- package/dist/web/assets/{file-editor-FileCodeEditor-Dn3f5PUl.js → file-editor-FileCodeEditor-Cc7o0SoW.js} +2 -2
- package/dist/web/assets/{file-editor-ObsidianCodeEditor-BgXz3c5Z.js → file-editor-ObsidianCodeEditor-DKHh91wx.js} +2 -2
- package/dist/web/assets/{file-editor-ObsidianFileEditor-CM9ucogo.js → file-editor-ObsidianFileEditor-D4DiY_3P.js} +2 -2
- package/dist/web/assets/{file-editor-index-C7QHkk3U.js → file-editor-index-BrEnI_H0.js} +1 -1
- package/dist/web/assets/{file-editor-index-DIH2DQ5-.js → file-editor-index-DdTlNUV4.js} +1 -1
- package/dist/web/assets/{flowDiagram-23GEKE2U-BeHvede_.js → flowDiagram-23GEKE2U-CTWUxjYj.js} +1 -1
- package/dist/web/assets/{folder-plus-BVS_Q2fe.js → folder-plus-Cud2L2F4.js} +1 -1
- package/dist/web/assets/{ganttDiagram-NO4QXBWP-DrwEUqQX.js → ganttDiagram-NO4QXBWP-wo784lYB.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-IHSO6WYX-Cm7T6TME.js → gitGraphDiagram-IHSO6WYX-BY6lbwzB.js} +1 -1
- package/dist/web/assets/{highlighted-body-TPN3WLV5-DJAPujEc.js → highlighted-body-TPN3WLV5-CDeMvzq_.js} +1 -1
- package/dist/web/assets/{index-CapF4a8Y.js → index-BTavN9lk.js} +1 -1
- package/dist/web/assets/{index-CX8KV6EH.js → index-Dx_1eu1W.js} +2 -2
- package/dist/web/assets/{infoDiagram-FWYZ7A6U-CgeulgC-.js → infoDiagram-FWYZ7A6U-CfoivPz9.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-FXEZZL3T-x4glLaWe.js → ishikawaDiagram-FXEZZL3T-Bt6xBkx3.js} +1 -1
- package/dist/web/assets/{journeyDiagram-5HDEW3XC-DHGcWBDR.js → journeyDiagram-5HDEW3XC-D_lKOA6h.js} +1 -1
- package/dist/web/assets/{kanban-definition-HUTT4EX6-CqYivdRn.js → kanban-definition-HUTT4EX6-Ce_DMiiq.js} +1 -1
- package/dist/web/assets/key-round-BgAVbd3A.js +1 -0
- package/dist/web/assets/{linear-BKnAjtJN.js → linear-DmQK5Nk3.js} +1 -1
- package/dist/web/assets/{mermaid-O7DHMXV3-B3e3pugB.js → mermaid-O7DHMXV3-DKlyhw3K.js} +2 -2
- package/dist/web/assets/{mermaid.core-CTf8qcol.js → mermaid.core-jR_k1I8D.js} +2 -2
- package/dist/web/assets/{mindmap-definition-LN4V7U3C-NQnwG7IB.js → mindmap-definition-LN4V7U3C-4KSBnEFJ.js} +1 -1
- package/dist/web/assets/{pegDiagram-2B236MQR-jfLjzzsG.js → pegDiagram-2B236MQR-rZKZ-HjO.js} +1 -1
- package/dist/web/assets/{pieDiagram-ENE6RG2P-CgxRYPCf.js → pieDiagram-ENE6RG2P-Fz-HbF4X.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-ABIIQ3AL-0zHgV223.js → quadrantDiagram-ABIIQ3AL-G8TsEkFM.js} +1 -1
- package/dist/web/assets/{railroadDiagram-RFXS5EU6-CQqf55Rk.js → railroadDiagram-RFXS5EU6-ztb7MjCm.js} +1 -1
- package/dist/web/assets/{requirementDiagram-TGXJPOKE-Dm9cKzLN.js → requirementDiagram-TGXJPOKE-4Y2Rvrbc.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-HTMAVEWB-BRBxR71X.js → sankeyDiagram-HTMAVEWB-BfX7WEmV.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-DBY2YBRQ-DxVBmbfg.js → sequenceDiagram-DBY2YBRQ-BMavjnNv.js} +1 -1
- package/dist/web/assets/{sizeCapture-X5ZJPWSS-DNNwG-Sh.js → sizeCapture-X5ZJPWSS-DGkFWUNW.js} +1 -1
- package/dist/web/assets/{stateDiagram-2N3HPSRC-C8KGcqhJ.js → stateDiagram-2N3HPSRC-Bu42YWoA.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BwgU75NJ.js +1 -0
- package/dist/web/assets/{swimlanes-5IMT3BWC-CRe3WzWn.js → swimlanes-5IMT3BWC-BGb3og3u.js} +2 -2
- package/dist/web/assets/swimlanesDiagram-G3AALYLV-D2gngEsl.js +1 -0
- package/dist/web/assets/{timeline-definition-FHXFAJF6-CQqiFe9j.js → timeline-definition-FHXFAJF6-Bvzb38qw.js} +1 -1
- package/dist/web/assets/{ts-tags-Chlpw95x.js → ts-tags-DAT_GLYZ.js} +1 -1
- package/dist/web/assets/{vennDiagram-L72KCM5P-C_5c80TB.js → vennDiagram-L72KCM5P-n0xgqOqd.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-EHGQE667-DJ2RRwLP.js → wardleyDiagram-EHGQE667-CwAxqpRk.js} +1 -1
- package/dist/web/assets/{xychartDiagram-FW5EYKEG-MgVCQknE.js → xychartDiagram-FW5EYKEG-B6f2c1Rw.js} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/web/obsidian-editor-assets.json +1 -1
- package/package.json +1 -1
- package/dist/web/assets/App-BY3qcVsa.css +0 -1
- package/dist/web/assets/App-CLTYkSvy.js +0 -2
- package/dist/web/assets/BrowserControlPanel-DJHj2vwI.js +0 -1
- package/dist/web/assets/FilesControlPanel-B-pqZWgH.js +0 -1
- package/dist/web/assets/GlobalPendingDialog-M2Dbntba.js +0 -1
- package/dist/web/assets/NewSessionDialog-Cw6WvtMR.js +0 -1
- package/dist/web/assets/arc-BW2CYTF6.js +0 -1
- package/dist/web/assets/channel-CgLW9Jd5.js +0 -1
- package/dist/web/assets/classDiagram-OUVF2IWQ-BTbMtdvt.js +0 -1
- package/dist/web/assets/classDiagram-v2-EOCWNBFH-BTbMtdvt.js +0 -1
- package/dist/web/assets/stateDiagram-v2-6OUMAXLB-Bk6KXy8V.js +0 -1
- package/dist/web/assets/swimlanesDiagram-G3AALYLV-DsL6VYKg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ac as e,ao as t,ap as n,f as r}from"./App-CLTYkSvy.js";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const i={characterGroupPunctuation:2,characterGroupWhitespace:1,tabSize:4},s={linePrefix:"linePrefix",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};function c(){}const a=function(e){if(null==e)return f;if("function"==typeof e)return u(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=a(e[n]);return u(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return u(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return function(e){return u(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function u(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function f(){return!0}const l=[],h=!0,p=!1,d="skip";function m(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=a(o),s=r?-1:1;!function e(o,c,a){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return f;function f(){let u,f,m,g=l;if((!t||i(o,c,a[a.length-1]||void 0))&&(g=function(e){return Array.isArray(e)?e:"number"==typeof e?[h,e]:null==e?l:[e]}(n(o,a)),g[0]===p))return g;if("children"in o&&o.children){const t=o;if(t.children&&g[0]!==d)for(f=(r?t.children.length:-1)+s,m=a.concat(t);f>-1&&f<t.children.length;){const n=t.children[f];if(u=e(n,f,m)(),u[0]===p)return u;f="number"==typeof u[1]?u[1]:f+s}}return g}}(e,void 0,[])()}function g(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),m(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}const y={}.hasOwnProperty;function v(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&y.call(t,e)){const n=String(t[e]);o=y.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function b(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function w(e,t,n){return">"+(n?"":" ")+e}function x(e,t){return k(e,t.inConstruct,!0)&&!k(e,t.notInConstruct,!1)}function k(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function E(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&x(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function A(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function P(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function I(e,t,n){return(n?"":" ")+e}function T(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function C(e){return"&#x"+e.toString(16).toUpperCase()+";"}function O(t,n,r){const o=e(t),i=e(n);return void 0===o?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===o?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function S(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=O(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=C(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=O(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+C(l));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}function R(e,n){let r=!1;return g(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,p}),Boolean((!e.depth||e.depth<3)&&t(e)&&(n.options.setext||r))}function z(e){return e.value||""}function _(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function L(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("![");const u=n.safe(e.alt,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function j(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function F(e,n){const r=t(e);return Boolean(!n.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function U(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.createTracker(r);let c,a;if(F(e,n)){const t=n.stack;n.stack=[],c=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),c(),n.stack=t,r}c=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),a()),u+=s.move(")"),c(),u}function B(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function M(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function N(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}S.peek=function(e,t,n){return n.options.emphasis||"*"},z.peek=function(){return"<"},_.peek=function(){return"!"},L.peek=function(){return"!"},j.peek=function(){return"`"},U.peek=function(e,t,n){return F(e,n)?"<":"["},B.peek=function(){return"["};const V=a(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=O(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=C(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=O(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+C(l));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}$.peek=function(e,t,n){return n.options.strong||"*"};const q={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),w);return o(),s},break:E,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(P(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,I);return e(),t}const c=n.createTracker(r),a=o.repeat(Math.max(A(i,o)+1,3)),u=n.enter("codeFenced");let f=c.move(a);if(e.lang){const t=n.enter(`codeFencedLang${s}`);f+=c.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);f+=c.move(" "),f+=c.move(n.safe(e.meta,{before:f,after:"\n",encode:["`"],...c.current()})),t()}return f+=c.move("\n"),i&&(f+=c.move(i+"\n")),f+=c.move(a),u(),f},definition:function(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),s(),u},emphasis:S,hardBreak:E,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(R(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=C(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),c(),u},html:z,image:_,imageReference:L,inlineCode:j,link:U,linkReference:B,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):M(n);const c=e.ordered?"."===s?")":".":function(e){const t=M(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let a=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),N(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(s=c),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||M(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const c=n.createTracker(r);c.move(i+" ".repeat(s-i.length)),c.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,c.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?i:i+" ".repeat(s-i.length))+e});return a(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s},root:function(e,t,n,r){return(e.children.some(function(e){return V(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:$,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(N(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};class D extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let o="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const c=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=n(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}function G(e){const t=this;t.parser=function(n){return r(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function H(e){if(e)throw e}var Q,J;D.prototype.file="",D.prototype.name="",D.prototype.reason="",D.prototype.message="",D.prototype.stack="",D.prototype.column=void 0,D.prototype.line=void 0,D.prototype.ancestors=void 0,D.prototype.cause=void 0,D.prototype.fatal=void 0,D.prototype.place=void 0,D.prototype.ruleId=void 0,D.prototype.source=void 0;const Y=o(function(){if(J)return Q;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Q=function e(){var t,n,r,a,u,f,l=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},h=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=c(l,n),l!==(a=c(t,n))&&(d&&a&&(i(a)||(u=o(a)))?(u?(u=!1,f=r&&o(r)?r:[]):f=r&&i(r)?r:{},s(l,{name:n,newValue:e(d,f,a)})):void 0!==a&&s(l,{name:n,newValue:a}));return l}}());function W(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const K=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Z(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,c=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},X=function(...e){let t,n=-1;for(;++n<e.length;)Z(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Z(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,c=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===c);else if(s!==a-1&&2===c){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=a,c=0;continue}}else if(o.length>0){o="",i=0,s=a,c=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,a):o=e.slice(s+1,a),i=a-s-1;s=a,c=0}else 46===n&&c>-1?c++:c=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function Z(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ee(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const te=["history","path","basename","stem","extname","dirname"];class ne{constructor(e){let t;t=e?ee(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<te.length;){const e=te[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)te.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?K(this.path):void 0}set basename(e){oe(e,"basename"),re(e,"basename"),this.path=X(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(Z(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){ie(this.basename,"dirname"),this.path=X(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){Z(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const c=e.codePointAt(n);if(47!==c)r<0&&(t=!0,r=n+1),46===c?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||0===s||1===s&&i===r-1&&i===o+1?"":e.slice(i,r)}(this.path):void 0}set extname(e){if(re(e,"extname"),ie(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=X(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ee(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ee(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),oe(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?K(this.path,this.extname):void 0}set stem(e){oe(e,"stem"),re(e,"stem"),this.path=X(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new D(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function re(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function oe(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ie(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const se=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ce={}.hasOwnProperty;class ae extends se{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const c=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==s[a]&&void 0!==s[a]||(s[a]=t[a]);t=s,c?function(e,t){let n;return function(...t){const s=e.length>t.length;let c;s&&t.push(r);try{c=e.apply(this,t)}catch(i){if(s&&n)throw i;return r(i)}s||(c&&c.then&&"function"==typeof c.then?c.then(o,r):c instanceof Error?r(c):o(c))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(c,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new ae;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Y(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(he("data",this.frozen),this.namespace[e]=t,this):ce.call(this.namespace,e)&&this.namespace[e]||void 0:e?(he("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=me(e),n=this.parser||this.Parser;return fe("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fe("process",this.parser||this.Parser),le("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=me(e),s=n.parse(i);function c(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return c(e);const o=t,i=n.stringify(o,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,c(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fe("processSync",this.parser||this.Parser),le("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,H(e),t=r}),de("processSync","process",n),t}run(e,t,n){pe(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=me(t);r.run(e,s,function(t,r,s){const c=r||e;t?i(t):o?o(c):n(void 0,c,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){H(e),n=t,r=!0}),de("runSync","run",r),n}stringify(e,t){this.freeze();const n=me(t),r=this.compiler||this.Compiler;return le("stringify",r),pe(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(he("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=Y(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];W(s)&&W(r)&&(r=Y(!0,s,r)),n[o]=[e,r,...i]}}}}const ue=(new ae).freeze();function fe(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function le(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function he(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pe(e){if(!W(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function de(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function me(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ne(e)}export{h as C,d as S,D as V,b as a,g as b,a as c,R as d,C as e,P as f,o as g,q as h,i,A as l,c as o,x as p,G as r,s as t,ue as u,m as v,v as z};
|
|
1
|
+
import{ae as e,aq as t,ar as n,f as r}from"./App-C21-MM7L.js";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const i={characterGroupPunctuation:2,characterGroupWhitespace:1,tabSize:4},s={linePrefix:"linePrefix",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};function c(){}const a=function(e){if(null==e)return f;if("function"==typeof e)return u(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=a(e[n]);return u(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return u(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return function(e){return u(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function u(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function f(){return!0}const l=[],h=!0,p=!1,d="skip";function m(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=a(o),s=r?-1:1;!function e(o,c,a){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return f;function f(){let u,f,m,g=l;if((!t||i(o,c,a[a.length-1]||void 0))&&(g=function(e){return Array.isArray(e)?e:"number"==typeof e?[h,e]:null==e?l:[e]}(n(o,a)),g[0]===p))return g;if("children"in o&&o.children){const t=o;if(t.children&&g[0]!==d)for(f=(r?t.children.length:-1)+s,m=a.concat(t);f>-1&&f<t.children.length;){const n=t.children[f];if(u=e(n,f,m)(),u[0]===p)return u;f="number"==typeof u[1]?u[1]:f+s}}return g}}(e,void 0,[])()}function g(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),m(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}const y={}.hasOwnProperty;function v(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&y.call(t,e)){const n=String(t[e]);o=y.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function b(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function w(e,t,n){return">"+(n?"":" ")+e}function x(e,t){return k(e,t.inConstruct,!0)&&!k(e,t.notInConstruct,!1)}function k(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function E(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&x(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function A(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function P(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function I(e,t,n){return(n?"":" ")+e}function T(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function C(e){return"&#x"+e.toString(16).toUpperCase()+";"}function O(t,n,r){const o=e(t),i=e(n);return void 0===o?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===o?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function S(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=O(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=C(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=O(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+C(l));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}function R(e,n){let r=!1;return g(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,p}),Boolean((!e.depth||e.depth<3)&&t(e)&&(n.options.setext||r))}function z(e){return e.value||""}function _(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function L(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("![");const u=n.safe(e.alt,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function j(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function F(e,n){const r=t(e);return Boolean(!n.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function U(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.createTracker(r);let c,a;if(F(e,n)){const t=n.stack;n.stack=[],c=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),c(),n.stack=t,r}c=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),a()),u+=s.move(")"),c(),u}function B(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function M(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function q(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}S.peek=function(e,t,n){return n.options.emphasis||"*"},z.peek=function(){return"<"},_.peek=function(){return"!"},L.peek=function(){return"!"},j.peek=function(){return"`"},U.peek=function(e,t,n){return F(e,n)?"<":"["},B.peek=function(){return"["};const N=a(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function V(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=O(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=C(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=O(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+C(l));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}V.peek=function(e,t,n){return n.options.strong||"*"};const $={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),w);return o(),s},break:E,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(P(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,I);return e(),t}const c=n.createTracker(r),a=o.repeat(Math.max(A(i,o)+1,3)),u=n.enter("codeFenced");let f=c.move(a);if(e.lang){const t=n.enter(`codeFencedLang${s}`);f+=c.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);f+=c.move(" "),f+=c.move(n.safe(e.meta,{before:f,after:"\n",encode:["`"],...c.current()})),t()}return f+=c.move("\n"),i&&(f+=c.move(i+"\n")),f+=c.move(a),u(),f},definition:function(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),s(),u},emphasis:S,hardBreak:E,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(R(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=C(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),c(),u},html:z,image:_,imageReference:L,inlineCode:j,link:U,linkReference:B,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):M(n);const c=e.ordered?"."===s?")":".":function(e){const t=M(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let a=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),q(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(s=c),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||M(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const c=n.createTracker(r);c.move(i+" ".repeat(s-i.length)),c.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,c.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?i:i+" ".repeat(s-i.length))+e});return a(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s},root:function(e,t,n,r){return(e.children.some(function(e){return N(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:V,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(q(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};class D extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let o="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const c=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=n(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}function G(e){const t=this;t.parser=function(n){return r(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function H(e){if(e)throw e}var Q,J;D.prototype.file="",D.prototype.name="",D.prototype.reason="",D.prototype.message="",D.prototype.stack="",D.prototype.column=void 0,D.prototype.line=void 0,D.prototype.ancestors=void 0,D.prototype.cause=void 0,D.prototype.fatal=void 0,D.prototype.place=void 0,D.prototype.ruleId=void 0,D.prototype.source=void 0;const Y=o(function(){if(J)return Q;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Q=function e(){var t,n,r,a,u,f,l=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},h=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=c(l,n),l!==(a=c(t,n))&&(d&&a&&(i(a)||(u=o(a)))?(u?(u=!1,f=r&&o(r)?r:[]):f=r&&i(r)?r:{},s(l,{name:n,newValue:e(d,f,a)})):void 0!==a&&s(l,{name:n,newValue:a}));return l}}());function W(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const K=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Z(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,c=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},X=function(...e){let t,n=-1;for(;++n<e.length;)Z(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Z(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,c=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===c);else if(s!==a-1&&2===c){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=a,c=0;continue}}else if(o.length>0){o="",i=0,s=a,c=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,a):o=e.slice(s+1,a),i=a-s-1;s=a,c=0}else 46===n&&c>-1?c++:c=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function Z(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ee(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const te=["history","path","basename","stem","extname","dirname"];class ne{constructor(e){let t;t=e?ee(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<te.length;){const e=te[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)te.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?K(this.path):void 0}set basename(e){oe(e,"basename"),re(e,"basename"),this.path=X(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(Z(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){ie(this.basename,"dirname"),this.path=X(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){Z(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const c=e.codePointAt(n);if(47!==c)r<0&&(t=!0,r=n+1),46===c?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||0===s||1===s&&i===r-1&&i===o+1?"":e.slice(i,r)}(this.path):void 0}set extname(e){if(re(e,"extname"),ie(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=X(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ee(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ee(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),oe(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?K(this.path,this.extname):void 0}set stem(e){oe(e,"stem"),re(e,"stem"),this.path=X(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new D(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function re(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function oe(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ie(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const se=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ce={}.hasOwnProperty;class ae extends se{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const c=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==s[a]&&void 0!==s[a]||(s[a]=t[a]);t=s,c?function(e,t){let n;return function(...t){const s=e.length>t.length;let c;s&&t.push(r);try{c=e.apply(this,t)}catch(i){if(s&&n)throw i;return r(i)}s||(c&&c.then&&"function"==typeof c.then?c.then(o,r):c instanceof Error?r(c):o(c))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(c,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new ae;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Y(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(he("data",this.frozen),this.namespace[e]=t,this):ce.call(this.namespace,e)&&this.namespace[e]||void 0:e?(he("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=me(e),n=this.parser||this.Parser;return fe("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fe("process",this.parser||this.Parser),le("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=me(e),s=n.parse(i);function c(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return c(e);const o=t,i=n.stringify(o,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,c(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fe("processSync",this.parser||this.Parser),le("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,H(e),t=r}),de("processSync","process",n),t}run(e,t,n){pe(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=me(t);r.run(e,s,function(t,r,s){const c=r||e;t?i(t):o?o(c):n(void 0,c,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){H(e),n=t,r=!0}),de("runSync","run",r),n}stringify(e,t){this.freeze();const n=me(t),r=this.compiler||this.Compiler;return le("stringify",r),pe(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(he("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=Y(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];W(s)&&W(r)&&(r=Y(!0,s,r)),n[o]=[e,r,...i]}}}}const ue=(new ae).freeze();function fe(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function le(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function he(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pe(e){if(!W(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function de(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function me(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ne(e)}export{h as C,d as S,D as V,b as a,g as b,a as c,R as d,C as e,P as f,o as g,$ as h,i,A as l,c as o,x as p,G as r,s as t,ue as u,m as v,v as z};
|