@storybook/addon-docs 9.0.0-beta.8 → 9.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks.d.ts +78 -37
- package/dist/blocks.js +12 -11
- package/dist/blocks.mjs +13 -13
- package/dist/manager.js +1 -1
- package/dist/preset.js +2 -2
- package/package.json +4 -4
package/dist/preset.js
CHANGED
|
@@ -10,7 +10,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
10
10
|
var default2__default = /*#__PURE__*/_interopDefault(default2);
|
|
11
11
|
var default3__default = /*#__PURE__*/_interopDefault(default3);
|
|
12
12
|
|
|
13
|
-
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __esm=(fn,res)=>function(){return fn&&(res=(0, fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all4)=>{for(var name2 in all4)__defProp(target,name2,{get:all4[name2],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var regex,init_regex=__esm({"../../node_modules/github-slugger/regex.js"(){regex=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;}});function slug(value,maintainCase){return typeof value!="string"?"":(maintainCase||(value=value.toLowerCase()),value.replace(regex,"").replace(/ /g,"-"))}var own,BananaSlug,init_github_slugger=__esm({"../../node_modules/github-slugger/index.js"(){init_regex();own=Object.hasOwnProperty,BananaSlug=class{constructor(){this.occurrences,this.reset();}slug(value,maintainCase){let self2=this,result=slug(value,maintainCase===!0),originalSlug=result;for(;own.call(self2.occurrences,result);)self2.occurrences[originalSlug]++,result=originalSlug+"-"+self2.occurrences[originalSlug];return self2.occurrences[result]=0,result}reset(){this.occurrences=Object.create(null);}};}});function headingRank(node2){let name2=node2.type==="element"?node2.tagName.toLowerCase():"",code2=name2.length===2&&name2.charCodeAt(0)===104?name2.charCodeAt(1):0;return code2>48&&code2<55?code2-48:void 0}var init_lib=__esm({"../../node_modules/hast-util-heading-rank/lib/index.js"(){}});var init_hast_util_heading_rank=__esm({"../../node_modules/hast-util-heading-rank/index.js"(){init_lib();}});function toString(node2){return "children"in node2?all(node2):"value"in node2?node2.value:""}function one(node2){return node2.type==="text"?node2.value:"children"in node2?all(node2):""}function all(node2){let index2=-1,result=[];for(;++index2<node2.children.length;)result[index2]=one(node2.children[index2]);return result.join("")}var init_lib2=__esm({"../../node_modules/hast-util-to-string/lib/index.js"(){}});var init_hast_util_to_string=__esm({"../../node_modules/hast-util-to-string/index.js"(){init_lib2();}});function anyFactory(tests){let checks2=[],index2=-1;for(;++index2<tests.length;)checks2[index2]=convert(tests[index2]);return castFactory(any);function any(...parameters){let index3=-1;for(;++index3<checks2.length;)if(checks2[index3].apply(this,parameters))return !0;return !1}}function propsFactory(check){let checkAsRecord=check;return castFactory(all4);function all4(node2){let nodeAsRecord=node2,key;for(key in check)if(nodeAsRecord[key]!==checkAsRecord[key])return !1;return !0}}function typeFactory(check){return castFactory(type);function type(node2){return node2&&node2.type===check}}function castFactory(testFunction){return check;function check(value,index2,parent){return !!(looksLikeANode(value)&&testFunction.call(this,value,typeof index2=="number"?index2:void 0,parent||void 0))}}function ok(){return !0}function looksLikeANode(value){return value!==null&&typeof value=="object"&&"type"in value}var convert,init_lib3=__esm({"../../node_modules/unist-util-is/lib/index.js"(){convert=function(test){if(test==null)return ok;if(typeof test=="function")return castFactory(test);if(typeof test=="object")return Array.isArray(test)?anyFactory(test):propsFactory(test);if(typeof test=="string")return typeFactory(test);throw new Error("Expected function, string, or object as test")};}});var init_unist_util_is=__esm({"../../node_modules/unist-util-is/index.js"(){init_lib3();}});function color(d){return "\x1B[33m"+d+"\x1B[39m"}var init_color_node=__esm({"../../node_modules/unist-util-visit-parents/lib/color.node.js"(){}});function visitParents(tree,test,visitor,reverse){let check;typeof test=="function"&&typeof visitor!="function"?(reverse=visitor,visitor=test):check=test;let is2=convert(check),step=reverse?-1:1;factory(tree,void 0,[])();function factory(node2,index2,parents){let value=node2&&typeof node2=="object"?node2:{};if(typeof value.type=="string"){let name2=typeof value.tagName=="string"?value.tagName:typeof value.name=="string"?value.name:void 0;Object.defineProperty(visit3,"name",{value:"node ("+color(node2.type+(name2?"<"+name2+">":""))+")"});}return visit3;function visit3(){let result=empty,subresult,offset3,grandparents;if((!test||is2(node2,index2,parents[parents.length-1]||void 0))&&(result=toResult(visitor(node2,parents)),result[0]===EXIT))return result;if("children"in node2&&node2.children){let nodeAsParent=node2;if(nodeAsParent.children&&result[0]!==SKIP)for(offset3=(reverse?nodeAsParent.children.length:-1)+step,grandparents=parents.concat(nodeAsParent);offset3>-1&&offset3<nodeAsParent.children.length;){let child=nodeAsParent.children[offset3];if(subresult=factory(child,offset3,grandparents)(),subresult[0]===EXIT)return subresult;offset3=typeof subresult[1]=="number"?subresult[1]:offset3+step;}}return result}}}function toResult(value){return Array.isArray(value)?value:typeof value=="number"?[CONTINUE,value]:value==null?empty:[value]}var empty,CONTINUE,EXIT,SKIP,init_lib4=__esm({"../../node_modules/unist-util-visit-parents/lib/index.js"(){init_unist_util_is();init_color_node();empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";}});var init_unist_util_visit_parents=__esm({"../../node_modules/unist-util-visit-parents/index.js"(){init_lib4();}});function visit(tree,testOrVisitor,visitorOrReverse,maybeReverse){let reverse,test,visitor;typeof testOrVisitor=="function"&&typeof visitorOrReverse!="function"?(test=void 0,visitor=testOrVisitor,reverse=visitorOrReverse):(test=testOrVisitor,visitor=visitorOrReverse,reverse=maybeReverse),visitParents(tree,test,overload,reverse);function overload(node2,parents){let parent=parents[parents.length-1],index2=parent?parent.children.indexOf(node2):void 0;return visitor(node2,index2,parent)}}var init_lib5=__esm({"../../node_modules/unist-util-visit/lib/index.js"(){init_unist_util_visit_parents();}});var init_unist_util_visit=__esm({"../../node_modules/unist-util-visit/index.js"(){init_lib5();}});function rehypeSlug(options){let prefix=(options||emptyOptions).prefix||"";return function(tree){slugs.reset(),visit(tree,"element",function(node2){headingRank(node2)&&!node2.properties.id&&(node2.properties.id=prefix+slugs.slug(toString(node2)));});}}var emptyOptions,slugs,init_lib6=__esm({"../../node_modules/rehype-slug/lib/index.js"(){init_github_slugger();init_hast_util_heading_rank();init_hast_util_to_string();init_unist_util_visit();emptyOptions={},slugs=new BananaSlug;}});var rehype_slug_exports={};__export(rehype_slug_exports,{default:()=>rehypeSlug});var init_rehype_slug=__esm({"../../node_modules/rehype-slug/index.js"(){init_lib6();}});var env,deserializer,deserialize,init_deserialize=__esm({"../../node_modules/@ungap/structured-clone/esm/deserialize.js"(){env=typeof self=="object"?self:globalThis,deserializer=($,_)=>{let as=(out,index2)=>($.set(index2,out),out),unpair=index2=>{if($.has(index2))return $.get(index2);let[type,value]=_[index2];switch(type){case 0:case-1:return as(value,index2);case 1:{let arr=as([],index2);for(let index3 of value)arr.push(unpair(index3));return arr}case 2:{let object=as({},index2);for(let[key,index3]of value)object[unpair(key)]=unpair(index3);return object}case 3:return as(new Date(value),index2);case 4:{let{source,flags}=value;return as(new RegExp(source,flags),index2)}case 5:{let map=as(new Map,index2);for(let[key,index3]of value)map.set(unpair(key),unpair(index3));return map}case 6:{let set=as(new Set,index2);for(let index3 of value)set.add(unpair(index3));return set}case 7:{let{name:name2,message}=value;return as(new env[name2](message),index2)}case 8:return as(BigInt(value),index2);case"BigInt":return as(Object(BigInt(value)),index2);case"ArrayBuffer":return as(new Uint8Array(value).buffer,value);case"DataView":{let{buffer}=new Uint8Array(value);return as(new DataView(buffer),value)}}return as(new env[type](value),index2)};return unpair},deserialize=serialized=>deserializer(new Map,serialized)(0);}});var EMPTY,toString2,keys,typeOf,shouldSkip,serializer,serialize,init_serialize=__esm({"../../node_modules/@ungap/structured-clone/esm/serialize.js"(){EMPTY="",{toString:toString2}={},{keys}=Object,typeOf=value=>{let type=typeof value;if(type!=="object"||!value)return [0,type];let asString=toString2.call(value).slice(8,-1);switch(asString){case"Array":return [1,EMPTY];case"Object":return [2,EMPTY];case"Date":return [3,EMPTY];case"RegExp":return [4,EMPTY];case"Map":return [5,EMPTY];case"Set":return [6,EMPTY];case"DataView":return [1,asString]}return asString.includes("Array")?[1,asString]:asString.includes("Error")?[7,asString]:[2,asString]},shouldSkip=([TYPE,type])=>TYPE===0&&(type==="function"||type==="symbol"),serializer=(strict,json,$,_)=>{let as=(out,value)=>{let index2=_.push(out)-1;return $.set(value,index2),index2},pair=value=>{if($.has(value))return $.get(value);let[TYPE,type]=typeOf(value);switch(TYPE){case 0:{let entry=value;switch(type){case"bigint":TYPE=8,entry=value.toString();break;case"function":case"symbol":if(strict)throw new TypeError("unable to serialize "+type);entry=null;break;case"undefined":return as([-1],value)}return as([TYPE,entry],value)}case 1:{if(type){let spread=value;return type==="DataView"?spread=new Uint8Array(value.buffer):type==="ArrayBuffer"&&(spread=new Uint8Array(value)),as([type,[...spread]],value)}let arr=[],index2=as([TYPE,arr],value);for(let entry of value)arr.push(pair(entry));return index2}case 2:{if(type)switch(type){case"BigInt":return as([type,value.toString()],value);case"Boolean":case"Number":case"String":return as([type,value.valueOf()],value)}if(json&&"toJSON"in value)return pair(value.toJSON());let entries=[],index2=as([TYPE,entries],value);for(let key of keys(value))(strict||!shouldSkip(typeOf(value[key])))&&entries.push([pair(key),pair(value[key])]);return index2}case 3:return as([TYPE,value.toISOString()],value);case 4:{let{source,flags}=value;return as([TYPE,{source,flags}],value)}case 5:{let entries=[],index2=as([TYPE,entries],value);for(let[key,entry]of value)(strict||!(shouldSkip(typeOf(key))||shouldSkip(typeOf(entry))))&&entries.push([pair(key),pair(entry)]);return index2}case 6:{let entries=[],index2=as([TYPE,entries],value);for(let entry of value)(strict||!shouldSkip(typeOf(entry)))&&entries.push(pair(entry));return index2}}let{message}=value;return as([TYPE,{name:type,message}],value)};return pair},serialize=(value,{json,lossy}={})=>{let _=[];return serializer(!(json||lossy),!!json,new Map,_)(value),_};}});var esm_default,init_esm=__esm({"../../node_modules/@ungap/structured-clone/esm/index.js"(){init_deserialize();init_serialize();esm_default=typeof structuredClone=="function"?(any,options)=>options&&("json"in options||"lossy"in options)?deserialize(serialize(any,options)):structuredClone(any):(any,options)=>deserialize(serialize(any,options));}});function anyFactory2(tests){let checks2=[],index2=-1;for(;++index2<tests.length;)checks2[index2]=convertElement(tests[index2]);return castFactory2(any);function any(...parameters){let index3=-1;for(;++index3<checks2.length;)if(checks2[index3].apply(this,parameters))return !0;return !1}}function tagNameFactory(check){return castFactory2(tagName);function tagName(element3){return element3.tagName===check}}function castFactory2(testFunction){return check;function check(value,index2,parent){return !!(looksLikeAnElement(value)&&testFunction.call(this,value,typeof index2=="number"?index2:void 0,parent||void 0))}}function element(element3){return !!(element3&&typeof element3=="object"&&"type"in element3&&element3.type==="element"&&"tagName"in element3&&typeof element3.tagName=="string")}function looksLikeAnElement(value){return value!==null&&typeof value=="object"&&"type"in value&&"tagName"in value}var convertElement,init_lib7=__esm({"../../node_modules/hast-util-is-element/lib/index.js"(){convertElement=function(test){if(test==null)return element;if(typeof test=="string")return tagNameFactory(test);if(typeof test=="object")return anyFactory2(test);if(typeof test=="function")return castFactory2(test);throw new Error("Expected function, string, or array as `test`")};}});var init_hast_util_is_element=__esm({"../../node_modules/hast-util-is-element/index.js"(){init_lib7();}});function isAbsoluteUrl(url){if(typeof url!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof url}\``);return WINDOWS_PATH_REGEX.test(url)?!1:ABSOLUTE_URL_REGEX.test(url)}var ABSOLUTE_URL_REGEX,WINDOWS_PATH_REGEX,init_is_absolute_url=__esm({"../../node_modules/is-absolute-url/index.js"(){ABSOLUTE_URL_REGEX=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,WINDOWS_PATH_REGEX=/^[a-zA-Z]:\\/;}});function parse(value){let input=String(value||"").trim();return input?input.split(/[ \t\n\r\f]+/g):[]}function stringify(values){return values.join(" ").trim()}var init_space_separated_tokens=__esm({"../../node_modules/space-separated-tokens/index.js"(){}});function rehypeExternalLinks(options){let settings=options||emptyOptions2,protocols=settings.protocols||defaultProtocols,is2=convertElement(settings.test);return function(tree){visit(tree,"element",function(node2,index2,parent){if(node2.tagName==="a"&&typeof node2.properties.href=="string"&&is2(node2,index2,parent)){let url=node2.properties.href;if(isAbsoluteUrl(url)?protocols.includes(url.slice(0,url.indexOf(":"))):url.startsWith("//")){let contentRaw=createIfNeeded(settings.content,node2),content3=contentRaw&&!Array.isArray(contentRaw)?[contentRaw]:contentRaw,relRaw=createIfNeeded(settings.rel,node2)||defaultRel,rel=typeof relRaw=="string"?parse(relRaw):relRaw,target=createIfNeeded(settings.target,node2),properties=createIfNeeded(settings.properties,node2);if(properties&&Object.assign(node2.properties,esm_default(properties)),rel.length>0&&(node2.properties.rel=[...rel]),target&&(node2.properties.target=target),content3){let properties2=createIfNeeded(settings.contentProperties,node2)||{};node2.children.push({type:"element",tagName:"span",properties:esm_default(properties2),children:esm_default(content3)});}}}});}}function createIfNeeded(value,element3){return typeof value=="function"?value(element3):value}var defaultProtocols,defaultRel,emptyOptions2,init_lib8=__esm({"../../node_modules/rehype-external-links/lib/index.js"(){init_esm();init_hast_util_is_element();init_is_absolute_url();init_space_separated_tokens();init_unist_util_visit();defaultProtocols=["http","https"],defaultRel=["nofollow"],emptyOptions2={};}});var rehype_external_links_exports={};__export(rehype_external_links_exports,{default:()=>rehypeExternalLinks});var init_rehype_external_links=__esm({"../../node_modules/rehype-external-links/index.js"(){init_lib8();}});var init_estree_walker=__esm({"../../node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/esm/estree-walker.js"(){}});var require_constants=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/constants.js"(exports,module){var WIN_SLASH="\\\\/",WIN_NO_SLASH=`[^${WIN_SLASH}]`,DOT_LITERAL="\\.",PLUS_LITERAL="\\+",QMARK_LITERAL="\\?",SLASH_LITERAL="\\/",ONE_CHAR="(?=.)",QMARK="[^/]",END_ANCHOR=`(?:${SLASH_LITERAL}|$)`,START_ANCHOR=`(?:^|${SLASH_LITERAL})`,DOTS_SLASH=`${DOT_LITERAL}{1,2}${END_ANCHOR}`,NO_DOT=`(?!${DOT_LITERAL})`,NO_DOTS=`(?!${START_ANCHOR}${DOTS_SLASH})`,NO_DOT_SLASH=`(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,NO_DOTS_SLASH=`(?!${DOTS_SLASH})`,QMARK_NO_DOT=`[^.${SLASH_LITERAL}]`,STAR=`${QMARK}*?`,SEP="/",POSIX_CHARS={DOT_LITERAL,PLUS_LITERAL,QMARK_LITERAL,SLASH_LITERAL,ONE_CHAR,QMARK,END_ANCHOR,DOTS_SLASH,NO_DOT,NO_DOTS,NO_DOT_SLASH,NO_DOTS_SLASH,QMARK_NO_DOT,STAR,START_ANCHOR,SEP},WINDOWS_CHARS={...POSIX_CHARS,SLASH_LITERAL:`[${WIN_SLASH}]`,QMARK:WIN_NO_SLASH,STAR:`${WIN_NO_SLASH}*?`,DOTS_SLASH:`${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,NO_DOT:`(?!${DOT_LITERAL})`,NO_DOTS:`(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,NO_DOT_SLASH:`(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,NO_DOTS_SLASH:`(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,QMARK_NO_DOT:`[^.${WIN_SLASH}]`,START_ANCHOR:`(?:^|[${WIN_SLASH}])`,END_ANCHOR:`(?:[${WIN_SLASH}]|$)`,SEP:"\\"},POSIX_REGEX_SOURCE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};module.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(chars){return {"!":{type:"negate",open:"(?:(?!(?:",close:`))${chars.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(win322){return win322===!0?WINDOWS_CHARS:POSIX_CHARS}};}});var require_utils=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/utils.js"(exports){var{REGEX_BACKSLASH,REGEX_REMOVE_BACKSLASH,REGEX_SPECIAL_CHARS,REGEX_SPECIAL_CHARS_GLOBAL}=require_constants();exports.isObject=val=>val!==null&&typeof val=="object"&&!Array.isArray(val);exports.hasRegexChars=str=>REGEX_SPECIAL_CHARS.test(str);exports.isRegexChar=str=>str.length===1&&exports.hasRegexChars(str);exports.escapeRegex=str=>str.replace(REGEX_SPECIAL_CHARS_GLOBAL,"\\$1");exports.toPosixSlashes=str=>str.replace(REGEX_BACKSLASH,"/");exports.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let platform=navigator.platform.toLowerCase();return platform==="win32"||platform==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};exports.removeBackslashes=str=>str.replace(REGEX_REMOVE_BACKSLASH,match=>match==="\\"?"":match);exports.escapeLast=(input,char,lastIdx)=>{let idx=input.lastIndexOf(char,lastIdx);return idx===-1?input:input[idx-1]==="\\"?exports.escapeLast(input,char,idx-1):`${input.slice(0,idx)}\\${input.slice(idx)}`};exports.removePrefix=(input,state={})=>{let output=input;return output.startsWith("./")&&(output=output.slice(2),state.prefix="./"),output};exports.wrapOutput=(input,state={},options={})=>{let prepend=options.contains?"":"^",append=options.contains?"":"$",output=`${prepend}(?:${input})${append}`;return state.negated===!0&&(output=`(?:^(?!${output}).*$)`),output};exports.basename=(path2,{windows}={})=>{let segs=path2.split(windows?/[\\/]/:"/"),last=segs[segs.length-1];return last===""?segs[segs.length-2]:last};}});var require_scan=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/scan.js"(exports,module){var utils=require_utils(),{CHAR_ASTERISK,CHAR_AT,CHAR_BACKWARD_SLASH,CHAR_COMMA,CHAR_DOT,CHAR_EXCLAMATION_MARK,CHAR_FORWARD_SLASH,CHAR_LEFT_CURLY_BRACE,CHAR_LEFT_PARENTHESES,CHAR_LEFT_SQUARE_BRACKET,CHAR_PLUS,CHAR_QUESTION_MARK,CHAR_RIGHT_CURLY_BRACE,CHAR_RIGHT_PARENTHESES,CHAR_RIGHT_SQUARE_BRACKET}=require_constants(),isPathSeparator=code2=>code2===CHAR_FORWARD_SLASH||code2===CHAR_BACKWARD_SLASH,depth=token=>{token.isPrefix!==!0&&(token.depth=token.isGlobstar?1/0:1);},scan=(input,options)=>{let opts=options||{},length=input.length-1,scanToEnd=opts.parts===!0||opts.scanToEnd===!0,slashes=[],tokens=[],parts=[],str=input,index2=-1,start2=0,lastIndex=0,isBrace=!1,isBracket=!1,isGlob=!1,isExtglob=!1,isGlobstar=!1,braceEscaped=!1,backslashes=!1,negated=!1,negatedExtglob=!1,finished=!1,braces=0,prev,code2,token={value:"",depth:0,isGlob:!1},eos=()=>index2>=length,peek=()=>str.charCodeAt(index2+1),advance3=()=>(prev=code2,str.charCodeAt(++index2));for(;index2<length;){code2=advance3();let next;if(code2===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,code2=advance3(),code2===CHAR_LEFT_CURLY_BRACE&&(braceEscaped=!0);continue}if(braceEscaped===!0||code2===CHAR_LEFT_CURLY_BRACE){for(braces++;eos()!==!0&&(code2=advance3());){if(code2===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,advance3();continue}if(code2===CHAR_LEFT_CURLY_BRACE){braces++;continue}if(braceEscaped!==!0&&code2===CHAR_DOT&&(code2=advance3())===CHAR_DOT){if(isBrace=token.isBrace=!0,isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(braceEscaped!==!0&&code2===CHAR_COMMA){if(isBrace=token.isBrace=!0,isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(code2===CHAR_RIGHT_CURLY_BRACE&&(braces--,braces===0)){braceEscaped=!1,isBrace=token.isBrace=!0,finished=!0;break}}if(scanToEnd===!0)continue;break}if(code2===CHAR_FORWARD_SLASH){if(slashes.push(index2),tokens.push(token),token={value:"",depth:0,isGlob:!1},finished===!0)continue;if(prev===CHAR_DOT&&index2===start2+1){start2+=2;continue}lastIndex=index2+1;continue}if(opts.noext!==!0&&(code2===CHAR_PLUS||code2===CHAR_AT||code2===CHAR_ASTERISK||code2===CHAR_QUESTION_MARK||code2===CHAR_EXCLAMATION_MARK)===!0&&peek()===CHAR_LEFT_PARENTHESES){if(isGlob=token.isGlob=!0,isExtglob=token.isExtglob=!0,finished=!0,code2===CHAR_EXCLAMATION_MARK&&index2===start2&&(negatedExtglob=!0),scanToEnd===!0){for(;eos()!==!0&&(code2=advance3());){if(code2===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,code2=advance3();continue}if(code2===CHAR_RIGHT_PARENTHESES){isGlob=token.isGlob=!0,finished=!0;break}}continue}break}if(code2===CHAR_ASTERISK){if(prev===CHAR_ASTERISK&&(isGlobstar=token.isGlobstar=!0),isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(code2===CHAR_QUESTION_MARK){if(isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(code2===CHAR_LEFT_SQUARE_BRACKET){for(;eos()!==!0&&(next=advance3());){if(next===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,advance3();continue}if(next===CHAR_RIGHT_SQUARE_BRACKET){isBracket=token.isBracket=!0,isGlob=token.isGlob=!0,finished=!0;break}}if(scanToEnd===!0)continue;break}if(opts.nonegate!==!0&&code2===CHAR_EXCLAMATION_MARK&&index2===start2){negated=token.negated=!0,start2++;continue}if(opts.noparen!==!0&&code2===CHAR_LEFT_PARENTHESES){if(isGlob=token.isGlob=!0,scanToEnd===!0){for(;eos()!==!0&&(code2=advance3());){if(code2===CHAR_LEFT_PARENTHESES){backslashes=token.backslashes=!0,code2=advance3();continue}if(code2===CHAR_RIGHT_PARENTHESES){finished=!0;break}}continue}break}if(isGlob===!0){if(finished=!0,scanToEnd===!0)continue;break}}opts.noext===!0&&(isExtglob=!1,isGlob=!1);let base=str,prefix="",glob="";start2>0&&(prefix=str.slice(0,start2),str=str.slice(start2),lastIndex-=start2),base&&isGlob===!0&&lastIndex>0?(base=str.slice(0,lastIndex),glob=str.slice(lastIndex)):isGlob===!0?(base="",glob=str):base=str,base&&base!==""&&base!=="/"&&base!==str&&isPathSeparator(base.charCodeAt(base.length-1))&&(base=base.slice(0,-1)),opts.unescape===!0&&(glob&&(glob=utils.removeBackslashes(glob)),base&&backslashes===!0&&(base=utils.removeBackslashes(base)));let state={prefix,input,start:start2,base,glob,isBrace,isBracket,isGlob,isExtglob,isGlobstar,negated,negatedExtglob};if(opts.tokens===!0&&(state.maxDepth=0,isPathSeparator(code2)||tokens.push(token),state.tokens=tokens),opts.parts===!0||opts.tokens===!0){let prevIndex;for(let idx=0;idx<slashes.length;idx++){let n=prevIndex?prevIndex+1:start2,i=slashes[idx],value=input.slice(n,i);opts.tokens&&(idx===0&&start2!==0?(tokens[idx].isPrefix=!0,tokens[idx].value=prefix):tokens[idx].value=value,depth(tokens[idx]),state.maxDepth+=tokens[idx].depth),(idx!==0||value!=="")&&parts.push(value),prevIndex=i;}if(prevIndex&&prevIndex+1<input.length){let value=input.slice(prevIndex+1);parts.push(value),opts.tokens&&(tokens[tokens.length-1].value=value,depth(tokens[tokens.length-1]),state.maxDepth+=tokens[tokens.length-1].depth);}state.slashes=slashes,state.parts=parts;}return state};module.exports=scan;}});var require_parse=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/parse.js"(exports,module){var constants=require_constants(),utils=require_utils(),{MAX_LENGTH,POSIX_REGEX_SOURCE,REGEX_NON_SPECIAL_CHARS,REGEX_SPECIAL_CHARS_BACKREF,REPLACEMENTS}=constants,expandRange=(args,options)=>{if(typeof options.expandRange=="function")return options.expandRange(...args,options);args.sort();let value=`[${args.join("-")}]`;try{new RegExp(value);}catch{return args.map(v=>utils.escapeRegex(v)).join("..")}return value},syntaxError=(type,char)=>`Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`,parse8=(input,options)=>{if(typeof input!="string")throw new TypeError("Expected a string");input=REPLACEMENTS[input]||input;let opts={...options},max=typeof opts.maxLength=="number"?Math.min(MAX_LENGTH,opts.maxLength):MAX_LENGTH,len=input.length;if(len>max)throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);let bos={type:"bos",value:"",output:opts.prepend||""},tokens=[bos],capture=opts.capture?"":"?:",PLATFORM_CHARS=constants.globChars(opts.windows),EXTGLOB_CHARS=constants.extglobChars(PLATFORM_CHARS),{DOT_LITERAL,PLUS_LITERAL,SLASH_LITERAL,ONE_CHAR,DOTS_SLASH,NO_DOT,NO_DOT_SLASH,NO_DOTS_SLASH,QMARK,QMARK_NO_DOT,STAR,START_ANCHOR}=PLATFORM_CHARS,globstar=opts2=>`(${capture}(?:(?!${START_ANCHOR}${opts2.dot?DOTS_SLASH:DOT_LITERAL}).)*?)`,nodot=opts.dot?"":NO_DOT,qmarkNoDot=opts.dot?QMARK:QMARK_NO_DOT,star=opts.bash===!0?globstar(opts):STAR;opts.capture&&(star=`(${star})`),typeof opts.noext=="boolean"&&(opts.noextglob=opts.noext);let state={input,index:-1,start:0,dot:opts.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens};input=utils.removePrefix(input,state),len=input.length;let extglobs=[],braces=[],stack=[],prev=bos,value,eos=()=>state.index===len-1,peek=state.peek=(n=1)=>input[state.index+n],advance3=state.advance=()=>input[++state.index]||"",remaining=()=>input.slice(state.index+1),consume=(value2="",num=0)=>{state.consumed+=value2,state.index+=num;},append=token=>{state.output+=token.output!=null?token.output:token.value,consume(token.value);},negate=()=>{let count=1;for(;peek()==="!"&&(peek(2)!=="("||peek(3)==="?");)advance3(),state.start++,count++;return count%2===0?!1:(state.negated=!0,state.start++,!0)},increment2=type=>{state[type]++,stack.push(type);},decrement=type=>{state[type]--,stack.pop();},push2=tok=>{if(prev.type==="globstar"){let isBrace=state.braces>0&&(tok.type==="comma"||tok.type==="brace"),isExtglob=tok.extglob===!0||extglobs.length&&(tok.type==="pipe"||tok.type==="paren");tok.type!=="slash"&&tok.type!=="paren"&&!isBrace&&!isExtglob&&(state.output=state.output.slice(0,-prev.output.length),prev.type="star",prev.value="*",prev.output=star,state.output+=prev.output);}if(extglobs.length&&tok.type!=="paren"&&(extglobs[extglobs.length-1].inner+=tok.value),(tok.value||tok.output)&&append(tok),prev&&prev.type==="text"&&tok.type==="text"){prev.output=(prev.output||prev.value)+tok.value,prev.value+=tok.value;return}tok.prev=prev,tokens.push(tok),prev=tok;},extglobOpen=(type,value2)=>{let token={...EXTGLOB_CHARS[value2],conditions:1,inner:""};token.prev=prev,token.parens=state.parens,token.output=state.output;let output=(opts.capture?"(":"")+token.open;increment2("parens"),push2({type,value:value2,output:state.output?"":ONE_CHAR}),push2({type:"paren",extglob:!0,value:advance3(),output}),extglobs.push(token);},extglobClose=token=>{let output=token.close+(opts.capture?")":""),rest;if(token.type==="negate"){let extglobStar=star;if(token.inner&&token.inner.length>1&&token.inner.includes("/")&&(extglobStar=globstar(opts)),(extglobStar!==star||eos()||/^\)+$/.test(remaining()))&&(output=token.close=`)$))${extglobStar}`),token.inner.includes("*")&&(rest=remaining())&&/^\.[^\\/.]+$/.test(rest)){let expression=parse8(rest,{...options,fastpaths:!1}).output;output=token.close=`)${expression})${extglobStar})`;}token.prev.type==="bos"&&(state.negatedExtglob=!0);}push2({type:"paren",extglob:!0,value,output}),decrement("parens");};if(opts.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(input)){let backslashes=!1,output=input.replace(REGEX_SPECIAL_CHARS_BACKREF,(m,esc,chars,first,rest,index2)=>first==="\\"?(backslashes=!0,m):first==="?"?esc?esc+first+(rest?QMARK.repeat(rest.length):""):index2===0?qmarkNoDot+(rest?QMARK.repeat(rest.length):""):QMARK.repeat(chars.length):first==="."?DOT_LITERAL.repeat(chars.length):first==="*"?esc?esc+first+(rest?star:""):star:esc?m:`\\${m}`);return backslashes===!0&&(opts.unescape===!0?output=output.replace(/\\/g,""):output=output.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),output===input&&opts.contains===!0?(state.output=input,state):(state.output=utils.wrapOutput(output,state,options),state)}for(;!eos();){if(value=advance3(),value==="\0")continue;if(value==="\\"){let next=peek();if(next==="/"&&opts.bash!==!0||next==="."||next===";")continue;if(!next){value+="\\",push2({type:"text",value});continue}let match=/^\\+/.exec(remaining()),slashes=0;if(match&&match[0].length>2&&(slashes=match[0].length,state.index+=slashes,slashes%2!==0&&(value+="\\")),opts.unescape===!0?value=advance3():value+=advance3(),state.brackets===0){push2({type:"text",value});continue}}if(state.brackets>0&&(value!=="]"||prev.value==="["||prev.value==="[^")){if(opts.posix!==!1&&value===":"){let inner=prev.value.slice(1);if(inner.includes("[")&&(prev.posix=!0,inner.includes(":"))){let idx=prev.value.lastIndexOf("["),pre=prev.value.slice(0,idx),rest2=prev.value.slice(idx+2),posix2=POSIX_REGEX_SOURCE[rest2];if(posix2){prev.value=pre+posix2,state.backtrack=!0,advance3(),!bos.output&&tokens.indexOf(prev)===1&&(bos.output=ONE_CHAR);continue}}}(value==="["&&peek()!==":"||value==="-"&&peek()==="]")&&(value=`\\${value}`),value==="]"&&(prev.value==="["||prev.value==="[^")&&(value=`\\${value}`),opts.posix===!0&&value==="!"&&prev.value==="["&&(value="^"),prev.value+=value,append({value});continue}if(state.quotes===1&&value!=='"'){value=utils.escapeRegex(value),prev.value+=value,append({value});continue}if(value==='"'){state.quotes=state.quotes===1?0:1,opts.keepQuotes===!0&&push2({type:"text",value});continue}if(value==="("){increment2("parens"),push2({type:"paren",value});continue}if(value===")"){if(state.parens===0&&opts.strictBrackets===!0)throw new SyntaxError(syntaxError("opening","("));let extglob=extglobs[extglobs.length-1];if(extglob&&state.parens===extglob.parens+1){extglobClose(extglobs.pop());continue}push2({type:"paren",value,output:state.parens?")":"\\)"}),decrement("parens");continue}if(value==="["){if(opts.nobracket===!0||!remaining().includes("]")){if(opts.nobracket!==!0&&opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing","]"));value=`\\${value}`;}else increment2("brackets");push2({type:"bracket",value});continue}if(value==="]"){if(opts.nobracket===!0||prev&&prev.type==="bracket"&&prev.value.length===1){push2({type:"text",value,output:`\\${value}`});continue}if(state.brackets===0){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("opening","["));push2({type:"text",value,output:`\\${value}`});continue}decrement("brackets");let prevValue=prev.value.slice(1);if(prev.posix!==!0&&prevValue[0]==="^"&&!prevValue.includes("/")&&(value=`/${value}`),prev.value+=value,append({value}),opts.literalBrackets===!1||utils.hasRegexChars(prevValue))continue;let escaped=utils.escapeRegex(prev.value);if(state.output=state.output.slice(0,-prev.value.length),opts.literalBrackets===!0){state.output+=escaped,prev.value=escaped;continue}prev.value=`(${capture}${escaped}|${prev.value})`,state.output+=prev.value;continue}if(value==="{"&&opts.nobrace!==!0){increment2("braces");let open={type:"brace",value,output:"(",outputIndex:state.output.length,tokensIndex:state.tokens.length};braces.push(open),push2(open);continue}if(value==="}"){let brace=braces[braces.length-1];if(opts.nobrace===!0||!brace){push2({type:"text",value,output:value});continue}let output=")";if(brace.dots===!0){let arr=tokens.slice(),range=[];for(let i=arr.length-1;i>=0&&(tokens.pop(),arr[i].type!=="brace");i--)arr[i].type!=="dots"&&range.unshift(arr[i].value);output=expandRange(range,opts),state.backtrack=!0;}if(brace.comma!==!0&&brace.dots!==!0){let out=state.output.slice(0,brace.outputIndex),toks=state.tokens.slice(brace.tokensIndex);brace.value=brace.output="\\{",value=output="\\}",state.output=out;for(let t of toks)state.output+=t.output||t.value;}push2({type:"brace",value,output}),decrement("braces"),braces.pop();continue}if(value==="|"){extglobs.length>0&&extglobs[extglobs.length-1].conditions++,push2({type:"text",value});continue}if(value===","){let output=value,brace=braces[braces.length-1];brace&&stack[stack.length-1]==="braces"&&(brace.comma=!0,output="|"),push2({type:"comma",value,output});continue}if(value==="/"){if(prev.type==="dot"&&state.index===state.start+1){state.start=state.index+1,state.consumed="",state.output="",tokens.pop(),prev=bos;continue}push2({type:"slash",value,output:SLASH_LITERAL});continue}if(value==="."){if(state.braces>0&&prev.type==="dot"){prev.value==="."&&(prev.output=DOT_LITERAL);let brace=braces[braces.length-1];prev.type="dots",prev.output+=value,prev.value+=value,brace.dots=!0;continue}if(state.braces+state.parens===0&&prev.type!=="bos"&&prev.type!=="slash"){push2({type:"text",value,output:DOT_LITERAL});continue}push2({type:"dot",value,output:DOT_LITERAL});continue}if(value==="?"){if(!(prev&&prev.value==="(")&&opts.noextglob!==!0&&peek()==="("&&peek(2)!=="?"){extglobOpen("qmark",value);continue}if(prev&&prev.type==="paren"){let next=peek(),output=value;(prev.value==="("&&!/[!=<:]/.test(next)||next==="<"&&!/<([!=]|\w+>)/.test(remaining()))&&(output=`\\${value}`),push2({type:"text",value,output});continue}if(opts.dot!==!0&&(prev.type==="slash"||prev.type==="bos")){push2({type:"qmark",value,output:QMARK_NO_DOT});continue}push2({type:"qmark",value,output:QMARK});continue}if(value==="!"){if(opts.noextglob!==!0&&peek()==="("&&(peek(2)!=="?"||!/[!=<:]/.test(peek(3)))){extglobOpen("negate",value);continue}if(opts.nonegate!==!0&&state.index===0){negate();continue}}if(value==="+"){if(opts.noextglob!==!0&&peek()==="("&&peek(2)!=="?"){extglobOpen("plus",value);continue}if(prev&&prev.value==="("||opts.regex===!1){push2({type:"plus",value,output:PLUS_LITERAL});continue}if(prev&&(prev.type==="bracket"||prev.type==="paren"||prev.type==="brace")||state.parens>0){push2({type:"plus",value});continue}push2({type:"plus",value:PLUS_LITERAL});continue}if(value==="@"){if(opts.noextglob!==!0&&peek()==="("&&peek(2)!=="?"){push2({type:"at",extglob:!0,value,output:""});continue}push2({type:"text",value});continue}if(value!=="*"){(value==="$"||value==="^")&&(value=`\\${value}`);let match=REGEX_NON_SPECIAL_CHARS.exec(remaining());match&&(value+=match[0],state.index+=match[0].length),push2({type:"text",value});continue}if(prev&&(prev.type==="globstar"||prev.star===!0)){prev.type="star",prev.star=!0,prev.value+=value,prev.output=star,state.backtrack=!0,state.globstar=!0,consume(value);continue}let rest=remaining();if(opts.noextglob!==!0&&/^\([^?]/.test(rest)){extglobOpen("star",value);continue}if(prev.type==="star"){if(opts.noglobstar===!0){consume(value);continue}let prior=prev.prev,before=prior.prev,isStart=prior.type==="slash"||prior.type==="bos",afterStar=before&&(before.type==="star"||before.type==="globstar");if(opts.bash===!0&&(!isStart||rest[0]&&rest[0]!=="/")){push2({type:"star",value,output:""});continue}let isBrace=state.braces>0&&(prior.type==="comma"||prior.type==="brace"),isExtglob=extglobs.length&&(prior.type==="pipe"||prior.type==="paren");if(!isStart&&prior.type!=="paren"&&!isBrace&&!isExtglob){push2({type:"star",value,output:""});continue}for(;rest.slice(0,3)==="/**";){let after=input[state.index+4];if(after&&after!=="/")break;rest=rest.slice(3),consume("/**",3);}if(prior.type==="bos"&&eos()){prev.type="globstar",prev.value+=value,prev.output=globstar(opts),state.output=prev.output,state.globstar=!0,consume(value);continue}if(prior.type==="slash"&&prior.prev.type!=="bos"&&!afterStar&&eos()){state.output=state.output.slice(0,-(prior.output+prev.output).length),prior.output=`(?:${prior.output}`,prev.type="globstar",prev.output=globstar(opts)+(opts.strictSlashes?")":"|$)"),prev.value+=value,state.globstar=!0,state.output+=prior.output+prev.output,consume(value);continue}if(prior.type==="slash"&&prior.prev.type!=="bos"&&rest[0]==="/"){let end=rest[1]!==void 0?"|$":"";state.output=state.output.slice(0,-(prior.output+prev.output).length),prior.output=`(?:${prior.output}`,prev.type="globstar",prev.output=`${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`,prev.value+=value,state.output+=prior.output+prev.output,state.globstar=!0,consume(value+advance3()),push2({type:"slash",value:"/",output:""});continue}if(prior.type==="bos"&&rest[0]==="/"){prev.type="globstar",prev.value+=value,prev.output=`(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`,state.output=prev.output,state.globstar=!0,consume(value+advance3()),push2({type:"slash",value:"/",output:""});continue}state.output=state.output.slice(0,-prev.output.length),prev.type="globstar",prev.output=globstar(opts),prev.value+=value,state.output+=prev.output,state.globstar=!0,consume(value);continue}let token={type:"star",value,output:star};if(opts.bash===!0){token.output=".*?",(prev.type==="bos"||prev.type==="slash")&&(token.output=nodot+token.output),push2(token);continue}if(prev&&(prev.type==="bracket"||prev.type==="paren")&&opts.regex===!0){token.output=value,push2(token);continue}(state.index===state.start||prev.type==="slash"||prev.type==="dot")&&(prev.type==="dot"?(state.output+=NO_DOT_SLASH,prev.output+=NO_DOT_SLASH):opts.dot===!0?(state.output+=NO_DOTS_SLASH,prev.output+=NO_DOTS_SLASH):(state.output+=nodot,prev.output+=nodot),peek()!=="*"&&(state.output+=ONE_CHAR,prev.output+=ONE_CHAR)),push2(token);}for(;state.brackets>0;){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing","]"));state.output=utils.escapeLast(state.output,"["),decrement("brackets");}for(;state.parens>0;){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing",")"));state.output=utils.escapeLast(state.output,"("),decrement("parens");}for(;state.braces>0;){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing","}"));state.output=utils.escapeLast(state.output,"{"),decrement("braces");}if(opts.strictSlashes!==!0&&(prev.type==="star"||prev.type==="bracket")&&push2({type:"maybe_slash",value:"",output:`${SLASH_LITERAL}?`}),state.backtrack===!0){state.output="";for(let token of state.tokens)state.output+=token.output!=null?token.output:token.value,token.suffix&&(state.output+=token.suffix);}return state};parse8.fastpaths=(input,options)=>{let opts={...options},max=typeof opts.maxLength=="number"?Math.min(MAX_LENGTH,opts.maxLength):MAX_LENGTH,len=input.length;if(len>max)throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);input=REPLACEMENTS[input]||input;let{DOT_LITERAL,SLASH_LITERAL,ONE_CHAR,DOTS_SLASH,NO_DOT,NO_DOTS,NO_DOTS_SLASH,STAR,START_ANCHOR}=constants.globChars(opts.windows),nodot=opts.dot?NO_DOTS:NO_DOT,slashDot=opts.dot?NO_DOTS_SLASH:NO_DOT,capture=opts.capture?"":"?:",state={negated:!1,prefix:""},star=opts.bash===!0?".*?":STAR;opts.capture&&(star=`(${star})`);let globstar=opts2=>opts2.noglobstar===!0?star:`(${capture}(?:(?!${START_ANCHOR}${opts2.dot?DOTS_SLASH:DOT_LITERAL}).)*?)`,create4=str=>{switch(str){case"*":return `${nodot}${ONE_CHAR}${star}`;case".*":return `${DOT_LITERAL}${ONE_CHAR}${star}`;case"*.*":return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;case"*/*":return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;case"**":return nodot+globstar(opts);case"**/*":return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;case"**/*.*":return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;case"**/.*":return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;default:{let match=/^(.*?)\.(\w+)$/.exec(str);if(!match)return;let source2=create4(match[1]);return source2?source2+DOT_LITERAL+match[2]:void 0}}},output=utils.removePrefix(input,state),source=create4(output);return source&&opts.strictSlashes!==!0&&(source+=`${SLASH_LITERAL}?`),source};module.exports=parse8;}});var require_picomatch=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/picomatch.js"(exports,module){var scan=require_scan(),parse8=require_parse(),utils=require_utils(),constants=require_constants(),isObject=val=>val&&typeof val=="object"&&!Array.isArray(val),picomatch=(glob,options,returnState=!1)=>{if(Array.isArray(glob)){let fns=glob.map(input=>picomatch(input,options,returnState));return str=>{for(let isMatch of fns){let state2=isMatch(str);if(state2)return state2}return !1}}let isState=isObject(glob)&&glob.tokens&&glob.input;if(glob===""||typeof glob!="string"&&!isState)throw new TypeError("Expected pattern to be a non-empty string");let opts=options||{},posix2=opts.windows,regex3=isState?picomatch.compileRe(glob,options):picomatch.makeRe(glob,options,!1,!0),state=regex3.state;delete regex3.state;let isIgnored=()=>!1;if(opts.ignore){let ignoreOpts={...options,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(opts.ignore,ignoreOpts,returnState);}let matcher=(input,returnObject=!1)=>{let{isMatch,match,output}=picomatch.test(input,regex3,options,{glob,posix:posix2}),result={glob,state,regex:regex3,posix:posix2,input,output,match,isMatch};return typeof opts.onResult=="function"&&opts.onResult(result),isMatch===!1?(result.isMatch=!1,returnObject?result:!1):isIgnored(input)?(typeof opts.onIgnore=="function"&&opts.onIgnore(result),result.isMatch=!1,returnObject?result:!1):(typeof opts.onMatch=="function"&&opts.onMatch(result),returnObject?result:!0)};return returnState&&(matcher.state=state),matcher};picomatch.test=(input,regex3,options,{glob,posix:posix2}={})=>{if(typeof input!="string")throw new TypeError("Expected input to be a string");if(input==="")return {isMatch:!1,output:""};let opts=options||{},format=opts.format||(posix2?utils.toPosixSlashes:null),match=input===glob,output=match&&format?format(input):input;return match===!1&&(output=format?format(input):input,match=output===glob),(match===!1||opts.capture===!0)&&(opts.matchBase===!0||opts.basename===!0?match=picomatch.matchBase(input,regex3,options,posix2):match=regex3.exec(output)),{isMatch:!!match,match,output}};picomatch.matchBase=(input,glob,options)=>(glob instanceof RegExp?glob:picomatch.makeRe(glob,options)).test(utils.basename(input));picomatch.isMatch=(str,patterns,options)=>picomatch(patterns,options)(str);picomatch.parse=(pattern,options)=>Array.isArray(pattern)?pattern.map(p=>picomatch.parse(p,options)):parse8(pattern,{...options,fastpaths:!1});picomatch.scan=(input,options)=>scan(input,options);picomatch.compileRe=(state,options,returnOutput=!1,returnState=!1)=>{if(returnOutput===!0)return state.output;let opts=options||{},prepend=opts.contains?"":"^",append=opts.contains?"":"$",source=`${prepend}(?:${state.output})${append}`;state&&state.negated===!0&&(source=`^(?!${source}).*$`);let regex3=picomatch.toRegex(source,options);return returnState===!0&&(regex3.state=state),regex3};picomatch.makeRe=(input,options={},returnOutput=!1,returnState=!1)=>{if(!input||typeof input!="string")throw new TypeError("Expected a non-empty string");let parsed={negated:!1,fastpaths:!0};return options.fastpaths!==!1&&(input[0]==="."||input[0]==="*")&&(parsed.output=parse8.fastpaths(input,options)),parsed.output||(parsed=parse8(input,options)),picomatch.compileRe(parsed,options,returnOutput,returnState)};picomatch.toRegex=(source,options)=>{try{let opts=options||{};return new RegExp(source,opts.flags||(opts.nocase?"i":""))}catch(err){if(options&&options.debug===!0)throw err;return /$^/}};picomatch.constants=constants;module.exports=picomatch;}});var require_picomatch2=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/index.js"(exports,module){var pico=require_picomatch(),utils=require_utils();function picomatch(glob,options,returnState=!1){return options&&(options.windows===null||options.windows===void 0)&&(options={...options,windows:utils.isWindows()}),pico(glob,options,returnState)}Object.assign(picomatch,pico);module.exports=picomatch;}});function isArray(arg){return Array.isArray(arg)}function ensureArray(thing){return isArray(thing)?thing:thing==null?[]:[thing]}function getMatcherString(id,resolutionBase){if(resolutionBase===!1||default2.isAbsolute(id)||id.startsWith("**"))return normalizePath(id);let basePath=normalizePath(default2.resolve(resolutionBase||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return default2.posix.join(basePath,normalizePath(id))}var import_picomatch,normalizePathRegExp,normalizePath,createFilter,reservedWords,builtins,forbiddenIdentifiers,init_es=__esm({"../../node_modules/@rollup/pluginutils/dist/es/index.js"(){init_estree_walker();import_picomatch=__toESM(require_picomatch2(),1);normalizePathRegExp=new RegExp(`\\${default2.win32.sep}`,"g"),normalizePath=function(filename){return filename.replace(normalizePathRegExp,default2.posix.sep)};createFilter=function(include,exclude,options){let resolutionBase=options&&options.resolve,getMatcher=id=>id instanceof RegExp?id:{test:what=>{let pattern=getMatcherString(id,resolutionBase);return (0, import_picomatch.default)(pattern,{dot:!0})(what)}},includeMatchers=ensureArray(include).map(getMatcher),excludeMatchers=ensureArray(exclude).map(getMatcher);return !includeMatchers.length&&!excludeMatchers.length?id=>typeof id=="string"&&!id.includes("\0"):function(id){if(typeof id!="string"||id.includes("\0"))return !1;let pathId=normalizePath(id);for(let i=0;i<excludeMatchers.length;++i){let matcher=excludeMatchers[i];if(matcher instanceof RegExp&&(matcher.lastIndex=0),matcher.test(pathId))return !1}for(let i=0;i<includeMatchers.length;++i){let matcher=includeMatchers[i];if(matcher instanceof RegExp&&(matcher.lastIndex=0),matcher.test(pathId))return !0}return !includeMatchers.length}},reservedWords="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",builtins="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",forbiddenIdentifiers=new Set(`${reservedWords} ${builtins}`.split(" "));forbiddenIdentifiers.add("");}});function stringifyPosition(value){return !value||typeof value!="object"?"":"position"in value||"type"in value?position(value.position):"start"in value||"end"in value?position(value):"line"in value||"column"in value?point(value):""}function point(point4){return index(point4&&point4.line)+":"+index(point4&&point4.column)}function position(pos){return point(pos&&pos.start)+"-"+point(pos&&pos.end)}function index(value){return value&&typeof value=="number"?value:1}var init_lib9=__esm({"../../node_modules/unist-util-stringify-position/lib/index.js"(){}});var init_unist_util_stringify_position=__esm({"../../node_modules/unist-util-stringify-position/index.js"(){init_lib9();}});var VFileMessage,init_lib10=__esm({"../../node_modules/vfile-message/lib/index.js"(){init_unist_util_stringify_position();VFileMessage=class extends Error{constructor(causeOrReason,optionsOrParentOrPlace,origin){super(),typeof optionsOrParentOrPlace=="string"&&(origin=optionsOrParentOrPlace,optionsOrParentOrPlace=void 0);let reason="",options={},legacyCause=!1;if(optionsOrParentOrPlace&&("line"in optionsOrParentOrPlace&&"column"in optionsOrParentOrPlace?options={place:optionsOrParentOrPlace}:"start"in optionsOrParentOrPlace&&"end"in optionsOrParentOrPlace?options={place:optionsOrParentOrPlace}:"type"in optionsOrParentOrPlace?options={ancestors:[optionsOrParentOrPlace],place:optionsOrParentOrPlace.position}:options={...optionsOrParentOrPlace}),typeof causeOrReason=="string"?reason=causeOrReason:!options.cause&&causeOrReason&&(legacyCause=!0,reason=causeOrReason.message,options.cause=causeOrReason),!options.ruleId&&!options.source&&typeof origin=="string"){let index2=origin.indexOf(":");index2===-1?options.ruleId=origin:(options.source=origin.slice(0,index2),options.ruleId=origin.slice(index2+1));}if(!options.place&&options.ancestors&&options.ancestors){let parent=options.ancestors[options.ancestors.length-1];parent&&(options.place=parent.position);}let start2=options.place&&"start"in options.place?options.place.start:options.place;this.ancestors=options.ancestors||void 0,this.cause=options.cause||void 0,this.column=start2?start2.column:void 0,this.fatal=void 0,this.file,this.message=reason,this.line=start2?start2.line:void 0,this.name=stringifyPosition(options.place)||"1:1",this.place=options.place||void 0,this.reason=this.message,this.ruleId=options.ruleId||void 0,this.source=options.source||void 0,this.stack=legacyCause&&options.cause&&typeof options.cause.stack=="string"?options.cause.stack:"",this.actual,this.expected,this.note,this.url;}};VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;}});var init_vfile_message=__esm({"../../node_modules/vfile-message/index.js"(){init_lib10();}});var init_minpath=__esm({"../../node_modules/vfile/lib/minpath.js"(){}});var init_minproc=__esm({"../../node_modules/vfile/lib/minproc.js"(){}});function isUrl(fileUrlOrPath){return !!(fileUrlOrPath!==null&&typeof fileUrlOrPath=="object"&&"href"in fileUrlOrPath&&fileUrlOrPath.href&&"protocol"in fileUrlOrPath&&fileUrlOrPath.protocol&&fileUrlOrPath.auth===void 0)}var init_minurl_shared=__esm({"../../node_modules/vfile/lib/minurl.shared.js"(){}});var init_minurl=__esm({"../../node_modules/vfile/lib/minurl.js"(){init_minurl_shared();}});function assertPart(part,name2){if(part&&part.includes(default2__default.default.sep))throw new Error("`"+name2+"` cannot be a path: did not expect `"+default2__default.default.sep+"`")}function assertNonEmpty(part,name2){if(!part)throw new Error("`"+name2+"` cannot be empty")}function assertPath(path2,name2){if(!path2)throw new Error("Setting `"+name2+"` requires `path` to be set too")}function isUint8Array(value){return !!(value&&typeof value=="object"&&"byteLength"in value&&"byteOffset"in value)}var order,VFile,init_lib11=__esm({"../../node_modules/vfile/lib/index.js"(){init_vfile_message();init_minpath();init_minproc();init_minurl();order=["history","path","basename","stem","extname","dirname"],VFile=class{constructor(value){let options;value?isUrl(value)?options={path:value}:typeof value=="string"||isUint8Array(value)?options={value}:options=value:options={},this.cwd="cwd"in options?"":default3__default.default.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let index2=-1;for(;++index2<order.length;){let field2=order[index2];field2 in options&&options[field2]!==void 0&&options[field2]!==null&&(this[field2]=field2==="history"?[...options[field2]]:options[field2]);}let field;for(field in options)order.includes(field)||(this[field]=options[field]);}get basename(){return typeof this.path=="string"?default2__default.default.basename(this.path):void 0}set basename(basename){assertNonEmpty(basename,"basename"),assertPart(basename,"basename"),this.path=default2__default.default.join(this.dirname||"",basename);}get dirname(){return typeof this.path=="string"?default2__default.default.dirname(this.path):void 0}set dirname(dirname3){assertPath(this.basename,"dirname"),this.path=default2__default.default.join(dirname3||"",this.basename);}get extname(){return typeof this.path=="string"?default2__default.default.extname(this.path):void 0}set extname(extname2){if(assertPart(extname2,"extname"),assertPath(this.dirname,"extname"),extname2){if(extname2.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(extname2.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=default2__default.default.join(this.dirname,this.stem+(extname2||""));}get path(){return this.history[this.history.length-1]}set path(path2){isUrl(path2)&&(path2=url.fileURLToPath(path2)),assertNonEmpty(path2,"path"),this.path!==path2&&this.history.push(path2);}get stem(){return typeof this.path=="string"?default2__default.default.basename(this.path,this.extname):void 0}set stem(stem){assertNonEmpty(stem,"stem"),assertPart(stem,"stem"),this.path=default2__default.default.join(this.dirname||"",stem+(this.extname||""));}fail(causeOrReason,optionsOrParentOrPlace,origin){let message=this.message(causeOrReason,optionsOrParentOrPlace,origin);throw message.fatal=!0,message}info(causeOrReason,optionsOrParentOrPlace,origin){let message=this.message(causeOrReason,optionsOrParentOrPlace,origin);return message.fatal=void 0,message}message(causeOrReason,optionsOrParentOrPlace,origin){let message=new VFileMessage(causeOrReason,optionsOrParentOrPlace,origin);return this.path&&(message.name=this.path+":"+message.name,message.file=this.path),message.fatal=!1,this.messages.push(message),message}toString(encoding){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(encoding||void 0).decode(this.value)}};}});var init_vfile=__esm({"../../node_modules/vfile/index.js"(){init_lib11();}});var markdownExtension,markdown_extensions_default,init_markdown_extensions=__esm({"../../node_modules/markdown-extensions/index.js"(){markdownExtension=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"],markdown_extensions_default=markdownExtension;}});var md,init_extnames=__esm({"../../node_modules/@mdx-js/mdx/lib/util/extnames.js"(){init_markdown_extensions();md=markdown_extensions_default.map(function(d){return "."+d});}});function resolveFileAndOptions(vfileCompatible,options){let file=looksLikeAVFile(vfileCompatible)?vfileCompatible:new VFile(vfileCompatible),{format,...rest}=options||{};return {file,options:{format:format==="md"||format==="mdx"?format:file.extname&&(rest.mdExtensions||md).includes(file.extname)?"md":"mdx",...rest}}}function looksLikeAVFile(value){return !!(value&&typeof value=="object"&&"message"in value&&"messages"in value)}var init_resolve_file_and_options=__esm({"../../node_modules/@mdx-js/mdx/lib/util/resolve-file-and-options.js"(){init_vfile();init_extnames();}});function start(code2){return code2?startRe.test(String.fromCodePoint(code2)):!1}function cont(code2,options){let re2=(options||emptyOptions3).jsx?contReJsx:contRe;return code2?re2.test(String.fromCodePoint(code2)):!1}function name(name2,options){return ((options||emptyOptions3).jsx?nameReJsx:nameRe).test(name2)}var startRe,contRe,contReJsx,nameRe,nameReJsx,emptyOptions3,init_lib12=__esm({"../../node_modules/estree-util-is-identifier-name/lib/index.js"(){startRe=/[$_\p{ID_Start}]/u,contRe=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,contReJsx=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions3={};}});var init_estree_util_is_identifier_name=__esm({"../../node_modules/estree-util-is-identifier-name/index.js"(){init_lib12();}});var WalkerBase,init_walker=__esm({"../../node_modules/estree-walker/src/walker.js"(){WalkerBase=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:node2=>this.replacement=node2};}replace(parent,prop,index2,node2){parent&&prop&&(index2!=null?parent[prop][index2]=node2:parent[prop]=node2);}remove(parent,prop,index2){parent&&prop&&(index2!=null?parent[prop].splice(index2,1):delete parent[prop]);}};}});function isNode(value){return value!==null&&typeof value=="object"&&"type"in value&&typeof value.type=="string"}var SyncWalker,init_sync=__esm({"../../node_modules/estree-walker/src/sync.js"(){init_walker();SyncWalker=class extends WalkerBase{constructor(enter,leave){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:node2=>this.replacement=node2},this.enter=enter,this.leave=leave;}visit(node2,parent,prop,index2){if(node2){if(this.enter){let _should_skip=this.should_skip,_should_remove=this.should_remove,_replacement=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,node2,parent,prop,index2),this.replacement&&(node2=this.replacement,this.replace(parent,prop,index2,node2)),this.should_remove&&this.remove(parent,prop,index2);let skipped=this.should_skip,removed=this.should_remove;if(this.should_skip=_should_skip,this.should_remove=_should_remove,this.replacement=_replacement,skipped)return node2;if(removed)return null}let key;for(key in node2){let value=node2[key];if(value&&typeof value=="object")if(Array.isArray(value)){let nodes=value;for(let i=0;i<nodes.length;i+=1){let item=nodes[i];isNode(item)&&(this.visit(item,node2,key,i)||i--);}}else isNode(value)&&this.visit(value,node2,key,null);}if(this.leave){let _replacement=this.replacement,_should_remove=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,node2,parent,prop,index2),this.replacement&&(node2=this.replacement,this.replace(parent,prop,index2,node2)),this.should_remove&&this.remove(parent,prop,index2);let removed=this.should_remove;if(this.replacement=_replacement,this.should_remove=_should_remove,removed)return null}}return node2}};}});var init_async=__esm({"../../node_modules/estree-walker/src/async.js"(){init_walker();}});function walk2(ast,{enter,leave}){return new SyncWalker(enter,leave).visit(ast,null)}var init_src=__esm({"../../node_modules/estree-walker/src/index.js"(){init_sync();init_async();}});function buildJsx(tree,options){let config=options||{},automatic=config.runtime==="automatic",annotations={},imports={};walk2(tree,{enter(node2){if(node2.type==="Program"){let comments=node2.comments||[],index2=-1;for(;++index2<comments.length;){regex2.lastIndex=0;let match=regex2.exec(comments[index2].value);for(;match;)annotations[match[1]]=match[2],match=regex2.exec(comments[index2].value);}if(annotations.jsxRuntime)if(annotations.jsxRuntime==="automatic"){if(automatic=!0,annotations.jsx)throw new Error("Unexpected `@jsx` pragma w/ automatic runtime");if(annotations.jsxFrag)throw new Error("Unexpected `@jsxFrag` pragma w/ automatic runtime")}else if(annotations.jsxRuntime==="classic"){if(automatic=!1,annotations.jsxImportSource)throw new Error("Unexpected `@jsxImportSource` w/ classic runtime")}else throw new Error("Unexpected `jsxRuntime` `"+annotations.jsxRuntime+"`, expected `automatic` or `classic`")}},leave(node2){if(node2.type==="Program"){let specifiers=[];if(imports.fragment&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),imports.jsx&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),imports.jsxs&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),imports.jsxDEV&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),specifiers.length>0){let injectIndex=0;for(;injectIndex<node2.body.length;){let child=node2.body[injectIndex];if("directive"in child&&child.directive)injectIndex++;else break}node2.body.splice(injectIndex,0,{type:"ImportDeclaration",specifiers,source:{type:"Literal",value:(annotations.jsxImportSource||config.importSource||"react")+(config.development?"/jsx-dev-runtime":"/jsx-runtime")}});}}if(node2.type!=="JSXElement"&&node2.type!=="JSXFragment")return;let children=[],index2=-1;for(;++index2<node2.children.length;){let child=node2.children[index2];if(child.type==="JSXExpressionContainer")child.expression.type!=="JSXEmptyExpression"&&children.push(child.expression);else if(child.type==="JSXText"){let value=child.value.replace(/\t/g," ").replace(/ *(\r?\n|\r) */g,`
|
|
13
|
+
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __esm=(fn,res)=>function(){return fn&&(res=(0, fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all4)=>{for(var name2 in all4)__defProp(target,name2,{get:all4[name2],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var regex,init_regex=__esm({"../../node_modules/github-slugger/regex.js"(){regex=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;}});function slug(value,maintainCase){return typeof value!="string"?"":(maintainCase||(value=value.toLowerCase()),value.replace(regex,"").replace(/ /g,"-"))}var own,BananaSlug,init_github_slugger=__esm({"../../node_modules/github-slugger/index.js"(){init_regex();own=Object.hasOwnProperty,BananaSlug=class{constructor(){this.occurrences,this.reset();}slug(value,maintainCase){let self2=this,result=slug(value,maintainCase===!0),originalSlug=result;for(;own.call(self2.occurrences,result);)self2.occurrences[originalSlug]++,result=originalSlug+"-"+self2.occurrences[originalSlug];return self2.occurrences[result]=0,result}reset(){this.occurrences=Object.create(null);}};}});function headingRank(node2){let name2=node2.type==="element"?node2.tagName.toLowerCase():"",code2=name2.length===2&&name2.charCodeAt(0)===104?name2.charCodeAt(1):0;return code2>48&&code2<55?code2-48:void 0}var init_lib=__esm({"../../node_modules/hast-util-heading-rank/lib/index.js"(){}});var init_hast_util_heading_rank=__esm({"../../node_modules/hast-util-heading-rank/index.js"(){init_lib();}});function toString(node2){return "children"in node2?all(node2):"value"in node2?node2.value:""}function one(node2){return node2.type==="text"?node2.value:"children"in node2?all(node2):""}function all(node2){let index2=-1,result=[];for(;++index2<node2.children.length;)result[index2]=one(node2.children[index2]);return result.join("")}var init_lib2=__esm({"../../node_modules/hast-util-to-string/lib/index.js"(){}});var init_hast_util_to_string=__esm({"../../node_modules/hast-util-to-string/index.js"(){init_lib2();}});function anyFactory(tests){let checks2=[],index2=-1;for(;++index2<tests.length;)checks2[index2]=convert(tests[index2]);return castFactory(any);function any(...parameters){let index3=-1;for(;++index3<checks2.length;)if(checks2[index3].apply(this,parameters))return !0;return !1}}function propsFactory(check){let checkAsRecord=check;return castFactory(all4);function all4(node2){let nodeAsRecord=node2,key;for(key in check)if(nodeAsRecord[key]!==checkAsRecord[key])return !1;return !0}}function typeFactory(check){return castFactory(type);function type(node2){return node2&&node2.type===check}}function castFactory(testFunction){return check;function check(value,index2,parent){return !!(looksLikeANode(value)&&testFunction.call(this,value,typeof index2=="number"?index2:void 0,parent||void 0))}}function ok(){return !0}function looksLikeANode(value){return value!==null&&typeof value=="object"&&"type"in value}var convert,init_lib3=__esm({"../../node_modules/unist-util-is/lib/index.js"(){convert=function(test){if(test==null)return ok;if(typeof test=="function")return castFactory(test);if(typeof test=="object")return Array.isArray(test)?anyFactory(test):propsFactory(test);if(typeof test=="string")return typeFactory(test);throw new Error("Expected function, string, or object as test")};}});var init_unist_util_is=__esm({"../../node_modules/unist-util-is/index.js"(){init_lib3();}});function color(d){return "\x1B[33m"+d+"\x1B[39m"}var init_color_node=__esm({"../../node_modules/unist-util-visit-parents/lib/color.node.js"(){}});function visitParents(tree,test,visitor,reverse){let check;typeof test=="function"&&typeof visitor!="function"?(reverse=visitor,visitor=test):check=test;let is2=convert(check),step=reverse?-1:1;factory(tree,void 0,[])();function factory(node2,index2,parents){let value=node2&&typeof node2=="object"?node2:{};if(typeof value.type=="string"){let name2=typeof value.tagName=="string"?value.tagName:typeof value.name=="string"?value.name:void 0;Object.defineProperty(visit3,"name",{value:"node ("+color(node2.type+(name2?"<"+name2+">":""))+")"});}return visit3;function visit3(){let result=empty,subresult,offset3,grandparents;if((!test||is2(node2,index2,parents[parents.length-1]||void 0))&&(result=toResult(visitor(node2,parents)),result[0]===EXIT))return result;if("children"in node2&&node2.children){let nodeAsParent=node2;if(nodeAsParent.children&&result[0]!==SKIP)for(offset3=(reverse?nodeAsParent.children.length:-1)+step,grandparents=parents.concat(nodeAsParent);offset3>-1&&offset3<nodeAsParent.children.length;){let child=nodeAsParent.children[offset3];if(subresult=factory(child,offset3,grandparents)(),subresult[0]===EXIT)return subresult;offset3=typeof subresult[1]=="number"?subresult[1]:offset3+step;}}return result}}}function toResult(value){return Array.isArray(value)?value:typeof value=="number"?[CONTINUE,value]:value==null?empty:[value]}var empty,CONTINUE,EXIT,SKIP,init_lib4=__esm({"../../node_modules/unist-util-visit-parents/lib/index.js"(){init_unist_util_is();init_color_node();empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";}});var init_unist_util_visit_parents=__esm({"../../node_modules/unist-util-visit-parents/index.js"(){init_lib4();}});function visit(tree,testOrVisitor,visitorOrReverse,maybeReverse){let reverse,test,visitor;typeof testOrVisitor=="function"&&typeof visitorOrReverse!="function"?(test=void 0,visitor=testOrVisitor,reverse=visitorOrReverse):(test=testOrVisitor,visitor=visitorOrReverse,reverse=maybeReverse),visitParents(tree,test,overload,reverse);function overload(node2,parents){let parent=parents[parents.length-1],index2=parent?parent.children.indexOf(node2):void 0;return visitor(node2,index2,parent)}}var init_lib5=__esm({"../../node_modules/unist-util-visit/lib/index.js"(){init_unist_util_visit_parents();}});var init_unist_util_visit=__esm({"../../node_modules/unist-util-visit/index.js"(){init_lib5();}});function rehypeSlug(options){let prefix=(options||emptyOptions).prefix||"";return function(tree){slugs.reset(),visit(tree,"element",function(node2){headingRank(node2)&&!node2.properties.id&&(node2.properties.id=prefix+slugs.slug(toString(node2)));});}}var emptyOptions,slugs,init_lib6=__esm({"../../node_modules/rehype-slug/lib/index.js"(){init_github_slugger();init_hast_util_heading_rank();init_hast_util_to_string();init_unist_util_visit();emptyOptions={},slugs=new BananaSlug;}});var rehype_slug_exports={};__export(rehype_slug_exports,{default:()=>rehypeSlug});var init_rehype_slug=__esm({"../../node_modules/rehype-slug/index.js"(){init_lib6();}});var env,deserializer,deserialize,init_deserialize=__esm({"../../node_modules/@ungap/structured-clone/esm/deserialize.js"(){env=typeof self=="object"?self:globalThis,deserializer=($,_)=>{let as=(out,index2)=>($.set(index2,out),out),unpair=index2=>{if($.has(index2))return $.get(index2);let[type,value]=_[index2];switch(type){case 0:case-1:return as(value,index2);case 1:{let arr=as([],index2);for(let index3 of value)arr.push(unpair(index3));return arr}case 2:{let object=as({},index2);for(let[key,index3]of value)object[unpair(key)]=unpair(index3);return object}case 3:return as(new Date(value),index2);case 4:{let{source,flags}=value;return as(new RegExp(source,flags),index2)}case 5:{let map=as(new Map,index2);for(let[key,index3]of value)map.set(unpair(key),unpair(index3));return map}case 6:{let set=as(new Set,index2);for(let index3 of value)set.add(unpair(index3));return set}case 7:{let{name:name2,message}=value;return as(new env[name2](message),index2)}case 8:return as(BigInt(value),index2);case"BigInt":return as(Object(BigInt(value)),index2);case"ArrayBuffer":return as(new Uint8Array(value).buffer,value);case"DataView":{let{buffer}=new Uint8Array(value);return as(new DataView(buffer),value)}}return as(new env[type](value),index2)};return unpair},deserialize=serialized=>deserializer(new Map,serialized)(0);}});var EMPTY,toString2,keys,typeOf,shouldSkip,serializer,serialize,init_serialize=__esm({"../../node_modules/@ungap/structured-clone/esm/serialize.js"(){EMPTY="",{toString:toString2}={},{keys}=Object,typeOf=value=>{let type=typeof value;if(type!=="object"||!value)return [0,type];let asString=toString2.call(value).slice(8,-1);switch(asString){case"Array":return [1,EMPTY];case"Object":return [2,EMPTY];case"Date":return [3,EMPTY];case"RegExp":return [4,EMPTY];case"Map":return [5,EMPTY];case"Set":return [6,EMPTY];case"DataView":return [1,asString]}return asString.includes("Array")?[1,asString]:asString.includes("Error")?[7,asString]:[2,asString]},shouldSkip=([TYPE,type])=>TYPE===0&&(type==="function"||type==="symbol"),serializer=(strict,json,$,_)=>{let as=(out,value)=>{let index2=_.push(out)-1;return $.set(value,index2),index2},pair=value=>{if($.has(value))return $.get(value);let[TYPE,type]=typeOf(value);switch(TYPE){case 0:{let entry=value;switch(type){case"bigint":TYPE=8,entry=value.toString();break;case"function":case"symbol":if(strict)throw new TypeError("unable to serialize "+type);entry=null;break;case"undefined":return as([-1],value)}return as([TYPE,entry],value)}case 1:{if(type){let spread=value;return type==="DataView"?spread=new Uint8Array(value.buffer):type==="ArrayBuffer"&&(spread=new Uint8Array(value)),as([type,[...spread]],value)}let arr=[],index2=as([TYPE,arr],value);for(let entry of value)arr.push(pair(entry));return index2}case 2:{if(type)switch(type){case"BigInt":return as([type,value.toString()],value);case"Boolean":case"Number":case"String":return as([type,value.valueOf()],value)}if(json&&"toJSON"in value)return pair(value.toJSON());let entries=[],index2=as([TYPE,entries],value);for(let key of keys(value))(strict||!shouldSkip(typeOf(value[key])))&&entries.push([pair(key),pair(value[key])]);return index2}case 3:return as([TYPE,value.toISOString()],value);case 4:{let{source,flags}=value;return as([TYPE,{source,flags}],value)}case 5:{let entries=[],index2=as([TYPE,entries],value);for(let[key,entry]of value)(strict||!(shouldSkip(typeOf(key))||shouldSkip(typeOf(entry))))&&entries.push([pair(key),pair(entry)]);return index2}case 6:{let entries=[],index2=as([TYPE,entries],value);for(let entry of value)(strict||!shouldSkip(typeOf(entry)))&&entries.push(pair(entry));return index2}}let{message}=value;return as([TYPE,{name:type,message}],value)};return pair},serialize=(value,{json,lossy}={})=>{let _=[];return serializer(!(json||lossy),!!json,new Map,_)(value),_};}});var esm_default,init_esm=__esm({"../../node_modules/@ungap/structured-clone/esm/index.js"(){init_deserialize();init_serialize();esm_default=typeof structuredClone=="function"?(any,options)=>options&&("json"in options||"lossy"in options)?deserialize(serialize(any,options)):structuredClone(any):(any,options)=>deserialize(serialize(any,options));}});function anyFactory2(tests){let checks2=[],index2=-1;for(;++index2<tests.length;)checks2[index2]=convertElement(tests[index2]);return castFactory2(any);function any(...parameters){let index3=-1;for(;++index3<checks2.length;)if(checks2[index3].apply(this,parameters))return !0;return !1}}function tagNameFactory(check){return castFactory2(tagName);function tagName(element3){return element3.tagName===check}}function castFactory2(testFunction){return check;function check(value,index2,parent){return !!(looksLikeAnElement(value)&&testFunction.call(this,value,typeof index2=="number"?index2:void 0,parent||void 0))}}function element(element3){return !!(element3&&typeof element3=="object"&&"type"in element3&&element3.type==="element"&&"tagName"in element3&&typeof element3.tagName=="string")}function looksLikeAnElement(value){return value!==null&&typeof value=="object"&&"type"in value&&"tagName"in value}var convertElement,init_lib7=__esm({"../../node_modules/hast-util-is-element/lib/index.js"(){convertElement=function(test){if(test==null)return element;if(typeof test=="string")return tagNameFactory(test);if(typeof test=="object")return anyFactory2(test);if(typeof test=="function")return castFactory2(test);throw new Error("Expected function, string, or array as `test`")};}});var init_hast_util_is_element=__esm({"../../node_modules/hast-util-is-element/index.js"(){init_lib7();}});function isAbsoluteUrl(url){if(typeof url!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof url}\``);return WINDOWS_PATH_REGEX.test(url)?!1:ABSOLUTE_URL_REGEX.test(url)}var ABSOLUTE_URL_REGEX,WINDOWS_PATH_REGEX,init_is_absolute_url=__esm({"../../node_modules/is-absolute-url/index.js"(){ABSOLUTE_URL_REGEX=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,WINDOWS_PATH_REGEX=/^[a-zA-Z]:\\/;}});function parse(value){let input=String(value||"").trim();return input?input.split(/[ \t\n\r\f]+/g):[]}function stringify(values){return values.join(" ").trim()}var init_space_separated_tokens=__esm({"../../node_modules/space-separated-tokens/index.js"(){}});function rehypeExternalLinks(options){let settings=options||emptyOptions2,protocols=settings.protocols||defaultProtocols,is2=convertElement(settings.test);return function(tree){visit(tree,"element",function(node2,index2,parent){if(node2.tagName==="a"&&typeof node2.properties.href=="string"&&is2(node2,index2,parent)){let url=node2.properties.href;if(isAbsoluteUrl(url)?protocols.includes(url.slice(0,url.indexOf(":"))):url.startsWith("//")){let contentRaw=createIfNeeded(settings.content,node2),content3=contentRaw&&!Array.isArray(contentRaw)?[contentRaw]:contentRaw,relRaw=createIfNeeded(settings.rel,node2)||defaultRel,rel=typeof relRaw=="string"?parse(relRaw):relRaw,target=createIfNeeded(settings.target,node2),properties=createIfNeeded(settings.properties,node2);if(properties&&Object.assign(node2.properties,esm_default(properties)),rel.length>0&&(node2.properties.rel=[...rel]),target&&(node2.properties.target=target),content3){let properties2=createIfNeeded(settings.contentProperties,node2)||{};node2.children.push({type:"element",tagName:"span",properties:esm_default(properties2),children:esm_default(content3)});}}}});}}function createIfNeeded(value,element3){return typeof value=="function"?value(element3):value}var defaultProtocols,defaultRel,emptyOptions2,init_lib8=__esm({"../../node_modules/rehype-external-links/lib/index.js"(){init_esm();init_hast_util_is_element();init_is_absolute_url();init_space_separated_tokens();init_unist_util_visit();defaultProtocols=["http","https"],defaultRel=["nofollow"],emptyOptions2={};}});var rehype_external_links_exports={};__export(rehype_external_links_exports,{default:()=>rehypeExternalLinks});var init_rehype_external_links=__esm({"../../node_modules/rehype-external-links/index.js"(){init_lib8();}});var init_estree_walker=__esm({"../../node_modules/@rollup/pluginutils/node_modules/estree-walker/dist/esm/estree-walker.js"(){}});var require_constants=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/constants.js"(exports,module){var WIN_SLASH="\\\\/",WIN_NO_SLASH=`[^${WIN_SLASH}]`,DOT_LITERAL="\\.",PLUS_LITERAL="\\+",QMARK_LITERAL="\\?",SLASH_LITERAL="\\/",ONE_CHAR="(?=.)",QMARK="[^/]",END_ANCHOR=`(?:${SLASH_LITERAL}|$)`,START_ANCHOR=`(?:^|${SLASH_LITERAL})`,DOTS_SLASH=`${DOT_LITERAL}{1,2}${END_ANCHOR}`,NO_DOT=`(?!${DOT_LITERAL})`,NO_DOTS=`(?!${START_ANCHOR}${DOTS_SLASH})`,NO_DOT_SLASH=`(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,NO_DOTS_SLASH=`(?!${DOTS_SLASH})`,QMARK_NO_DOT=`[^.${SLASH_LITERAL}]`,STAR=`${QMARK}*?`,SEP="/",POSIX_CHARS={DOT_LITERAL,PLUS_LITERAL,QMARK_LITERAL,SLASH_LITERAL,ONE_CHAR,QMARK,END_ANCHOR,DOTS_SLASH,NO_DOT,NO_DOTS,NO_DOT_SLASH,NO_DOTS_SLASH,QMARK_NO_DOT,STAR,START_ANCHOR,SEP},WINDOWS_CHARS={...POSIX_CHARS,SLASH_LITERAL:`[${WIN_SLASH}]`,QMARK:WIN_NO_SLASH,STAR:`${WIN_NO_SLASH}*?`,DOTS_SLASH:`${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,NO_DOT:`(?!${DOT_LITERAL})`,NO_DOTS:`(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,NO_DOT_SLASH:`(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,NO_DOTS_SLASH:`(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,QMARK_NO_DOT:`[^.${WIN_SLASH}]`,START_ANCHOR:`(?:^|[${WIN_SLASH}])`,END_ANCHOR:`(?:[${WIN_SLASH}]|$)`,SEP:"\\"},POSIX_REGEX_SOURCE={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};module.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(chars){return {"!":{type:"negate",open:"(?:(?!(?:",close:`))${chars.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(win322){return win322===!0?WINDOWS_CHARS:POSIX_CHARS}};}});var require_utils=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/utils.js"(exports){var{REGEX_BACKSLASH,REGEX_REMOVE_BACKSLASH,REGEX_SPECIAL_CHARS,REGEX_SPECIAL_CHARS_GLOBAL}=require_constants();exports.isObject=val=>val!==null&&typeof val=="object"&&!Array.isArray(val);exports.hasRegexChars=str=>REGEX_SPECIAL_CHARS.test(str);exports.isRegexChar=str=>str.length===1&&exports.hasRegexChars(str);exports.escapeRegex=str=>str.replace(REGEX_SPECIAL_CHARS_GLOBAL,"\\$1");exports.toPosixSlashes=str=>str.replace(REGEX_BACKSLASH,"/");exports.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let platform=navigator.platform.toLowerCase();return platform==="win32"||platform==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};exports.removeBackslashes=str=>str.replace(REGEX_REMOVE_BACKSLASH,match=>match==="\\"?"":match);exports.escapeLast=(input,char,lastIdx)=>{let idx=input.lastIndexOf(char,lastIdx);return idx===-1?input:input[idx-1]==="\\"?exports.escapeLast(input,char,idx-1):`${input.slice(0,idx)}\\${input.slice(idx)}`};exports.removePrefix=(input,state={})=>{let output=input;return output.startsWith("./")&&(output=output.slice(2),state.prefix="./"),output};exports.wrapOutput=(input,state={},options={})=>{let prepend=options.contains?"":"^",append=options.contains?"":"$",output=`${prepend}(?:${input})${append}`;return state.negated===!0&&(output=`(?:^(?!${output}).*$)`),output};exports.basename=(path,{windows}={})=>{let segs=path.split(windows?/[\\/]/:"/"),last=segs[segs.length-1];return last===""?segs[segs.length-2]:last};}});var require_scan=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/scan.js"(exports,module){var utils=require_utils(),{CHAR_ASTERISK,CHAR_AT,CHAR_BACKWARD_SLASH,CHAR_COMMA,CHAR_DOT,CHAR_EXCLAMATION_MARK,CHAR_FORWARD_SLASH,CHAR_LEFT_CURLY_BRACE,CHAR_LEFT_PARENTHESES,CHAR_LEFT_SQUARE_BRACKET,CHAR_PLUS,CHAR_QUESTION_MARK,CHAR_RIGHT_CURLY_BRACE,CHAR_RIGHT_PARENTHESES,CHAR_RIGHT_SQUARE_BRACKET}=require_constants(),isPathSeparator=code2=>code2===CHAR_FORWARD_SLASH||code2===CHAR_BACKWARD_SLASH,depth=token=>{token.isPrefix!==!0&&(token.depth=token.isGlobstar?1/0:1);},scan=(input,options)=>{let opts=options||{},length=input.length-1,scanToEnd=opts.parts===!0||opts.scanToEnd===!0,slashes=[],tokens=[],parts=[],str=input,index2=-1,start2=0,lastIndex=0,isBrace=!1,isBracket=!1,isGlob=!1,isExtglob=!1,isGlobstar=!1,braceEscaped=!1,backslashes=!1,negated=!1,negatedExtglob=!1,finished=!1,braces=0,prev,code2,token={value:"",depth:0,isGlob:!1},eos=()=>index2>=length,peek=()=>str.charCodeAt(index2+1),advance3=()=>(prev=code2,str.charCodeAt(++index2));for(;index2<length;){code2=advance3();let next;if(code2===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,code2=advance3(),code2===CHAR_LEFT_CURLY_BRACE&&(braceEscaped=!0);continue}if(braceEscaped===!0||code2===CHAR_LEFT_CURLY_BRACE){for(braces++;eos()!==!0&&(code2=advance3());){if(code2===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,advance3();continue}if(code2===CHAR_LEFT_CURLY_BRACE){braces++;continue}if(braceEscaped!==!0&&code2===CHAR_DOT&&(code2=advance3())===CHAR_DOT){if(isBrace=token.isBrace=!0,isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(braceEscaped!==!0&&code2===CHAR_COMMA){if(isBrace=token.isBrace=!0,isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(code2===CHAR_RIGHT_CURLY_BRACE&&(braces--,braces===0)){braceEscaped=!1,isBrace=token.isBrace=!0,finished=!0;break}}if(scanToEnd===!0)continue;break}if(code2===CHAR_FORWARD_SLASH){if(slashes.push(index2),tokens.push(token),token={value:"",depth:0,isGlob:!1},finished===!0)continue;if(prev===CHAR_DOT&&index2===start2+1){start2+=2;continue}lastIndex=index2+1;continue}if(opts.noext!==!0&&(code2===CHAR_PLUS||code2===CHAR_AT||code2===CHAR_ASTERISK||code2===CHAR_QUESTION_MARK||code2===CHAR_EXCLAMATION_MARK)===!0&&peek()===CHAR_LEFT_PARENTHESES){if(isGlob=token.isGlob=!0,isExtglob=token.isExtglob=!0,finished=!0,code2===CHAR_EXCLAMATION_MARK&&index2===start2&&(negatedExtglob=!0),scanToEnd===!0){for(;eos()!==!0&&(code2=advance3());){if(code2===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,code2=advance3();continue}if(code2===CHAR_RIGHT_PARENTHESES){isGlob=token.isGlob=!0,finished=!0;break}}continue}break}if(code2===CHAR_ASTERISK){if(prev===CHAR_ASTERISK&&(isGlobstar=token.isGlobstar=!0),isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(code2===CHAR_QUESTION_MARK){if(isGlob=token.isGlob=!0,finished=!0,scanToEnd===!0)continue;break}if(code2===CHAR_LEFT_SQUARE_BRACKET){for(;eos()!==!0&&(next=advance3());){if(next===CHAR_BACKWARD_SLASH){backslashes=token.backslashes=!0,advance3();continue}if(next===CHAR_RIGHT_SQUARE_BRACKET){isBracket=token.isBracket=!0,isGlob=token.isGlob=!0,finished=!0;break}}if(scanToEnd===!0)continue;break}if(opts.nonegate!==!0&&code2===CHAR_EXCLAMATION_MARK&&index2===start2){negated=token.negated=!0,start2++;continue}if(opts.noparen!==!0&&code2===CHAR_LEFT_PARENTHESES){if(isGlob=token.isGlob=!0,scanToEnd===!0){for(;eos()!==!0&&(code2=advance3());){if(code2===CHAR_LEFT_PARENTHESES){backslashes=token.backslashes=!0,code2=advance3();continue}if(code2===CHAR_RIGHT_PARENTHESES){finished=!0;break}}continue}break}if(isGlob===!0){if(finished=!0,scanToEnd===!0)continue;break}}opts.noext===!0&&(isExtglob=!1,isGlob=!1);let base=str,prefix="",glob="";start2>0&&(prefix=str.slice(0,start2),str=str.slice(start2),lastIndex-=start2),base&&isGlob===!0&&lastIndex>0?(base=str.slice(0,lastIndex),glob=str.slice(lastIndex)):isGlob===!0?(base="",glob=str):base=str,base&&base!==""&&base!=="/"&&base!==str&&isPathSeparator(base.charCodeAt(base.length-1))&&(base=base.slice(0,-1)),opts.unescape===!0&&(glob&&(glob=utils.removeBackslashes(glob)),base&&backslashes===!0&&(base=utils.removeBackslashes(base)));let state={prefix,input,start:start2,base,glob,isBrace,isBracket,isGlob,isExtglob,isGlobstar,negated,negatedExtglob};if(opts.tokens===!0&&(state.maxDepth=0,isPathSeparator(code2)||tokens.push(token),state.tokens=tokens),opts.parts===!0||opts.tokens===!0){let prevIndex;for(let idx=0;idx<slashes.length;idx++){let n=prevIndex?prevIndex+1:start2,i=slashes[idx],value=input.slice(n,i);opts.tokens&&(idx===0&&start2!==0?(tokens[idx].isPrefix=!0,tokens[idx].value=prefix):tokens[idx].value=value,depth(tokens[idx]),state.maxDepth+=tokens[idx].depth),(idx!==0||value!=="")&&parts.push(value),prevIndex=i;}if(prevIndex&&prevIndex+1<input.length){let value=input.slice(prevIndex+1);parts.push(value),opts.tokens&&(tokens[tokens.length-1].value=value,depth(tokens[tokens.length-1]),state.maxDepth+=tokens[tokens.length-1].depth);}state.slashes=slashes,state.parts=parts;}return state};module.exports=scan;}});var require_parse=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/parse.js"(exports,module){var constants=require_constants(),utils=require_utils(),{MAX_LENGTH,POSIX_REGEX_SOURCE,REGEX_NON_SPECIAL_CHARS,REGEX_SPECIAL_CHARS_BACKREF,REPLACEMENTS}=constants,expandRange=(args,options)=>{if(typeof options.expandRange=="function")return options.expandRange(...args,options);args.sort();let value=`[${args.join("-")}]`;try{new RegExp(value);}catch{return args.map(v=>utils.escapeRegex(v)).join("..")}return value},syntaxError=(type,char)=>`Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`,parse8=(input,options)=>{if(typeof input!="string")throw new TypeError("Expected a string");input=REPLACEMENTS[input]||input;let opts={...options},max=typeof opts.maxLength=="number"?Math.min(MAX_LENGTH,opts.maxLength):MAX_LENGTH,len=input.length;if(len>max)throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);let bos={type:"bos",value:"",output:opts.prepend||""},tokens=[bos],capture=opts.capture?"":"?:",PLATFORM_CHARS=constants.globChars(opts.windows),EXTGLOB_CHARS=constants.extglobChars(PLATFORM_CHARS),{DOT_LITERAL,PLUS_LITERAL,SLASH_LITERAL,ONE_CHAR,DOTS_SLASH,NO_DOT,NO_DOT_SLASH,NO_DOTS_SLASH,QMARK,QMARK_NO_DOT,STAR,START_ANCHOR}=PLATFORM_CHARS,globstar=opts2=>`(${capture}(?:(?!${START_ANCHOR}${opts2.dot?DOTS_SLASH:DOT_LITERAL}).)*?)`,nodot=opts.dot?"":NO_DOT,qmarkNoDot=opts.dot?QMARK:QMARK_NO_DOT,star=opts.bash===!0?globstar(opts):STAR;opts.capture&&(star=`(${star})`),typeof opts.noext=="boolean"&&(opts.noextglob=opts.noext);let state={input,index:-1,start:0,dot:opts.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens};input=utils.removePrefix(input,state),len=input.length;let extglobs=[],braces=[],stack=[],prev=bos,value,eos=()=>state.index===len-1,peek=state.peek=(n=1)=>input[state.index+n],advance3=state.advance=()=>input[++state.index]||"",remaining=()=>input.slice(state.index+1),consume=(value2="",num=0)=>{state.consumed+=value2,state.index+=num;},append=token=>{state.output+=token.output!=null?token.output:token.value,consume(token.value);},negate=()=>{let count=1;for(;peek()==="!"&&(peek(2)!=="("||peek(3)==="?");)advance3(),state.start++,count++;return count%2===0?!1:(state.negated=!0,state.start++,!0)},increment2=type=>{state[type]++,stack.push(type);},decrement=type=>{state[type]--,stack.pop();},push2=tok=>{if(prev.type==="globstar"){let isBrace=state.braces>0&&(tok.type==="comma"||tok.type==="brace"),isExtglob=tok.extglob===!0||extglobs.length&&(tok.type==="pipe"||tok.type==="paren");tok.type!=="slash"&&tok.type!=="paren"&&!isBrace&&!isExtglob&&(state.output=state.output.slice(0,-prev.output.length),prev.type="star",prev.value="*",prev.output=star,state.output+=prev.output);}if(extglobs.length&&tok.type!=="paren"&&(extglobs[extglobs.length-1].inner+=tok.value),(tok.value||tok.output)&&append(tok),prev&&prev.type==="text"&&tok.type==="text"){prev.output=(prev.output||prev.value)+tok.value,prev.value+=tok.value;return}tok.prev=prev,tokens.push(tok),prev=tok;},extglobOpen=(type,value2)=>{let token={...EXTGLOB_CHARS[value2],conditions:1,inner:""};token.prev=prev,token.parens=state.parens,token.output=state.output;let output=(opts.capture?"(":"")+token.open;increment2("parens"),push2({type,value:value2,output:state.output?"":ONE_CHAR}),push2({type:"paren",extglob:!0,value:advance3(),output}),extglobs.push(token);},extglobClose=token=>{let output=token.close+(opts.capture?")":""),rest;if(token.type==="negate"){let extglobStar=star;if(token.inner&&token.inner.length>1&&token.inner.includes("/")&&(extglobStar=globstar(opts)),(extglobStar!==star||eos()||/^\)+$/.test(remaining()))&&(output=token.close=`)$))${extglobStar}`),token.inner.includes("*")&&(rest=remaining())&&/^\.[^\\/.]+$/.test(rest)){let expression=parse8(rest,{...options,fastpaths:!1}).output;output=token.close=`)${expression})${extglobStar})`;}token.prev.type==="bos"&&(state.negatedExtglob=!0);}push2({type:"paren",extglob:!0,value,output}),decrement("parens");};if(opts.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(input)){let backslashes=!1,output=input.replace(REGEX_SPECIAL_CHARS_BACKREF,(m,esc,chars,first,rest,index2)=>first==="\\"?(backslashes=!0,m):first==="?"?esc?esc+first+(rest?QMARK.repeat(rest.length):""):index2===0?qmarkNoDot+(rest?QMARK.repeat(rest.length):""):QMARK.repeat(chars.length):first==="."?DOT_LITERAL.repeat(chars.length):first==="*"?esc?esc+first+(rest?star:""):star:esc?m:`\\${m}`);return backslashes===!0&&(opts.unescape===!0?output=output.replace(/\\/g,""):output=output.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),output===input&&opts.contains===!0?(state.output=input,state):(state.output=utils.wrapOutput(output,state,options),state)}for(;!eos();){if(value=advance3(),value==="\0")continue;if(value==="\\"){let next=peek();if(next==="/"&&opts.bash!==!0||next==="."||next===";")continue;if(!next){value+="\\",push2({type:"text",value});continue}let match=/^\\+/.exec(remaining()),slashes=0;if(match&&match[0].length>2&&(slashes=match[0].length,state.index+=slashes,slashes%2!==0&&(value+="\\")),opts.unescape===!0?value=advance3():value+=advance3(),state.brackets===0){push2({type:"text",value});continue}}if(state.brackets>0&&(value!=="]"||prev.value==="["||prev.value==="[^")){if(opts.posix!==!1&&value===":"){let inner=prev.value.slice(1);if(inner.includes("[")&&(prev.posix=!0,inner.includes(":"))){let idx=prev.value.lastIndexOf("["),pre=prev.value.slice(0,idx),rest2=prev.value.slice(idx+2),posix2=POSIX_REGEX_SOURCE[rest2];if(posix2){prev.value=pre+posix2,state.backtrack=!0,advance3(),!bos.output&&tokens.indexOf(prev)===1&&(bos.output=ONE_CHAR);continue}}}(value==="["&&peek()!==":"||value==="-"&&peek()==="]")&&(value=`\\${value}`),value==="]"&&(prev.value==="["||prev.value==="[^")&&(value=`\\${value}`),opts.posix===!0&&value==="!"&&prev.value==="["&&(value="^"),prev.value+=value,append({value});continue}if(state.quotes===1&&value!=='"'){value=utils.escapeRegex(value),prev.value+=value,append({value});continue}if(value==='"'){state.quotes=state.quotes===1?0:1,opts.keepQuotes===!0&&push2({type:"text",value});continue}if(value==="("){increment2("parens"),push2({type:"paren",value});continue}if(value===")"){if(state.parens===0&&opts.strictBrackets===!0)throw new SyntaxError(syntaxError("opening","("));let extglob=extglobs[extglobs.length-1];if(extglob&&state.parens===extglob.parens+1){extglobClose(extglobs.pop());continue}push2({type:"paren",value,output:state.parens?")":"\\)"}),decrement("parens");continue}if(value==="["){if(opts.nobracket===!0||!remaining().includes("]")){if(opts.nobracket!==!0&&opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing","]"));value=`\\${value}`;}else increment2("brackets");push2({type:"bracket",value});continue}if(value==="]"){if(opts.nobracket===!0||prev&&prev.type==="bracket"&&prev.value.length===1){push2({type:"text",value,output:`\\${value}`});continue}if(state.brackets===0){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("opening","["));push2({type:"text",value,output:`\\${value}`});continue}decrement("brackets");let prevValue=prev.value.slice(1);if(prev.posix!==!0&&prevValue[0]==="^"&&!prevValue.includes("/")&&(value=`/${value}`),prev.value+=value,append({value}),opts.literalBrackets===!1||utils.hasRegexChars(prevValue))continue;let escaped=utils.escapeRegex(prev.value);if(state.output=state.output.slice(0,-prev.value.length),opts.literalBrackets===!0){state.output+=escaped,prev.value=escaped;continue}prev.value=`(${capture}${escaped}|${prev.value})`,state.output+=prev.value;continue}if(value==="{"&&opts.nobrace!==!0){increment2("braces");let open={type:"brace",value,output:"(",outputIndex:state.output.length,tokensIndex:state.tokens.length};braces.push(open),push2(open);continue}if(value==="}"){let brace=braces[braces.length-1];if(opts.nobrace===!0||!brace){push2({type:"text",value,output:value});continue}let output=")";if(brace.dots===!0){let arr=tokens.slice(),range=[];for(let i=arr.length-1;i>=0&&(tokens.pop(),arr[i].type!=="brace");i--)arr[i].type!=="dots"&&range.unshift(arr[i].value);output=expandRange(range,opts),state.backtrack=!0;}if(brace.comma!==!0&&brace.dots!==!0){let out=state.output.slice(0,brace.outputIndex),toks=state.tokens.slice(brace.tokensIndex);brace.value=brace.output="\\{",value=output="\\}",state.output=out;for(let t of toks)state.output+=t.output||t.value;}push2({type:"brace",value,output}),decrement("braces"),braces.pop();continue}if(value==="|"){extglobs.length>0&&extglobs[extglobs.length-1].conditions++,push2({type:"text",value});continue}if(value===","){let output=value,brace=braces[braces.length-1];brace&&stack[stack.length-1]==="braces"&&(brace.comma=!0,output="|"),push2({type:"comma",value,output});continue}if(value==="/"){if(prev.type==="dot"&&state.index===state.start+1){state.start=state.index+1,state.consumed="",state.output="",tokens.pop(),prev=bos;continue}push2({type:"slash",value,output:SLASH_LITERAL});continue}if(value==="."){if(state.braces>0&&prev.type==="dot"){prev.value==="."&&(prev.output=DOT_LITERAL);let brace=braces[braces.length-1];prev.type="dots",prev.output+=value,prev.value+=value,brace.dots=!0;continue}if(state.braces+state.parens===0&&prev.type!=="bos"&&prev.type!=="slash"){push2({type:"text",value,output:DOT_LITERAL});continue}push2({type:"dot",value,output:DOT_LITERAL});continue}if(value==="?"){if(!(prev&&prev.value==="(")&&opts.noextglob!==!0&&peek()==="("&&peek(2)!=="?"){extglobOpen("qmark",value);continue}if(prev&&prev.type==="paren"){let next=peek(),output=value;(prev.value==="("&&!/[!=<:]/.test(next)||next==="<"&&!/<([!=]|\w+>)/.test(remaining()))&&(output=`\\${value}`),push2({type:"text",value,output});continue}if(opts.dot!==!0&&(prev.type==="slash"||prev.type==="bos")){push2({type:"qmark",value,output:QMARK_NO_DOT});continue}push2({type:"qmark",value,output:QMARK});continue}if(value==="!"){if(opts.noextglob!==!0&&peek()==="("&&(peek(2)!=="?"||!/[!=<:]/.test(peek(3)))){extglobOpen("negate",value);continue}if(opts.nonegate!==!0&&state.index===0){negate();continue}}if(value==="+"){if(opts.noextglob!==!0&&peek()==="("&&peek(2)!=="?"){extglobOpen("plus",value);continue}if(prev&&prev.value==="("||opts.regex===!1){push2({type:"plus",value,output:PLUS_LITERAL});continue}if(prev&&(prev.type==="bracket"||prev.type==="paren"||prev.type==="brace")||state.parens>0){push2({type:"plus",value});continue}push2({type:"plus",value:PLUS_LITERAL});continue}if(value==="@"){if(opts.noextglob!==!0&&peek()==="("&&peek(2)!=="?"){push2({type:"at",extglob:!0,value,output:""});continue}push2({type:"text",value});continue}if(value!=="*"){(value==="$"||value==="^")&&(value=`\\${value}`);let match=REGEX_NON_SPECIAL_CHARS.exec(remaining());match&&(value+=match[0],state.index+=match[0].length),push2({type:"text",value});continue}if(prev&&(prev.type==="globstar"||prev.star===!0)){prev.type="star",prev.star=!0,prev.value+=value,prev.output=star,state.backtrack=!0,state.globstar=!0,consume(value);continue}let rest=remaining();if(opts.noextglob!==!0&&/^\([^?]/.test(rest)){extglobOpen("star",value);continue}if(prev.type==="star"){if(opts.noglobstar===!0){consume(value);continue}let prior=prev.prev,before=prior.prev,isStart=prior.type==="slash"||prior.type==="bos",afterStar=before&&(before.type==="star"||before.type==="globstar");if(opts.bash===!0&&(!isStart||rest[0]&&rest[0]!=="/")){push2({type:"star",value,output:""});continue}let isBrace=state.braces>0&&(prior.type==="comma"||prior.type==="brace"),isExtglob=extglobs.length&&(prior.type==="pipe"||prior.type==="paren");if(!isStart&&prior.type!=="paren"&&!isBrace&&!isExtglob){push2({type:"star",value,output:""});continue}for(;rest.slice(0,3)==="/**";){let after=input[state.index+4];if(after&&after!=="/")break;rest=rest.slice(3),consume("/**",3);}if(prior.type==="bos"&&eos()){prev.type="globstar",prev.value+=value,prev.output=globstar(opts),state.output=prev.output,state.globstar=!0,consume(value);continue}if(prior.type==="slash"&&prior.prev.type!=="bos"&&!afterStar&&eos()){state.output=state.output.slice(0,-(prior.output+prev.output).length),prior.output=`(?:${prior.output}`,prev.type="globstar",prev.output=globstar(opts)+(opts.strictSlashes?")":"|$)"),prev.value+=value,state.globstar=!0,state.output+=prior.output+prev.output,consume(value);continue}if(prior.type==="slash"&&prior.prev.type!=="bos"&&rest[0]==="/"){let end=rest[1]!==void 0?"|$":"";state.output=state.output.slice(0,-(prior.output+prev.output).length),prior.output=`(?:${prior.output}`,prev.type="globstar",prev.output=`${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`,prev.value+=value,state.output+=prior.output+prev.output,state.globstar=!0,consume(value+advance3()),push2({type:"slash",value:"/",output:""});continue}if(prior.type==="bos"&&rest[0]==="/"){prev.type="globstar",prev.value+=value,prev.output=`(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`,state.output=prev.output,state.globstar=!0,consume(value+advance3()),push2({type:"slash",value:"/",output:""});continue}state.output=state.output.slice(0,-prev.output.length),prev.type="globstar",prev.output=globstar(opts),prev.value+=value,state.output+=prev.output,state.globstar=!0,consume(value);continue}let token={type:"star",value,output:star};if(opts.bash===!0){token.output=".*?",(prev.type==="bos"||prev.type==="slash")&&(token.output=nodot+token.output),push2(token);continue}if(prev&&(prev.type==="bracket"||prev.type==="paren")&&opts.regex===!0){token.output=value,push2(token);continue}(state.index===state.start||prev.type==="slash"||prev.type==="dot")&&(prev.type==="dot"?(state.output+=NO_DOT_SLASH,prev.output+=NO_DOT_SLASH):opts.dot===!0?(state.output+=NO_DOTS_SLASH,prev.output+=NO_DOTS_SLASH):(state.output+=nodot,prev.output+=nodot),peek()!=="*"&&(state.output+=ONE_CHAR,prev.output+=ONE_CHAR)),push2(token);}for(;state.brackets>0;){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing","]"));state.output=utils.escapeLast(state.output,"["),decrement("brackets");}for(;state.parens>0;){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing",")"));state.output=utils.escapeLast(state.output,"("),decrement("parens");}for(;state.braces>0;){if(opts.strictBrackets===!0)throw new SyntaxError(syntaxError("closing","}"));state.output=utils.escapeLast(state.output,"{"),decrement("braces");}if(opts.strictSlashes!==!0&&(prev.type==="star"||prev.type==="bracket")&&push2({type:"maybe_slash",value:"",output:`${SLASH_LITERAL}?`}),state.backtrack===!0){state.output="";for(let token of state.tokens)state.output+=token.output!=null?token.output:token.value,token.suffix&&(state.output+=token.suffix);}return state};parse8.fastpaths=(input,options)=>{let opts={...options},max=typeof opts.maxLength=="number"?Math.min(MAX_LENGTH,opts.maxLength):MAX_LENGTH,len=input.length;if(len>max)throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);input=REPLACEMENTS[input]||input;let{DOT_LITERAL,SLASH_LITERAL,ONE_CHAR,DOTS_SLASH,NO_DOT,NO_DOTS,NO_DOTS_SLASH,STAR,START_ANCHOR}=constants.globChars(opts.windows),nodot=opts.dot?NO_DOTS:NO_DOT,slashDot=opts.dot?NO_DOTS_SLASH:NO_DOT,capture=opts.capture?"":"?:",state={negated:!1,prefix:""},star=opts.bash===!0?".*?":STAR;opts.capture&&(star=`(${star})`);let globstar=opts2=>opts2.noglobstar===!0?star:`(${capture}(?:(?!${START_ANCHOR}${opts2.dot?DOTS_SLASH:DOT_LITERAL}).)*?)`,create4=str=>{switch(str){case"*":return `${nodot}${ONE_CHAR}${star}`;case".*":return `${DOT_LITERAL}${ONE_CHAR}${star}`;case"*.*":return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;case"*/*":return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;case"**":return nodot+globstar(opts);case"**/*":return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;case"**/*.*":return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;case"**/.*":return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;default:{let match=/^(.*?)\.(\w+)$/.exec(str);if(!match)return;let source2=create4(match[1]);return source2?source2+DOT_LITERAL+match[2]:void 0}}},output=utils.removePrefix(input,state),source=create4(output);return source&&opts.strictSlashes!==!0&&(source+=`${SLASH_LITERAL}?`),source};module.exports=parse8;}});var require_picomatch=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/picomatch.js"(exports,module){var scan=require_scan(),parse8=require_parse(),utils=require_utils(),constants=require_constants(),isObject=val=>val&&typeof val=="object"&&!Array.isArray(val),picomatch=(glob,options,returnState=!1)=>{if(Array.isArray(glob)){let fns=glob.map(input=>picomatch(input,options,returnState));return str=>{for(let isMatch of fns){let state2=isMatch(str);if(state2)return state2}return !1}}let isState=isObject(glob)&&glob.tokens&&glob.input;if(glob===""||typeof glob!="string"&&!isState)throw new TypeError("Expected pattern to be a non-empty string");let opts=options||{},posix2=opts.windows,regex3=isState?picomatch.compileRe(glob,options):picomatch.makeRe(glob,options,!1,!0),state=regex3.state;delete regex3.state;let isIgnored=()=>!1;if(opts.ignore){let ignoreOpts={...options,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(opts.ignore,ignoreOpts,returnState);}let matcher=(input,returnObject=!1)=>{let{isMatch,match,output}=picomatch.test(input,regex3,options,{glob,posix:posix2}),result={glob,state,regex:regex3,posix:posix2,input,output,match,isMatch};return typeof opts.onResult=="function"&&opts.onResult(result),isMatch===!1?(result.isMatch=!1,returnObject?result:!1):isIgnored(input)?(typeof opts.onIgnore=="function"&&opts.onIgnore(result),result.isMatch=!1,returnObject?result:!1):(typeof opts.onMatch=="function"&&opts.onMatch(result),returnObject?result:!0)};return returnState&&(matcher.state=state),matcher};picomatch.test=(input,regex3,options,{glob,posix:posix2}={})=>{if(typeof input!="string")throw new TypeError("Expected input to be a string");if(input==="")return {isMatch:!1,output:""};let opts=options||{},format=opts.format||(posix2?utils.toPosixSlashes:null),match=input===glob,output=match&&format?format(input):input;return match===!1&&(output=format?format(input):input,match=output===glob),(match===!1||opts.capture===!0)&&(opts.matchBase===!0||opts.basename===!0?match=picomatch.matchBase(input,regex3,options,posix2):match=regex3.exec(output)),{isMatch:!!match,match,output}};picomatch.matchBase=(input,glob,options)=>(glob instanceof RegExp?glob:picomatch.makeRe(glob,options)).test(utils.basename(input));picomatch.isMatch=(str,patterns,options)=>picomatch(patterns,options)(str);picomatch.parse=(pattern,options)=>Array.isArray(pattern)?pattern.map(p=>picomatch.parse(p,options)):parse8(pattern,{...options,fastpaths:!1});picomatch.scan=(input,options)=>scan(input,options);picomatch.compileRe=(state,options,returnOutput=!1,returnState=!1)=>{if(returnOutput===!0)return state.output;let opts=options||{},prepend=opts.contains?"":"^",append=opts.contains?"":"$",source=`${prepend}(?:${state.output})${append}`;state&&state.negated===!0&&(source=`^(?!${source}).*$`);let regex3=picomatch.toRegex(source,options);return returnState===!0&&(regex3.state=state),regex3};picomatch.makeRe=(input,options={},returnOutput=!1,returnState=!1)=>{if(!input||typeof input!="string")throw new TypeError("Expected a non-empty string");let parsed={negated:!1,fastpaths:!0};return options.fastpaths!==!1&&(input[0]==="."||input[0]==="*")&&(parsed.output=parse8.fastpaths(input,options)),parsed.output||(parsed=parse8(input,options)),picomatch.compileRe(parsed,options,returnOutput,returnState)};picomatch.toRegex=(source,options)=>{try{let opts=options||{};return new RegExp(source,opts.flags||(opts.nocase?"i":""))}catch(err){if(options&&options.debug===!0)throw err;return /$^/}};picomatch.constants=constants;module.exports=picomatch;}});var require_picomatch2=__commonJS({"../../node_modules/@rollup/pluginutils/node_modules/picomatch/index.js"(exports,module){var pico=require_picomatch(),utils=require_utils();function picomatch(glob,options,returnState=!1){return options&&(options.windows===null||options.windows===void 0)&&(options={...options,windows:utils.isWindows()}),pico(glob,options,returnState)}Object.assign(picomatch,pico);module.exports=picomatch;}});function isArray(arg){return Array.isArray(arg)}function ensureArray(thing){return isArray(thing)?thing:thing==null?[]:[thing]}function getMatcherString(id,resolutionBase){if(resolutionBase===!1||default2.isAbsolute(id)||id.startsWith("**"))return normalizePath(id);let basePath=normalizePath(default2.resolve(resolutionBase||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return default2.posix.join(basePath,normalizePath(id))}var import_picomatch,normalizePathRegExp,normalizePath,createFilter,reservedWords,builtins,forbiddenIdentifiers,init_es=__esm({"../../node_modules/@rollup/pluginutils/dist/es/index.js"(){init_estree_walker();import_picomatch=__toESM(require_picomatch2(),1);normalizePathRegExp=new RegExp(`\\${default2.win32.sep}`,"g"),normalizePath=function(filename){return filename.replace(normalizePathRegExp,default2.posix.sep)};createFilter=function(include,exclude,options){let resolutionBase=options&&options.resolve,getMatcher=id=>id instanceof RegExp?id:{test:what=>{let pattern=getMatcherString(id,resolutionBase);return (0, import_picomatch.default)(pattern,{dot:!0})(what)}},includeMatchers=ensureArray(include).map(getMatcher),excludeMatchers=ensureArray(exclude).map(getMatcher);return !includeMatchers.length&&!excludeMatchers.length?id=>typeof id=="string"&&!id.includes("\0"):function(id){if(typeof id!="string"||id.includes("\0"))return !1;let pathId=normalizePath(id);for(let i=0;i<excludeMatchers.length;++i){let matcher=excludeMatchers[i];if(matcher instanceof RegExp&&(matcher.lastIndex=0),matcher.test(pathId))return !1}for(let i=0;i<includeMatchers.length;++i){let matcher=includeMatchers[i];if(matcher instanceof RegExp&&(matcher.lastIndex=0),matcher.test(pathId))return !0}return !includeMatchers.length}},reservedWords="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",builtins="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",forbiddenIdentifiers=new Set(`${reservedWords} ${builtins}`.split(" "));forbiddenIdentifiers.add("");}});function stringifyPosition(value){return !value||typeof value!="object"?"":"position"in value||"type"in value?position(value.position):"start"in value||"end"in value?position(value):"line"in value||"column"in value?point(value):""}function point(point4){return index(point4&&point4.line)+":"+index(point4&&point4.column)}function position(pos){return point(pos&&pos.start)+"-"+point(pos&&pos.end)}function index(value){return value&&typeof value=="number"?value:1}var init_lib9=__esm({"../../node_modules/unist-util-stringify-position/lib/index.js"(){}});var init_unist_util_stringify_position=__esm({"../../node_modules/unist-util-stringify-position/index.js"(){init_lib9();}});var VFileMessage,init_lib10=__esm({"../../node_modules/vfile-message/lib/index.js"(){init_unist_util_stringify_position();VFileMessage=class extends Error{constructor(causeOrReason,optionsOrParentOrPlace,origin){super(),typeof optionsOrParentOrPlace=="string"&&(origin=optionsOrParentOrPlace,optionsOrParentOrPlace=void 0);let reason="",options={},legacyCause=!1;if(optionsOrParentOrPlace&&("line"in optionsOrParentOrPlace&&"column"in optionsOrParentOrPlace?options={place:optionsOrParentOrPlace}:"start"in optionsOrParentOrPlace&&"end"in optionsOrParentOrPlace?options={place:optionsOrParentOrPlace}:"type"in optionsOrParentOrPlace?options={ancestors:[optionsOrParentOrPlace],place:optionsOrParentOrPlace.position}:options={...optionsOrParentOrPlace}),typeof causeOrReason=="string"?reason=causeOrReason:!options.cause&&causeOrReason&&(legacyCause=!0,reason=causeOrReason.message,options.cause=causeOrReason),!options.ruleId&&!options.source&&typeof origin=="string"){let index2=origin.indexOf(":");index2===-1?options.ruleId=origin:(options.source=origin.slice(0,index2),options.ruleId=origin.slice(index2+1));}if(!options.place&&options.ancestors&&options.ancestors){let parent=options.ancestors[options.ancestors.length-1];parent&&(options.place=parent.position);}let start2=options.place&&"start"in options.place?options.place.start:options.place;this.ancestors=options.ancestors||void 0,this.cause=options.cause||void 0,this.column=start2?start2.column:void 0,this.fatal=void 0,this.file,this.message=reason,this.line=start2?start2.line:void 0,this.name=stringifyPosition(options.place)||"1:1",this.place=options.place||void 0,this.reason=this.message,this.ruleId=options.ruleId||void 0,this.source=options.source||void 0,this.stack=legacyCause&&options.cause&&typeof options.cause.stack=="string"?options.cause.stack:"",this.actual,this.expected,this.note,this.url;}};VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;}});var init_vfile_message=__esm({"../../node_modules/vfile-message/index.js"(){init_lib10();}});var init_minpath=__esm({"../../node_modules/vfile/lib/minpath.js"(){}});var init_minproc=__esm({"../../node_modules/vfile/lib/minproc.js"(){}});function isUrl(fileUrlOrPath){return !!(fileUrlOrPath!==null&&typeof fileUrlOrPath=="object"&&"href"in fileUrlOrPath&&fileUrlOrPath.href&&"protocol"in fileUrlOrPath&&fileUrlOrPath.protocol&&fileUrlOrPath.auth===void 0)}var init_minurl_shared=__esm({"../../node_modules/vfile/lib/minurl.shared.js"(){}});var init_minurl=__esm({"../../node_modules/vfile/lib/minurl.js"(){init_minurl_shared();}});function assertPart(part,name2){if(part&&part.includes(default2__default.default.sep))throw new Error("`"+name2+"` cannot be a path: did not expect `"+default2__default.default.sep+"`")}function assertNonEmpty(part,name2){if(!part)throw new Error("`"+name2+"` cannot be empty")}function assertPath(path,name2){if(!path)throw new Error("Setting `"+name2+"` requires `path` to be set too")}function isUint8Array(value){return !!(value&&typeof value=="object"&&"byteLength"in value&&"byteOffset"in value)}var order,VFile,init_lib11=__esm({"../../node_modules/vfile/lib/index.js"(){init_vfile_message();init_minpath();init_minproc();init_minurl();order=["history","path","basename","stem","extname","dirname"],VFile=class{constructor(value){let options;value?isUrl(value)?options={path:value}:typeof value=="string"||isUint8Array(value)?options={value}:options=value:options={},this.cwd="cwd"in options?"":default3__default.default.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let index2=-1;for(;++index2<order.length;){let field2=order[index2];field2 in options&&options[field2]!==void 0&&options[field2]!==null&&(this[field2]=field2==="history"?[...options[field2]]:options[field2]);}let field;for(field in options)order.includes(field)||(this[field]=options[field]);}get basename(){return typeof this.path=="string"?default2__default.default.basename(this.path):void 0}set basename(basename){assertNonEmpty(basename,"basename"),assertPart(basename,"basename"),this.path=default2__default.default.join(this.dirname||"",basename);}get dirname(){return typeof this.path=="string"?default2__default.default.dirname(this.path):void 0}set dirname(dirname3){assertPath(this.basename,"dirname"),this.path=default2__default.default.join(dirname3||"",this.basename);}get extname(){return typeof this.path=="string"?default2__default.default.extname(this.path):void 0}set extname(extname2){if(assertPart(extname2,"extname"),assertPath(this.dirname,"extname"),extname2){if(extname2.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(extname2.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=default2__default.default.join(this.dirname,this.stem+(extname2||""));}get path(){return this.history[this.history.length-1]}set path(path){isUrl(path)&&(path=url.fileURLToPath(path)),assertNonEmpty(path,"path"),this.path!==path&&this.history.push(path);}get stem(){return typeof this.path=="string"?default2__default.default.basename(this.path,this.extname):void 0}set stem(stem){assertNonEmpty(stem,"stem"),assertPart(stem,"stem"),this.path=default2__default.default.join(this.dirname||"",stem+(this.extname||""));}fail(causeOrReason,optionsOrParentOrPlace,origin){let message=this.message(causeOrReason,optionsOrParentOrPlace,origin);throw message.fatal=!0,message}info(causeOrReason,optionsOrParentOrPlace,origin){let message=this.message(causeOrReason,optionsOrParentOrPlace,origin);return message.fatal=void 0,message}message(causeOrReason,optionsOrParentOrPlace,origin){let message=new VFileMessage(causeOrReason,optionsOrParentOrPlace,origin);return this.path&&(message.name=this.path+":"+message.name,message.file=this.path),message.fatal=!1,this.messages.push(message),message}toString(encoding){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(encoding||void 0).decode(this.value)}};}});var init_vfile=__esm({"../../node_modules/vfile/index.js"(){init_lib11();}});var markdownExtension,markdown_extensions_default,init_markdown_extensions=__esm({"../../node_modules/markdown-extensions/index.js"(){markdownExtension=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"],markdown_extensions_default=markdownExtension;}});var md,init_extnames=__esm({"../../node_modules/@mdx-js/mdx/lib/util/extnames.js"(){init_markdown_extensions();md=markdown_extensions_default.map(function(d){return "."+d});}});function resolveFileAndOptions(vfileCompatible,options){let file=looksLikeAVFile(vfileCompatible)?vfileCompatible:new VFile(vfileCompatible),{format,...rest}=options||{};return {file,options:{format:format==="md"||format==="mdx"?format:file.extname&&(rest.mdExtensions||md).includes(file.extname)?"md":"mdx",...rest}}}function looksLikeAVFile(value){return !!(value&&typeof value=="object"&&"message"in value&&"messages"in value)}var init_resolve_file_and_options=__esm({"../../node_modules/@mdx-js/mdx/lib/util/resolve-file-and-options.js"(){init_vfile();init_extnames();}});function start(code2){return code2?startRe.test(String.fromCodePoint(code2)):!1}function cont(code2,options){let re2=(options||emptyOptions3).jsx?contReJsx:contRe;return code2?re2.test(String.fromCodePoint(code2)):!1}function name(name2,options){return ((options||emptyOptions3).jsx?nameReJsx:nameRe).test(name2)}var startRe,contRe,contReJsx,nameRe,nameReJsx,emptyOptions3,init_lib12=__esm({"../../node_modules/estree-util-is-identifier-name/lib/index.js"(){startRe=/[$_\p{ID_Start}]/u,contRe=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,contReJsx=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions3={};}});var init_estree_util_is_identifier_name=__esm({"../../node_modules/estree-util-is-identifier-name/index.js"(){init_lib12();}});var WalkerBase,init_walker=__esm({"../../node_modules/estree-walker/src/walker.js"(){WalkerBase=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:node2=>this.replacement=node2};}replace(parent,prop,index2,node2){parent&&prop&&(index2!=null?parent[prop][index2]=node2:parent[prop]=node2);}remove(parent,prop,index2){parent&&prop&&(index2!=null?parent[prop].splice(index2,1):delete parent[prop]);}};}});function isNode(value){return value!==null&&typeof value=="object"&&"type"in value&&typeof value.type=="string"}var SyncWalker,init_sync=__esm({"../../node_modules/estree-walker/src/sync.js"(){init_walker();SyncWalker=class extends WalkerBase{constructor(enter,leave){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:node2=>this.replacement=node2},this.enter=enter,this.leave=leave;}visit(node2,parent,prop,index2){if(node2){if(this.enter){let _should_skip=this.should_skip,_should_remove=this.should_remove,_replacement=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,node2,parent,prop,index2),this.replacement&&(node2=this.replacement,this.replace(parent,prop,index2,node2)),this.should_remove&&this.remove(parent,prop,index2);let skipped=this.should_skip,removed=this.should_remove;if(this.should_skip=_should_skip,this.should_remove=_should_remove,this.replacement=_replacement,skipped)return node2;if(removed)return null}let key;for(key in node2){let value=node2[key];if(value&&typeof value=="object")if(Array.isArray(value)){let nodes=value;for(let i=0;i<nodes.length;i+=1){let item=nodes[i];isNode(item)&&(this.visit(item,node2,key,i)||i--);}}else isNode(value)&&this.visit(value,node2,key,null);}if(this.leave){let _replacement=this.replacement,_should_remove=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,node2,parent,prop,index2),this.replacement&&(node2=this.replacement,this.replace(parent,prop,index2,node2)),this.should_remove&&this.remove(parent,prop,index2);let removed=this.should_remove;if(this.replacement=_replacement,this.should_remove=_should_remove,removed)return null}}return node2}};}});var init_async=__esm({"../../node_modules/estree-walker/src/async.js"(){init_walker();}});function walk2(ast,{enter,leave}){return new SyncWalker(enter,leave).visit(ast,null)}var init_src=__esm({"../../node_modules/estree-walker/src/index.js"(){init_sync();init_async();}});function buildJsx(tree,options){let config=options||{},automatic=config.runtime==="automatic",annotations={},imports={};walk2(tree,{enter(node2){if(node2.type==="Program"){let comments=node2.comments||[],index2=-1;for(;++index2<comments.length;){regex2.lastIndex=0;let match=regex2.exec(comments[index2].value);for(;match;)annotations[match[1]]=match[2],match=regex2.exec(comments[index2].value);}if(annotations.jsxRuntime)if(annotations.jsxRuntime==="automatic"){if(automatic=!0,annotations.jsx)throw new Error("Unexpected `@jsx` pragma w/ automatic runtime");if(annotations.jsxFrag)throw new Error("Unexpected `@jsxFrag` pragma w/ automatic runtime")}else if(annotations.jsxRuntime==="classic"){if(automatic=!1,annotations.jsxImportSource)throw new Error("Unexpected `@jsxImportSource` w/ classic runtime")}else throw new Error("Unexpected `jsxRuntime` `"+annotations.jsxRuntime+"`, expected `automatic` or `classic`")}},leave(node2){if(node2.type==="Program"){let specifiers=[];if(imports.fragment&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),imports.jsx&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),imports.jsxs&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),imports.jsxDEV&&specifiers.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),specifiers.length>0){let injectIndex=0;for(;injectIndex<node2.body.length;){let child=node2.body[injectIndex];if("directive"in child&&child.directive)injectIndex++;else break}node2.body.splice(injectIndex,0,{type:"ImportDeclaration",specifiers,source:{type:"Literal",value:(annotations.jsxImportSource||config.importSource||"react")+(config.development?"/jsx-dev-runtime":"/jsx-runtime")}});}}if(node2.type!=="JSXElement"&&node2.type!=="JSXFragment")return;let children=[],index2=-1;for(;++index2<node2.children.length;){let child=node2.children[index2];if(child.type==="JSXExpressionContainer")child.expression.type!=="JSXEmptyExpression"&&children.push(child.expression);else if(child.type==="JSXText"){let value=child.value.replace(/\t/g," ").replace(/ *(\r?\n|\r) */g,`
|
|
14
14
|
`).replace(/\n+/g,`
|
|
15
15
|
`).replace(/\n+$/,"").replace(/^\n+/,"").replace(/\n/g," ");if(value){let text5={type:"Literal",value};create(child,text5),children.push(text5);}}else child.type!=="JSXElement"&&child.type!=="JSXFragment"&&child.type,children.push(child);}let name2,fields=[],parameters=[],key;if(node2.type==="JSXElement"){if(name2=toIdentifier(node2.openingElement.name),name2.type==="Identifier"&&/^[a-z]/.test(name2.name)){let next={type:"Literal",value:name2.name};create(name2,next),name2=next;}let spread,attributes=node2.openingElement.attributes,index3=-1;for(;++index3<attributes.length;){let attribute=attributes[index3];if(attribute.type==="JSXSpreadAttribute")attribute.argument.type==="ObjectExpression"?fields.push(...attribute.argument.properties):fields.push({type:"SpreadElement",argument:attribute.argument}),spread=!0;else {let prop=toProperty(attribute);if(automatic&&prop.key.type==="Identifier"&&prop.key.name==="key"){if(spread)throw new Error("Expected `key` to come before any spread expressions");let value=prop.value;value.type!=="AssignmentPattern"&&value.type!=="ArrayPattern"&&value.type!=="ObjectPattern"&&value.type,key=value;}else fields.push(prop);}}}else automatic?(imports.fragment=!0,name2={type:"Identifier",name:"_Fragment"}):name2=toMemberExpression(annotations.jsxFrag||config.pragmaFrag||"React.Fragment");automatic?children.length>0&&fields.push({type:"Property",key:{type:"Identifier",name:"children"},value:children.length>1?{type:"ArrayExpression",elements:children}:children[0],kind:"init",method:!1,shorthand:!1,computed:!1}):parameters=children;let callee;if(automatic){parameters.push({type:"ObjectExpression",properties:fields}),key?parameters.push(key):config.development&¶meters.push({type:"Identifier",name:"undefined"});let isStaticChildren=children.length>1;if(config.development){imports.jsxDEV=!0,callee={type:"Identifier",name:"_jsxDEV"},parameters.push({type:"Literal",value:isStaticChildren});let source={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:config.filePath||"<source.js>"}}]};node2.loc&&source.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:node2.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:node2.loc.start.column+1}}),parameters.push(source,{type:"ThisExpression"});}else isStaticChildren?(imports.jsxs=!0,callee={type:"Identifier",name:"_jsxs"}):(imports.jsx=!0,callee={type:"Identifier",name:"_jsx"});}else fields.length>0?parameters.unshift({type:"ObjectExpression",properties:fields}):parameters.length>0&¶meters.unshift({type:"Literal",value:null}),callee=toMemberExpression(annotations.jsx||config.pragma||"React.createElement");parameters.unshift(name2);let call={type:"CallExpression",callee,arguments:parameters,optional:!1};create(node2,call),this.replace(call);}});}function toProperty(node2){let value;if(node2.value)if(node2.value.type==="JSXExpressionContainer"){let valueExpression=node2.value.expression;valueExpression.type,value=valueExpression;}else {let nodeValue=node2.value;nodeValue.type!=="JSXElement"&&nodeValue.type,value=nodeValue,delete value.raw;}else value={type:"Literal",value:!0};let replacement={type:"Property",key:toIdentifier(node2.name),value,kind:"init",method:!1,shorthand:!1,computed:!1};return create(node2,replacement),replacement}function toIdentifier(node2){let replace;if(node2.type==="JSXMemberExpression"){let id=toIdentifier(node2.property);replace={type:"MemberExpression",object:toIdentifier(node2.object),property:id,computed:id.type==="Literal",optional:!1};}else node2.type==="JSXNamespacedName"?replace={type:"Literal",value:node2.namespace.name+":"+node2.name.name}:replace=name(node2.name)?{type:"Identifier",name:node2.name}:{type:"Literal",value:node2.name};return create(node2,replace),replace}function toMemberExpression(id){let identifiers=id.split("."),index2=-1,result;for(;++index2<identifiers.length;){let prop=name(identifiers[index2])?{type:"Identifier",name:identifiers[index2]}:{type:"Literal",value:identifiers[index2]};result=result?{type:"MemberExpression",object:result,property:prop,computed:!!(index2&&prop.type==="Literal"),optional:!1}:prop;}return result}function create(from,to){let fields=["start","end","loc","range","comments"],index2=-1;for(;++index2<fields.length;){let field=fields[index2];field in from&&(to[field]=from[field]);}}var regex2,init_lib13=__esm({"../../node_modules/estree-util-build-jsx/lib/index.js"(){init_estree_util_is_identifier_name();init_src();regex2=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;}});var init_estree_util_build_jsx=__esm({"../../node_modules/estree-util-build-jsx/index.js"(){init_lib13();}});function recmaJsx(options){return function(tree,file){buildJsx(tree,{filePath:file.history[0],...options});}}var init_lib14=__esm({"../../node_modules/recma-build-jsx/lib/index.js"(){init_estree_util_build_jsx();}});var init_recma_build_jsx=__esm({"../../node_modules/recma-build-jsx/index.js"(){init_lib14();}});var require_xhtml=__commonJS({"../../node_modules/acorn-jsx/xhtml.js"(exports,module){module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"};}});var acorn_exports={};__export(acorn_exports,{Node:()=>Node,Parser:()=>Parser,Position:()=>Position,SourceLocation:()=>SourceLocation,TokContext:()=>TokContext,Token:()=>Token,TokenType:()=>TokenType,defaultOptions:()=>defaultOptions,getLineInfo:()=>getLineInfo,isIdentifierChar:()=>isIdentifierChar,isIdentifierStart:()=>isIdentifierStart,isNewLine:()=>isNewLine,keywordTypes:()=>keywords$1,lineBreak:()=>lineBreak,lineBreakG:()=>lineBreakG,nonASCIIwhitespace:()=>nonASCIIwhitespace,parse:()=>parse4,parseExpressionAt:()=>parseExpressionAt2,tokContexts:()=>types$1,tokTypes:()=>types,tokenizer:()=>tokenizer2,version:()=>version});function isInAstralSet(code2,set){for(var pos=65536,i=0;i<set.length;i+=2){if(pos+=set[i],pos>code2)return !1;if(pos+=set[i+1],pos>=code2)return !0}}function isIdentifierStart(code2,astral){return code2<65?code2===36:code2<91?!0:code2<97?code2===95:code2<123?!0:code2<=65535?code2>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code2)):astral===!1?!1:isInAstralSet(code2,astralIdentifierStartCodes)}function isIdentifierChar(code2,astral){return code2<48?code2===36:code2<58?!0:code2<65?!1:code2<91?!0:code2<97?code2===95:code2<123?!0:code2<=65535?code2>=170&&nonASCIIidentifier.test(String.fromCharCode(code2)):astral===!1?!1:isInAstralSet(code2,astralIdentifierStartCodes)||isInAstralSet(code2,astralIdentifierCodes)}function binop(name2,prec){return new TokenType(name2,{beforeExpr:!0,binop:prec})}function kw(name2,options){return options===void 0&&(options={}),options.keyword=name2,keywords$1[name2]=new TokenType(name2,options)}function isNewLine(code2,ecma2019String){return code2===10||code2===13||!ecma2019String&&(code2===8232||code2===8233)}function has(obj,propName){return hasOwnProperty.call(obj,propName)}function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}function getLineInfo(input,offset3){for(var line=1,cur=0;;){lineBreakG.lastIndex=cur;var match=lineBreakG.exec(input);if(match&&match.index<offset3)++line,cur=match.index+match[0].length;else return new Position(line,offset3-cur)}}function getOptions(opts){var options={};for(var opt in defaultOptions)options[opt]=opts&&has(opts,opt)?opts[opt]:defaultOptions[opt];if(options.ecmaVersion>=2015&&(options.ecmaVersion-=2009),options.allowReserved==null&&(options.allowReserved=options.ecmaVersion<5),isArray2(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)};}return isArray2(options.onComment)&&(options.onComment=pushComment(options,options.onComment)),options}function pushComment(options,array){return function(block,text5,start2,end,startLoc,endLoc){var comment2={type:block?"Block":"Line",value:text5,start:start2,end};options.locations&&(comment2.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment2.range=[start2,end]),array.push(comment2);}}function functionFlags(async,generator){return SCOPE_FUNCTION|(async?SCOPE_ASYNC:0)|(generator?SCOPE_GENERATOR:0)}function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1;}function finishNodeAt(node2,type,pos,loc){return node2.type=type,node2.end=pos,this.options.locations&&(node2.loc.end=loc),this.options.ranges&&(node2.range[1]=pos),node2}function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions;}function codePointToString(ch){return ch<=65535?String.fromCharCode(ch):(ch-=65536,String.fromCharCode((ch>>10)+55296,(ch&1023)+56320))}function isSyntaxCharacter(ch){return ch===36||ch>=40&&ch<=43||ch===46||ch===63||ch>=91&&ch<=94||ch>=123&&ch<=125}function isRegExpIdentifierStart(ch){return isIdentifierStart(ch,!0)||ch===36||ch===95}function isRegExpIdentifierPart(ch){return isIdentifierChar(ch,!0)||ch===36||ch===95||ch===8204||ch===8205}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isValidUnicode(ch){return ch>=0&&ch<=1114111}function isCharacterClassEscape(ch){return ch===100||ch===68||ch===115||ch===83||ch===119||ch===87}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||ch===95}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?10+(ch-65):ch>=97&&ch<=102?10+(ch-97):ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}function stringToNumber(str,isLegacyOctalNumericLiteral){return isLegacyOctalNumericLiteral?parseInt(str,8):parseFloat(str.replace(/_/g,""))}function stringToBigInt(str){return typeof BigInt!="function"?null:BigInt(str.replace(/_/g,""))}function codePointToString$1(code2){return code2<=65535?String.fromCharCode(code2):(code2-=65536,String.fromCharCode((code2>>10)+55296,(code2&1023)+56320))}function parse4(input,options){return Parser.parse(input,options)}function parseExpressionAt2(input,pos,options){return Parser.parseExpressionAt(input,pos,options)}function tokenizer2(input,options){return Parser.tokenizer(input,options)}var reservedWords2,ecma5AndLessKeywords,keywords,keywordRelationalOperator,nonASCIIidentifierStartChars,nonASCIIidentifierChars,nonASCIIidentifierStart,nonASCIIidentifier,astralIdentifierStartCodes,astralIdentifierCodes,TokenType,beforeExpr,startsExpr,keywords$1,types,lineBreak,lineBreakG,nonASCIIwhitespace,skipWhiteSpace,ref,hasOwnProperty,toString3,isArray2,Position,SourceLocation,defaultOptions,SCOPE_TOP,SCOPE_FUNCTION,SCOPE_VAR,SCOPE_ASYNC,SCOPE_GENERATOR,SCOPE_ARROW,SCOPE_SIMPLE_CATCH,SCOPE_SUPER,SCOPE_DIRECT_SUPER,BIND_NONE,BIND_VAR,BIND_LEXICAL,BIND_FUNCTION,BIND_SIMPLE_CATCH,BIND_OUTSIDE,Parser,prototypeAccessors,pp,literal,pp$1,loopLabel,switchLabel,empty2,FUNC_STATEMENT,FUNC_HANGING_STATEMENT,FUNC_NULLABLE_ID,pp$2,pp$3,empty$1,pp$4,pp$5,Scope,Node,pp$6,TokContext,types$1,pp$7,ecma9BinaryProperties,ecma10BinaryProperties,ecma11BinaryProperties,unicodeBinaryProperties,unicodeGeneralCategoryValues,ecma9ScriptValues,ecma10ScriptValues,ecma11ScriptValues,unicodeScriptValues,data,pp$8,RegExpValidationState,Token,pp$9,INVALID_TEMPLATE_ESCAPE_ERROR,version,init_acorn=__esm({"../../node_modules/acorn/dist/acorn.mjs"(){reservedWords2={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStartChars="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",nonASCIIidentifierChars="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];TokenType=function(label,conf){conf===void 0&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null;};beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords$1={};types={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString3=ref.toString;isArray2=Array.isArray||function(obj){return toString3.call(obj)==="[object Array]"};Position=function(line,col){this.line=line,this.column=col;};Position.prototype.offset=function(n){return new Position(this.line,this.column+n)};SourceLocation=function(p,start2,end){this.start=start2,this.end=end,p.sourceFile!==null&&(this.source=p.sourceFile);};defaultOptions={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128;BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser=function(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords[options.ecmaVersion>=6?6:options.sourceType==="module"?"5module":5]);var reserved="";if(options.allowReserved!==!0){for(var v=options.ecmaVersion;!(reserved=reservedWords2[v]);v--);options.sourceType==="module"&&(reserved+=" await");}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords2.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords2.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf(`
|
|
16
16
|
`,startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=options.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&options.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null;},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Parser.prototype.parse=function(){var node2=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node2)};prototypeAccessors.inFunction.get=function(){return (this.currentVarScope().flags&SCOPE_FUNCTION)>0};prototypeAccessors.inGenerator.get=function(){return (this.currentVarScope().flags&SCOPE_GENERATOR)>0};prototypeAccessors.inAsync.get=function(){return (this.currentVarScope().flags&SCOPE_ASYNC)>0};prototypeAccessors.allowSuper.get=function(){return (this.currentThisScope().flags&SCOPE_SUPER)>0};prototypeAccessors.allowDirectSuper.get=function(){return (this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0};prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Parser.prototype.inNonArrowFunction=function(){return (this.currentThisScope().flags&SCOPE_FUNCTION)>0};Parser.extend=function(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i<plugins.length;i++)cls=plugins[i](cls);return cls};Parser.parse=function(input,options){return new this(options,input).parse()};Parser.parseExpressionAt=function(input,pos,options){var parser=new this(options,input,pos);return parser.nextToken(),parser.parseExpression()};Parser.tokenizer=function(input,options){return new this(options,input)};Object.defineProperties(Parser.prototype,prototypeAccessors);pp=Parser.prototype,literal=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;pp.strictDirective=function(start2){for(;;){skipWhiteSpace.lastIndex=start2,start2+=skipWhiteSpace.exec(this.input)[0].length;var match=literal.exec(this.input.slice(start2));if(!match)return !1;if((match[1]||match[2])==="use strict"){skipWhiteSpace.lastIndex=start2+match[0].length;var spaceAfter=skipWhiteSpace.exec(this.input),end=spaceAfter.index+spaceAfter[0].length,next=this.input.charAt(end);return next===";"||next==="}"||lineBreak.test(spaceAfter[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(next)||next==="!"&&this.input.charAt(end+1)==="=")}start2+=match[0].length,skipWhiteSpace.lastIndex=start2,start2+=skipWhiteSpace.exec(this.input)[0].length,this.input[start2]===";"&&start2++;}};pp.eat=function(type){return this.type===type?(this.next(),!0):!1};pp.isContextual=function(name2){return this.type===types.name&&this.value===name2&&!this.containsEsc};pp.eatContextual=function(name2){return this.isContextual(name2)?(this.next(),!0):!1};pp.expectContextual=function(name2){this.eatContextual(name2)||this.unexpected();};pp.canInsertSemicolon=function(){return this.type===types.eof||this.type===types.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};pp.semicolon=function(){!this.eat(types.semi)&&!this.insertSemicolon()&&this.unexpected();};pp.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0};pp.expect=function(type){this.eat(type)||this.unexpected();};pp.unexpected=function(pos){this.raise(pos??this.start,"Unexpected token");};pp.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,"Parenthesized pattern");}};pp.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return !1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property");};pp.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value");};pp.isSimpleAssignTarget=function(expr){return expr.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(expr.expression):expr.type==="Identifier"||expr.type==="MemberExpression"};pp$1=Parser.prototype;pp$1.parseTopLevel=function(node2){var exports={};for(node2.body||(node2.body=[]);this.type!==types.eof;){var stmt=this.parseStatement(null,!0,exports);node2.body.push(stmt);}if(this.inModule)for(var i=0,list3=Object.keys(this.undefinedExports);i<list3.length;i+=1){var name2=list3[i];this.raiseRecoverable(this.undefinedExports[name2].start,"Export '"+name2+"' is not defined");}return this.adaptDirectivePrologue(node2.body),this.next(),node2.sourceType=this.options.sourceType,this.finishNode(node2,"Program")};loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$1.isLet=function(context){if(this.options.ecmaVersion<6||!this.isContextual("let"))return !1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(nextCh===91)return !0;if(context)return !1;if(nextCh===123)return !0;if(isIdentifierStart(nextCh,!0)){for(var pos=next+1;isIdentifierChar(this.input.charCodeAt(pos),!0);)++pos;var ident=this.input.slice(next,pos);if(!keywordRelationalOperator.test(ident))return !0}return !1};pp$1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return !1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length;return !lineBreak.test(this.input.slice(this.pos,next))&&this.input.slice(next,next+8)==="function"&&(next+8===this.input.length||!isIdentifierChar(this.input.charAt(next+8)))};pp$1.parseStatement=function(context,topLevel,exports){var starttype=this.type,node2=this.startNode(),kind;switch(this.isLet(context)&&(starttype=types._var,kind="let"),starttype){case types._break:case types._continue:return this.parseBreakContinueStatement(node2,starttype.keyword);case types._debugger:return this.parseDebuggerStatement(node2);case types._do:return this.parseDoStatement(node2);case types._for:return this.parseForStatement(node2);case types._function:return context&&(this.strict||context!=="if"&&context!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(node2,!1,!context);case types._class:return context&&this.unexpected(),this.parseClass(node2,!0);case types._if:return this.parseIfStatement(node2);case types._return:return this.parseReturnStatement(node2);case types._switch:return this.parseSwitchStatement(node2);case types._throw:return this.parseThrowStatement(node2);case types._try:return this.parseTryStatement(node2);case types._const:case types._var:return kind=kind||this.value,context&&kind!=="var"&&this.unexpected(),this.parseVarStatement(node2,kind);case types._while:return this.parseWhileStatement(node2);case types._with:return this.parseWithStatement(node2);case types.braceL:return this.parseBlock(!0,node2);case types.semi:return this.parseEmptyStatement(node2);case types._export:case types._import:if(this.options.ecmaVersion>10&&starttype===types._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(nextCh===40||nextCh===46)return this.parseExpressionStatement(node2,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),starttype===types._import?this.parseImport(node2):this.parseExport(node2,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node2,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types.name&&expr.type==="Identifier"&&this.eat(types.colon)?this.parseLabeledStatement(node2,maybeName,expr,context):this.parseExpressionStatement(node2,expr)}};pp$1.parseBreakContinueStatement=function(node2,keyword){var isBreak=keyword==="break";this.next(),this.eat(types.semi)||this.insertSemicolon()?node2.label=null:this.type!==types.name?this.unexpected():(node2.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var lab=this.labels[i];if((node2.label==null||lab.name===node2.label.name)&&(lab.kind!=null&&(isBreak||lab.kind==="loop")||node2.label&&isBreak))break}return i===this.labels.length&&this.raise(node2.start,"Unsyntactic "+keyword),this.finishNode(node2,isBreak?"BreakStatement":"ContinueStatement")};pp$1.parseDebuggerStatement=function(node2){return this.next(),this.semicolon(),this.finishNode(node2,"DebuggerStatement")};pp$1.parseDoStatement=function(node2){return this.next(),this.labels.push(loopLabel),node2.body=this.parseStatement("do"),this.labels.pop(),this.expect(types._while),node2.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types.semi):this.semicolon(),this.finishNode(node2,"DoWhileStatement")};pp$1.parseForStatement=function(node2){this.next();var awaitAt=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types.parenL),this.type===types.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node2,null);var isLet=this.isLet();if(this.type===types._var||this.type===types._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&init$1.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node2.await=awaitAt>-1),this.parseForIn(node2,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node2,init$1))}var refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!0,refDestructuringErrors);return this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node2.await=awaitAt>-1),this.toAssignable(init,!1,refDestructuringErrors),this.checkLVal(init),this.parseForIn(node2,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node2,init))};pp$1.parseFunctionStatement=function(node2,isAsync,declarationPosition){return this.next(),this.parseFunction(node2,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)};pp$1.parseIfStatement=function(node2){return this.next(),node2.test=this.parseParenExpression(),node2.consequent=this.parseStatement("if"),node2.alternate=this.eat(types._else)?this.parseStatement("if"):null,this.finishNode(node2,"IfStatement")};pp$1.parseReturnStatement=function(node2){return !this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types.semi)||this.insertSemicolon()?node2.argument=null:(node2.argument=this.parseExpression(),this.semicolon()),this.finishNode(node2,"ReturnStatement")};pp$1.parseSwitchStatement=function(node2){this.next(),node2.discriminant=this.parseParenExpression(),node2.cases=[],this.expect(types.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var cur,sawDefault=!1;this.type!==types.braceR;)if(this.type===types._case||this.type===types._default){var isCase=this.type===types._case;cur&&this.finishNode(cur,"SwitchCase"),node2.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types.colon);}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node2,"SwitchStatement")};pp$1.parseThrowStatement=function(node2){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node2.argument=this.parseExpression(),this.semicolon(),this.finishNode(node2,"ThrowStatement")};empty2=[];pp$1.parseTryStatement=function(node2){if(this.next(),node2.block=this.parseBlock(),node2.handler=null,this.type===types._catch){var clause=this.startNode();if(this.next(),this.eat(types.parenL)){clause.param=this.parseBindingAtom();var simple=clause.param.type==="Identifier";this.enterScope(simple?SCOPE_SIMPLE_CATCH:0),this.checkLVal(clause.param,simple?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types.parenR);}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node2.handler=this.finishNode(clause,"CatchClause");}return node2.finalizer=this.eat(types._finally)?this.parseBlock():null,!node2.handler&&!node2.finalizer&&this.raise(node2.start,"Missing catch or finally clause"),this.finishNode(node2,"TryStatement")};pp$1.parseVarStatement=function(node2,kind){return this.next(),this.parseVar(node2,!1,kind),this.semicolon(),this.finishNode(node2,"VariableDeclaration")};pp$1.parseWhileStatement=function(node2){return this.next(),node2.test=this.parseParenExpression(),this.labels.push(loopLabel),node2.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node2,"WhileStatement")};pp$1.parseWithStatement=function(node2){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node2.object=this.parseParenExpression(),node2.body=this.parseStatement("with"),this.finishNode(node2,"WithStatement")};pp$1.parseEmptyStatement=function(node2){return this.next(),this.finishNode(node2,"EmptyStatement")};pp$1.parseLabeledStatement=function(node2,maybeName,expr,context){for(var i$1=0,list3=this.labels;i$1<list3.length;i$1+=1){var label=list3[i$1];label.name===maybeName&&this.raise(expr.start,"Label '"+maybeName+"' is already declared");}for(var kind=this.type.isLoop?"loop":this.type===types._switch?"switch":null,i=this.labels.length-1;i>=0;i--){var label$1=this.labels[i];if(label$1.statementStart===node2.start)label$1.statementStart=this.start,label$1.kind=kind;else break}return this.labels.push({name:maybeName,kind,statementStart:this.start}),node2.body=this.parseStatement(context?context.indexOf("label")===-1?context+"label":context:"label"),this.labels.pop(),node2.label=expr,this.finishNode(node2,"LabeledStatement")};pp$1.parseExpressionStatement=function(node2,expr){return node2.expression=expr,this.semicolon(),this.finishNode(node2,"ExpressionStatement")};pp$1.parseBlock=function(createNewLexicalScope,node2,exitStrict){for(createNewLexicalScope===void 0&&(createNewLexicalScope=!0),node2===void 0&&(node2=this.startNode()),node2.body=[],this.expect(types.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types.braceR;){var stmt=this.parseStatement(null);node2.body.push(stmt);}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node2,"BlockStatement")};pp$1.parseFor=function(node2,init){return node2.init=init,this.expect(types.semi),node2.test=this.type===types.semi?null:this.parseExpression(),this.expect(types.semi),node2.update=this.type===types.parenR?null:this.parseExpression(),this.expect(types.parenR),node2.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node2,"ForStatement")};pp$1.parseForIn=function(node2,init){var isForIn=this.type===types._in;return this.next(),init.type==="VariableDeclaration"&&init.declarations[0].init!=null&&(!isForIn||this.options.ecmaVersion<8||this.strict||init.kind!=="var"||init.declarations[0].id.type!=="Identifier")?this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"):init.type==="AssignmentPattern"&&this.raise(init.start,"Invalid left-hand side in for-loop"),node2.left=init,node2.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types.parenR),node2.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node2,isForIn?"ForInStatement":"ForOfStatement")};pp$1.parseVar=function(node2,isFor,kind){for(node2.declarations=[],node2.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types.eq)?decl.init=this.parseMaybeAssign(isFor):kind==="const"&&!(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():decl.id.type!=="Identifier"&&!(isFor&&(this.type===types._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):decl.init=null,node2.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types.comma))break}return node2};pp$1.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,kind==="var"?BIND_VAR:BIND_LEXICAL,!1);};FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;pp$1.parseFunction=function(node2,statement,allowExpressionBody,isAsync){this.initFunction(node2),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node2.generator=this.eat(types.star)),this.options.ecmaVersion>=8&&(node2.async=!!isAsync),statement&FUNC_STATEMENT&&(node2.id=statement&FUNC_NULLABLE_ID&&this.type!==types.name?null:this.parseIdent(),node2.id&&!(statement&FUNC_HANGING_STATEMENT)&&this.checkLVal(node2.id,this.strict||node2.generator||node2.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node2.async,node2.generator)),statement&FUNC_STATEMENT||(node2.id=this.type===types.name?this.parseIdent():null),this.parseFunctionParams(node2),this.parseFunctionBody(node2,allowExpressionBody,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node2,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")};pp$1.parseFunctionParams=function(node2){this.expect(types.parenL),node2.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams();};pp$1.parseClass=function(node2,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node2,isStatement),this.parseClassSuper(node2);var classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types.braceL);this.type!==types.braceR;){var element3=this.parseClassElement(node2.superClass!==null);element3&&(classBody.body.push(element3),element3.type==="MethodDefinition"&&element3.kind==="constructor"&&(hadConstructor&&this.raise(element3.start,"Duplicate constructor in the same class"),hadConstructor=!0));}return this.strict=oldStrict,this.next(),node2.body=this.finishNode(classBody,"ClassBody"),this.finishNode(node2,isStatement?"ClassDeclaration":"ClassExpression")};pp$1.parseClassElement=function(constructorAllowsSuper){var this$1$1=this;if(this.eat(types.semi))return null;var method=this.startNode(),tryContextual=function(k,noLineBreak){noLineBreak===void 0&&(noLineBreak=!1);var start2=this$1$1.start,startLoc=this$1$1.startLoc;return this$1$1.eatContextual(k)?this$1$1.type!==types.parenL&&(!noLineBreak||!this$1$1.canInsertSemicolon())?!0:(method.key&&this$1$1.unexpected(),method.computed=!1,method.key=this$1$1.startNodeAt(start2,startLoc),method.key.name=k,this$1$1.finishNode(method.key,"Identifier"),!1):!1};method.kind="method",method.static=tryContextual("static");var isGenerator=this.eat(types.star),isAsync=!1;isGenerator||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star)):tryContextual("get")?method.kind="get":tryContextual("set")&&(method.kind="set")),method.key||this.parsePropertyName(method);var key=method.key,allowsDirectSuper=!1;return !method.computed&&!method.static&&(key.type==="Identifier"&&key.name==="constructor"||key.type==="Literal"&&key.value==="constructor")?(method.kind!=="method"&&this.raise(key.start,"Constructor can't have get/set modifier"),isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method"),method.kind="constructor",allowsDirectSuper=constructorAllowsSuper):method.static&&key.type==="Identifier"&&key.name==="prototype"&&this.raise(key.start,"Classes may not have a static property named prototype"),this.parseClassMethod(method,isGenerator,isAsync,allowsDirectSuper),method.kind==="get"&&method.value.params.length!==0&&this.raiseRecoverable(method.value.start,"getter should have no params"),method.kind==="set"&&method.value.params.length!==1&&this.raiseRecoverable(method.value.start,"setter should have exactly one param"),method.kind==="set"&&method.value.params[0].type==="RestElement"&&this.raiseRecoverable(method.value.params[0].start,"Setter cannot use rest params"),method};pp$1.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){return method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper),this.finishNode(method,"MethodDefinition")};pp$1.parseClassId=function(node2,isStatement){this.type===types.name?(node2.id=this.parseIdent(),isStatement&&this.checkLVal(node2.id,BIND_LEXICAL,!1)):(isStatement===!0&&this.unexpected(),node2.id=null);};pp$1.parseClassSuper=function(node2){node2.superClass=this.eat(types._extends)?this.parseExprSubscripts():null;};pp$1.parseExport=function(node2,exports){if(this.next(),this.eat(types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node2.exported=this.parseIdent(!0),this.checkExport(exports,node2.exported.name,this.lastTokStart)):node2.exported=null),this.expectContextual("from"),this.type!==types.string&&this.unexpected(),node2.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node2,"ExportAllDeclaration");if(this.eat(types._default)){this.checkExport(exports,"default",this.lastTokStart);var isAsync;if(this.type===types._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node2.declaration=this.parseFunction(fNode,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,isAsync);}else if(this.type===types._class){var cNode=this.startNode();node2.declaration=this.parseClass(cNode,"nullableID");}else node2.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node2,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node2.declaration=this.parseStatement(null),node2.declaration.type==="VariableDeclaration"?this.checkVariableExport(exports,node2.declaration.declarations):this.checkExport(exports,node2.declaration.id.name,node2.declaration.id.start),node2.specifiers=[],node2.source=null;else {if(node2.declaration=null,node2.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types.string&&this.unexpected(),node2.source=this.parseExprAtom();else {for(var i=0,list3=node2.specifiers;i<list3.length;i+=1){var spec=list3[i];this.checkUnreserved(spec.local),this.checkLocalExport(spec.local);}node2.source=null;}this.semicolon();}return this.finishNode(node2,"ExportNamedDeclaration")};pp$1.checkExport=function(exports,name2,pos){exports&&(has(exports,name2)&&this.raiseRecoverable(pos,"Duplicate export '"+name2+"'"),exports[name2]=!0);};pp$1.checkPatternExport=function(exports,pat){var type=pat.type;if(type==="Identifier")this.checkExport(exports,pat.name,pat.start);else if(type==="ObjectPattern")for(var i=0,list3=pat.properties;i<list3.length;i+=1){var prop=list3[i];this.checkPatternExport(exports,prop);}else if(type==="ArrayPattern")for(var i$1=0,list$1=pat.elements;i$1<list$1.length;i$1+=1){var elt=list$1[i$1];elt&&this.checkPatternExport(exports,elt);}else type==="Property"?this.checkPatternExport(exports,pat.value):type==="AssignmentPattern"?this.checkPatternExport(exports,pat.left):type==="RestElement"?this.checkPatternExport(exports,pat.argument):type==="ParenthesizedExpression"&&this.checkPatternExport(exports,pat.expression);};pp$1.checkVariableExport=function(exports,decls){if(exports)for(var i=0,list3=decls;i<list3.length;i+=1){var decl=list3[i];this.checkPatternExport(exports,decl.id);}};pp$1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};pp$1.parseExportSpecifiers=function(exports){var nodes=[],first=!0;for(this.expect(types.braceL);!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.afterTrailingComma(types.braceR))break;var node2=this.startNode();node2.local=this.parseIdent(!0),node2.exported=this.eatContextual("as")?this.parseIdent(!0):node2.local,this.checkExport(exports,node2.exported.name,node2.exported.start),nodes.push(this.finishNode(node2,"ExportSpecifier"));}return nodes};pp$1.parseImport=function(node2){return this.next(),this.type===types.string?(node2.specifiers=empty2,node2.source=this.parseExprAtom()):(node2.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),node2.source=this.type===types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(node2,"ImportDeclaration")};pp$1.parseImportSpecifiers=function(){var nodes=[],first=!0;if(this.type===types.name){var node2=this.startNode();if(node2.local=this.parseIdent(),this.checkLVal(node2.local,BIND_LEXICAL),nodes.push(this.finishNode(node2,"ImportDefaultSpecifier")),!this.eat(types.comma))return nodes}if(this.type===types.star){var node$1=this.startNode();return this.next(),this.expectContextual("as"),node$1.local=this.parseIdent(),this.checkLVal(node$1.local,BIND_LEXICAL),nodes.push(this.finishNode(node$1,"ImportNamespaceSpecifier")),nodes}for(this.expect(types.braceL);!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.afterTrailingComma(types.braceR))break;var node$2=this.startNode();node$2.imported=this.parseIdent(!0),this.eatContextual("as")?node$2.local=this.parseIdent():(this.checkUnreserved(node$2.imported),node$2.local=node$2.imported),this.checkLVal(node$2.local,BIND_LEXICAL),nodes.push(this.finishNode(node$2,"ImportSpecifier"));}return nodes};pp$1.adaptDirectivePrologue=function(statements){for(var i=0;i<statements.length&&this.isDirectiveCandidate(statements[i]);++i)statements[i].directive=statements[i].expression.raw.slice(1,-1);};pp$1.isDirectiveCandidate=function(statement){return statement.type==="ExpressionStatement"&&statement.expression.type==="Literal"&&typeof statement.expression.value=="string"&&(this.input[statement.start]==='"'||this.input[statement.start]==="'")};pp$2=Parser.prototype;pp$2.toAssignable=function(node2,isBinding,refDestructuringErrors){if(this.options.ecmaVersion>=6&&node2)switch(node2.type){case"Identifier":this.inAsync&&node2.name==="await"&&this.raise(node2.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":node2.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list3=node2.properties;i<list3.length;i+=1){var prop=list3[i];this.toAssignable(prop,isBinding),prop.type==="RestElement"&&(prop.argument.type==="ArrayPattern"||prop.argument.type==="ObjectPattern")&&this.raise(prop.argument.start,"Unexpected token");}break;case"Property":node2.kind!=="init"&&this.raise(node2.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(node2.value,isBinding);break;case"ArrayExpression":node2.type="ArrayPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0),this.toAssignableList(node2.elements,isBinding);break;case"SpreadElement":node2.type="RestElement",this.toAssignable(node2.argument,isBinding),node2.argument.type==="AssignmentPattern"&&this.raise(node2.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":node2.operator!=="="&&this.raise(node2.left.end,"Only '=' operator can be used for specifying default value."),node2.type="AssignmentPattern",delete node2.operator,this.toAssignable(node2.left,isBinding);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(node2.expression,isBinding,refDestructuringErrors);break;case"ChainExpression":this.raiseRecoverable(node2.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!isBinding)break;default:this.raise(node2.start,"Assigning to rvalue");}else refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);return node2};pp$2.toAssignableList=function(exprList,isBinding){for(var end=exprList.length,i=0;i<end;i++){var elt=exprList[i];elt&&this.toAssignable(elt,isBinding);}if(end){var last=exprList[end-1];this.options.ecmaVersion===6&&isBinding&&last&&last.type==="RestElement"&&last.argument.type!=="Identifier"&&this.unexpected(last.argument.start);}return exprList};pp$2.parseSpread=function(refDestructuringErrors){var node2=this.startNode();return this.next(),node2.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.finishNode(node2,"SpreadElement")};pp$2.parseRestBinding=function(){var node2=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==types.name&&this.unexpected(),node2.argument=this.parseBindingAtom(),this.finishNode(node2,"RestElement")};pp$2.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types.bracketL:var node2=this.startNode();return this.next(),node2.elements=this.parseBindingList(types.bracketR,!0,!0),this.finishNode(node2,"ArrayPattern");case types.braceL:return this.parseObj(!0)}return this.parseIdent()};pp$2.parseBindingList=function(close,allowEmpty,allowTrailingComma){for(var elts=[],first=!0;!this.eat(close);)if(first?first=!1:this.expect(types.comma),allowEmpty&&this.type===types.comma)elts.push(null);else {if(allowTrailingComma&&this.afterTrailingComma(close))break;if(this.type===types.ellipsis){var rest=this.parseRestBinding();this.parseBindingListItem(rest),elts.push(rest),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(close);break}else {var elem=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(elem),elts.push(elem);}}return elts};pp$2.parseBindingListItem=function(param){return param};pp$2.parseMaybeDefault=function(startPos,startLoc,left){if(left=left||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types.eq))return left;var node2=this.startNodeAt(startPos,startLoc);return node2.left=left,node2.right=this.parseMaybeAssign(),this.finishNode(node2,"AssignmentPattern")};pp$2.checkLVal=function(expr,bindingType,checkClashes){switch(bindingType===void 0&&(bindingType=BIND_NONE),expr.type){case"Identifier":bindingType===BIND_LEXICAL&&expr.name==="let"&&this.raiseRecoverable(expr.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(expr.name)&&this.raiseRecoverable(expr.start,(bindingType?"Binding ":"Assigning to ")+expr.name+" in strict mode"),checkClashes&&(has(checkClashes,expr.name)&&this.raiseRecoverable(expr.start,"Argument name clash"),checkClashes[expr.name]=!0),bindingType!==BIND_NONE&&bindingType!==BIND_OUTSIDE&&this.declareName(expr.name,bindingType,expr.start);break;case"ChainExpression":this.raiseRecoverable(expr.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":bindingType&&this.raiseRecoverable(expr.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,list3=expr.properties;i<list3.length;i+=1){var prop=list3[i];this.checkLVal(prop,bindingType,checkClashes);}break;case"Property":this.checkLVal(expr.value,bindingType,checkClashes);break;case"ArrayPattern":for(var i$1=0,list$1=expr.elements;i$1<list$1.length;i$1+=1){var elem=list$1[i$1];elem&&this.checkLVal(elem,bindingType,checkClashes);}break;case"AssignmentPattern":this.checkLVal(expr.left,bindingType,checkClashes);break;case"RestElement":this.checkLVal(expr.argument,bindingType,checkClashes);break;case"ParenthesizedExpression":this.checkLVal(expr.expression,bindingType,checkClashes);break;default:this.raise(expr.start,(bindingType?"Binding":"Assigning to")+" rvalue");}};pp$3=Parser.prototype;pp$3.checkPropClash=function(prop,propHash,refDestructuringErrors){if(!(this.options.ecmaVersion>=9&&prop.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(prop.computed||prop.method||prop.shorthand))){var key=prop.key,name2;switch(key.type){case"Identifier":name2=key.name;break;case"Literal":name2=String(key.value);break;default:return}var kind=prop.kind;if(this.options.ecmaVersion>=6){name2==="__proto__"&&kind==="init"&&(propHash.proto&&(refDestructuringErrors?refDestructuringErrors.doubleProto<0&&(refDestructuringErrors.doubleProto=key.start):this.raiseRecoverable(key.start,"Redefinition of __proto__ property")),propHash.proto=!0);return}name2="$"+name2;var other=propHash[name2];if(other){var redefinition;kind==="init"?redefinition=this.strict&&other.init||other.get||other.set:redefinition=other.init||other[kind],redefinition&&this.raiseRecoverable(key.start,"Redefinition of property");}else other=propHash[name2]={init:!1,get:!1,set:!1};other[kind]=!0;}};pp$3.parseExpression=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeAssign(noIn,refDestructuringErrors);if(this.type===types.comma){var node2=this.startNodeAt(startPos,startLoc);for(node2.expressions=[expr];this.eat(types.comma);)node2.expressions.push(this.parseMaybeAssign(noIn,refDestructuringErrors));return this.finishNode(node2,"SequenceExpression")}return expr};pp$3.parseMaybeAssign=function(noIn,refDestructuringErrors,afterLeftParse){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(noIn);this.exprAllowed=!1;}var ownDestructuringErrors=!1,oldParenAssign=-1,oldTrailingComma=-1;refDestructuringErrors?(oldParenAssign=refDestructuringErrors.parenthesizedAssign,oldTrailingComma=refDestructuringErrors.trailingComma,refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=-1):(refDestructuringErrors=new DestructuringErrors,ownDestructuringErrors=!0);var startPos=this.start,startLoc=this.startLoc;(this.type===types.parenL||this.type===types.name)&&(this.potentialArrowAt=this.start);var left=this.parseMaybeConditional(noIn,refDestructuringErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),this.type.isAssign){var node2=this.startNodeAt(startPos,startLoc);return node2.operator=this.value,node2.left=this.type===types.eq?this.toAssignable(left,!1,refDestructuringErrors):left,ownDestructuringErrors||(refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=refDestructuringErrors.doubleProto=-1),refDestructuringErrors.shorthandAssign>=node2.left.start&&(refDestructuringErrors.shorthandAssign=-1),this.checkLVal(left),this.next(),node2.right=this.parseMaybeAssign(noIn),this.finishNode(node2,"AssignmentExpression")}else ownDestructuringErrors&&this.checkExpressionErrors(refDestructuringErrors,!0);return oldParenAssign>-1&&(refDestructuringErrors.parenthesizedAssign=oldParenAssign),oldTrailingComma>-1&&(refDestructuringErrors.trailingComma=oldTrailingComma),left};pp$3.parseMaybeConditional=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprOps(noIn,refDestructuringErrors);if(this.checkExpressionErrors(refDestructuringErrors))return expr;if(this.eat(types.question)){var node2=this.startNodeAt(startPos,startLoc);return node2.test=expr,node2.consequent=this.parseMaybeAssign(),this.expect(types.colon),node2.alternate=this.parseMaybeAssign(noIn),this.finishNode(node2,"ConditionalExpression")}return expr};pp$3.parseExprOps=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeUnary(refDestructuringErrors,!1);return this.checkExpressionErrors(refDestructuringErrors)||expr.start===startPos&&expr.type==="ArrowFunctionExpression"?expr:this.parseExprOp(expr,startPos,startLoc,-1,noIn)};pp$3.parseExprOp=function(left,leftStartPos,leftStartLoc,minPrec,noIn){var prec=this.type.binop;if(prec!=null&&(!noIn||this.type!==types._in)&&prec>minPrec){var logical=this.type===types.logicalOR||this.type===types.logicalAND,coalesce=this.type===types.coalesce;coalesce&&(prec=types.logicalAND.binop);var op=this.value;this.next();var startPos=this.start,startLoc=this.startLoc,right=this.parseExprOp(this.parseMaybeUnary(null,!1),startPos,startLoc,prec,noIn),node2=this.buildBinary(leftStartPos,leftStartLoc,left,right,op,logical||coalesce);return (logical&&this.type===types.coalesce||coalesce&&(this.type===types.logicalOR||this.type===types.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(node2,leftStartPos,leftStartLoc,minPrec,noIn)}return left};pp$3.buildBinary=function(startPos,startLoc,left,right,op,logical){var node2=this.startNodeAt(startPos,startLoc);return node2.left=left,node2.operator=op,node2.right=right,this.finishNode(node2,logical?"LogicalExpression":"BinaryExpression")};pp$3.parseMaybeUnary=function(refDestructuringErrors,sawUnary){var startPos=this.start,startLoc=this.startLoc,expr;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))expr=this.parseAwait(),sawUnary=!0;else if(this.type.prefix){var node2=this.startNode(),update=this.type===types.incDec;node2.operator=this.value,node2.prefix=!0,this.next(),node2.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(refDestructuringErrors,!0),update?this.checkLVal(node2.argument):this.strict&&node2.operator==="delete"&&node2.argument.type==="Identifier"?this.raiseRecoverable(node2.start,"Deleting local variable in strict mode"):sawUnary=!0,expr=this.finishNode(node2,update?"UpdateExpression":"UnaryExpression");}else {if(expr=this.parseExprSubscripts(refDestructuringErrors),this.checkExpressionErrors(refDestructuringErrors))return expr;for(;this.type.postfix&&!this.canInsertSemicolon();){var node$1=this.startNodeAt(startPos,startLoc);node$1.operator=this.value,node$1.prefix=!1,node$1.argument=expr,this.checkLVal(expr),this.next(),expr=this.finishNode(node$1,"UpdateExpression");}}return !sawUnary&&this.eat(types.starstar)?this.buildBinary(startPos,startLoc,expr,this.parseMaybeUnary(null,!1),"**",!1):expr};pp$3.parseExprSubscripts=function(refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprAtom(refDestructuringErrors);if(expr.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return expr;var result=this.parseSubscripts(expr,startPos,startLoc);return refDestructuringErrors&&result.type==="MemberExpression"&&(refDestructuringErrors.parenthesizedAssign>=result.start&&(refDestructuringErrors.parenthesizedAssign=-1),refDestructuringErrors.parenthesizedBind>=result.start&&(refDestructuringErrors.parenthesizedBind=-1)),result};pp$3.parseSubscripts=function(base,startPos,startLoc,noCalls){for(var maybeAsyncArrow=this.options.ecmaVersion>=8&&base.type==="Identifier"&&base.name==="async"&&this.lastTokEnd===base.end&&!this.canInsertSemicolon()&&base.end-base.start===5&&this.potentialArrowAt===base.start,optionalChained=!1;;){var element3=this.parseSubscript(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained);if(element3.optional&&(optionalChained=!0),element3===base||element3.type==="ArrowFunctionExpression"){if(optionalChained){var chainNode=this.startNodeAt(startPos,startLoc);chainNode.expression=element3,element3=this.finishNode(chainNode,"ChainExpression");}return element3}base=element3;}};pp$3.parseSubscript=function(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained){var optionalSupported=this.options.ecmaVersion>=11,optional=optionalSupported&&this.eat(types.questionDot);noCalls&&optional&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var computed=this.eat(types.bracketL);if(computed||optional&&this.type!==types.parenL&&this.type!==types.backQuote||this.eat(types.dot)){var node2=this.startNodeAt(startPos,startLoc);node2.object=base,node2.property=computed?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),node2.computed=!!computed,computed&&this.expect(types.bracketR),optionalSupported&&(node2.optional=optional),base=this.finishNode(node2,"MemberExpression");}else if(!noCalls&&this.eat(types.parenL)){var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var exprList=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1,refDestructuringErrors);if(maybeAsyncArrow&&!optional&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,!0);this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,this.awaitIdentPos=oldAwaitIdentPos||this.awaitIdentPos;var node$1=this.startNodeAt(startPos,startLoc);node$1.callee=base,node$1.arguments=exprList,optionalSupported&&(node$1.optional=optional),base=this.finishNode(node$1,"CallExpression");}else if(this.type===types.backQuote){(optional||optionalChained)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var node$2=this.startNodeAt(startPos,startLoc);node$2.tag=base,node$2.quasi=this.parseTemplate({isTagged:!0}),base=this.finishNode(node$2,"TaggedTemplateExpression");}return base};pp$3.parseExprAtom=function(refDestructuringErrors){this.type===types.slash&&this.readRegexp();var node2,canBeArrow=this.potentialArrowAt===this.start;switch(this.type){case types._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),node2=this.startNode(),this.next(),this.type===types.parenL&&!this.allowDirectSuper&&this.raise(node2.start,"super() call outside constructor of a subclass"),this.type!==types.dot&&this.type!==types.bracketL&&this.type!==types.parenL&&this.unexpected(),this.finishNode(node2,"Super");case types._this:return node2=this.startNode(),this.next(),this.finishNode(node2,"ThisExpression");case types.name:var startPos=this.start,startLoc=this.startLoc,containsEsc=this.containsEsc,id=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!containsEsc&&id.name==="async"&&!this.canInsertSemicolon()&&this.eat(types._function))return this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1);if(this.options.ecmaVersion>=8&&id.name==="async"&&this.type===types.name&&!containsEsc)return id=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0)}return id;case types.regexp:var value=this.value;return node2=this.parseLiteral(value.value),node2.regex={pattern:value.pattern,flags:value.flags},node2;case types.num:case types.string:return this.parseLiteral(this.value);case types._null:case types._true:case types._false:return node2=this.startNode(),node2.value=this.type===types._null?null:this.type===types._true,node2.raw=this.type.keyword,this.next(),this.finishNode(node2,"Literal");case types.parenL:var start2=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start2),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start2)),expr;case types.bracketL:return node2=this.startNode(),this.next(),node2.elements=this.parseExprList(types.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node2,"ArrayExpression");case types.braceL:return this.parseObj(!1,refDestructuringErrors);case types._function:return node2=this.startNode(),this.next(),this.parseFunction(node2,0);case types._class:return this.parseClass(this.startNode(),!1);case types._new:return this.parseNew();case types.backQuote:return this.parseTemplate();case types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected();}};pp$3.parseExprImport=function(){var node2=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types.parenL:return this.parseDynamicImport(node2);case types.dot:return node2.meta=meta,this.parseImportMeta(node2);default:this.unexpected();}};pp$3.parseDynamicImport=function(node2){if(this.next(),node2.source=this.parseMaybeAssign(),!this.eat(types.parenR)){var errorPos=this.start;this.eat(types.comma)&&this.eat(types.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos);}return this.finishNode(node2,"ImportExpression")};pp$3.parseImportMeta=function(node2){this.next();var containsEsc=this.containsEsc;return node2.property=this.parseIdent(!0),node2.property.name!=="meta"&&this.raiseRecoverable(node2.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node2.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(node2.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node2,"MetaProperty")};pp$3.parseLiteral=function(value){var node2=this.startNode();return node2.value=value,node2.raw=this.input.slice(this.start,this.end),node2.raw.charCodeAt(node2.raw.length-1)===110&&(node2.bigint=node2.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node2,"Literal")};pp$3.parseParenExpression=function(){this.expect(types.parenL);var val=this.parseExpression();return this.expect(types.parenR),val};pp$3.parseParenAndDistinguishExpression=function(canBeArrow){var startPos=this.start,startLoc=this.startLoc,val,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,spreadStart;for(this.yieldPos=0,this.awaitPos=0;this.type!==types.parenR;)if(first?first=!1:this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(types.parenR,!0)){lastIsComma=!0;break}else if(this.type===types.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem));var innerEndPos=this.start,innerEndLoc=this.startLoc;if(this.expect(types.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList);(!exprList.length||lastIsComma)&&this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?(val=this.startNodeAt(innerStartPos,innerStartLoc),val.expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0];}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}else return val};pp$3.parseParenItem=function(item){return item};pp$3.parseParenArrowList=function(startPos,startLoc,exprList){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList)};empty$1=[];pp$3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node2=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types.dot)){node2.meta=meta;var containsEsc=this.containsEsc;return node2.property=this.parseIdent(!0),node2.property.name!=="target"&&this.raiseRecoverable(node2.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node2.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(node2.start,"'new.target' can only be used in functions"),this.finishNode(node2,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types._import;return node2.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0),isImport&&node2.callee.type==="ImportExpression"&&this.raise(startPos,"Cannot use new with import()"),this.eat(types.parenL)?node2.arguments=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1):node2.arguments=empty$1,this.finishNode(node2,"NewExpression")};pp$3.parseTemplateElement=function(ref3){var isTagged=ref3.isTagged,elem=this.startNode();return this.type===types.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -68,7 +68,7 @@ Defaulting to 2020, but this will stop working in the future.`)),options.ecmaVer
|
|
|
68
68
|
`});++index2<nodes.length;)index2&&result.push({type:"text",value:`
|
|
69
69
|
`}),result.push(nodes[index2]);return loose&&nodes.length>0&&result.push({type:"text",value:`
|
|
70
70
|
`}),result}function trimMarkdownSpaceStart(value){let index2=0,code2=value.charCodeAt(index2);for(;code2===9||code2===32;)index2++,code2=value.charCodeAt(index2);return value.slice(index2)}var own9,emptyOptions7,init_state2=__esm({"../../node_modules/mdast-util-to-hast/lib/state.js"(){init_esm();init_unist_util_visit();init_unist_util_position();init_handlers2();own9={}.hasOwnProperty,emptyOptions7={};}});function toHast(tree,options){let state=createState2(tree,options),node2=state.one(tree,void 0),foot=footer(state),result=Array.isArray(node2)?{type:"root",children:node2}:node2||{type:"root",children:[]};return foot&&(result.children.push({type:"text",value:`
|
|
71
|
-
`},foot)),result}var init_lib36=__esm({"../../node_modules/mdast-util-to-hast/lib/index.js"(){init_footer();init_state2();}});var init_mdast_util_to_hast=__esm({"../../node_modules/mdast-util-to-hast/index.js"(){init_lib36();}});function remarkRehype(destination,options){return destination&&"run"in destination?async function(tree,file){let hastTree=toHast(tree,{file,...options});await destination.run(hastTree,file);}:function(tree,file){return toHast(tree,{file,...destination||options})}}var init_lib37=__esm({"../../node_modules/remark-rehype/lib/index.js"(){init_mdast_util_to_hast();}});var init_remark_rehype=__esm({"../../node_modules/remark-rehype/index.js"(){init_lib37();}});function bail(error){if(error)throw error}var init_bail=__esm({"../../node_modules/bail/index.js"(){}});var require_extend=__commonJS({"../../node_modules/extend/index.js"(exports,module){var hasOwn2=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD=Object.getOwnPropertyDescriptor,isArray4=function(arr){return typeof Array.isArray=="function"?Array.isArray(arr):toStr.call(arr)==="[object Array]"},isPlainObject2=function(obj){if(!obj||toStr.call(obj)!=="[object Object]")return !1;var hasOwnConstructor=hasOwn2.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn2.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return !1;var key;for(key in obj);return typeof key>"u"||hasOwn2.call(obj,key)},setProperty=function(target,options){defineProperty&&options.name==="__proto__"?defineProperty(target,options.name,{enumerable:!0,configurable:!0,value:options.newValue,writable:!0}):target[options.name]=options.newValue;},getProperty=function(obj,name2){if(name2==="__proto__")if(hasOwn2.call(obj,name2)){if(gOPD)return gOPD(obj,name2).value}else return;return obj[name2]};module.exports=function extend4(){var options,name2,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for(typeof target=="boolean"&&(deep=target,target=arguments[1]||{},i=2),(target==null||typeof target!="object"&&typeof target!="function")&&(target={});i<length;++i)if(options=arguments[i],options!=null)for(name2 in options)src=getProperty(target,name2),copy=getProperty(options,name2),target!==copy&&(deep&©&&(isPlainObject2(copy)||(copyIsArray=isArray4(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray4(src)?src:[]):clone=src&&isPlainObject2(src)?src:{},setProperty(target,{name:name2,newValue:extend4(deep,clone,copy)})):typeof copy<"u"&&setProperty(target,{name:name2,newValue:copy}));return target};}});function isPlainObject(value){if(typeof value!="object"||value===null)return !1;let prototype=Object.getPrototypeOf(value);return (prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(Symbol.toStringTag in value)&&!(Symbol.iterator in value)}var init_is_plain_obj=__esm({"../../node_modules/is-plain-obj/index.js"(){}});function trough(){let fns=[],pipeline={run,use};return pipeline;function run(...values){let middlewareIndex=-1,callback=values.pop();if(typeof callback!="function")throw new TypeError("Expected function as last argument, not "+callback);next(null,...values);function next(error,...output){let fn=fns[++middlewareIndex],index2=-1;if(error){callback(error);return}for(;++index2<values.length;)(output[index2]===null||output[index2]===void 0)&&(output[index2]=values[index2]);values=output,fn?wrap2(fn,next)(...output):callback(null,...output);}}function use(middelware){if(typeof middelware!="function")throw new TypeError("Expected `middelware` to be a function, not "+middelware);return fns.push(middelware),pipeline}}function wrap2(middleware,callback){let called;return wrapped;function wrapped(...parameters){let fnExpectsCallback=middleware.length>parameters.length,result;fnExpectsCallback&¶meters.push(done);try{result=middleware.apply(this,parameters);}catch(error){let exception=error;if(fnExpectsCallback&&called)throw exception;return done(exception)}fnExpectsCallback||(result&&result.then&&typeof result.then=="function"?result.then(then,done):result instanceof Error?done(result):then(result));}function done(error,...output){called||(called=!0,callback(error,...output));}function then(value){done(null,value);}}var init_lib38=__esm({"../../node_modules/trough/lib/index.js"(){}});var init_trough=__esm({"../../node_modules/trough/index.js"(){init_lib38();}});var CallableInstance,init_callable_instance=__esm({"../../node_modules/unified/lib/callable-instance.js"(){CallableInstance=function(property){let proto=this.constructor.prototype,value=proto[property],apply=function(){return value.apply(apply,arguments)};return Object.setPrototypeOf(apply,proto),apply};}});function assertParser(name2,value){if(typeof value!="function")throw new TypeError("Cannot `"+name2+"` without `parser`")}function assertCompiler(name2,value){if(typeof value!="function")throw new TypeError("Cannot `"+name2+"` without `compiler`")}function assertUnfrozen(name2,frozen){if(frozen)throw new Error("Cannot call `"+name2+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(node2){if(!isPlainObject(node2)||typeof node2.type!="string")throw new TypeError("Expected node, got `"+node2+"`")}function assertDone(name2,asyncName,complete){if(!complete)throw new Error("`"+name2+"` finished async. Use `"+asyncName+"` instead")}function vfile(value){return looksLikeAVFile2(value)?value:new VFile(value)}function looksLikeAVFile2(value){return !!(value&&typeof value=="object"&&"message"in value&&"messages"in value)}function looksLikeAValue(value){return typeof value=="string"||isUint8Array2(value)}function isUint8Array2(value){return !!(value&&typeof value=="object"&&"byteLength"in value&&"byteOffset"in value)}var import_extend,own10,Processor,unified,init_lib39=__esm({"../../node_modules/unified/lib/index.js"(){init_bail();import_extend=__toESM(require_extend(),1);init_is_plain_obj();init_trough();init_vfile();init_callable_instance();own10={}.hasOwnProperty,Processor=class _Processor extends CallableInstance{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=trough();}copy(){let destination=new _Processor,index2=-1;for(;++index2<this.attachers.length;){let attacher=this.attachers[index2];destination.use(...attacher);}return destination.data((0, import_extend.default)(!0,{},this.namespace)),destination}data(key,value){return typeof key=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[key]=value,this):own10.call(this.namespace,key)&&this.namespace[key]||void 0:key?(assertUnfrozen("data",this.frozen),this.namespace=key,this):this.namespace}freeze(){if(this.frozen)return this;let self2=this;for(;++this.freezeIndex<this.attachers.length;){let[attacher,...options]=this.attachers[this.freezeIndex];if(options[0]===!1)continue;options[0]===!0&&(options[0]=void 0);let transformer=attacher.call(self2,...options);typeof transformer=="function"&&this.transformers.use(transformer);}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(file){this.freeze();let realFile=vfile(file),parser=this.parser||this.Parser;return assertParser("parse",parser),parser(String(realFile),realFile)}process(file,done){let self2=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),done?executor(void 0,done):new Promise(executor);function executor(resolve2,reject){let realFile=vfile(file),parseTree=self2.parse(realFile);self2.run(parseTree,realFile,function(error,tree,file2){if(error||!tree||!file2)return realDone(error);let compileTree=tree,compileResult=self2.stringify(compileTree,file2);looksLikeAValue(compileResult)?file2.value=compileResult:file2.result=compileResult,realDone(error,file2);});function realDone(error,file2){error||!file2?reject(error):resolve2?resolve2(file2):done(void 0,file2);}}}processSync(file){let complete=!1,result;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(file,realDone),assertDone("processSync","process",complete),result;function realDone(error,file2){complete=!0,bail(error),result=file2;}}run(tree,file,done){assertNode(tree),this.freeze();let transformers=this.transformers;return !done&&typeof file=="function"&&(done=file,file=void 0),done?executor(void 0,done):new Promise(executor);function executor(resolve2,reject){let realFile=vfile(file);transformers.run(tree,realFile,realDone);function realDone(error,outputTree,file2){let resultingTree=outputTree||tree;error?reject(error):resolve2?resolve2(resultingTree):done(void 0,resultingTree,file2);}}}runSync(tree,file){let complete=!1,result;return this.run(tree,file,realDone),assertDone("runSync","run",complete),result;function realDone(error,tree2){bail(error),result=tree2,complete=!0;}}stringify(tree,file){this.freeze();let realFile=vfile(file),compiler2=this.compiler||this.Compiler;return assertCompiler("stringify",compiler2),assertNode(tree),compiler2(tree,realFile)}use(value,...parameters){let attachers=this.attachers,namespace=this.namespace;if(assertUnfrozen("use",this.frozen),value!=null)if(typeof value=="function")addPlugin(value,parameters);else if(typeof value=="object")Array.isArray(value)?addList(value):addPreset(value);else throw new TypeError("Expected usable value, not `"+value+"`");return this;function add(value2){if(typeof value2=="function")addPlugin(value2,[]);else if(typeof value2=="object")if(Array.isArray(value2)){let[plugin,...parameters2]=value2;addPlugin(plugin,parameters2);}else addPreset(value2);else throw new TypeError("Expected usable value, not `"+value2+"`")}function addPreset(result){if(!("plugins"in result)&&!("settings"in result))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");addList(result.plugins),result.settings&&(namespace.settings=(0, import_extend.default)(!0,namespace.settings,result.settings));}function addList(plugins){let index2=-1;if(plugins!=null)if(Array.isArray(plugins))for(;++index2<plugins.length;){let thing=plugins[index2];add(thing);}else throw new TypeError("Expected a list of plugins, not `"+plugins+"`")}function addPlugin(plugin,parameters2){let index2=-1,entryIndex=-1;for(;++index2<attachers.length;)if(attachers[index2][0]===plugin){entryIndex=index2;break}if(entryIndex===-1)attachers.push([plugin,...parameters2]);else if(parameters2.length>0){let[primary,...rest]=parameters2,currentPrimary=attachers[entryIndex][1];isPlainObject(currentPrimary)&&isPlainObject(primary)&&(primary=(0, import_extend.default)(!0,currentPrimary,primary)),attachers[entryIndex]=[plugin,primary,...rest];}}}},unified=new Processor().freeze();}});var init_unified=__esm({"../../node_modules/unified/index.js"(){init_lib39();}});function create3(from,to){let fields=["start","end","loc","range"],index2=-1;for(;++index2<fields.length;){let field=fields[index2];field in from&&(to[field]=from[field]);}}var init_estree_util_create=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-create.js"(){}});function specifiersToDeclarations(specifiers,init){let index2=-1,declarations=[],otherSpecifiers=[],importNamespaceSpecifier;for(;++index2<specifiers.length;){let specifier=specifiers[index2];specifier.type==="ImportNamespaceSpecifier"?importNamespaceSpecifier=specifier:otherSpecifiers.push(specifier);}if(importNamespaceSpecifier){let declarator={type:"VariableDeclarator",id:importNamespaceSpecifier.local,init};create3(importNamespaceSpecifier,declarator),declarations.push(declarator);}return declarations.push({type:"VariableDeclarator",id:{type:"ObjectPattern",properties:otherSpecifiers.map(function(specifier){let key=specifier.type==="ImportSpecifier"?specifier.imported:specifier.type==="ExportSpecifier"?specifier.exported:{type:"Identifier",name:"default"},value=specifier.local;specifier.type==="ExportSpecifier"&&(value=key,key=specifier.local),value.type;let property={type:"Property",kind:"init",shorthand:key.type==="Identifier"&&value.type==="Identifier"&&key.name===value.name,method:!1,computed:!1,key,value};return create3(specifier,property),property})},init:importNamespaceSpecifier?{type:"Identifier",name:importNamespaceSpecifier.local.name}:init}),declarations}var init_estree_util_specifiers_to_declarations=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-specifiers-to-declarations.js"(){init_estree_util_create();}});function toIdOrMemberExpression(ids){let index2=-1,object;for(;++index2<ids.length;){let name2=ids[index2],id=typeof name2=="string"&&name(name2)?{type:"Identifier",name:name2}:{type:"Literal",value:name2};object=object?{type:"MemberExpression",object,property:id,computed:id.type==="Literal",optional:!1}:id;}return object.type,object}function toJsxIdOrMemberExpression(ids){let index2=-1,object;for(;++index2<ids.length;){let name2=ids[index2];typeof name2=="string"&&name(name2,{jsx:!0});let id={type:"JSXIdentifier",name:name2};object=object?{type:"JSXMemberExpression",object,property:id}:id;}return object}var init_estree_util_to_id_or_member_expression=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-to-id-or-member-expression.js"(){init_estree_util_is_identifier_name();}});function recmaBuildJsxTransform(options){let{outputFormat}=options||{};return function(tree){if(tree.comments&&(tree.comments=tree.comments.filter(function(d){return !d.data?._mdxIsPragmaComment})),outputFormat==="function-body"){let index2=0;for(;index2<tree.body.length;){let child=tree.body[index2];if("directive"in child&&child.directive)index2++;else break}let declaration=tree.body[index2];declaration&&declaration.type==="ImportDeclaration"&&typeof declaration.source.value=="string"&&/\/jsx-(dev-)?runtime$/.test(declaration.source.value)&&(tree.body[index2]={type:"VariableDeclaration",kind:"const",declarations:specifiersToDeclarations(declaration.specifiers,toIdOrMemberExpression(["arguments",0]))});}}}var init_recma_build_jsx_transform=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-build-jsx-transform.js"(){init_estree_util_specifiers_to_declarations();init_estree_util_to_id_or_member_expression();}});function createVisitors(){let scopes=[{block:!1,defined:[]}];return {enter,exit:exit2,scopes};function enter(node2){if(node2.type==="ArrowFunctionExpression"){scopes.push({block:!1,defined:[]});for(let parameter of node2.params)definePattern(parameter,!1);}else if(node2.type==="BlockStatement"||node2.type==="DoWhileStatement"||node2.type==="ForInStatement"||node2.type==="ForOfStatement"||node2.type==="ForStatement"||node2.type==="WhileStatement")scopes.push({block:!0,defined:[]});else if(node2.type==="CatchClause")scopes.push({block:!0,defined:[]}),node2.param&&definePattern(node2.param,!0);else if(node2.type==="ClassDeclaration")defineIdentifier(node2.id.name,!1);else if(node2.type==="FunctionDeclaration"){defineIdentifier(node2.id.name,!1),scopes.push({block:!1,defined:[]});for(let parameter of node2.params)definePattern(parameter,!1);}else if(node2.type==="FunctionExpression"){node2.id&&defineIdentifier(node2.id.name,!1),scopes.push({block:!1,defined:[]});for(let parameter of node2.params)definePattern(parameter,!1);}else if(node2.type==="ImportDeclaration")for(let specifier of node2.specifiers)defineIdentifier(specifier.local.name,!1);else if(node2.type==="VariableDeclaration")for(let declaration of node2.declarations)definePattern(declaration.id,node2.kind!=="var");}function exit2(node2){if(node2.type==="ArrowFunctionExpression"||node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression"){let scope=scopes.pop();scope.block;}else if(node2.type==="BlockStatement"||node2.type==="CatchClause"||node2.type==="DoWhileStatement"||node2.type==="ForInStatement"||node2.type==="ForOfStatement"||node2.type==="ForStatement"||node2.type==="WhileStatement"){let scope=scopes.pop();scope.block;}}function defineIdentifier(id,block){let index2=scopes.length,scope;for(;index2--&&(scope=scopes[index2],!(block||!scope.block)););scope.defined.push(id);}function definePattern(pattern,block){if(pattern.type==="ArrayPattern")for(let element3 of pattern.elements)element3&&definePattern(element3,block);else if(pattern.type==="AssignmentPattern")definePattern(pattern.left,block);else if(pattern.type==="Identifier")defineIdentifier(pattern.name,block);else if(pattern.type==="ObjectPattern")for(let property of pattern.properties)property.type==="Property"?definePattern(property.value,block):(property.type,definePattern(property,block));else pattern.type,definePattern(pattern.argument,block);}}var init_lib40=__esm({"../../node_modules/estree-util-scope/lib/index.js"(){}});var init_estree_util_scope=__esm({"../../node_modules/estree-util-scope/index.js"(){init_lib40();}});function declarationToExpression(declaration){return declaration.type==="FunctionDeclaration"?{...declaration,type:"FunctionExpression"}:(declaration.type,{...declaration,type:"ClassExpression"})}var init_estree_util_declaration_to_expression=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-declaration-to-expression.js"(){}});function isDeclaration(node2){return node2.type==="FunctionDeclaration"||node2.type==="ClassDeclaration"||node2.type==="VariableDeclaration"}var init_estree_util_is_declaration=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-is-declaration.js"(){}});function recmaDocument(options){let baseUrl=options.baseUrl||void 0,baseHref=typeof baseUrl=="object"?baseUrl.href:baseUrl,outputFormat=options.outputFormat||"program",pragma=options.pragma===void 0?"React.createElement":options.pragma,pragmaFrag=options.pragmaFrag===void 0?"React.Fragment":options.pragmaFrag,pragmaImportSource=options.pragmaImportSource||"react",jsxImportSource=options.jsxImportSource||"react",jsxRuntime=options.jsxRuntime||"automatic";return function(tree,file){let exportedValues=[],replacement=[],exportAllCount=0,layout,content3,child;if(jsxRuntime==="classic"&&pragmaFrag&&injectPragma(tree,"@jsxFrag",pragmaFrag),jsxRuntime==="classic"&&pragma&&injectPragma(tree,"@jsx",pragma),jsxRuntime==="automatic"&&jsxImportSource&&injectPragma(tree,"@jsxImportSource",jsxImportSource),jsxRuntime&&injectPragma(tree,"@jsxRuntime",jsxRuntime),jsxRuntime==="classic"&&pragmaImportSource){if(!pragma)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");handleEsm({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:pragma.split(".")[0]}}],source:{type:"Literal",value:pragmaImportSource}});}for(child of tree.body)if(child.type==="ExportDefaultDeclaration")layout&&file.fail("Unexpected duplicate layout, expected a single layout (previous: "+stringifyPosition(positionFromEstree(layout))+")",{ancestors:[tree,child],place:positionFromEstree(child),ruleId:"duplicate-layout",source:"recma-document"}),layout=child,replacement.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:isDeclaration(child.declaration)?declarationToExpression(child.declaration):child.declaration}]});else if(child.type==="ExportNamedDeclaration"&&child.source){let source=child.source;child.specifiers=child.specifiers.filter(function(specifier){if(specifier.exported.type==="Identifier"&&specifier.exported.name==="default"){layout&&file.fail("Unexpected duplicate layout, expected a single layout (previous: "+stringifyPosition(positionFromEstree(layout))+")",{ancestors:[tree,child,specifier],place:positionFromEstree(child),ruleId:"duplicate-layout",source:"recma-document"}),layout=specifier;let specifiers=[];if(specifier.local.type==="Identifier"&&specifier.local.name==="default")specifiers.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else {let importSpecifier={type:"ImportSpecifier",imported:specifier.local,local:{type:"Identifier",name:"MDXLayout"}};create3(specifier.local,importSpecifier),specifiers.push(importSpecifier);}let from={type:"Literal",value:source.value};create3(source,from);let declaration={type:"ImportDeclaration",specifiers,source:from};return create3(specifier,declaration),handleEsm(declaration),!1}return !0}),child.specifiers.length>0&&handleExport(child);}else child.type==="ExportNamedDeclaration"||child.type==="ExportAllDeclaration"?handleExport(child):child.type==="ImportDeclaration"?handleEsm(child):child.type==="ExpressionStatement"&&(child.expression.type==="JSXElement"||child.expression.type==="JSXFragment")?(content3=!0,replacement.push(...createMdxContent(child.expression,outputFormat,!!layout))):replacement.push(child);content3||replacement.push(...createMdxContent(void 0,outputFormat,!!layout)),exportedValues.push(["MDXContent","default"]),outputFormat==="function-body"&&replacement.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:exportAllCount}).map(function(_,index2){return {type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(index2+1)}}}),...exportedValues.map(function(d){return {type:"Property",kind:"init",method:!1,computed:!1,shorthand:typeof d=="string",key:{type:"Identifier",name:typeof d=="string"?d:d[1]},value:{type:"Identifier",name:typeof d=="string"?d:d[0]}}})]}}),tree.body=replacement;let usesImportMetaUrlVariable=!1,usesResolveDynamicHelper=!1;(baseHref||outputFormat==="function-body")&&walk2(tree,{enter(node2){if((node2.type==="ExportAllDeclaration"||node2.type==="ExportNamedDeclaration"||node2.type==="ImportDeclaration")&&node2.source){let value=node2.source.value;try{new URL(value);}catch{(value.startsWith("/")||value.startsWith("./")||value.startsWith("../"))&&(value=new URL(value,baseHref).href);}let replacement2={type:"Literal",value};create3(node2.source,replacement2),node2.source=replacement2;return}if(node2.type==="ImportExpression"){usesResolveDynamicHelper=!0;let replacement2={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[node2.source],optional:!1};node2.source=replacement2;return}if(node2.type==="MemberExpression"&&"object"in node2&&node2.object.type==="MetaProperty"&&node2.property.type==="Identifier"&&node2.object.meta.name==="import"&&node2.object.property.name==="meta"&&node2.property.name==="url"){usesImportMetaUrlVariable=!0;let replacement2={type:"Identifier",name:"_importMetaUrl"};create3(node2,replacement2),this.replace(replacement2);}}}),usesResolveDynamicHelper&&(baseHref||(usesImportMetaUrlVariable=!0),tree.body.push(resolveDynamicMdxSpecifier(baseHref?{type:"Literal",value:baseHref}:{type:"Identifier",name:"_importMetaUrl"}))),usesImportMetaUrlVariable&&tree.body.unshift(...createImportMetaUrlVariable());function handleExport(node2){if(node2.type==="ExportNamedDeclaration"){if(node2.declaration){let visitors=createVisitors();walk2(node2,{enter(node3){visitors.enter(node3),(node3.type==="ArrowFunctionExpression"||node3.type==="FunctionDeclaration"||node3.type==="FunctionExpression")&&(this.skip(),visitors.exit(node3));},leave:visitors.exit}),exportedValues.push(...visitors.scopes[0].defined);}for(child of node2.specifiers)child.exported.type==="Identifier"?exportedValues.push(child.exported.name):(child.exported.value,exportedValues.push(child.exported.value));}handleEsm(node2);}function handleEsm(node2){let replace,init;if(outputFormat==="function-body")if(node2.type==="ImportDeclaration"||node2.type==="ExportAllDeclaration"||node2.type==="ExportNamedDeclaration"&&node2.source){node2.source;let argument={type:"ImportExpression",source:node2.source};create3(node2,argument),init={type:"AwaitExpression",argument},(node2.type==="ImportDeclaration"||node2.type==="ExportNamedDeclaration")&&node2.specifiers.length===0?replace={type:"ExpressionStatement",expression:init}:replace={type:"VariableDeclaration",kind:"const",declarations:node2.type==="ExportAllDeclaration"?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++exportAllCount},init}]:specifiersToDeclarations(node2.specifiers,init)};}else if(node2.declaration)replace=node2.declaration;else {let declarators=[];for(let specifier of node2.specifiers)specifier.exported.type==="Identifier"&&specifier.local.type==="Identifier"&&specifier.local.name!==specifier.exported.name&&declarators.push({type:"VariableDeclarator",id:specifier.exported,init:specifier.local});declarators.length>0&&(replace={type:"VariableDeclaration",kind:"const",declarations:declarators});}else replace=node2;replace&&replacement.push(replace);}};function createMdxContent(content3,outputFormat2,hasInternalLayout){let result={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};hasInternalLayout||(result={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:result,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let argument=content3||{type:"Identifier",name:"undefined"};argument.type==="JSXFragment"&&argument.children.length===1&&argument.children[0].type==="JSXElement"&&(argument=argument.children[0]);let awaitExpression=!1;walk2(argument,{enter(node2){if(node2.type==="ArrowFunctionExpression"||node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression")return this.skip();(node2.type==="AwaitExpression"||node2.type==="ForOfStatement"&&node2.await)&&(awaitExpression=!0);}});let declaration={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:result}]}};return [{type:"FunctionDeclaration",async:awaitExpression,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument}]}},outputFormat2==="program"?{type:"ExportDefaultDeclaration",declaration}:declaration]}}function injectPragma(tree,name2,value){tree.comments?.unshift({type:"Block",value:name2+" "+value,data:{_mdxIsPragmaComment:!0}});}function resolveDynamicMdxSpecifier(importMetaUrl){return {type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:toIdOrMemberExpression(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:toIdOrMemberExpression(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:toIdOrMemberExpression(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},importMetaUrl]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}}function createImportMetaUrlVariable(){return [{type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:toIdOrMemberExpression(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export \u2026 from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null}]}var init_recma_document=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-document.js"(){init_estree_util_scope();init_src();init_unist_util_position_from_estree();init_unist_util_stringify_position();init_estree_util_create();init_estree_util_declaration_to_expression();init_estree_util_is_declaration();init_estree_util_specifiers_to_declarations();init_estree_util_to_id_or_member_expression();}});function toBinaryAddition(expressions){let index2=-1,left;for(;++index2<expressions.length;){let right=expressions[index2];left=left?{type:"BinaryExpression",left,operator:"+",right}:right;}return left}var init_estree_util_to_binary_addition=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-to-binary-addition.js"(){}});function recmaJsxRewrite(options){let{development,outputFormat,providerImportSource}=options;return function(tree,file){let visitors=createVisitors(),functionStack=[],importProvider=!1,createErrorHelper=!1;if(walk2(tree,{enter(node2){visitors.enter(node2),(node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression"||node2.type==="ArrowFunctionExpression")&&(functionStack.push({components:[],idToInvalidComponentName:new Map,node:node2,objects:[],references:{},tags:[]}),isNamedFunction(node2,"MDXContent")&&!inScope(visitors.scopes,"MDXLayout")&&functionStack[0].components.push("MDXLayout"));let functionInfo=functionStack[0];if(!(!functionInfo||!isNamedFunction(functionInfo.node,"_createMdxContent")&&!providerImportSource)&&node2.type==="JSXElement"){let name2=node2.openingElement.name;if(name2.type==="JSXMemberExpression"){let ids=[];for(;name2.type==="JSXMemberExpression";)ids.unshift(name2.property.name),name2=name2.object;ids.unshift(name2.name);let fullId=ids.join("."),id=name2.name,isInScope=inScope(visitors.scopes,id);!Object.hasOwn(functionInfo.references,fullId)&&(!isInScope||functionStack.length===1&&functionStack[0].node.type==="FunctionDeclaration"&&isNamedFunction(functionStack[0].node,"_createMdxContent"))&&(functionInfo.references[fullId]={component:!0,node:node2}),!functionInfo.objects.includes(id)&&!isInScope&&functionInfo.objects.push(id);}else if(name2.type!=="JSXNamespacedName"){if(name(name2.name)&&!/^[a-z]/.test(name2.name)){let id=name2.name;inScope(visitors.scopes,id)||(id!=="MDXLayout"&&!Object.hasOwn(functionInfo.references,id)&&(functionInfo.references[id]={component:!0,node:node2}),functionInfo.components.includes(id)||functionInfo.components.push(id));}else if(!(node2.data&&node2.data._mdxExplicitJsx)){let id=name2.name;functionInfo.tags.includes(id)||functionInfo.tags.push(id);let jsxIdExpression=["_components",id];if(name(id)===!1){let invalidComponentName=functionInfo.idToInvalidComponentName.get(id);invalidComponentName===void 0&&(invalidComponentName=`_component${functionInfo.idToInvalidComponentName.size}`,functionInfo.idToInvalidComponentName.set(id,invalidComponentName)),jsxIdExpression=[invalidComponentName];}node2.openingElement.name=toJsxIdOrMemberExpression(jsxIdExpression),node2.closingElement&&(node2.closingElement.name=toJsxIdOrMemberExpression(jsxIdExpression));}}}},leave(node2){visitors.exit(node2);let defaults=[],actual=[],parameters=[],declarations=[];if(node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression"||node2.type==="ArrowFunctionExpression"){let functionInfo=functionStack[functionStack.length-1],name2;for(name2 of functionInfo.tags.sort())defaults.push({type:"Property",kind:"init",key:name(name2)?{type:"Identifier",name:name2}:{type:"Literal",value:name2},value:{type:"Literal",value:name2},method:!1,shorthand:!1,computed:!1});actual.push(...functionInfo.components);for(name2 of functionInfo.objects)actual.includes(name2)||actual.push(name2);actual.sort();let statements=[];if(defaults.length>0||actual.length>0||functionInfo.idToInvalidComponentName.size>0){if(providerImportSource&&(importProvider=!0,parameters.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(isNamedFunction(functionInfo.node,"MDXContent")||isNamedFunction(functionInfo.node,"_createMdxContent"))&¶meters.push(toIdOrMemberExpression(["props","components"])),defaults.length>0||parameters.length>1)for(let parameter of parameters)defaults.push({type:"SpreadElement",argument:parameter});let componentsInit=defaults.length>0?{type:"ObjectExpression",properties:defaults}:{type:"LogicalExpression",operator:"||",left:parameters[0],right:{type:"ObjectExpression",properties:[]}},componentsPattern;if(actual.length>0&&(componentsPattern={type:"ObjectPattern",properties:actual.map(function(name3){return {type:"Property",kind:"init",key:{type:"Identifier",name:name3==="MDXLayout"?"wrapper":name3},value:{type:"Identifier",name:name3},method:!1,shorthand:name3!=="MDXLayout",computed:!1}})}),functionInfo.tags.length>0&&(declarations.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:componentsInit}),componentsInit={type:"Identifier",name:"_components"}),isNamedFunction(functionInfo.node,"_createMdxContent"))for(let[id,componentName]of [...functionInfo.idToInvalidComponentName].sort(function([a],[b]){return a.localeCompare(b)}))declarations.push({type:"VariableDeclarator",id:{type:"Identifier",name:componentName},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:id},computed:!0,optional:!1}});componentsPattern&&declarations.push({type:"VariableDeclarator",id:componentsPattern,init:componentsInit}),declarations.length>0&&statements.push({type:"VariableDeclaration",kind:"const",declarations});}let key;for(key in functionInfo.references)if(Object.hasOwn(functionInfo.references,key)){let parts=key.split("."),index3=0;for(;++index3<parts.length;){let partial=parts.slice(0,index3).join(".");Object.hasOwn(functionInfo.references,partial)||(functionInfo.references[partial]={component:!1,node:functionInfo.references[key].node});}}let references=Object.keys(functionInfo.references).sort(),index2=-1;for(;++index2<references.length;){let id=references[index2],info=functionInfo.references[id],place=stringifyPosition(positionFromEstree(info.node)),parameters2=[{type:"Literal",value:id},{type:"Literal",value:info.component}];createErrorHelper=!0,development&&place&¶meters2.push({type:"Literal",value:place}),statements.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:toIdOrMemberExpression(id.split("."))},consequent:{type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:"_missingMdxReference"},arguments:parameters2,optional:!1}},alternate:void 0});}statements.length>0&&(node2.body.type!=="BlockStatement"&&(node2.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:node2.body}]}),node2.body.body.unshift(...statements)),functionStack.pop();}}}),importProvider&&providerImportSource&&tree.body.unshift(createImportProvider(providerImportSource,outputFormat)),createErrorHelper){let message=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],parameters=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];development&&(message.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:toBinaryAddition([{type:"Literal",value:"\nIt\u2019s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(file.path?"` in `"+file.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),parameters.push({type:"Identifier",name:"place"})),tree.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:parameters,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[toBinaryAddition(message)]}}]}});}outputFormat==="function-body"&&tree.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"});}}function createImportProvider(providerImportSource,outputFormat){let specifiers=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return outputFormat==="function-body"?{type:"VariableDeclaration",kind:"const",declarations:specifiersToDeclarations(specifiers,toIdOrMemberExpression(["arguments",0]))}:{type:"ImportDeclaration",specifiers,source:{type:"Literal",value:providerImportSource}}}function isNamedFunction(node2,name2){return !!(node2&&"id"in node2&&node2.id&&node2.id.name===name2)}function inScope(scopes,id){let index2=scopes.length;for(;index2--;)if(scopes[index2].defined.includes(id))return !0;return !1}var init_recma_jsx_rewrite=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-jsx-rewrite.js"(){init_estree_util_is_identifier_name();init_estree_util_scope();init_src();init_unist_util_stringify_position();init_unist_util_position_from_estree();init_estree_util_specifiers_to_declarations();init_estree_util_to_binary_addition();init_estree_util_to_id_or_member_expression();}});function rehypeRemoveRaw(){return function(tree){visit(tree,"raw",function(_,index2,parent){if(parent&&typeof index2=="number")return parent.children.splice(index2,1),index2});}}var init_rehype_remove_raw=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/rehype-remove-raw.js"(){init_unist_util_visit();}});function collapseWhiteSpace(value,options){options?typeof options=="string"&&(options={style:options}):options={};let replace=options.preserveLineEndings?replaceLineEnding:replaceSpace;return String(value).replace(options.style==="html"?html4:js,options.trim?trimFactory(replace):replace)}function replaceLineEnding(value){let match=/\r?\n|\r/.exec(value);return match?match[0]:" "}function replaceSpace(){return " "}function trimFactory(replace){return dropOrReplace;function dropOrReplace(value,index2,all4){return index2===0||index2+value.length===all4.length?"":replace(value)}}var js,html4,init_collapse_white_space=__esm({"../../node_modules/collapse-white-space/index.js"(){js=/\s+/g,html4=/[\t\n\v\f\r ]+/g;}});function remarkMarkAndUnravel(){return function(tree){visit(tree,function(node2,index2,parent){let offset3=-1,all4=!0,oneOrMore=!1;if(parent&&typeof index2=="number"&&node2.type==="paragraph"){let children=node2.children;for(;++offset3<children.length;){let child=children[offset3];if(child.type==="mdxJsxTextElement"||child.type==="mdxTextExpression")oneOrMore=!0;else if(!(child.type==="text"&&collapseWhiteSpace(child.value,{style:"html",trim:!0})==="")){all4=!1;break}}if(all4&&oneOrMore){offset3=-1;let newChildren=[];for(;++offset3<children.length;){let child=children[offset3];child.type==="mdxJsxTextElement"&&(child.type="mdxJsxFlowElement"),child.type==="mdxTextExpression"&&(child.type="mdxFlowExpression"),child.type==="text"&&/^[\t\r\n ]+$/.test(String(child.value))||newChildren.push(child);}return parent.children.splice(index2,1,...newChildren),index2}}if(node2.type==="mdxJsxFlowElement"||node2.type==="mdxJsxTextElement"){let data3=node2.data||(node2.data={});data3._mdxExplicitJsx=!0;}(node2.type==="mdxFlowExpression"||node2.type==="mdxTextExpression"||node2.type==="mdxjsEsm")&&node2.data&&node2.data.estree&&walk2(node2.data.estree,{enter(node3){if(node3.type==="JSXElement"){let data3=node3.data||(node3.data={});data3._mdxExplicitJsx=!0;}}});});}}var init_remark_mark_and_unravel=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/remark-mark-and-unravel.js"(){init_collapse_white_space();init_src();init_unist_util_visit();}});var nodeTypes,init_node_types=__esm({"../../node_modules/@mdx-js/mdx/lib/node-types.js"(){nodeTypes=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"];}});function createProcessor(options){let settings=options||{},index2=-1;for(;++index2<removedOptions.length;){removedOptions[index2];}settings.format==="detect"&&void 0,(settings.jsxRuntime==="classic"||settings.pragma||settings.pragmaFrag||settings.pragmaImportSource)&&!warned&&(warned=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));let pipeline=unified().use(remarkParse);settings.format!=="md"&&pipeline.use(remarkMdx);let remarkRehypeOptions=settings.remarkRehypeOptions||{};return pipeline.use(remarkMarkAndUnravel).use(settings.remarkPlugins||[]).use(remarkRehype,{...remarkRehypeOptions,allowDangerousHtml:!0,passThrough:[...remarkRehypeOptions.passThrough||[],...nodeTypes]}).use(settings.rehypePlugins||[]),settings.format==="md"&&pipeline.use(rehypeRemoveRaw),pipeline.use(rehypeRecma,settings).use(recmaDocument,settings).use(recmaJsxRewrite,settings),settings.jsx||pipeline.use(recmaJsx,settings).use(recmaBuildJsxTransform,settings),pipeline.use(recmaJsx2).use(recmaStringify,settings).use(settings.recmaPlugins||[]),pipeline}var removedOptions,warned,init_core2=__esm({"../../node_modules/@mdx-js/mdx/lib/core.js"(){init_recma_build_jsx();init_recma_jsx();init_recma_stringify();init_rehype_recma();init_remark_mdx();init_remark_parse();init_remark_rehype();init_unified();init_recma_build_jsx_transform();init_recma_document();init_recma_jsx_rewrite();init_rehype_remove_raw();init_remark_mark_and_unravel();init_node_types();removedOptions=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"],warned=!1;}});function compile(vfileCompatible,compileOptions){let{file,options}=resolveFileAndOptions(vfileCompatible,compileOptions);return createProcessor(options).process(file)}var init_compile=__esm({"../../node_modules/@mdx-js/mdx/lib/compile.js"(){init_resolve_file_and_options();init_core2();}});var init_mdx=__esm({"../../node_modules/@mdx-js/mdx/index.js"(){init_compile();}});function getCompilerOptions(mdxCompileOptions){return {providerImportSource:"@mdx-js/react",rehypePlugins:[],...mdxCompileOptions}}var compile2,init_compiler=__esm({"src/compiler/index.ts"(){init_mdx();compile2=async(input,{mdxCompileOptions={}}={})=>{let options=getCompilerOptions(mdxCompileOptions);return (await compile(input,options)).toString()};}});var mdx_plugin_exports={};__export(mdx_plugin_exports,{mdxPlugin:()=>mdxPlugin});async function mdxPlugin(options){let filter=createFilter(/\.mdx$/),{presets}=options,mdxPluginOptions=(await presets.apply("options",{}))?.mdxPluginOptions,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default;return {name:"storybook:mdx-plugin",enforce:"pre",async transform(src,id){if(!filter(id))return;let mdxLoaderOptions=await presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:default2.join(default2.dirname(__require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions?.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});return {code:String(await compile2(src,mdxLoaderOptions)),map:null}}}}var init_mdx_plugin=__esm({"src/plugins/mdx-plugin.ts"(){init_es();init_compiler();}});var getResolvedReact=async options=>{let resolvedReact2=await options.presets.apply("resolvedReact",{});return {react:resolvedReact2.react??default2.dirname(__require.resolve("react/package.json")),reactDom:resolvedReact2.reactDom??default2.dirname(__require.resolve("react-dom/package.json")),mdx:resolvedReact2.mdx??default2.dirname(__require.resolve("@mdx-js/react"))}};async function webpack(webpackConfig={},options){let{module={}}=webpackConfig,{csfPluginOptions={},mdxPluginOptions={}}=options,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default,mdxLoaderOptions=await options.presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:default2.join(default2.dirname(__require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});nodeLogger.logger.info("Addon-docs: using MDX3");let{react,reactDom,mdx}=await getResolvedReact(options),alias;return Array.isArray(webpackConfig.resolve?.alias)?(alias=[...webpackConfig.resolve?.alias],alias.push({name:"react",alias:react},{name:"react-dom",alias:reactDom},{name:"@mdx-js/react",alias:mdx})):alias={...webpackConfig.resolve?.alias,react,"react-dom":reactDom,"@mdx-js/react":mdx},{...webpackConfig,plugins:[...webpackConfig.plugins||[],...csfPluginOptions?[(await import('@storybook/csf-plugin')).webpack(csfPluginOptions)]:[]],resolve:{...webpackConfig.resolve,alias},module:{...module,rules:[...module.rules||[],{test:/\.mdx$/,exclude:/(stories|story)\.mdx$/,use:[{loader:__require.resolve("./mdx-loader"),options:mdxLoaderOptions}]}]}}}var docs=docsOptions=>({...docsOptions,defaultName:"Docs",autodocs:"tag"}),addons=[__require.resolve("@storybook/react-dom-shim/dist/preset")],viteFinal=async(config,options)=>{let{plugins=[]}=config,{mdxPlugin:mdxPlugin2}=await Promise.resolve().then(()=>(init_mdx_plugin(),mdx_plugin_exports)),{react,reactDom,mdx}=await getResolvedReact(options),themingPath=default2.dirname(__require.resolve("storybook/theming")),packageDeduplicationPlugin={name:"storybook:package-deduplication",enforce:"pre",config:()=>({resolve:{alias:{react,...default2.isAbsolute(reactDom)&&{"react-dom/server":`${reactDom}/server.browser.js`},"react-dom":reactDom,"@mdx-js/react":mdx,"storybook/theming":themingPath}}})};return plugins.unshift(packageDeduplicationPlugin),plugins.unshift(mdxPlugin2(options)),config},webpackX=webpack,docsX=docs,resolvedReact=async existing=>({react:existing?.react??default2.dirname(__require.resolve("react/package.json")),reactDom:existing?.reactDom??default2.dirname(__require.resolve("react-dom/package.json")),mdx:existing?.mdx??default2.dirname(__require.resolve("@mdx-js/react"))}),optimizeViteDeps=["@mdx-js/react","@storybook/addon-docs > acorn-jsx","@storybook/addon-docs","markdown-to-jsx"];
|
|
71
|
+
`},foot)),result}var init_lib36=__esm({"../../node_modules/mdast-util-to-hast/lib/index.js"(){init_footer();init_state2();}});var init_mdast_util_to_hast=__esm({"../../node_modules/mdast-util-to-hast/index.js"(){init_lib36();}});function remarkRehype(destination,options){return destination&&"run"in destination?async function(tree,file){let hastTree=toHast(tree,{file,...options});await destination.run(hastTree,file);}:function(tree,file){return toHast(tree,{file,...destination||options})}}var init_lib37=__esm({"../../node_modules/remark-rehype/lib/index.js"(){init_mdast_util_to_hast();}});var init_remark_rehype=__esm({"../../node_modules/remark-rehype/index.js"(){init_lib37();}});function bail(error){if(error)throw error}var init_bail=__esm({"../../node_modules/bail/index.js"(){}});var require_extend=__commonJS({"../../node_modules/extend/index.js"(exports,module){var hasOwn2=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD=Object.getOwnPropertyDescriptor,isArray4=function(arr){return typeof Array.isArray=="function"?Array.isArray(arr):toStr.call(arr)==="[object Array]"},isPlainObject2=function(obj){if(!obj||toStr.call(obj)!=="[object Object]")return !1;var hasOwnConstructor=hasOwn2.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn2.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return !1;var key;for(key in obj);return typeof key>"u"||hasOwn2.call(obj,key)},setProperty=function(target,options){defineProperty&&options.name==="__proto__"?defineProperty(target,options.name,{enumerable:!0,configurable:!0,value:options.newValue,writable:!0}):target[options.name]=options.newValue;},getProperty=function(obj,name2){if(name2==="__proto__")if(hasOwn2.call(obj,name2)){if(gOPD)return gOPD(obj,name2).value}else return;return obj[name2]};module.exports=function extend4(){var options,name2,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for(typeof target=="boolean"&&(deep=target,target=arguments[1]||{},i=2),(target==null||typeof target!="object"&&typeof target!="function")&&(target={});i<length;++i)if(options=arguments[i],options!=null)for(name2 in options)src=getProperty(target,name2),copy=getProperty(options,name2),target!==copy&&(deep&©&&(isPlainObject2(copy)||(copyIsArray=isArray4(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray4(src)?src:[]):clone=src&&isPlainObject2(src)?src:{},setProperty(target,{name:name2,newValue:extend4(deep,clone,copy)})):typeof copy<"u"&&setProperty(target,{name:name2,newValue:copy}));return target};}});function isPlainObject(value){if(typeof value!="object"||value===null)return !1;let prototype=Object.getPrototypeOf(value);return (prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(Symbol.toStringTag in value)&&!(Symbol.iterator in value)}var init_is_plain_obj=__esm({"../../node_modules/is-plain-obj/index.js"(){}});function trough(){let fns=[],pipeline={run,use};return pipeline;function run(...values){let middlewareIndex=-1,callback=values.pop();if(typeof callback!="function")throw new TypeError("Expected function as last argument, not "+callback);next(null,...values);function next(error,...output){let fn=fns[++middlewareIndex],index2=-1;if(error){callback(error);return}for(;++index2<values.length;)(output[index2]===null||output[index2]===void 0)&&(output[index2]=values[index2]);values=output,fn?wrap2(fn,next)(...output):callback(null,...output);}}function use(middelware){if(typeof middelware!="function")throw new TypeError("Expected `middelware` to be a function, not "+middelware);return fns.push(middelware),pipeline}}function wrap2(middleware,callback){let called;return wrapped;function wrapped(...parameters){let fnExpectsCallback=middleware.length>parameters.length,result;fnExpectsCallback&¶meters.push(done);try{result=middleware.apply(this,parameters);}catch(error){let exception=error;if(fnExpectsCallback&&called)throw exception;return done(exception)}fnExpectsCallback||(result&&result.then&&typeof result.then=="function"?result.then(then,done):result instanceof Error?done(result):then(result));}function done(error,...output){called||(called=!0,callback(error,...output));}function then(value){done(null,value);}}var init_lib38=__esm({"../../node_modules/trough/lib/index.js"(){}});var init_trough=__esm({"../../node_modules/trough/index.js"(){init_lib38();}});var CallableInstance,init_callable_instance=__esm({"../../node_modules/unified/lib/callable-instance.js"(){CallableInstance=function(property){let proto=this.constructor.prototype,value=proto[property],apply=function(){return value.apply(apply,arguments)};return Object.setPrototypeOf(apply,proto),apply};}});function assertParser(name2,value){if(typeof value!="function")throw new TypeError("Cannot `"+name2+"` without `parser`")}function assertCompiler(name2,value){if(typeof value!="function")throw new TypeError("Cannot `"+name2+"` without `compiler`")}function assertUnfrozen(name2,frozen){if(frozen)throw new Error("Cannot call `"+name2+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(node2){if(!isPlainObject(node2)||typeof node2.type!="string")throw new TypeError("Expected node, got `"+node2+"`")}function assertDone(name2,asyncName,complete){if(!complete)throw new Error("`"+name2+"` finished async. Use `"+asyncName+"` instead")}function vfile(value){return looksLikeAVFile2(value)?value:new VFile(value)}function looksLikeAVFile2(value){return !!(value&&typeof value=="object"&&"message"in value&&"messages"in value)}function looksLikeAValue(value){return typeof value=="string"||isUint8Array2(value)}function isUint8Array2(value){return !!(value&&typeof value=="object"&&"byteLength"in value&&"byteOffset"in value)}var import_extend,own10,Processor,unified,init_lib39=__esm({"../../node_modules/unified/lib/index.js"(){init_bail();import_extend=__toESM(require_extend(),1);init_is_plain_obj();init_trough();init_vfile();init_callable_instance();own10={}.hasOwnProperty,Processor=class _Processor extends CallableInstance{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=trough();}copy(){let destination=new _Processor,index2=-1;for(;++index2<this.attachers.length;){let attacher=this.attachers[index2];destination.use(...attacher);}return destination.data((0, import_extend.default)(!0,{},this.namespace)),destination}data(key,value){return typeof key=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[key]=value,this):own10.call(this.namespace,key)&&this.namespace[key]||void 0:key?(assertUnfrozen("data",this.frozen),this.namespace=key,this):this.namespace}freeze(){if(this.frozen)return this;let self2=this;for(;++this.freezeIndex<this.attachers.length;){let[attacher,...options]=this.attachers[this.freezeIndex];if(options[0]===!1)continue;options[0]===!0&&(options[0]=void 0);let transformer=attacher.call(self2,...options);typeof transformer=="function"&&this.transformers.use(transformer);}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(file){this.freeze();let realFile=vfile(file),parser=this.parser||this.Parser;return assertParser("parse",parser),parser(String(realFile),realFile)}process(file,done){let self2=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),done?executor(void 0,done):new Promise(executor);function executor(resolve2,reject){let realFile=vfile(file),parseTree=self2.parse(realFile);self2.run(parseTree,realFile,function(error,tree,file2){if(error||!tree||!file2)return realDone(error);let compileTree=tree,compileResult=self2.stringify(compileTree,file2);looksLikeAValue(compileResult)?file2.value=compileResult:file2.result=compileResult,realDone(error,file2);});function realDone(error,file2){error||!file2?reject(error):resolve2?resolve2(file2):done(void 0,file2);}}}processSync(file){let complete=!1,result;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(file,realDone),assertDone("processSync","process",complete),result;function realDone(error,file2){complete=!0,bail(error),result=file2;}}run(tree,file,done){assertNode(tree),this.freeze();let transformers=this.transformers;return !done&&typeof file=="function"&&(done=file,file=void 0),done?executor(void 0,done):new Promise(executor);function executor(resolve2,reject){let realFile=vfile(file);transformers.run(tree,realFile,realDone);function realDone(error,outputTree,file2){let resultingTree=outputTree||tree;error?reject(error):resolve2?resolve2(resultingTree):done(void 0,resultingTree,file2);}}}runSync(tree,file){let complete=!1,result;return this.run(tree,file,realDone),assertDone("runSync","run",complete),result;function realDone(error,tree2){bail(error),result=tree2,complete=!0;}}stringify(tree,file){this.freeze();let realFile=vfile(file),compiler2=this.compiler||this.Compiler;return assertCompiler("stringify",compiler2),assertNode(tree),compiler2(tree,realFile)}use(value,...parameters){let attachers=this.attachers,namespace=this.namespace;if(assertUnfrozen("use",this.frozen),value!=null)if(typeof value=="function")addPlugin(value,parameters);else if(typeof value=="object")Array.isArray(value)?addList(value):addPreset(value);else throw new TypeError("Expected usable value, not `"+value+"`");return this;function add(value2){if(typeof value2=="function")addPlugin(value2,[]);else if(typeof value2=="object")if(Array.isArray(value2)){let[plugin,...parameters2]=value2;addPlugin(plugin,parameters2);}else addPreset(value2);else throw new TypeError("Expected usable value, not `"+value2+"`")}function addPreset(result){if(!("plugins"in result)&&!("settings"in result))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");addList(result.plugins),result.settings&&(namespace.settings=(0, import_extend.default)(!0,namespace.settings,result.settings));}function addList(plugins){let index2=-1;if(plugins!=null)if(Array.isArray(plugins))for(;++index2<plugins.length;){let thing=plugins[index2];add(thing);}else throw new TypeError("Expected a list of plugins, not `"+plugins+"`")}function addPlugin(plugin,parameters2){let index2=-1,entryIndex=-1;for(;++index2<attachers.length;)if(attachers[index2][0]===plugin){entryIndex=index2;break}if(entryIndex===-1)attachers.push([plugin,...parameters2]);else if(parameters2.length>0){let[primary,...rest]=parameters2,currentPrimary=attachers[entryIndex][1];isPlainObject(currentPrimary)&&isPlainObject(primary)&&(primary=(0, import_extend.default)(!0,currentPrimary,primary)),attachers[entryIndex]=[plugin,primary,...rest];}}}},unified=new Processor().freeze();}});var init_unified=__esm({"../../node_modules/unified/index.js"(){init_lib39();}});function create3(from,to){let fields=["start","end","loc","range"],index2=-1;for(;++index2<fields.length;){let field=fields[index2];field in from&&(to[field]=from[field]);}}var init_estree_util_create=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-create.js"(){}});function specifiersToDeclarations(specifiers,init){let index2=-1,declarations=[],otherSpecifiers=[],importNamespaceSpecifier;for(;++index2<specifiers.length;){let specifier=specifiers[index2];specifier.type==="ImportNamespaceSpecifier"?importNamespaceSpecifier=specifier:otherSpecifiers.push(specifier);}if(importNamespaceSpecifier){let declarator={type:"VariableDeclarator",id:importNamespaceSpecifier.local,init};create3(importNamespaceSpecifier,declarator),declarations.push(declarator);}return declarations.push({type:"VariableDeclarator",id:{type:"ObjectPattern",properties:otherSpecifiers.map(function(specifier){let key=specifier.type==="ImportSpecifier"?specifier.imported:specifier.type==="ExportSpecifier"?specifier.exported:{type:"Identifier",name:"default"},value=specifier.local;specifier.type==="ExportSpecifier"&&(value=key,key=specifier.local),value.type;let property={type:"Property",kind:"init",shorthand:key.type==="Identifier"&&value.type==="Identifier"&&key.name===value.name,method:!1,computed:!1,key,value};return create3(specifier,property),property})},init:importNamespaceSpecifier?{type:"Identifier",name:importNamespaceSpecifier.local.name}:init}),declarations}var init_estree_util_specifiers_to_declarations=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-specifiers-to-declarations.js"(){init_estree_util_create();}});function toIdOrMemberExpression(ids){let index2=-1,object;for(;++index2<ids.length;){let name2=ids[index2],id=typeof name2=="string"&&name(name2)?{type:"Identifier",name:name2}:{type:"Literal",value:name2};object=object?{type:"MemberExpression",object,property:id,computed:id.type==="Literal",optional:!1}:id;}return object.type,object}function toJsxIdOrMemberExpression(ids){let index2=-1,object;for(;++index2<ids.length;){let name2=ids[index2];typeof name2=="string"&&name(name2,{jsx:!0});let id={type:"JSXIdentifier",name:name2};object=object?{type:"JSXMemberExpression",object,property:id}:id;}return object}var init_estree_util_to_id_or_member_expression=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-to-id-or-member-expression.js"(){init_estree_util_is_identifier_name();}});function recmaBuildJsxTransform(options){let{outputFormat}=options||{};return function(tree){if(tree.comments&&(tree.comments=tree.comments.filter(function(d){return !d.data?._mdxIsPragmaComment})),outputFormat==="function-body"){let index2=0;for(;index2<tree.body.length;){let child=tree.body[index2];if("directive"in child&&child.directive)index2++;else break}let declaration=tree.body[index2];declaration&&declaration.type==="ImportDeclaration"&&typeof declaration.source.value=="string"&&/\/jsx-(dev-)?runtime$/.test(declaration.source.value)&&(tree.body[index2]={type:"VariableDeclaration",kind:"const",declarations:specifiersToDeclarations(declaration.specifiers,toIdOrMemberExpression(["arguments",0]))});}}}var init_recma_build_jsx_transform=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-build-jsx-transform.js"(){init_estree_util_specifiers_to_declarations();init_estree_util_to_id_or_member_expression();}});function createVisitors(){let scopes=[{block:!1,defined:[]}];return {enter,exit:exit2,scopes};function enter(node2){if(node2.type==="ArrowFunctionExpression"){scopes.push({block:!1,defined:[]});for(let parameter of node2.params)definePattern(parameter,!1);}else if(node2.type==="BlockStatement"||node2.type==="DoWhileStatement"||node2.type==="ForInStatement"||node2.type==="ForOfStatement"||node2.type==="ForStatement"||node2.type==="WhileStatement")scopes.push({block:!0,defined:[]});else if(node2.type==="CatchClause")scopes.push({block:!0,defined:[]}),node2.param&&definePattern(node2.param,!0);else if(node2.type==="ClassDeclaration")defineIdentifier(node2.id.name,!1);else if(node2.type==="FunctionDeclaration"){defineIdentifier(node2.id.name,!1),scopes.push({block:!1,defined:[]});for(let parameter of node2.params)definePattern(parameter,!1);}else if(node2.type==="FunctionExpression"){node2.id&&defineIdentifier(node2.id.name,!1),scopes.push({block:!1,defined:[]});for(let parameter of node2.params)definePattern(parameter,!1);}else if(node2.type==="ImportDeclaration")for(let specifier of node2.specifiers)defineIdentifier(specifier.local.name,!1);else if(node2.type==="VariableDeclaration")for(let declaration of node2.declarations)definePattern(declaration.id,node2.kind!=="var");}function exit2(node2){if(node2.type==="ArrowFunctionExpression"||node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression"){let scope=scopes.pop();scope.block;}else if(node2.type==="BlockStatement"||node2.type==="CatchClause"||node2.type==="DoWhileStatement"||node2.type==="ForInStatement"||node2.type==="ForOfStatement"||node2.type==="ForStatement"||node2.type==="WhileStatement"){let scope=scopes.pop();scope.block;}}function defineIdentifier(id,block){let index2=scopes.length,scope;for(;index2--&&(scope=scopes[index2],!(block||!scope.block)););scope.defined.push(id);}function definePattern(pattern,block){if(pattern.type==="ArrayPattern")for(let element3 of pattern.elements)element3&&definePattern(element3,block);else if(pattern.type==="AssignmentPattern")definePattern(pattern.left,block);else if(pattern.type==="Identifier")defineIdentifier(pattern.name,block);else if(pattern.type==="ObjectPattern")for(let property of pattern.properties)property.type==="Property"?definePattern(property.value,block):(property.type,definePattern(property,block));else pattern.type,definePattern(pattern.argument,block);}}var init_lib40=__esm({"../../node_modules/estree-util-scope/lib/index.js"(){}});var init_estree_util_scope=__esm({"../../node_modules/estree-util-scope/index.js"(){init_lib40();}});function declarationToExpression(declaration){return declaration.type==="FunctionDeclaration"?{...declaration,type:"FunctionExpression"}:(declaration.type,{...declaration,type:"ClassExpression"})}var init_estree_util_declaration_to_expression=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-declaration-to-expression.js"(){}});function isDeclaration(node2){return node2.type==="FunctionDeclaration"||node2.type==="ClassDeclaration"||node2.type==="VariableDeclaration"}var init_estree_util_is_declaration=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-is-declaration.js"(){}});function recmaDocument(options){let baseUrl=options.baseUrl||void 0,baseHref=typeof baseUrl=="object"?baseUrl.href:baseUrl,outputFormat=options.outputFormat||"program",pragma=options.pragma===void 0?"React.createElement":options.pragma,pragmaFrag=options.pragmaFrag===void 0?"React.Fragment":options.pragmaFrag,pragmaImportSource=options.pragmaImportSource||"react",jsxImportSource=options.jsxImportSource||"react",jsxRuntime=options.jsxRuntime||"automatic";return function(tree,file){let exportedValues=[],replacement=[],exportAllCount=0,layout,content3,child;if(jsxRuntime==="classic"&&pragmaFrag&&injectPragma(tree,"@jsxFrag",pragmaFrag),jsxRuntime==="classic"&&pragma&&injectPragma(tree,"@jsx",pragma),jsxRuntime==="automatic"&&jsxImportSource&&injectPragma(tree,"@jsxImportSource",jsxImportSource),jsxRuntime&&injectPragma(tree,"@jsxRuntime",jsxRuntime),jsxRuntime==="classic"&&pragmaImportSource){if(!pragma)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");handleEsm({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:pragma.split(".")[0]}}],source:{type:"Literal",value:pragmaImportSource}});}for(child of tree.body)if(child.type==="ExportDefaultDeclaration")layout&&file.fail("Unexpected duplicate layout, expected a single layout (previous: "+stringifyPosition(positionFromEstree(layout))+")",{ancestors:[tree,child],place:positionFromEstree(child),ruleId:"duplicate-layout",source:"recma-document"}),layout=child,replacement.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:isDeclaration(child.declaration)?declarationToExpression(child.declaration):child.declaration}]});else if(child.type==="ExportNamedDeclaration"&&child.source){let source=child.source;child.specifiers=child.specifiers.filter(function(specifier){if(specifier.exported.type==="Identifier"&&specifier.exported.name==="default"){layout&&file.fail("Unexpected duplicate layout, expected a single layout (previous: "+stringifyPosition(positionFromEstree(layout))+")",{ancestors:[tree,child,specifier],place:positionFromEstree(child),ruleId:"duplicate-layout",source:"recma-document"}),layout=specifier;let specifiers=[];if(specifier.local.type==="Identifier"&&specifier.local.name==="default")specifiers.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else {let importSpecifier={type:"ImportSpecifier",imported:specifier.local,local:{type:"Identifier",name:"MDXLayout"}};create3(specifier.local,importSpecifier),specifiers.push(importSpecifier);}let from={type:"Literal",value:source.value};create3(source,from);let declaration={type:"ImportDeclaration",specifiers,source:from};return create3(specifier,declaration),handleEsm(declaration),!1}return !0}),child.specifiers.length>0&&handleExport(child);}else child.type==="ExportNamedDeclaration"||child.type==="ExportAllDeclaration"?handleExport(child):child.type==="ImportDeclaration"?handleEsm(child):child.type==="ExpressionStatement"&&(child.expression.type==="JSXElement"||child.expression.type==="JSXFragment")?(content3=!0,replacement.push(...createMdxContent(child.expression,outputFormat,!!layout))):replacement.push(child);content3||replacement.push(...createMdxContent(void 0,outputFormat,!!layout)),exportedValues.push(["MDXContent","default"]),outputFormat==="function-body"&&replacement.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:exportAllCount}).map(function(_,index2){return {type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(index2+1)}}}),...exportedValues.map(function(d){return {type:"Property",kind:"init",method:!1,computed:!1,shorthand:typeof d=="string",key:{type:"Identifier",name:typeof d=="string"?d:d[1]},value:{type:"Identifier",name:typeof d=="string"?d:d[0]}}})]}}),tree.body=replacement;let usesImportMetaUrlVariable=!1,usesResolveDynamicHelper=!1;(baseHref||outputFormat==="function-body")&&walk2(tree,{enter(node2){if((node2.type==="ExportAllDeclaration"||node2.type==="ExportNamedDeclaration"||node2.type==="ImportDeclaration")&&node2.source){let value=node2.source.value;try{new URL(value);}catch{(value.startsWith("/")||value.startsWith("./")||value.startsWith("../"))&&(value=new URL(value,baseHref).href);}let replacement2={type:"Literal",value};create3(node2.source,replacement2),node2.source=replacement2;return}if(node2.type==="ImportExpression"){usesResolveDynamicHelper=!0;let replacement2={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[node2.source],optional:!1};node2.source=replacement2;return}if(node2.type==="MemberExpression"&&"object"in node2&&node2.object.type==="MetaProperty"&&node2.property.type==="Identifier"&&node2.object.meta.name==="import"&&node2.object.property.name==="meta"&&node2.property.name==="url"){usesImportMetaUrlVariable=!0;let replacement2={type:"Identifier",name:"_importMetaUrl"};create3(node2,replacement2),this.replace(replacement2);}}}),usesResolveDynamicHelper&&(baseHref||(usesImportMetaUrlVariable=!0),tree.body.push(resolveDynamicMdxSpecifier(baseHref?{type:"Literal",value:baseHref}:{type:"Identifier",name:"_importMetaUrl"}))),usesImportMetaUrlVariable&&tree.body.unshift(...createImportMetaUrlVariable());function handleExport(node2){if(node2.type==="ExportNamedDeclaration"){if(node2.declaration){let visitors=createVisitors();walk2(node2,{enter(node3){visitors.enter(node3),(node3.type==="ArrowFunctionExpression"||node3.type==="FunctionDeclaration"||node3.type==="FunctionExpression")&&(this.skip(),visitors.exit(node3));},leave:visitors.exit}),exportedValues.push(...visitors.scopes[0].defined);}for(child of node2.specifiers)child.exported.type==="Identifier"?exportedValues.push(child.exported.name):(child.exported.value,exportedValues.push(child.exported.value));}handleEsm(node2);}function handleEsm(node2){let replace,init;if(outputFormat==="function-body")if(node2.type==="ImportDeclaration"||node2.type==="ExportAllDeclaration"||node2.type==="ExportNamedDeclaration"&&node2.source){node2.source;let argument={type:"ImportExpression",source:node2.source};create3(node2,argument),init={type:"AwaitExpression",argument},(node2.type==="ImportDeclaration"||node2.type==="ExportNamedDeclaration")&&node2.specifiers.length===0?replace={type:"ExpressionStatement",expression:init}:replace={type:"VariableDeclaration",kind:"const",declarations:node2.type==="ExportAllDeclaration"?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++exportAllCount},init}]:specifiersToDeclarations(node2.specifiers,init)};}else if(node2.declaration)replace=node2.declaration;else {let declarators=[];for(let specifier of node2.specifiers)specifier.exported.type==="Identifier"&&specifier.local.type==="Identifier"&&specifier.local.name!==specifier.exported.name&&declarators.push({type:"VariableDeclarator",id:specifier.exported,init:specifier.local});declarators.length>0&&(replace={type:"VariableDeclaration",kind:"const",declarations:declarators});}else replace=node2;replace&&replacement.push(replace);}};function createMdxContent(content3,outputFormat2,hasInternalLayout){let result={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};hasInternalLayout||(result={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:result,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let argument=content3||{type:"Identifier",name:"undefined"};argument.type==="JSXFragment"&&argument.children.length===1&&argument.children[0].type==="JSXElement"&&(argument=argument.children[0]);let awaitExpression=!1;walk2(argument,{enter(node2){if(node2.type==="ArrowFunctionExpression"||node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression")return this.skip();(node2.type==="AwaitExpression"||node2.type==="ForOfStatement"&&node2.await)&&(awaitExpression=!0);}});let declaration={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:result}]}};return [{type:"FunctionDeclaration",async:awaitExpression,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument}]}},outputFormat2==="program"?{type:"ExportDefaultDeclaration",declaration}:declaration]}}function injectPragma(tree,name2,value){tree.comments?.unshift({type:"Block",value:name2+" "+value,data:{_mdxIsPragmaComment:!0}});}function resolveDynamicMdxSpecifier(importMetaUrl){return {type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:toIdOrMemberExpression(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:toIdOrMemberExpression(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:toIdOrMemberExpression(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},importMetaUrl]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}}function createImportMetaUrlVariable(){return [{type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:toIdOrMemberExpression(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export \u2026 from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null}]}var init_recma_document=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-document.js"(){init_estree_util_scope();init_src();init_unist_util_position_from_estree();init_unist_util_stringify_position();init_estree_util_create();init_estree_util_declaration_to_expression();init_estree_util_is_declaration();init_estree_util_specifiers_to_declarations();init_estree_util_to_id_or_member_expression();}});function toBinaryAddition(expressions){let index2=-1,left;for(;++index2<expressions.length;){let right=expressions[index2];left=left?{type:"BinaryExpression",left,operator:"+",right}:right;}return left}var init_estree_util_to_binary_addition=__esm({"../../node_modules/@mdx-js/mdx/lib/util/estree-util-to-binary-addition.js"(){}});function recmaJsxRewrite(options){let{development,outputFormat,providerImportSource}=options;return function(tree,file){let visitors=createVisitors(),functionStack=[],importProvider=!1,createErrorHelper=!1;if(walk2(tree,{enter(node2){visitors.enter(node2),(node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression"||node2.type==="ArrowFunctionExpression")&&(functionStack.push({components:[],idToInvalidComponentName:new Map,node:node2,objects:[],references:{},tags:[]}),isNamedFunction(node2,"MDXContent")&&!inScope(visitors.scopes,"MDXLayout")&&functionStack[0].components.push("MDXLayout"));let functionInfo=functionStack[0];if(!(!functionInfo||!isNamedFunction(functionInfo.node,"_createMdxContent")&&!providerImportSource)&&node2.type==="JSXElement"){let name2=node2.openingElement.name;if(name2.type==="JSXMemberExpression"){let ids=[];for(;name2.type==="JSXMemberExpression";)ids.unshift(name2.property.name),name2=name2.object;ids.unshift(name2.name);let fullId=ids.join("."),id=name2.name,isInScope=inScope(visitors.scopes,id);!Object.hasOwn(functionInfo.references,fullId)&&(!isInScope||functionStack.length===1&&functionStack[0].node.type==="FunctionDeclaration"&&isNamedFunction(functionStack[0].node,"_createMdxContent"))&&(functionInfo.references[fullId]={component:!0,node:node2}),!functionInfo.objects.includes(id)&&!isInScope&&functionInfo.objects.push(id);}else if(name2.type!=="JSXNamespacedName"){if(name(name2.name)&&!/^[a-z]/.test(name2.name)){let id=name2.name;inScope(visitors.scopes,id)||(id!=="MDXLayout"&&!Object.hasOwn(functionInfo.references,id)&&(functionInfo.references[id]={component:!0,node:node2}),functionInfo.components.includes(id)||functionInfo.components.push(id));}else if(!(node2.data&&node2.data._mdxExplicitJsx)){let id=name2.name;functionInfo.tags.includes(id)||functionInfo.tags.push(id);let jsxIdExpression=["_components",id];if(name(id)===!1){let invalidComponentName=functionInfo.idToInvalidComponentName.get(id);invalidComponentName===void 0&&(invalidComponentName=`_component${functionInfo.idToInvalidComponentName.size}`,functionInfo.idToInvalidComponentName.set(id,invalidComponentName)),jsxIdExpression=[invalidComponentName];}node2.openingElement.name=toJsxIdOrMemberExpression(jsxIdExpression),node2.closingElement&&(node2.closingElement.name=toJsxIdOrMemberExpression(jsxIdExpression));}}}},leave(node2){visitors.exit(node2);let defaults=[],actual=[],parameters=[],declarations=[];if(node2.type==="FunctionDeclaration"||node2.type==="FunctionExpression"||node2.type==="ArrowFunctionExpression"){let functionInfo=functionStack[functionStack.length-1],name2;for(name2 of functionInfo.tags.sort())defaults.push({type:"Property",kind:"init",key:name(name2)?{type:"Identifier",name:name2}:{type:"Literal",value:name2},value:{type:"Literal",value:name2},method:!1,shorthand:!1,computed:!1});actual.push(...functionInfo.components);for(name2 of functionInfo.objects)actual.includes(name2)||actual.push(name2);actual.sort();let statements=[];if(defaults.length>0||actual.length>0||functionInfo.idToInvalidComponentName.size>0){if(providerImportSource&&(importProvider=!0,parameters.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(isNamedFunction(functionInfo.node,"MDXContent")||isNamedFunction(functionInfo.node,"_createMdxContent"))&¶meters.push(toIdOrMemberExpression(["props","components"])),defaults.length>0||parameters.length>1)for(let parameter of parameters)defaults.push({type:"SpreadElement",argument:parameter});let componentsInit=defaults.length>0?{type:"ObjectExpression",properties:defaults}:{type:"LogicalExpression",operator:"||",left:parameters[0],right:{type:"ObjectExpression",properties:[]}},componentsPattern;if(actual.length>0&&(componentsPattern={type:"ObjectPattern",properties:actual.map(function(name3){return {type:"Property",kind:"init",key:{type:"Identifier",name:name3==="MDXLayout"?"wrapper":name3},value:{type:"Identifier",name:name3},method:!1,shorthand:name3!=="MDXLayout",computed:!1}})}),functionInfo.tags.length>0&&(declarations.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:componentsInit}),componentsInit={type:"Identifier",name:"_components"}),isNamedFunction(functionInfo.node,"_createMdxContent"))for(let[id,componentName]of [...functionInfo.idToInvalidComponentName].sort(function([a],[b]){return a.localeCompare(b)}))declarations.push({type:"VariableDeclarator",id:{type:"Identifier",name:componentName},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:id},computed:!0,optional:!1}});componentsPattern&&declarations.push({type:"VariableDeclarator",id:componentsPattern,init:componentsInit}),declarations.length>0&&statements.push({type:"VariableDeclaration",kind:"const",declarations});}let key;for(key in functionInfo.references)if(Object.hasOwn(functionInfo.references,key)){let parts=key.split("."),index3=0;for(;++index3<parts.length;){let partial=parts.slice(0,index3).join(".");Object.hasOwn(functionInfo.references,partial)||(functionInfo.references[partial]={component:!1,node:functionInfo.references[key].node});}}let references=Object.keys(functionInfo.references).sort(),index2=-1;for(;++index2<references.length;){let id=references[index2],info=functionInfo.references[id],place=stringifyPosition(positionFromEstree(info.node)),parameters2=[{type:"Literal",value:id},{type:"Literal",value:info.component}];createErrorHelper=!0,development&&place&¶meters2.push({type:"Literal",value:place}),statements.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:toIdOrMemberExpression(id.split("."))},consequent:{type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:"_missingMdxReference"},arguments:parameters2,optional:!1}},alternate:void 0});}statements.length>0&&(node2.body.type!=="BlockStatement"&&(node2.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:node2.body}]}),node2.body.body.unshift(...statements)),functionStack.pop();}}}),importProvider&&providerImportSource&&tree.body.unshift(createImportProvider(providerImportSource,outputFormat)),createErrorHelper){let message=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],parameters=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];development&&(message.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:toBinaryAddition([{type:"Literal",value:"\nIt\u2019s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(file.path?"` in `"+file.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),parameters.push({type:"Identifier",name:"place"})),tree.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:parameters,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[toBinaryAddition(message)]}}]}});}outputFormat==="function-body"&&tree.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"});}}function createImportProvider(providerImportSource,outputFormat){let specifiers=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return outputFormat==="function-body"?{type:"VariableDeclaration",kind:"const",declarations:specifiersToDeclarations(specifiers,toIdOrMemberExpression(["arguments",0]))}:{type:"ImportDeclaration",specifiers,source:{type:"Literal",value:providerImportSource}}}function isNamedFunction(node2,name2){return !!(node2&&"id"in node2&&node2.id&&node2.id.name===name2)}function inScope(scopes,id){let index2=scopes.length;for(;index2--;)if(scopes[index2].defined.includes(id))return !0;return !1}var init_recma_jsx_rewrite=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-jsx-rewrite.js"(){init_estree_util_is_identifier_name();init_estree_util_scope();init_src();init_unist_util_stringify_position();init_unist_util_position_from_estree();init_estree_util_specifiers_to_declarations();init_estree_util_to_binary_addition();init_estree_util_to_id_or_member_expression();}});function rehypeRemoveRaw(){return function(tree){visit(tree,"raw",function(_,index2,parent){if(parent&&typeof index2=="number")return parent.children.splice(index2,1),index2});}}var init_rehype_remove_raw=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/rehype-remove-raw.js"(){init_unist_util_visit();}});function collapseWhiteSpace(value,options){options?typeof options=="string"&&(options={style:options}):options={};let replace=options.preserveLineEndings?replaceLineEnding:replaceSpace;return String(value).replace(options.style==="html"?html4:js,options.trim?trimFactory(replace):replace)}function replaceLineEnding(value){let match=/\r?\n|\r/.exec(value);return match?match[0]:" "}function replaceSpace(){return " "}function trimFactory(replace){return dropOrReplace;function dropOrReplace(value,index2,all4){return index2===0||index2+value.length===all4.length?"":replace(value)}}var js,html4,init_collapse_white_space=__esm({"../../node_modules/collapse-white-space/index.js"(){js=/\s+/g,html4=/[\t\n\v\f\r ]+/g;}});function remarkMarkAndUnravel(){return function(tree){visit(tree,function(node2,index2,parent){let offset3=-1,all4=!0,oneOrMore=!1;if(parent&&typeof index2=="number"&&node2.type==="paragraph"){let children=node2.children;for(;++offset3<children.length;){let child=children[offset3];if(child.type==="mdxJsxTextElement"||child.type==="mdxTextExpression")oneOrMore=!0;else if(!(child.type==="text"&&collapseWhiteSpace(child.value,{style:"html",trim:!0})==="")){all4=!1;break}}if(all4&&oneOrMore){offset3=-1;let newChildren=[];for(;++offset3<children.length;){let child=children[offset3];child.type==="mdxJsxTextElement"&&(child.type="mdxJsxFlowElement"),child.type==="mdxTextExpression"&&(child.type="mdxFlowExpression"),child.type==="text"&&/^[\t\r\n ]+$/.test(String(child.value))||newChildren.push(child);}return parent.children.splice(index2,1,...newChildren),index2}}if(node2.type==="mdxJsxFlowElement"||node2.type==="mdxJsxTextElement"){let data3=node2.data||(node2.data={});data3._mdxExplicitJsx=!0;}(node2.type==="mdxFlowExpression"||node2.type==="mdxTextExpression"||node2.type==="mdxjsEsm")&&node2.data&&node2.data.estree&&walk2(node2.data.estree,{enter(node3){if(node3.type==="JSXElement"){let data3=node3.data||(node3.data={});data3._mdxExplicitJsx=!0;}}});});}}var init_remark_mark_and_unravel=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/remark-mark-and-unravel.js"(){init_collapse_white_space();init_src();init_unist_util_visit();}});var nodeTypes,init_node_types=__esm({"../../node_modules/@mdx-js/mdx/lib/node-types.js"(){nodeTypes=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"];}});function createProcessor(options){let settings=options||{},index2=-1;for(;++index2<removedOptions.length;){removedOptions[index2];}settings.format==="detect"&&void 0,(settings.jsxRuntime==="classic"||settings.pragma||settings.pragmaFrag||settings.pragmaImportSource)&&!warned&&(warned=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));let pipeline=unified().use(remarkParse);settings.format!=="md"&&pipeline.use(remarkMdx);let remarkRehypeOptions=settings.remarkRehypeOptions||{};return pipeline.use(remarkMarkAndUnravel).use(settings.remarkPlugins||[]).use(remarkRehype,{...remarkRehypeOptions,allowDangerousHtml:!0,passThrough:[...remarkRehypeOptions.passThrough||[],...nodeTypes]}).use(settings.rehypePlugins||[]),settings.format==="md"&&pipeline.use(rehypeRemoveRaw),pipeline.use(rehypeRecma,settings).use(recmaDocument,settings).use(recmaJsxRewrite,settings),settings.jsx||pipeline.use(recmaJsx,settings).use(recmaBuildJsxTransform,settings),pipeline.use(recmaJsx2).use(recmaStringify,settings).use(settings.recmaPlugins||[]),pipeline}var removedOptions,warned,init_core2=__esm({"../../node_modules/@mdx-js/mdx/lib/core.js"(){init_recma_build_jsx();init_recma_jsx();init_recma_stringify();init_rehype_recma();init_remark_mdx();init_remark_parse();init_remark_rehype();init_unified();init_recma_build_jsx_transform();init_recma_document();init_recma_jsx_rewrite();init_rehype_remove_raw();init_remark_mark_and_unravel();init_node_types();removedOptions=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"],warned=!1;}});function compile(vfileCompatible,compileOptions){let{file,options}=resolveFileAndOptions(vfileCompatible,compileOptions);return createProcessor(options).process(file)}var init_compile=__esm({"../../node_modules/@mdx-js/mdx/lib/compile.js"(){init_resolve_file_and_options();init_core2();}});var init_mdx=__esm({"../../node_modules/@mdx-js/mdx/index.js"(){init_compile();}});function getCompilerOptions(mdxCompileOptions){return {providerImportSource:"@mdx-js/react",rehypePlugins:[],...mdxCompileOptions}}var compile2,init_compiler=__esm({"src/compiler/index.ts"(){init_mdx();compile2=async(input,{mdxCompileOptions={}}={})=>{let options=getCompilerOptions(mdxCompileOptions);return (await compile(input,options)).toString()};}});var mdx_plugin_exports={};__export(mdx_plugin_exports,{mdxPlugin:()=>mdxPlugin});async function mdxPlugin(options){let filter=createFilter(/\.mdx$/),{presets}=options,mdxPluginOptions=(await presets.apply("options",{}))?.mdxPluginOptions,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default;return {name:"storybook:mdx-plugin",enforce:"pre",async transform(src,id){if(!filter(id))return;let mdxLoaderOptions=await presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:default2.join(default2.dirname(__require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions?.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});return {code:String(await compile2(src,mdxLoaderOptions)),map:null}}}}var init_mdx_plugin=__esm({"src/plugins/mdx-plugin.ts"(){init_es();init_compiler();}});var getResolvedReact=async options=>{let resolvedReact2=await options.presets.apply("resolvedReact",{});return {react:resolvedReact2.react??default2.dirname(__require.resolve("react/package.json")),reactDom:resolvedReact2.reactDom??default2.dirname(__require.resolve("react-dom/package.json")),mdx:resolvedReact2.mdx??default2.dirname(__require.resolve("@mdx-js/react"))}};async function webpack(webpackConfig={},options){let{module={}}=webpackConfig,{csfPluginOptions={},mdxPluginOptions={}}=options,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default,mdxLoaderOptions=await options.presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:default2.join(default2.dirname(__require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});nodeLogger.logger.info("Addon-docs: using MDX3");let{react,reactDom,mdx}=await getResolvedReact(options),alias;return Array.isArray(webpackConfig.resolve?.alias)?(alias=[...webpackConfig.resolve?.alias],alias.push({name:"react",alias:react},{name:"react-dom",alias:reactDom},{name:"@mdx-js/react",alias:mdx})):alias={...webpackConfig.resolve?.alias,react,"react-dom":reactDom,"@mdx-js/react":mdx},{...webpackConfig,plugins:[...webpackConfig.plugins||[],...csfPluginOptions?[(await import('@storybook/csf-plugin')).webpack(csfPluginOptions)]:[]],resolve:{...webpackConfig.resolve,alias},module:{...module,rules:[...module.rules||[],{test:/\.mdx$/,exclude:/(stories|story)\.mdx$/,use:[{loader:__require.resolve("./mdx-loader"),options:mdxLoaderOptions}]}]}}}var docs=(input={},options)=>{if(options?.build?.test?.disableAutoDocs)return;let result={...input,defaultName:"Docs"},docsMode=options.docs;return docsMode&&(result.docsMode=docsMode),result},addons=[__require.resolve("@storybook/react-dom-shim/dist/preset")],viteFinal=async(config,options)=>{let{plugins=[]}=config,{mdxPlugin:mdxPlugin2}=await Promise.resolve().then(()=>(init_mdx_plugin(),mdx_plugin_exports)),{react,reactDom,mdx}=await getResolvedReact(options),themingPath=default2.dirname(__require.resolve("storybook/theming")),packageDeduplicationPlugin={name:"storybook:package-deduplication",enforce:"pre",config:()=>({resolve:{alias:{react,...default2.isAbsolute(reactDom)&&{"react-dom/server":`${reactDom}/server.browser.js`},"react-dom":reactDom,"@mdx-js/react":mdx,"storybook/theming":themingPath}}})};return plugins.unshift(packageDeduplicationPlugin),plugins.unshift(mdxPlugin2(options)),config},webpackX=webpack,docsX=docs,resolvedReact=async existing=>({react:existing?.react??default2.dirname(__require.resolve("react/package.json")),reactDom:existing?.reactDom??default2.dirname(__require.resolve("react-dom/package.json")),mdx:existing?.mdx??default2.dirname(__require.resolve("@mdx-js/react"))}),optimizeViteDeps=["@mdx-js/react","@storybook/addon-docs > acorn-jsx","@storybook/addon-docs","markdown-to-jsx"];
|
|
72
72
|
|
|
73
73
|
exports.addons = addons;
|
|
74
74
|
exports.docs = docsX;
|