@agent-spaces/server 0.3.63 → 0.3.64
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/adapters/claude-code-runtime/message-format.js +1 -1
- package/dist/adapters/git.js +161 -57
- package/dist/agents/agent-designer.js +66 -12
- package/dist/agents/issue-task-controller.js +1 -1
- package/dist/app.js +50 -1
- package/dist/package.json +1 -1
- package/dist/routes/agent-commands.js +72 -0
- package/dist/routes/agent-sse.js +6 -0
- package/dist/routes/agent.js +15 -1
- package/dist/routes/database.js +345 -0
- package/dist/routes/git.js +52 -1
- package/dist/routes/kanban.js +39 -0
- package/dist/services/agent-commands.js +168 -0
- package/dist/services/builtin-tools/command-tools.js +117 -0
- package/dist/services/builtin-tools/database-tools.js +578 -0
- package/dist/services/builtin-tools/index.js +5 -0
- package/dist/services/builtin-tools/input-helpers.js +26 -0
- package/dist/services/builtin-tools/issue-tools.js +209 -0
- package/dist/services/builtin-tools/kanban-tools.js +277 -0
- package/dist/services/database-vector.js +244 -0
- package/dist/services/kanban.js +50 -0
- package/dist/storage/database-store.js +365 -0
- package/dist/storage/kanban-store.js +142 -0
- package/dist/web/404.html +1 -1
- package/dist/web/__next.__PAGE__.txt +4 -4
- package/dist/web/__next._full.txt +24 -29
- package/dist/web/__next._head.txt +4 -4
- package/dist/web/__next._index.txt +14 -14
- package/dist/web/__next._tree.txt +3 -8
- package/dist/web/_next/static/chunks/0-9194nbxy_6d.js +1 -0
- package/dist/web/_next/static/chunks/{13~y-b.b9rrw4.js → 01~quun6sefgl.js} +1 -1
- package/dist/web/_next/static/chunks/04a4vsq2wknm4.js +1 -0
- package/dist/web/_next/static/chunks/04dg4l4hv11q2.js +3 -0
- package/dist/web/_next/static/chunks/04fxddw-y20~-.js +7 -0
- package/dist/web/_next/static/chunks/04w7~5ooz_pwm.js +1 -0
- package/dist/web/_next/static/chunks/05oc21sj24wtq.js +1 -0
- package/dist/web/_next/static/chunks/{0-oog4zg4_m~m.css → 062f9zqctzg.b.css} +0 -3
- package/dist/web/_next/static/chunks/{014x2qbuiszni.js → 08ckpwmmwlors.js} +3 -3
- package/dist/web/_next/static/chunks/08k~meqbd8d6v.js +1 -0
- package/dist/web/_next/static/chunks/099h96wjsdb25.js +2 -0
- package/dist/web/_next/static/chunks/09h23logvq65m.js +1 -0
- package/dist/web/_next/static/chunks/0_mvduwjsm35w.js +1 -0
- package/dist/web/_next/static/chunks/0a5y-vhf4i5id.js +3 -0
- package/dist/web/_next/static/chunks/0ake2f3x2uan4.js +24 -0
- package/dist/web/_next/static/chunks/0ck8dw_9-1cdx.js +1 -0
- package/dist/web/_next/static/chunks/0f7cb9li~3jra.js +67 -0
- package/dist/web/_next/static/chunks/0fttswpzu69qx.js +1 -0
- package/dist/web/_next/static/chunks/0ghs9on7wodrm.js +1 -0
- package/dist/web/_next/static/chunks/0ghx3j_.-gdyd.js +1 -0
- package/dist/web/_next/static/chunks/0h9cu-k6z5o08.js +1 -0
- package/dist/web/_next/static/chunks/{02c22g~xd-y30.js → 0iuf30t0rjsjv.js} +2 -2
- package/dist/web/_next/static/chunks/{046me66nilkff.js → 0jb4~3qqkw2ps.js} +1 -1
- package/dist/web/_next/static/chunks/0k4zdm72k_bfy.js +1 -0
- package/dist/web/_next/static/chunks/{0kof5qdg8c2-k.js → 0n6_4so_afuwk.js} +37 -37
- package/dist/web/_next/static/chunks/0nb8.iteznuvx.js +1 -0
- package/dist/web/_next/static/chunks/0os58q93stt7j.js +3 -0
- package/dist/web/_next/static/chunks/0s9lmk8iauou3.js +1 -0
- package/dist/web/_next/static/chunks/0sp_zbx~w0am7.js +1 -0
- package/dist/web/_next/static/chunks/0tel~zsv4z8l_.js +1 -0
- package/dist/web/_next/static/chunks/0twamv4wr_dbv.js +1 -0
- package/dist/web/_next/static/chunks/{0_udc.6.tueey.js → 0uhol5wafdbl~.js} +1 -1
- package/dist/web/_next/static/chunks/0v3a_x4vt42kx.js +5 -0
- package/dist/web/_next/static/chunks/{002-dxhags4dj.js → 0v6hte2z-32ca.js} +2 -2
- package/dist/web/_next/static/chunks/0v7q4mys.mnm..css +1 -0
- package/dist/web/_next/static/chunks/{0ogpc3f3keopc.js → 0vbqaynjq8ga..js} +2 -2
- package/dist/web/_next/static/chunks/0xbaakj0dfc0..js +1 -0
- package/dist/web/_next/static/chunks/0z~vqzbm_q371.js +1 -0
- package/dist/web/_next/static/chunks/0~3xm80~j9ddg.js +1 -0
- package/dist/web/_next/static/chunks/{0y09i51u6ixq5.js → 10l-9myrdo3x9.js} +1 -1
- package/dist/web/_next/static/chunks/12jm4gwmvq-0q.js +90 -0
- package/dist/web/_next/static/chunks/{0aa6bcdmtpekn.js → 1442stwa0gbxe.js} +1 -1
- package/dist/web/_next/static/chunks/14s37n6h0_q3x.js +16 -0
- package/dist/web/_next/static/chunks/161ik5kfyuwtd.js +1 -0
- package/dist/web/_next/static/chunks/17k~zbv0_4rep.js +1 -0
- package/dist/web/_not-found/__next._full.txt +23 -23
- package/dist/web/_not-found/__next._head.txt +4 -4
- package/dist/web/_not-found/__next._index.txt +14 -14
- package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/web/_not-found/__next._not-found.txt +3 -3
- package/dist/web/_not-found/__next._tree.txt +3 -3
- package/dist/web/_not-found.html +1 -1
- package/dist/web/_not-found.txt +23 -23
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +24 -29
- package/dist/web/login/__next._full.txt +32 -36
- package/dist/web/login/__next._head.txt +4 -4
- package/dist/web/login/__next._index.txt +14 -14
- package/dist/web/login/__next._tree.txt +3 -8
- package/dist/web/login/__next.login.__PAGE__.txt +4 -4
- package/dist/web/login/__next.login.txt +3 -3
- package/dist/web/login.html +1 -1
- package/dist/web/login.txt +32 -36
- package/dist/web/settings/__next._full.txt +26 -31
- package/dist/web/settings/__next._head.txt +4 -4
- package/dist/web/settings/__next._index.txt +14 -14
- package/dist/web/settings/__next._tree.txt +3 -8
- package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
- package/dist/web/settings/__next.settings.txt +5 -5
- package/dist/web/settings/agents/__next._full.txt +26 -31
- package/dist/web/settings/agents/__next._head.txt +4 -4
- package/dist/web/settings/agents/__next._index.txt +14 -14
- package/dist/web/settings/agents/__next._tree.txt +3 -8
- package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
- package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
- package/dist/web/settings/agents/__next.settings.txt +5 -5
- package/dist/web/settings/agents.html +1 -1
- package/dist/web/settings/agents.txt +26 -31
- package/dist/web/settings/mcps/__next._full.txt +26 -31
- package/dist/web/settings/mcps/__next._head.txt +4 -4
- package/dist/web/settings/mcps/__next._index.txt +14 -14
- package/dist/web/settings/mcps/__next._tree.txt +3 -8
- package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
- package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
- package/dist/web/settings/mcps/__next.settings.txt +5 -5
- package/dist/web/settings/mcps.html +1 -1
- package/dist/web/settings/mcps.txt +26 -31
- package/dist/web/settings/models/__next._full.txt +26 -31
- package/dist/web/settings/models/__next._head.txt +4 -4
- package/dist/web/settings/models/__next._index.txt +14 -14
- package/dist/web/settings/models/__next._tree.txt +3 -8
- package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
- package/dist/web/settings/models/__next.settings.models.txt +3 -3
- package/dist/web/settings/models/__next.settings.txt +5 -5
- package/dist/web/settings/models.html +1 -1
- package/dist/web/settings/models.txt +26 -31
- package/dist/web/settings/output-styles/__next._full.txt +26 -31
- package/dist/web/settings/output-styles/__next._head.txt +4 -4
- package/dist/web/settings/output-styles/__next._index.txt +14 -14
- package/dist/web/settings/output-styles/__next._tree.txt +3 -8
- package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +4 -4
- package/dist/web/settings/output-styles/__next.settings.output-styles.txt +3 -3
- package/dist/web/settings/output-styles/__next.settings.txt +5 -5
- package/dist/web/settings/output-styles.html +1 -1
- package/dist/web/settings/output-styles.txt +26 -31
- package/dist/web/settings/prompts/__next._full.txt +26 -31
- package/dist/web/settings/prompts/__next._head.txt +4 -4
- package/dist/web/settings/prompts/__next._index.txt +14 -14
- package/dist/web/settings/prompts/__next._tree.txt +3 -8
- package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
- package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
- package/dist/web/settings/prompts/__next.settings.txt +5 -5
- package/dist/web/settings/prompts.html +1 -1
- package/dist/web/settings/prompts.txt +26 -31
- package/dist/web/settings/providers/__next._full.txt +26 -31
- package/dist/web/settings/providers/__next._head.txt +4 -4
- package/dist/web/settings/providers/__next._index.txt +14 -14
- package/dist/web/settings/providers/__next._tree.txt +3 -8
- package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
- package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
- package/dist/web/settings/providers/__next.settings.txt +5 -5
- package/dist/web/settings/providers.html +1 -1
- package/dist/web/settings/providers.txt +26 -31
- package/dist/web/settings/skills/__next._full.txt +26 -31
- package/dist/web/settings/skills/__next._head.txt +4 -4
- package/dist/web/settings/skills/__next._index.txt +14 -14
- package/dist/web/settings/skills/__next._tree.txt +3 -8
- package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
- package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
- package/dist/web/settings/skills/__next.settings.txt +5 -5
- package/dist/web/settings/skills.html +1 -1
- package/dist/web/settings/skills.txt +26 -31
- package/dist/web/settings/tools/__next._full.txt +38 -0
- package/dist/web/settings/tools/__next._head.txt +6 -0
- package/dist/web/settings/tools/__next._index.txt +15 -0
- package/dist/web/settings/tools/__next._tree.txt +3 -0
- package/dist/web/settings/tools/__next.settings.tools.__PAGE__.txt +9 -0
- package/dist/web/settings/tools/__next.settings.tools.txt +5 -0
- package/dist/web/settings/tools/__next.settings.txt +7 -0
- package/dist/web/settings/tools.html +1 -0
- package/dist/web/settings/tools.txt +38 -0
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +26 -31
- package/dist/web/workflows/__next._full.txt +34 -38
- package/dist/web/workflows/__next._head.txt +4 -4
- package/dist/web/workflows/__next._index.txt +14 -14
- package/dist/web/workflows/__next._tree.txt +3 -8
- package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
- package/dist/web/workflows/__next.workflows.txt +3 -3
- package/dist/web/workflows.html +1 -1
- package/dist/web/workflows.txt +34 -38
- package/dist/web/workspace/_/__next._full.txt +25 -29
- package/dist/web/workspace/_/__next._head.txt +4 -4
- package/dist/web/workspace/_/__next._index.txt +14 -14
- package/dist/web/workspace/_/__next._tree.txt +4 -8
- package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -3
- package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
- package/dist/web/workspace/_/__next.workspace.txt +3 -3
- package/dist/web/workspace/_.html +1 -1
- package/dist/web/workspace/_.txt +25 -29
- package/dist/web/workspaces/__next._full.txt +24 -29
- package/dist/web/workspaces/__next._head.txt +4 -4
- package/dist/web/workspaces/__next._index.txt +14 -14
- package/dist/web/workspaces/__next._tree.txt +3 -8
- package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
- package/dist/web/workspaces/__next.workspaces.txt +3 -3
- package/dist/web/workspaces.html +1 -1
- package/dist/web/workspaces.txt +24 -29
- package/dist/ws/agent-prompt.js +45 -8
- package/dist/ws/agent-runner.js +6 -4
- package/package.json +11 -10
- package/dist/web/_next/static/chunks/0-1bfvfwifh-m.js +0 -1
- package/dist/web/_next/static/chunks/04v-pqqs-2lvp.css +0 -1
- package/dist/web/_next/static/chunks/06w~.izyfylap.js +0 -1
- package/dist/web/_next/static/chunks/09t62a89~jesc.js +0 -3
- package/dist/web/_next/static/chunks/09y_3krccdd~u.js +0 -1
- package/dist/web/_next/static/chunks/0_e~hmntdfop9.js +0 -1
- package/dist/web/_next/static/chunks/0cke33d38fnby.js +0 -90
- package/dist/web/_next/static/chunks/0cyq~8xb~r5fc.js +0 -1
- package/dist/web/_next/static/chunks/0fxa1edqr7dve.js +0 -1
- package/dist/web/_next/static/chunks/0hra80eyuu37u.js +0 -1
- package/dist/web/_next/static/chunks/0ie7y4k2ncvnn.js +0 -1
- package/dist/web/_next/static/chunks/0igc~uli58ncw.js +0 -2
- package/dist/web/_next/static/chunks/0msb2mi3hiu5_.js +0 -67
- package/dist/web/_next/static/chunks/0p1n8bvfnpl41.js +0 -1
- package/dist/web/_next/static/chunks/0s_dva~eh2yhi.js +0 -3
- package/dist/web/_next/static/chunks/0typj55ox8d5i.js +0 -1
- package/dist/web/_next/static/chunks/0w2p4ldi2aymp.js +0 -1
- package/dist/web/_next/static/chunks/0zc0xgp5ourcn.js +0 -1
- package/dist/web/_next/static/chunks/0zmhdridea1s5.js +0 -90
- package/dist/web/_next/static/chunks/10.alq.6stmld.js +0 -1
- package/dist/web/_next/static/chunks/11b3zgk1etlkw.js +0 -7
- package/dist/web/_next/static/chunks/11qp8r5dotf7d.js +0 -1
- package/dist/web/_next/static/chunks/12mxlicp247c8.js +0 -1
- package/dist/web/_next/static/chunks/135w27dd8c19s.js +0 -5
- package/dist/web/_next/static/chunks/176dc-dtokxxi.js +0 -16
- package/dist/web/_next/static/chunks/17g-0pqre.anw.js +0 -1
- package/dist/web/_next/static/media/0a7740363b4d4863-s.1110aazvokzp..woff2 +0 -0
- package/dist/web/_next/static/media/0da9c7f357bd9d4d-s.0ek5sshv8wk3m.woff2 +0 -0
- package/dist/web/_next/static/media/1b99372b3eaef0c8-s.p.0gx2haw2tmll8.woff2 +0 -0
- package/dist/web/_next/static/media/41e95f694c5c4549-s.0r1jrq7neqdsq.woff2 +0 -0
- package/dist/web/_next/static/media/5c285b27cdda1fe8-s.p.0yo6-5yoeeudq.woff2 +0 -0
- package/dist/web/_next/static/media/5f9d24ebef5d5292-s.0esuu2f5si~v8.woff2 +0 -0
- package/dist/web/_next/static/media/6c55a692938ebbbc-s.0g6rbszwfgn9y.woff2 +0 -0
- package/dist/web/_next/static/media/8e6fa89aa22d24ec-s.p.0uvzar8hswo3p.woff2 +0 -0
- package/dist/web/_next/static/media/a218039a3287bcfd-s.p.17-1enzs_j91b.woff2 +0 -0
- package/dist/web/_next/static/media/b2ea385cb5ae8625-s.0kjod.kaq1k69.woff2 +0 -0
- package/dist/web/_next/static/media/bdc7e24a509eb931-s.0apt5mko2.qn3.woff2 +0 -0
- package/dist/web/_next/static/media/c3cb240f9c892514-s.163v2i5cux7-c.woff2 +0 -0
- package/dist/web/_next/static/media/e2334d715941921e-s.p.12skym0rqknxy.woff2 +0 -0
- /package/dist/web/_next/static/{OoXAsPtrUWjC1l898FSvI → e8w3vd9Eov_LDYWj_0zsE}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{OoXAsPtrUWjC1l898FSvI → e8w3vd9Eov_LDYWj_0zsE}/_clientMiddlewareManifest.js +0 -0
- /package/dist/web/_next/static/{OoXAsPtrUWjC1l898FSvI → e8w3vd9Eov_LDYWj_0zsE}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,369090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,l=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g;function f(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function p(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function h(){var e={line:n,column:c};return function(t){return t.position=new d(e),g(l),t}}function d(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var i=Error(t.source+":"+n+":"+c+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=c,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,p(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}d.prototype.content=e,g(l);var k,v=[];for(y(v);k=function(){var e=h(),t=g(o);if(t){if(x(),!g(a))return m("property missing ':'");var n=g(u),i=e({type:"declaration",property:f(t[0].replace(r,"")),value:n?f(n[0].replace(r,"")):""});return g(s),i}}();)!1!==k&&(v.push(k),y(v));return v}},559596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(369090))},851521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,l=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,u=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||l.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(o,s)).replace(i,u))}},763185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(559596)),i=e.r(851521);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,t.exports=l},975609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},u=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!l)return!1;for(t in e);return void 0===t||r.call(e,t)},s=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,l,o,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<h;++p)if(t=arguments[p],null!=t)for(n in t)r=c(f,n),f!==(i=c(t,n))&&(d&&i&&(u(i)||(l=a(i)))?(l?(l=!1,o=r&&a(r)?r:[]):o=r&&u(r)?r:{},s(f,{name:n,newValue:e(d,o,i)})):void 0!==i&&s(f,{name:n,newValue:i}));return f}},555060,e=>{"use strict";var t=e.i(344180);function n(){}function r(){}let i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o={};function a(e,t){return((t||o).jsx?l:i).test(e)}let u=/[ \t\n\f\r]/g;function s(e){return""===e.replace(u,"")}class c{constructor(e,t){this.attribute=t,this.property=e}}c.prototype.attribute="",c.prototype.booleanish=!1,c.prototype.boolean=!1,c.prototype.commaOrSpaceSeparated=!1,c.prototype.commaSeparated=!1,c.prototype.defined=!1,c.prototype.mustUseProperty=!1,c.prototype.number=!1,c.prototype.overloadedBoolean=!1,c.prototype.property="",c.prototype.spaceSeparated=!1,c.prototype.space=void 0;let f=0,p=k(),h=k(),d=k(),m=k(),g=k(),y=k(),x=k();function k(){return 2**++f}e.s(["boolean",0,p,"booleanish",0,h,"commaOrSpaceSeparated",0,x,"commaSeparated",0,y,"number",0,m,"overloadedBoolean",0,d,"spaceSeparated",0,g],527951);var v=e.i(527951);let b=Object.keys(v);class w extends c{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<b.length;){const e=b[i];!function(e,t,n){n&&(e[t]=n)}(this,b[i],(n&v[e])===v[e])}}}function S(e){return e.toLowerCase()}w.prototype.defined=!0;let C=/[A-Z]/g,E=/-[a-z]/g,A=/^data[-\w.:]+$/i;function D(e){return"-"+e.toLowerCase()}function T(e){return e.charAt(1).toUpperCase()}let P={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class L{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function I(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new L(n,r,t)}function F(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new w(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[S(r)]=r,n[S(l.attribute)]=r}return new L(t,n,e.space)}L.prototype.normal={},L.prototype.property={},L.prototype.space=void 0;let M=F({properties:{ariaActiveDescendant:null,ariaAtomic:h,ariaAutoComplete:null,ariaBusy:h,ariaChecked:h,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:g,ariaCurrent:null,ariaDescribedBy:g,ariaDetails:null,ariaDisabled:h,ariaDropEffect:g,ariaErrorMessage:null,ariaExpanded:h,ariaFlowTo:g,ariaGrabbed:h,ariaHasPopup:null,ariaHidden:h,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:g,ariaLevel:m,ariaLive:null,ariaModal:h,ariaMultiLine:h,ariaMultiSelectable:h,ariaOrientation:null,ariaOwns:g,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:h,ariaReadOnly:h,ariaRelevant:null,ariaRequired:h,ariaRoleDescription:g,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:h,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function O(e,t){return t in e?e[t]:t}function z(e,t){return O(e,t.toLowerCase())}let R=F({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:y,acceptCharset:g,accessKey:g,action:null,allow:null,allowFullScreen:p,allowPaymentRequest:p,allowUserMedia:p,alt:null,as:null,async:p,autoCapitalize:null,autoComplete:g,autoFocus:p,autoPlay:p,blocking:g,capture:null,charSet:null,checked:p,cite:null,className:g,cols:m,colSpan:null,content:null,contentEditable:h,controls:p,controlsList:g,coords:m|y,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p,defer:p,dir:null,dirName:null,disabled:p,download:d,draggable:h,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p,formTarget:null,headers:g,height:m,hidden:d,high:m,href:null,hrefLang:null,htmlFor:g,httpEquiv:g,id:null,imageSizes:null,imageSrcSet:null,inert:p,inputMode:null,integrity:null,is:null,isMap:p,itemId:null,itemProp:g,itemRef:g,itemScope:p,itemType:g,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:p,muted:p,name:null,nonce:null,noModule:p,noValidate:p,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p,optimum:m,pattern:null,ping:g,placeholder:null,playsInline:p,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p,referrerPolicy:null,rel:g,required:p,reversed:p,rows:m,rowSpan:m,sandbox:g,scope:null,scoped:p,seamless:p,selected:p,shadowRootClonable:p,shadowRootDelegatesFocus:p,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:h,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:p,useMap:null,value:h,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:g,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p,declare:p,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:p,noHref:p,noShade:p,noWrap:p,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:h,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:p,disableRemotePlayback:p,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:z}),j=F({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:x,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:g,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:p,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:y,g2:y,glyphName:y,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:x,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:g,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:x,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:x,rev:x,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:x,requiredFeatures:x,requiredFonts:x,requiredFormats:x,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:x,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:x,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:x,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O}),_=F({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),N=F({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:z}),B=F({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),H=I([M,R,_,N,B],"html"),U=I([M,j,_,N,B],"svg");var V=e.i(763185);let q=$("end"),W=$("start");function $(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function K(e){return e&&"object"==typeof e?"position"in e||"type"in e?X(e.position):"start"in e||"end"in e?X(e):"line"in e||"column"in e?Q(e):"":""}function Q(e){return J(e&&e.line)+":"+J(e&&e.column)}function X(e){return Q(e&&e.start)+"-"+Q(e&&e.end)}function J(e){return e&&"number"==typeof e?e:1}class Z extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=K(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="",Z.prototype.name="",Z.prototype.reason="",Z.prototype.message="",Z.prototype.stack="",Z.prototype.column=void 0,Z.prototype.line=void 0,Z.prototype.ancestors=void 0,Z.prototype.cause=void 0,Z.prototype.fatal=void 0,Z.prototype.place=void 0,Z.prototype.ruleId=void 0,Z.prototype.source=void 0;let Y={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,r){var i,l,o,a,u,f,p,h,d;let m,g,y,x,k,v,b,L,I,F,M;return"element"===t.type?(i=e,l=t,o=r,g=m=i.schema,"svg"===l.tagName.toLowerCase()&&"html"===m.space&&(i.schema=U),i.ancestors.push(l),y=eu(i,l.tagName,!1),x=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Y.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=S(t),r=t,i=c;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&A.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(E,T);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!E.test(e)){let n=e.replace(C,D);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=w}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,V.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Z("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Y.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?P[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&en.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(i,l),k=ea(i,l),et.has(l.tagName)&&(k=k.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&s(e.value):s(e))})),el(i,x,y,l),eo(x,k),i.ancestors.pop(),i.schema=m,i.create(l,y,x,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let r=t.data.estree.body[0];return n("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}es(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,u=t,f=r,b=v=a.schema,"svg"===u.name&&"html"===v.space&&(a.schema=U),a.ancestors.push(u),L=null===u.name?a.Fragment:eu(a,u.name,!0),I=function(e,t){let r={};for(let i of t.attributes)if("mdxJsxExpressionAttribute"===i.type)if(i.data&&i.data.estree&&e.evaluater){let t=i.data.estree.body[0];n("ExpressionStatement"===t.type);let l=t.expression;n("ObjectExpression"===l.type);let o=l.properties[0];n("SpreadElement"===o.type),Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else es(e,t.position);else{let l,o=i.name;if(i.value&&"object"==typeof i.value)if(i.value.data&&i.value.data.estree&&e.evaluater){let t=i.value.data.estree.body[0];n("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else es(e,t.position);else l=null===i.value||i.value;r[o]=l}return r}(a,u),F=ea(a,u),el(a,I,L,u),eo(I,F),a.ancestors.pop(),a.schema=v,a.create(u,L,I,f)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}(e,t):"root"===t.type?(p=e,h=t,d=r,eo(M={},ea(p,h)),p.create(h,p.Fragment,M,d)):"text"===t.type?t.value:void 0}function el(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++r<t.children.length;){let l,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=ei(e,o,l);void 0!==a&&n.push(a)}return n}function eu(e,t,r){let i;if(r)if(t.includes(".")){let e,r=t.split("."),l=-1;for(;++l<r.length;){let t=a(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(l&&"Literal"===t.type),optional:!1}:t}n(e,"always a result"),i=e}else i=a(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else i={type:"Literal",value:t};if("Literal"===i.type){let t=i.value;return Y.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);es(e)}function es(e,t){let n=new Z("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let ef={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ep=e.i(764556);let eh={};function ed(e,t){let n=t||eh;return em(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function em(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eg(e.children,t,n)}return Array.isArray(e)?eg(e,t,n):""}function eg(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=em(e[i],t,n);return r.join("")}function ey(e,t,n,r){let i,l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function ex(e,t){return e.length>0?(ey(e,e.length,0,t),e):t}let ek={}.hasOwnProperty;function ev(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ek.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){ek.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ey(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let eb=eM(/[A-Za-z]/),ew=eM(/[\dA-Za-z]/),eS=eM(/[#-'*+\--9=?A-Z^-~]/);function eC(e){return null!==e&&(e<32||127===e)}let eE=eM(/\d/),eA=eM(/[\dA-Fa-f]/),eD=eM(/[!-/:-@[-`{-~]/);function eT(e){return null!==e&&e<-2}function eP(e){return null!==e&&(e<0||32===e)}function eL(e){return -2===e||-1===e||32===e}let eI=eM(/\p{P}|\p{S}/u),eF=eM(/\s/);function eM(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eO(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return eL(r)?(e.enter(n),function r(o){return eL(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let ez={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eT(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eR={tokenize:function(e){let t,n,r,i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,u,s)(t)}return s(t)}function u(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return ey(i.events,l+1,0,i.events.slice(r)),i.events.length=a,s(e)}return a(e)}function s(n){if(o===l.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return d(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(ej,c,f)(n)}function c(e){return t&&y(),g(o),p(e)}function f(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,d(e)}function p(t){return i.containerState={},e.attempt(ej,h,d)(t)}function h(e){return o++,l.push([i.currentConstruct,i.containerState]),p(e)}function d(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eT(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(g(o),l=a;l<i.events.length;)i.events[l][1].end={...n},l++;ey(i.events,u+1,0,i.events.slice(a)),i.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},ej={tokenize:function(e,t,n){return eO(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},e_={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?eO(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eT(e)?t(e):n(e)}}};class eN{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eB(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eB(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eB(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eB(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eB(this.left,t.reverse())}}}function eB(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eH(e){let t,n,r,i,l,o,a,u={},s=-1,c=new eN(e);for(;++s<c.length;){for(;s in u;)s=u[s];if(t=c.get(s),s&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(s-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(u,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],u=i._tokenizer;!u&&(u=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));let s=u.events,c=[],f={},p=-1,h=i,d=0,m=0,g=[0];for(;h;){for(;e.get(++o)[1]!==h;);a.push(o),!h._tokenizer&&(n=l.sliceStream(h),h.next||n.push(null),r&&u.defineSkip(h.start),h._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(n),h._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(u.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){let t=s.slice(g[p],g[p+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)f[d+c[p][0]]=d+c[p][1],d+=c[p][1]-c[p][0]-1;return f}(c,s)),s=u[s],a=!0);else if(t[1]._container){for(r=s,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(l=c.slice(n,s)).unshift(t),c.splice(n,s-n+1,l))}}return ey(e,0,1/0,c.slice(0)),!a}let eU={resolve:function(e){return eH(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eT(t)?e.check(eV,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eV={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,i,"linePrefix")};function i(i){if(null===i||eT(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eq={tokenize:function(e){let t=this,n=e.attempt(e_,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eO(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eU,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eW={resolveAll:eX()},e$=eQ("string"),eK=eQ("text");function eQ(e){return{resolveAll:eX("text"===e?eJ:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return u(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eX(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eJ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,u=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)u++,a--;if(a)break;a=-1}else if(-2===e)r=!0,u++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){let l={type:n===e.length||r||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function eZ(e){return null===e||eP(e)||eF(e)?1:eI(e)?2:void 0}function eY(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let eG={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,a,u,s,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[c][1].start};e1(f,-a),e1(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[c][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ex(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ex(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=ex(u,eY(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=ex(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=ex(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,ey(e,n-1,c-n+3,u),c=n+u.length-s-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=eZ(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let u=e.exit("attentionSequence"),s=eZ(a),c=!s||2===s&&l||r.includes(a),f=!l||2===l&&s||r.includes(i);return u._open=!!(42===n?c:c&&(l||!f)),u._close=!!(42===n?f:f&&(s||!c)),t(a)}(o)}}};function e1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let e0={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eO(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(e0,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},e2={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eD(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e4=document.createElement("i");function e9(e){let t="&"+e+";";e4.innerHTML=t;let n=e4.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e3={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=ew,s(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eA,s):(e.enter("characterReferenceValue"),r=7,i=eE,s(t))}function s(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==ew||e9(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),s):n(a)}}},e5={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},e6={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),eL(t)?eO(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),eL(i)?eO(e,s,"whitespace")(i):s(i)):n(i)}(t)):n(t)}function s(r){return null===r||eT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l;let s;return l=t,o=(s=i.events[i.events.length-1])&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eL(i)?eO(e,u,"whitespace")(i):u(i))}(l)};function u(l){return null===l||eT(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(e5,c,d)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):eL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eO(e,s,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function s(t){return null===t||eT(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,d,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&eL(t)?eO(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||eT(t)?e.check(e5,c,d)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eT(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function d(n){return e.exit("codeFenced"),t(n)}}},e7={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eO(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):eT(n)?e.attempt(e8,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},e8={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eO(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):eT(e)?i(e):n(e)}}};function te(e,t,n,r,i,l,o,a,u){let s=u||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),f):null===t||32===t||41===t||eC(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(t))};function f(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eT(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(i){return!c&&(null===i||41===i||eP(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c<s&&40===i?(e.consume(i),c++,d):41===i?(e.consume(i),c--,d):null===i||32===i||40===i||eC(i)?n(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}function tt(e,t,n,r,i,l){let o,a=this,u=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),s};function s(f){return u>999||null===f||91===f||93===f&&!o||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eT(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eT(t)||u++>999?(e.exit("chunkString"),s(t)):(e.consume(t),o||(o=!eL(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function tn(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),u(n))}function u(t){return t===o?(e.exit(l),a(o)):null===t?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===o||null===t||eT(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return t===o||92===t?(e.consume(t),s):s(t)}}function tr(e,t){let n;return function r(i){return eT(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eL(i)?eO(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function ti(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tl={partial:!0,tokenize:function(e,t,n){return function(t){return eP(t)?tr(e,r)(t):n(t)};function r(t){return tn(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eL(t)?eO(e,l,"whitespace")(t):l(t)}function l(e){return null===e||eT(e)?t(e):n(e)}}},to=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ta=["pre","script","style","textarea"],tu={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_,t,n)}}},ts={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tc={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&ey(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let u={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return l=ex(l=[["enter",u,t],["enter",s,t]],e.slice(r+1,r+a+3)),l=ex(l,[["enter",c,t]]),l=ex(l,eY(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),l=ex(l,[["exit",c,t],e[i-2],e[i-1],["exit",s,t]]),l=ex(l,e.slice(i+1)),l=ex(l,[["exit",u,t]]),ey(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(ti(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tf,s,i?s:c)(t):91===t?e.attempt(tp,s,i?u:c)(t):i?s(t):c(t)}function u(t){return e.attempt(th,s,c)(t)}function s(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tf={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eP(t)?tr(e,i)(t):i(t)}function i(t){return 41===t?s(t):te(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return eP(t)?tr(e,a)(t):s(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?tn(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function u(t){return eP(t)?tr(e,s)(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tp={tokenize:function(e,t,n){let r=this;return function(t){return tt.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(ti(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},th={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},td={name:"labelStartImage",resolveAll:tc.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tm={name:"labelStartLink",resolveAll:tc.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tg={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eO(e,t,"linePrefix")}}},ty={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var o;return e.enter("thematicBreak"),r=o=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eL(n)?eO(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||eT(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},tx={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eO(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tv,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eO(e,e.attempt(tx,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eE(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ty,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eE(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(e_,r.interrupt?n:u,e.attempt(tk,c,s))}function u(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function s(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tk={partial:!0,tokenize:function(e,t,n){let r=this;return eO(e,function(e){let i=r.events[r.events.length-1];return!eL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tv={partial:!0,tokenize:function(e,t,n){let r=this;return eO(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tb={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){a="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eO(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||eT(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,tt.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=ti(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return eP(t)?tr(e,a)(t):a(t)}function a(t){return te(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(tl,s,s)(t)}function s(t){return eL(t)?eO(e,c,"whitespace")(t):c(t)}function c(l){return null===l||eT(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:tx,43:tx,45:tx,48:tx,49:tx,50:tx,51:tx,52:tx,53:tx,54:tx,55:tx,56:tx,57:tx,62:e0},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},ey(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||eP(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eT(r)?(e.exit("atxHeading"),t(r)):eL(r)?eO(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eP(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:ty,45:[tb,ty],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,a,u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,h):63===o?(e.consume(o),r=3,u.interrupt?t:F):eb(o)?(e.consume(o),l=String.fromCharCode(o),d):n(o)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,o=0,p):eb(i)?(e.consume(i),r=4,u.interrupt?t:F):n(i)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:F):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?u.interrupt?t:C:p:n(r)}function h(t){return eb(t)?(e.consume(t),l=String.fromCharCode(t),d):n(t)}function d(o){if(null===o||47===o||62===o||eP(o)){let a=47===o,s=l.toLowerCase();return!a&&!i&&ta.includes(s)?(r=1,u.interrupt?t(o):C(o)):to.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):u.interrupt?t(o):C(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):i?function t(n){return eL(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||ew(o)?(e.consume(o),l+=String.fromCharCode(o),d):n(o)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||eb(t)?(e.consume(t),y):eL(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||ew(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),k):eL(t)?(e.consume(t),x):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,v):eL(t)?(e.consume(t),k):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eP(n)?x(n):(e.consume(n),t)}(t)}function v(t){return t===a?(e.consume(t),a=null,b):null===t||eT(t)?n(t):(e.consume(t),v)}function b(e){return 47===e||62===e||eL(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eT(t)?C(t):eL(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),F):93===t&&5===r?(e.consume(t),I):eT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tu,O,E)(t)):null===t||eT(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(ts,A,O)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return null===t||eT(t)?E(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),F):C(t)}function P(t){return 47===t?(e.consume(t),l="",L):C(t)}function L(t){if(62===t){let n=l.toLowerCase();return ta.includes(n)?(e.consume(t),M):C(t)}return eb(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):C(t)}function I(t){return 93===t?(e.consume(t),F):C(t)}function F(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),F):C(t)}function M(t){return null===t||eT(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),M)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:tb,95:ty,96:e6,126:e6},"flowInitial",0,{[-2]:e7,[-1]:e7,32:e7},"insideSpan",0,{null:[eG,eW]},"string",0,{38:e3,92:e2},"text",0,{[-5]:tg,[-4]:tg,[-3]:tg,33:td,38:e3,42:eG,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eb(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||ew(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||ew(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eC(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),u):eS(t)?(e.consume(t),a):n(t)}function u(i){return ew(i)?function i(l){return 46===l?(e.consume(l),r=0,u):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||ew(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),v):63===t?(e.consume(t),x):eb(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),i=0,h):eb(t)?(e.consume(t),y):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eT(t)?(l=c,L(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?P(e):45===e?f(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?d:h):n(t)}function d(t){return null===t?n(t):93===t?(e.consume(t),m):eT(t)?(l=d,L(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),g):d(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):d(t)}function y(t){return null===t||62===t?P(t):eT(t)?(l=y,L(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),k):eT(t)?(l=x,L(t)):(e.consume(t),x)}function k(e){return 62===e?P(e):x(e)}function v(t){return eb(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||ew(t)?(e.consume(t),b):function t(n){return eT(n)?(l=t,L(n)):eL(n)?(e.consume(n),t):P(n)}(t)}function w(t){return 45===t||ew(t)?(e.consume(t),w):47===t||62===t||eP(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||eb(t)?(e.consume(t),C):eT(t)?(l=S,L(t)):eL(t)?(e.consume(t),S):P(t)}function C(t){return 45===t||46===t||58===t||95===t||ew(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):eT(n)?(l=t,L(n)):eL(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):eT(t)?(l=E,L(t)):eL(t)?(e.consume(t),E):(e.consume(t),D)}function A(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):eT(t)?(l=A,L(t)):(e.consume(t),A)}function D(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eP(t)?S(t):(e.consume(t),D)}function T(e){return 47===e||62===e||eP(e)?S(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return eL(t)?eO(e,F,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):F(t)}function F(t){return e.enter("htmlTextData"),l(t)}}}],91:tm,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e2],93:tc,95:eG,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(u){return null===u?n(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),o):96===u?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(u)):eT(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(u))}function a(t){return null===t||32===t||96===t||eT(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],119210);var tw=e.i(119210);let tS=/[\0\t\n\r]/g;function tC(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tA(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tC(n.slice(t?2:1),t?16:10)}return e9(n)||e}let tD={}.hasOwnProperty;function tT(e){return{line:e.line,column:e.column,offset:e.offset}}function tP(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is still open")}function tL(e){let t=this;t.parser=function(n){var r,i;let l,o,a,u;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:s,autolinkEmail:s,atxHeading:r(d),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:s,characterReference:s,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:s,data:s,codeFlowValue:s,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:s,htmlText:r(g,i),htmlTextData:s,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(x,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(x),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(d),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tC(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e9(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tT(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ti(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(f),hardBreakTrailing:o(f),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tE,tA),n.identifier=ti(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tT(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(s.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ti(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tD.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:a,buffer:i,resume:u,data:n},s=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?s.push(c):c=function(e,t,n){let r,i,l,o,a=t-1,u=-1,s=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?u++:u--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||u||l||(l=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",s=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,l=void 0,o=!0}}}return e[t][1]._spread=s,n}(e,s.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tD.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||tP).call(o,void 0,e[0])}for(r.position={start:tT(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tT(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tT(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tP).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): it’s not open");n.position.end=tT(e.end)}function u(){return ed(this.stack.pop())}function s(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tT(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tT(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function d(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!eH(e););return e}((function(e){let t={constructs:ev([tw,...(e||{}).extensions||[]]),content:n(ez),defined:[],document:n(eR),flow:n(eq),lazy:{},string:n(e$),text:n(eK)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],a=[],u={attempt:d(function(e,t){m(e,t.from)}),check:d(h),consume:function(e){eT(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),s.events.push(["enter",n,s]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),s.events.push(["exit",t,s]),t},interrupt:d(h,{interrupt:!0})},s={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(f(e),t)},sliceStream:f,write:function(e){return(o=ex(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),s.events=eY(l,s.events,s),s.events)}},c=t.tokenize.call(s,u);return t.resolveAll&&l.push(t),s;function f(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function h(e,t){t.restore()}function d(e,t){return function(n,i,l){var o;let c,f,h,d;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,f=0,0===e.length)?l:y(e[f])}function y(e){return function(n){let i,l,o,c,f;return(i=p(),l=s.previous,o=s.currentConstruct,c=s.events.length,f=Array.from(a),d={from:c,restore:function(){r=i,s.previous=l,s.currentConstruct=o,s.events.length=c,a=f,g()}},h=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?k(n):e.tokenize.call(t?Object.assign(Object.create(s),t):s,u,x,k)(n)}}function x(t){return e(h,d),i}function k(e){return(d.restore(),++f<c.length)?y(c[f]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&ey(s.events,t,s.events.length-t,e.resolve(s.events.slice(t),s)),e.resolveTo&&(s.events=e.resolveTo(s.events,s))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,a="",u=!0,function(e,t,n){let r,i,s,c,f,p=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),s=0,a="",u&&(65279===e.charCodeAt(0)&&s++,u=void 0);s<e.length;){if(tS.lastIndex=s,c=(r=tS.exec(e))&&void 0!==r.index?r.index:e.length,f=e.charCodeAt(c),!r){a=e.slice(s);break}if(10===f&&s===c&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),s<c&&(p.push(e.slice(s,c)),o+=c-s),f){case 0:p.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),p.push(-2);o++<i;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:l=!0,o=1}s=c+1}return n&&(l&&p.push(-5),a&&p.push(a),p.push(null)),p})(n,r,!0))))}}let tI="object"==typeof self?self:globalThis,tF=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,o]=e[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new tI[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new tI[l](o),i)})(0)},{toString:tM}={},{keys:tO}=Object,tz=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tM.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tR=([e,t])=>0===e&&("function"===t||"symbol"===t),tj=(e,{json:t,lossy:n}={})=>{var r,i,l;let o,a,u=[];return(r=!(t||n),i=!!t,l=new Map,o=(e,t)=>{let n=u.push(e)-1;return l.set(t,n),n},a=e=>{if(l.has(e))return l.get(e);let[t,n]=tz(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let l=[],u=o([t,l],e);for(let t of tO(e))(r||!tR(tz(e[t])))&&l.push([a(t),a(e[t])]);return u}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(tR(tz(t))||tR(tz(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!tR(tz(t)))&&n.push(a(t));return i}}let{message:u}=e;return o([t,{name:n,message:u}],e)})(e),u},t_="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tF(tj(e,t)):structuredClone(e):(e,t)=>tF(tj(e,t));function tN(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&ew(e.charCodeAt(n+1))&&ew(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tB(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tU=function(e){var t,n;if(null==e)return tq;if("function"==typeof e)return tV(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tU(e[n]);return tV(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tV(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tV(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tV(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tq(){return!0}let tW=[];function t$(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=tU(i),o=r?-1:1;(function e(i,a,u){let s=i&&"object"==typeof i?i:{};if("string"==typeof s.type){let e="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var s;let c,f,p,h=tW;if((!t||l(i,a,u[u.length-1]||void 0))&&!1===(h=Array.isArray(s=n(i,u))?s:"number"==typeof s?[!0,s]:null==s?tW:[s])[0])return h;if("children"in i&&i.children&&i.children&&"skip"!==h[0])for(f=(r?i.children.length:-1)+o,p=u.concat(i);f>-1&&f<i.children.length;){if(!1===(c=e(i.children[f],f,p)())[0])return c;f="number"==typeof c[1]?c[1]:f+o}return h}})(e,void 0,[])()}function tK(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),t$(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function tQ(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function tX(e){let t=e.spread;return null==t?e.children.length>1:t}function tJ(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tZ={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=tN(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tQ(e,t);let i={src:tN(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:tN(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tQ(e,t);let i={href:tN(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:tN(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tX(n[r])}return t}(n):tX(t),l={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let u=r[r.length-1];u&&(i||"element"!==u.type||"p"!==u.tagName)&&o.push({type:"text",value:"\n"});let s={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,s),e.applyData(t,s)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=W(t.children[1]),o=q(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,u=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let s={type:"element",tagName:i,properties:r,children:[]};n&&(s.children=e.all(n),e.patch(n,s),s=e.applyData(n,s)),u.push(s)}let s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,s),e.applyData(t,s)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(tJ(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(tJ(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tY,yaml:tY,definition:tY,footnoteDefinition:tY};function tY(){}let tG={}.hasOwnProperty,t1={};function t0(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function t2(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,t_(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t4(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function t9(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function t3(e,t){let r,i,l,o,a=(r=t||t1,i=new Map,l=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=t9(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=t9(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t2,definitionById:i,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tZ,...r.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(tG.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=t_(n);return r.children=o.all(e),r}return t_(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(tG.call(n,"hProperties")||tG.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:r,patch:t0,wrap:t4},tK(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?i:l,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o),u=a.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tB,r=e.options.footnoteBackLabel||tH,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],u=-1;for(;++u<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[u]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),s=tN(o.toLowerCase()),c=0,f=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=l[l.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else l.push(...f);let d={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(l,!0)};e.patch(i,d),a.push(d)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...t_(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(a),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&(n("children"in c),c.children.push({type:"text",value:"\n"},s)),c}function t5(e,t){return e&&"run"in e?async function(n,r){let i=t3(n,{file:r,...t});await e.run(i,r)}:function(n,r){return t3(n,{file:r,...e||t})}}function t6(e){if(e)throw e}var t7=e.i(975609);function t8(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let ne=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ni(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},nt=function(e){let t;if(ni(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nn=function(e){let t;ni(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},nr=function(...e){var t;let n,r,i,l=-1;for(;++l<e.length;)ni(e[l]),e[l]&&(i=void 0===i?e[l]:i+"/"+e[l]);return void 0===i?".":(ni(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",l=0,o=-1,a=0,u=-1;for(;++u<=e.length;){if(u<e.length)n=e.codePointAt(u);else if(47===n)break;else n=47;if(47===n){if(o===u-1||1===a);else if(o!==u-1&&2===a){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=u,a=0;continue}}else if(i.length>0){i="",l=0,o=u,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),l=u-o-1;o=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function ni(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nl(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let no=["history","path","basename","stem","extname","dirname"];class na{constructor(e){let t,n;t=e?nl(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<no.length;){const e=no[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)no.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ne(this.path):void 0}set basename(e){ns(e,"basename"),nu(e,"basename"),this.path=nr(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nt(this.path):void 0}set dirname(e){nc(this.basename,"dirname"),this.path=nr(e||"",this.basename)}get extname(){return"string"==typeof this.path?nn(this.path):void 0}set extname(e){if(nu(e,"extname"),nc(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nr(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nl(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nl(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ns(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ne(this.path,this.extname):void 0}set stem(e){ns(e,"stem"),nu(e,"stem"),this.path=nr(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Z(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nu(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function ns(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nc(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nf=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},np={}.hasOwnProperty;class nh extends nf{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...o){let a=e[++n],u=-1;if(l)return void r(l);for(;++u<t.length;)(null===o[u]||void 0===o[u])&&(o[u]=t[u]);t=o,a?(function(e,t){let n;return function(...t){let l,o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nh,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,t7.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(ny("data",this.frozen),this.namespace[e]=t,this):np.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ny("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nv(e),n=this.parser||this.Parser;return nm("parse",n),n(String(t),t)}process(e,t){let r=this;return this.freeze(),nm("process",this.parser||this.Parser),ng("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,l){let o=nv(e),a=r.parse(o);function u(e,r){e||!r?l(e):i?i(r):(n(t,"`done` is defined if `resolve` is not"),t(void 0,r))}r.run(a,o,function(e,t,n){var i,l;if(e||!t||!n)return u(e);let o=r.stringify(t,n);"string"==typeof(i=o)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?n.value=o:n.result=o,u(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),nm("processSync",this.parser||this.Parser),ng("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,t6(e),t=n}),nk("processSync","process",r),n(t,"we either bailed on an error or have a tree"),t}run(e,t,r){nx(e),this.freeze();let i=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(l,o){n("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let a=nv(t);i.run(e,a,function(t,i,a){let u=i||e;t?o(t):l?l(u):(n(r,"`done` is defined if `resolve` is not"),r(void 0,u,a))})}}runSync(e,t){let r,i=!1;return this.run(e,t,function(e,t){t6(e),r=t,i=!0}),nk("runSync","run",i),n(r,"we either bailed on an error or have a tree"),r}stringify(e,t){this.freeze();let n=nv(t),r=this.compiler||this.Compiler;return ng("stringify",r),nx(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ny("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=(0,t7.default)(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];t8(o)&&t8(r)&&(r=(0,t7.default)(!0,o,r)),n[i]=[e,r,...l]}}}}let nd=new nh().freeze();function nm(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function ng(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ny(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nx(e){if(!t8(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nk(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nv(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new na(e)}let nb=[],nw={allowDangerousHtml:!0},nS=/^(https?|ircs?|mailto|xmpp)$/i,nC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nE(e){var n;let i,l,o,a,u,s=(i=(n=e).rehypePlugins||nb,l=n.remarkPlugins||nb,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...nw}:nw,nd().use(tL).use(l).use(t5,o).use(i)),c=(a=e.children||"",u=new na,"string"==typeof a?u.value=a:r("Unexpected value `"+a+"` for `children` prop, expected `string`"),u);return function(e,n){let i=n.allowedElements,l=n.allowElement,o=n.components,a=n.disallowedElements,u=n.skipHtml,s=n.unwrapDisallowed,c=n.urlTransform||nA;for(let e of nC)Object.hasOwn(n,e.from)&&r("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return i&&a&&r("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),tK(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return u?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!a&&a.includes(e.tagName);if(!r&&l&&"number"==typeof t&&(r=!l(e,t,n)),r&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=W(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?U:H,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(u,e,void 0);return s&&"string"!=typeof s?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}(e,{Fragment:t.Fragment,components:o,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(c),c),e)}function nA(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nS.test(e.slice(0,t))?e:""}function nD(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let nT="phrasing",nP=["autolink","link","image","label"];function nL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nI(e){this.config.enter.autolinkProtocol.call(this,e)}function nF(e){this.config.exit.autolinkProtocol.call(this,e)}function nM(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];n("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function nO(e){this.config.exit.autolinkEmail.call(this,e)}function nz(e){this.exit(e)}function nR(e){!function(e,t,n){let r=tU((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)t$(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],a=0,u=n.children.indexOf(e),s=!1,c=[];r.lastIndex=0;let f=r.exec(e.value);for(;f;){let n=f.index,i={index:f.index,input:f.input,stack:[...t,e]},l=o(...f,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),a=n+f[0].length,s=!0),!r.global)break;f=r.exec(e.value)}return s?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(u,1,...c)):c=[e],u+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nj],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,n_]],{ignore:["link","linkReference"]})}function nj(e,t,n,r,i){let l,o="";if(!nN(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=nD(e,"("),l=nD(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!a[0])return!1;let u={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[u,{type:"text",value:a[1]}]:u}function n_(e,t,n,r){return!(!nN(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nN(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||eF(n)||eI(n))&&(!t||47!==n)}function nB(){this.buffer()}function nH(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nU(){this.buffer()}function nV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nq(e){let t=this.resume(),r=this.stack[this.stack.length-1];n("footnoteReference"===r.type),r.identifier=ti(this.sliceSerialize(e)).toLowerCase(),r.label=t}function nW(e){this.exit(e)}function n$(e){let t=this.resume(),r=this.stack[this.stack.length-1];n("footnoteDefinition"===r.type),r.identifier=ti(this.sliceSerialize(e)).toLowerCase(),r.label=t}function nK(e){this.exit(e)}function nQ(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]")}function nX(e,t,n){return 0===t?e:nJ(e,t,n)}function nJ(e,t,n){return(n?"":" ")+e}nQ.peek=function(){return"["};let nZ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function nY(e){this.enter({type:"delete",children:[]},e)}function nG(e){this.exit(e)}function n1(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function n0(e){return e.length}function n2(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}n1.peek=function(){return"~"};function n4(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}n4.peek=function(){return"`"};tU(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let n9=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return u(),s};function n3(e){let t=e._align;n(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function n5(e){this.exit(e),this.data.inTable=void 0}function n6(e){this.enter({type:"tableRow",children:[]},e)}function n7(e){this.exit(e)}function n8(e){this.enter({type:"tableCell",children:[]},e)}function re(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rt));let r=this.stack[this.stack.length-1];n("inlineCode"===r.type),r.value=t,this.exit(e)}function rt(e,t){return"|"===t?t:e}function rn(e){let t=this.stack[this.stack.length-2];n("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function rr(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];n("paragraph"===e.type);let r=e.children[0];if(r&&"text"===r.type){let n,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){n=e;break}}n===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ri(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let u=n9(e,t,n,{...r,...a.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),u}let rl={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},ro={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(ru,u,a)(t):null===t||eP(t)||eF(t)||45!==t&&eI(t)?u(t):(l=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function u(e){return i||r||!l?n(e):t(e)}},partial:!0},ra={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(ru,t,l)(o):null===o||eP(o)||eF(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ru={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||eP(o)||eF(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||eP(e)||eF(e)?t(e):r(e)}function l(t){return eb(t)?function t(i){return 59===i?(e.consume(i),r):eb(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rs={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ew(e)?n(e):t(e)}},partial:!0},rc={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rm.call(r,r.previous)||rk(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rl,e.attempt(ro,e.attempt(ra,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rm},rf={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&rg.call(r,r.previous)&&!rk(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(eb(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),l)?u:(l=!0,a):n(t)}function u(t){return null===t||eC(t)||eP(t)||eF(t)||eI(t)?n(t):e.attempt(ro,e.attempt(ra,s),n)(t)}function s(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rg},rp={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!rx(t)||!ry.call(l,l.previous)||rk(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rx(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(rs,u,a)(t):45===t||95===t||ew(t)?(i=!0,e.consume(t),o):u(t)}function a(t){return e.consume(t),r=!0,o}function u(o){return i&&r&&eb(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:ry},rh={},rd=48;for(;rd<123;)rh[rd]=rp,58==++rd?rd=65:91===rd&&(rd=97);function rm(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||eP(e)}function rg(e){return!eb(e)}function ry(e){return!(47===e||rx(e))}function rx(e){return 43===e||45===e||46===e||95===e||ew(e)}function rk(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rh[43]=rp,rh[45]=rp,rh[46]=rp,rh[95]=rp,rh[72]=[rp,rf],rh[104]=[rp,rf],rh[87]=[rp,rc],rh[119]=[rp,rc];let rv={tokenize:function(e,t,n){let r=this;return eO(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rb(e,t,n){let r,i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=ti(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function rw(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function rS(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(a){if(o>999||93===a&&!r||null===a||91===a||eP(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(ti(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return eP(a)||(r=!0),o++,e.consume(a),92===a?s:u}function s(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}}function rC(e,t,n){let r,i,l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",s):n(t)}function s(t){if(a>999||93===t&&!i||null===t||91===t||eP(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=ti(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return eP(t)||(i=!0),a++,e.consume(t),92===t?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),eO(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function rE(e,t,n){return e.check(e_,t,e.attempt(rv,t,n))}function rA(e){e.exit("gfmFootnoteDefinition")}class rD{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rT(e,t,n){let r,i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?x:a;return l===x&&i.parser.lazy[i.now().line]?n(e):l(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),u(n)}function u(t){return null===t?n(t):eT(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):eL(t)?eO(e,u,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),s(t))}function s(t){return null===t||124===t||eP(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return 92===t||124===t?(e.consume(t),s):s(t)}function f(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,eL(t))?eO(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?d(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return eL(t)?eO(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||eT(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return eL(t)?eO(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return p(i);if(null===i||eT(i))return r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function x(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||eT(n)?(e.exit("tableRow"),t(n)):eL(n)?eO(e,k,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||eP(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?b:v)}function b(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function rP(e,t){let n,r,i,l=-1,o=!0,a=0,u=[0,0,0,0],s=[0,0,0,0],c=!1,f=0,p=new rD;for(;++l<e.length;){let h=e[l],d=h[1];"enter"===h[0]?"tableHead"===d.type?(c=!1,0!==f&&(rI(p,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(l,0,[["enter",n,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(o=!0,i=void 0,u=[0,0,0,0],s=[0,l+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===d.type?2:r?3:1):a&&("data"===d.type||"tableDelimiterMarker"===d.type||"tableDelimiterFiller"===d.type)?(o=!1,0===s[2]&&(0!==u[1]&&(s[0]=s[1],i=rL(p,t,u,a,void 0,i),u=[0,0,0,0]),s[2]=l)):"tableCellDivider"===d.type&&(o?o=!1:(0!==u[1]&&(s[0]=s[1],i=rL(p,t,u,a,void 0,i)),s=[(u=s)[1],l,0,0])):"tableHead"===d.type?(c=!0,f=l):"tableRow"===d.type||"tableDelimiterRow"===d.type?(f=l,0!==u[1]?(s[0]=s[1],i=rL(p,t,u,a,l,i)):0!==s[1]&&(i=rL(p,t,s,a,l,i)),a=0):a&&("data"===d.type||"tableDelimiterMarker"===d.type||"tableDelimiterFiller"===d.type)&&(s[3]=l)}for(0!==f&&rI(p,t,f,n,r),p.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function rL(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},rF(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=rF(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=rF(t.events,n[2]),l=rF(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},rF(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function rI(e,t,n,r,i){let l=[],o=rF(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function rF(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rM={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return eP(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return eT(r)?t(r):eL(r)?e.check({tokenize:rO},t,n)(r):n(r)}}};function rO(e,t,n){return eO(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rz={};function rR(e){let t,n,r,i=e||rz,l=this.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(ev([{text:rh},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rC,continuation:{tokenize:rE},exit:rA}},text:{91:{name:"gfmFootnoteCall",tokenize:rS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rb,resolveTo:rw}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let u=eZ(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let s=e.exit("strikethroughSequenceTemporary"),c=eZ(a);return s._open=!c||2===c&&!!u,s._close=!u||2===u&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&ey(o,o.length,0,eY(a,e.slice(r+1,n),t)),ey(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ey(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:rT,resolveAll:rP}}},{text:{91:rM}}])),a.push([{transforms:[nR],enter:{literalAutolink:nL,literalAutolinkEmail:nI,literalAutolinkHttp:nI,literalAutolinkWww:nI},exit:{literalAutolink:nz,literalAutolinkEmail:nO,literalAutolinkHttp:nF,literalAutolinkWww:nM}},{enter:{gfmFootnoteCallString:nB,gfmFootnoteCall:nH,gfmFootnoteDefinitionLabelString:nU,gfmFootnoteDefinition:nV},exit:{gfmFootnoteCallString:nq,gfmFootnoteCall:nW,gfmFootnoteDefinitionLabelString:n$,gfmFootnoteDefinition:nK}},{canContainEols:["delete"],enter:{strikethrough:nY},exit:{strikethrough:nG}},{enter:{table:n3,tableData:n8,tableHeader:n8,tableRow:n6},exit:{codeText:re,table:n5,tableData:n7,tableHeader:n7,tableRow:n7}},{exit:{taskListCheckValueChecked:rn,taskListCheckValueUnchecked:rn,paragraph:rr}}]),u.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nT,notInConstruct:nP},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nT,notInConstruct:nP},{character:":",before:"[ps]",after:"\\/",inConstruct:nT,notInConstruct:nP}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let l=n.createTracker(i),o=l.move("[^"),a=n.enter("footnoteDefinition"),u=n.enter("label");return o+=l.move(n.safe(n.associationId(e),{before:o,after:"]"})),u(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),r?nJ:nX))),a(),o},footnoteReference:nQ},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nZ}],handlers:{delete:n1}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=n4(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=u(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=a([u(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||n0,l=[],o=[],a=[],u=[],s=0,c=-1;for(;++c<e.length;){let t=[],r=[],l=-1;for(e[c].length>s&&(s=e[c].length);++l<e[c].length;){var f;let o=null==(f=e[c][l])?"":String(f);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===u[l]||e>u[l])&&(u[l]=e)}t.push(o)}o[c]=t,a[c]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<s;)l[p]=n2(r[p]);else{let e=n2(r);for(;++p<s;)l[p]=e}p=-1;let h=[],d=[];for(;++p<s;){let e=l[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,u[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>u[p]&&(u[p]=i),d[p]=i),h[p]=o}o.splice(1,0,h),a.splice(1,0,d),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=a[c];p=-1;let r=[];for(;++p<s;){let i=e[p]||"",o="",a="";if(!1!==n.alignDelimiters){let e=u[p]-(t[p]||0),n=l[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=o=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==s-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return a(),l}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ri}}]})}var rj=e.i(691223);let r_={pre:({children:e})=>(0,t.jsx)("pre",{className:"bg-background/50 rounded-md p-3 overflow-x-auto text-xs my-2",children:e}),code:({className:e,children:n,...r})=>e?(0,t.jsx)("code",{className:e,...r,children:n}):(0,t.jsx)("code",{className:"bg-background/50 px-1 py-0.5 rounded text-xs font-mono",...r,children:n}),p:({children:e})=>(0,t.jsx)("p",{className:"mb-2 last:mb-0",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"list-disc pl-4 mb-2 space-y-1",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"list-decimal pl-4 mb-2 space-y-1",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"text-sm",children:e}),h1:({children:e})=>(0,t.jsx)("h1",{className:"text-lg font-bold mb-2",children:e}),h2:({children:e})=>(0,t.jsx)("h2",{className:"text-base font-bold mb-2",children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:"text-sm font-bold mb-1",children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{className:"border-l-2 border-muted-foreground/30 pl-3 my-2 text-muted-foreground",children:e}),table:({children:e})=>(0,t.jsx)("div",{className:"overflow-x-auto my-2",children:(0,t.jsx)("table",{className:"text-xs border-collapse",children:e})}),th:({children:e})=>(0,t.jsx)("th",{className:"border border-muted px-2 py-1 bg-muted/50 font-semibold text-left",children:e}),td:({children:e})=>(0,t.jsx)("td",{className:"border border-muted px-2 py-1",children:e})};e.s(["Markdown",0,function({content:e,workspaceId:n}){let r=(0,rj.useEditorStore)(e=>e.openFile),i=(0,rj.useEditorStore)(e=>e.jumpToPosition),l=(0,ep.useCallback)(async(e,t)=>{let l;if(e.preventDefault(),!n)return;let{path:o,line:a,column:u}=(l=t.match(/^(.+?)(?::(\d+))?(?::(\d+))?$/))?{path:l[1],line:l[2]?parseInt(l[2]):void 0,column:l[3]?parseInt(l[3]):void 0}:{path:t};await r(n,o),a&&await i(n,o,a,u)},[n,r,i]),o={...r_,a:({href:e,children:r})=>e&&n&&!(!e.startsWith("/")||e.startsWith("//")||e.startsWith("/api/"))&&1?(0,t.jsx)("a",{href:e,onClick:t=>l(t,e),className:"text-primary underline hover:no-underline cursor-pointer",children:r}):(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline hover:no-underline",children:r})};return(0,t.jsx)("div",{className:"break-all",children:(0,t.jsx)(nE,{remarkPlugins:[rR],components:o,children:e})})}],555060)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,816709,e=>{"use strict";var t=e.i(764556);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>l,subscribe:e=>(r.add(e),()=>r.delete(e))},l=t=e(n,i,a);return a},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i};e.s(["create",0,e=>e?n(e):n],816709)},433721,e=>{"use strict";var t=e.i(764556);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.createContext)({}),l=(0,t.forwardRef)(({color:e,size:n,strokeWidth:l,absoluteStrokeWidth:o,className:s="",children:u,iconNode:d,...c},f)=>{let{size:v=24,strokeWidth:p=2,absoluteStrokeWidth:b=!1,color:m="currentColor",className:g=""}=(0,t.useContext)(a)??{},y=o??b?24*Number(l??p)/Number(n??v):l??p;return(0,t.createElement)("svg",{ref:f,...i,width:n??v??i.width,height:n??v??i.height,stroke:e??m,strokeWidth:y,className:r("lucide",g,s),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,(e,i)=>{let a=(0,t.forwardRef)(({className:a,...o},s)=>(0,t.createElement)(l,{ref:s,iconNode:i,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...o}));return a.displayName=n(e),a}],433721)},250226,e=>{"use strict";let t=(0,e.i(816709).create)(e=>({activePanel:"channel-list",setActivePanel:t=>e({activePanel:t}),overlays:[],registerOverlay:(t,r,n)=>e(e=>{if(n?.ignoreBack)return e;let i=e.overlays.findIndex(e=>e.id===t);if(-1===i)return{overlays:[...e.overlays,{id:t,close:r}]};let a=[...e.overlays];return a[i]={id:t,close:r},{overlays:a}}),unregisterOverlay:t=>e(e=>({overlays:e.overlays.filter(e=>e.id!==t)})),handleBackAction:()=>{let{overlays:r,activePanel:n}=t.getState(),i=r[r.length-1];return i?(i.close(),!0):"issue-detail"===n?(e({activePanel:"issue-list"}),!0):"chat"===n&&(e({activePanel:"channel-list"}),!0)}}));e.s(["useMobilePanelStore",0,t])},46752,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},370383,e=>{"use strict";var t=e.i(46752);let r={};function n(e){return l(e)?{...o(e,r)}:function(e){let t={...e};for(let e in t){let r=t[e];a(e,r)&&(t[e]=s(r))}return t}(e)}function i(e,r){return l(r)?o(r,e):function(e,r){if(!r)return e;for(let n in r){let i=r[n];switch(n){case"style":e[n]=(0,t.mergeObjects)(e.style,i);break;case"className":e[n]=d(e.className,i);break;default:a(n,i)?e[n]=function(e,t){return t?e?(...r)=>{let n=r[0];if(c(n)){u(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:s(t):e}(e[n],i):e[n]=i}}return e}(e,r)}function a(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function l(e){return"function"==typeof e}function o(e,t){return l(e)?e(t):e??r}function s(e){return e?(...t)=>{let r=t[0];return c(r)&&u(r),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function d(e,t){return t?e?t+" "+e:t:e}function c(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,d,"mergeProps",0,function(e,t,r,a,l){if(!r&&!a&&!l&&!e)return n(t);let o=n(e);return t&&(o=i(o,t)),r&&(o=i(o,r)),a&&(o=i(o,a)),l&&(o=i(o,l)),o},"mergePropsN",0,function(e){if(0===e.length)return r;if(1===e.length)return n(e[0]);let t=n(e[0]);for(let r=1;r<e.length;r+=1)t=i(t,e[r]);return t}])},267805,e=>{"use strict";let t=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["default",0,t])},549154,e=>{"use strict";var t=e.i(764556);let r={};e.s(["useRefWithInit",0,function(e,n){let i=t.useRef(r);return i.current===r&&(i.current=e(n)),i}])},204133,557576,287997,e=>{"use strict";var t=e.i(549154);function r(){return{callback:null,cleanup:null,refs:[]}}function n(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["useMergedRefs",0,function(e,i,a,l){var o,s,u,d,c;let f=(0,t.useRefWithInit)(r).current;return o=f,s=e,u=i,d=a,c=l,(o.refs[0]!==s||o.refs[1]!==u||o.refs[2]!==d||o.refs[3]!==c)&&n(f,[e,i,a,l]),f.callback},"useMergedRefsN",0,function(e){var i,a;let l=(0,t.useRefWithInit)(r).current;return i=l,a=e,(i.refs.length!==a.length||i.refs.some((e,t)=>e!==a[t]))&&n(l,e),l.callback}],204133);var i=e.i(764556);let a=parseInt(i.version,10);function l(e){return a>=e}e.s(["isReactVersionAtLeast",0,l],557576),e.s(["getReactElementRef",0,function(e){if(!i.isValidElement(e))return null;let t=e.props;return(l(19)?t?.ref:e.ref)??null}],287997)},873535,e=>{"use strict";e.s(["warn",0,function(){}])},863728,e=>{"use strict";let t=Object.freeze([]),r=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,r,"NOOP",0,function(){}])},662614,807719,880566,e=>{"use strict";e.s(["getStateAttributesProps",0,function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}],662614),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],807719),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],880566)},969490,e=>{"use strict";var t=e.i(267805),r=e.i(764556),n=e.i(204133),i=e.i(287997),a=e.i(46752);e.i(873535);var l=e.i(863728),o=e.i(662614),s=e.i(807719),u=e.i(880566),d=e.i(370383);let c=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,f,v={}){let p=f.render,b=function(e,t={}){var r;let{className:c,style:f,render:v}=e,{state:p=l.EMPTY_OBJECT,ref:b,props:m,stateAttributesMapping:g,enabled:y=!0}=t,h=y?(0,s.resolveClassName)(c,p):void 0,C=y?(0,u.resolveStyle)(f,p):void 0,E=y?(0,o.getStateAttributesProps)(p,g):l.EMPTY_OBJECT,x=y&&m?Array.isArray(r=m)?(0,d.mergePropsN)(r):(0,d.mergeProps)(void 0,r):void 0,R=y?(0,a.mergeObjects)(E,x)??{}:l.EMPTY_OBJECT;return("u">typeof document&&(y?Array.isArray(b)?R.ref=(0,n.useMergedRefsN)([R.ref,(0,i.getReactElementRef)(v),...b]):R.ref=(0,n.useMergedRefs)(R.ref,(0,i.getReactElementRef)(v),b):(0,n.useMergedRefs)(null,null)),y)?(void 0!==h&&(R.className=(0,d.mergeClassNames)(R.className,h)),void 0!==C&&(R.style=(0,a.mergeObjects)(R.style,C)),R):l.EMPTY_OBJECT}(f,v);return!1===v.enabled?null:function(e,n,i,a){if(n){if("function"==typeof n)return n(i,a);let e=(0,d.mergeProps)(i,n.props);e.ref=i.ref;let t=n;return t?.$$typeof===c&&(t=r.Children.toArray(n)[0]),r.cloneElement(t,e)}if(e&&"string"==typeof e){var l,o;return l=e,o=i,"button"===l?(0,r.createElement)("button",{type:"button",...o,key:o.key}):"img"===l?(0,r.createElement)("img",{alt:"",...o,key:o.key}):r.createElement(l,o)}throw Error((0,t.default)(8))}(e,p,b,v.state??l.EMPTY_OBJECT)}])},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>i=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:l,defaultVariants:o}=t,s=Object.keys(l).map(e=>{let t=null==i?void 0:i[e],n=null==o?void 0:o[e];if(null===t)return null;let a=r(t)||r(n);return l[e][a]}),u=i&&Object.entries(i).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,s,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},92615,e=>{"use strict";let t;function r(){return"u">typeof window}function n(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function o(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function c(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let f=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,p=e=>!!e&&"none"!==e;function b(e){let t=o(e)?y(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!m()&&(p(t.backdropFilter)||p(t.filter))||f.test(t.willChange||"")||v.test(t.contain||"")}function m(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function g(e){return/^(html|body|#document)$/.test(n(e))}function y(e){return i(e).getComputedStyle(e)}function h(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||a(e);return u(t)?t.host:t}function C(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,y,"getContainingBlock",0,function(e){let t=h(e);for(;s(t)&&!g(t);){if(b(t))return t;if(c(t))break;t=h(t)}return null},"getDocumentElement",0,a,"getFrameElement",0,C,"getNodeName",0,n,"getNodeScroll",0,function(e){return o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,r,n){var a;void 0===r&&(r=[]),void 0===n&&(n=!0);let l=function e(t){let r=h(t);return g(r)?t.ownerDocument?t.ownerDocument.body:t.body:s(r)&&d(r)?r:e(r)}(t),o=l===(null==(a=t.ownerDocument)?void 0:a.body),u=i(l);if(!o)return r.concat(l,e(l,[],n));{let t=C(u);return r.concat(u,u.visualViewport||[],d(l)?l:[],t&&n?e(t):[])}},"getParentNode",0,h,"getWindow",0,i,"isContainingBlock",0,b,"isElement",0,o,"isHTMLElement",0,s,"isLastTraversableNode",0,g,"isNode",0,l,"isOverflowElement",0,d,"isShadowRoot",0,u,"isTableElement",0,function(e){return/^(table|td|th)$/.test(n(e))},"isTopLayer",0,c,"isWebKit",0,m])},29905,e=>{"use strict";var t=e.i(764556),r=e.i(549154);let n=t[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],i=n&&n!==t.useLayoutEffect?n:e=>e();function a(){let e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){}e.s(["useStableCallback",0,function(e){let t=(0,r.useRefWithInit)(a).current;return t.next=e,i(t.effect),t.trampoline}])},277642,e=>{"use strict";var t=e.i(764556);let r="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,r])},931709,352360,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(92615),n=e.i(29905),i=e.i(277642),a=e.i(370383),l=e.i(267805);let o=t.createContext(void 0);function s(e=!1){let r=t.useContext(o);if(void 0===r&&!e)throw Error((0,l.default)(16));return r}function u(e){return(0,r.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,s],352360),e.s(["useButton",0,function(e={}){let{disabled:r=!1,focusableWhenDisabled:l,tabIndex:o=0,native:d=!0,composite:c}=e,f=t.useRef(null),v=s(!0),p=c??void 0!==v,{props:b}=function(e){let{focusableWhenDisabled:r,disabled:n,composite:i=!1,tabIndex:a=0,isNativeButton:l}=e,o=i&&!1!==r,s=i&&!1===r;return{props:t.useMemo(()=>{let e={onKeyDown(e){n&&r&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=a,!l&&n&&(e.tabIndex=r?a:-1)),(l&&(r||o)||!l&&n)&&(e["aria-disabled"]=n),l&&(!r||s)&&(e.disabled=n),e},[i,n,r,o,s,l,a])}}({focusableWhenDisabled:l,disabled:r,composite:p,tabIndex:o,isNativeButton:d}),m=t.useCallback(()=>{let e=f.current;u(e)&&p&&r&&void 0===b.disabled&&e.disabled&&(e.disabled=!1)},[r,b.disabled,p]);return(0,i.useIsoLayoutEffect)(m,[m]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:i,onKeyDown:l,onPointerDown:o,...s}=e,c=d?"button":void 0;return(0,a.mergeProps)({type:c,onClick(e){r?e.preventDefault():t?.(e)},onMouseDown(e){r||n?.(e)},onKeyDown(e){var n;if(r||((0,a.makeEventPreventable)(e),l?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,o=e.currentTarget,s=u(o),c=!d&&(n=o,!!(n?.tagName==="A"&&n?.href)),f=i&&(d?s:!c),v="Enter"===e.key,b=" "===e.key,m=o.getAttribute("role"),g=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(i&&p&&b){if(e.defaultPrevented&&g)return;e.preventDefault(),c||d&&s?(o.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!d&&(b||v)&&e.preventDefault(),!d&&v&&t?.(e))},onKeyUp(e){r||(((0,a.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&d&&p&&u(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||p||" "!==e.key||t?.(e)))},onPointerDown(e){r?e.preventDefault():o?.(e)}},d?void 0:{role:"button"},b,s)},[r,b,p,d]),buttonRef:(0,n.useStableCallback)(e=>{f.current=e,m()})}}],931709)},674548,e=>{"use strict";var t=e.i(764556),r=e.i(931709),n=e.i(969490);let i=t.forwardRef(function(e,t){let{render:i,className:a,disabled:l=!1,focusableWhenDisabled:o=!1,nativeButton:s=!0,style:u,...d}=e,{getButtonProps:c,buttonRef:f}=(0,r.useButton)({disabled:l,focusableWhenDisabled:o,native:s});return(0,n.useRenderElement)("button",e,{state:{disabled:l},ref:[t,f],props:[d,c]})});e.s(["Button",0,i])},260218,e=>{"use strict";var t=e.i(344180),r=e.i(674548),n=e.i(294237),i=e.i(465458);let a=(0,n.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:n="default",size:l="default",...o}){return(0,t.jsx)(r.Button,{"data-slot":"button",className:(0,i.cn)(a({variant:n,size:l,className:e})),...o})},"buttonVariants",0,a])},394822,e=>{"use strict";var t=e.i(764556);let r={...t},n=0,i=r.useId;e.s(["useId",0,function(e,r){if(void 0!==i){let t=i();return e??(r?`${r}-${t}`:t)}return function(e,r="mui"){let[i,a]=t.useState(e),l=e||i;return t.useEffect(()=>{null==i&&(n+=1,a(`${r}-${n}`))},[i,r]),l}(e,r)}],394822)},139236,e=>{"use strict";var t=e.i(394822);e.s(["useBaseUiId",0,function(e){return(0,t.useId)(e,"base-ui")}])},130522,e=>{"use strict";var t=e.i(764556);let r=[];e.s(["useOnMount",0,function(e){t.useEffect(e,r)}])},232449,e=>{"use strict";var t=e.i(549154),r=e.i(130522);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},410421,e=>{"use strict";var t=e.i(92615);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,r){if(!e||!r)return!1;let n=r.getRootNode?.();if(e.contains(r))return!0;if(n&&(0,t.isShadowRoot)(n)){let t=r;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},422561,e=>{"use strict";e.s(["addEventListener",0,function(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}])},454889,e=>{"use strict";let t="u">typeof navigator,r=function(){if(!t)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),n=function(){if(!t)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),i=function(){if(!t)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),a="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),l="MacIntel"===r.platform&&r.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(r.platform);t&&/firefox/i.test(i);let o=t&&/apple/i.test(navigator.vendor);t&&/Edg/i.test(i);let s=t&&/android/i.test(n)||/android/i.test(i),u=t&&n.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,d=i.includes("jsdom/");e.s(["isAndroid",0,s,"isIOS",0,l,"isJSDOM",0,d,"isMac",0,u,"isSafari",0,o,"isWebKit",0,a])},636707,e=>{"use strict";e.s([])},125231,438904,e=>{"use strict";e.i(8890);var t,r=e.i(267805),n=e.i(764556),i=e.i(863728);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...o};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,o,"DEFAULT_VALIDITY_STATE",0,l,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],438904);let u=n.createContext({invalid:void 0,name:void 0,validityData:{state:l,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:o.touched,setTouched:i.NOOP,dirty:o.dirty,setDirty:i.NOOP,filled:o.filled,setFilled:i.NOOP,focused:o.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],125231)},50891,e=>{"use strict";var t=e.i(267805),r=e.i(764556);let n=r.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});e.s(["useFieldsetRootContext",0,function(e=!1){let i=r.useContext(n);if(!i&&!e)throw Error((0,t.default)(86));return i}])},380414,443124,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(863728);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}],380414);let i=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,i,"useLabelableContext",0,function(){return t.useContext(i)}],443124)},84987,593947,2602,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(29905),n=e.i(125231),i=e.i(438904),a=e.i(50891),l=e.i(380414),o=e.i(549154),s=e.i(370383),u=e.i(139236),d=e.i(443124),c=e.i(344180);let f=function(e){let n=(0,u.useBaseUiId)(),i=void 0===e.controlId?n:e.controlId,[a,l]=t.useState(i),[f,v]=t.useState(e.labelId),[p,b]=t.useState([]),m=(0,o.useRefWithInit)(()=>new Map),{messageIds:g}=(0,d.useLabelableContext)(),y=(0,r.useStableCallback)((e,t)=>{let r=m.current;void 0===t?r.delete(e):(r.set(e,t),l(e=>{let t;if(0!==r.size){for(let n of r.values()){if(void 0!==e&&n===e)return e;void 0===t&&(t=n)}return t}}))}),h=t.useCallback(e=>(0,s.mergeProps)({"aria-describedby":g.concat(p).join(" ")||void 0},e),[g,p]),C=t.useMemo(()=>({controlId:a,registerControlId:y,labelId:f,setLabelId:v,messageIds:p,setMessageIds:b,getDescriptionProps:h}),[a,y,f,v,p,b,h]);return(0,c.jsx)(d.LabelableContext.Provider,{value:C,children:e.children})};e.s(["LabelableProvider",0,f],593947);var v=e.i(969490),p=e.i(863728),b=e.i(232449);function m(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,m],2602);let g=Object.keys(i.DEFAULT_VALIDITY_STATE);var y=e.i(106206),h=e.i(277642);let C=t.forwardRef(function(e,o){let{errors:u,validationMode:f,submitAttemptedRef:C}=(0,l.useFormContext)(),{render:E,className:x,validate:R,validationDebounceTime:T=0,validationMode:k=f,name:I,disabled:S=!1,invalid:w,dirty:P,touched:O,actionsRef:L,style:M,...A}=e,{disabled:D}=(0,a.useFieldsetRootContext)(),N=(0,r.useStableCallback)(R||(()=>null)),F=D||S,[V,j]=t.useState(!1),[B,_]=t.useState(!1),[U,z]=t.useState(!1),[$,W]=t.useState(!1),Y=P??B,H=O??V,J=t.useRef(!1),K=(0,r.useStableCallback)(e=>{void 0===P&&(e&&(J.current=!0),_(e))}),Z=(0,r.useStableCallback)(e=>{void 0===O&&j(e)}),X=(0,r.useStableCallback)(()=>"onChange"===k||"onSubmit"===k&&C.current),q=!!I&&Object.hasOwn(u,I)&&void 0!==u[I],G=!0===w||q,[Q,ee]=t.useState({state:i.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!G&&Q.state.valid,er=t.useMemo(()=>({disabled:F,touched:H,dirty:Y,valid:et,filled:U,focused:$}),[F,H,Y,et,U,$]),en=function(e){let{formRef:n,clearErrors:a}=(0,l.useFormContext)(),{setValidityData:o,validate:u,validityData:c,validationDebounceTime:f,invalid:v,markedDirtyRef:y,state:h,name:C,shouldValidateOnChange:E}=e,{controlId:x,getDescriptionProps:R}=(0,d.useLabelableContext)(),T=(0,b.useTimeout)(),k=t.useRef(null),I=(0,r.useStableCallback)(async(e,t=!1)=>{let r,a=k.current;if(!a)return;if(t){if(!1!==h.valid)return;let t=a.validity;if(!t.valueMissing){let t={value:e,state:{...i.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:c.initialValue};if(a.setCustomValidity(""),x){let e=n.current.fields.get(x);e&&n.current.fields.set(x,{...e,...m(t,!1)})}o(t);return}let r=g.reduce((e,r)=>(e[r]=t[r],e),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let r of g)"valid"!==r&&("valueMissing"===r&&(t=e[r]),e[r]&&(t=!1));return t}(r))return}T.clear();let l=null,s=[],d=function(e){let t=g.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of g)if("valid"!==e){if("valueMissing"===e&&t[e])r=!0;else if(t[e])return t}return r&&!y.current&&(t.valid=!0,t.valueMissing=!1),t}(a),f=E();if(a.validationMessage&&!f)r=a.validationMessage,s=[a.validationMessage];else{let t=u(e,Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(l="object"==typeof t&&null!==t&&"then"in t?await t:t)?(d.valid=!1,d.customError=!0,Array.isArray(l)?(s=l,a.setCustomValidity(l.join("\n"))):l&&(s=[l],a.setCustomValidity(l))):f&&(a.setCustomValidity(""),d.customError=!1,a.validationMessage?(r=a.validationMessage,s=[a.validationMessage]):a.validity.valid&&!d.valid&&(d.valid=!0))}let p={value:e,state:d,error:r??(Array.isArray(l)?l[0]:l??""),errors:s,initialValue:c.initialValue};if(x){let e=n.current.fields.get(x);e&&n.current.fields.set(x,{...e,...m(p,v)})}o(p)}),S=t.useCallback((e={})=>(0,s.mergeProps)(R,!1===h.valid?{"aria-invalid":!0}:p.EMPTY_OBJECT,e),[R,h.valid]),w=t.useCallback((e={})=>(0,s.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(a(C),!E())return void I(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?I(t.value):(T.clear(),f?T.start(f,()=>{I(t.value)}):I(t.value))}},S(e)),[S,a,C,T,I,f,E]);return t.useMemo(()=>({getValidationProps:S,getInputValidationProps:w,inputRef:k,commit:I}),[S,w,I])}({setValidityData:ee,validate:N,validityData:Q,validationDebounceTime:T,invalid:G,markedDirtyRef:J,state:er,name:I,shouldValidateOnChange:X}),ei=t.useCallback(()=>{J.current=!0,en.commit(Q.value)},[en,Q]),ea=function(e){let{commit:n,invalid:i,markedDirtyRef:a,name:o,setValidityData:s,validityData:u}=e,{formRef:d}=(0,l.useFormContext)(),c=t.useRef(null),f=t.useRef(null),v=t.useRef(null),p=(0,r.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),b=(0,r.useStableCallback)((e=!0)=>{let t=f.current;if(!t)return;let r=t.value;void 0===r&&(r=p()),a.current=!0,e?y.flushSync(()=>n(r)):n(r)});function g(e=f.current?.id){e&&d.current.fields.delete(e)}return(0,h.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&d.current.fields.set(e.id,{getValue:p,name:o,controlRef:e.controlRef??v,validityData:m(u,i),validate:b})},[d,p,i,o,b,u]),(0,h.useIsoLayoutEffect)(()=>{let e=d.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[d]),(0,r.useStableCallback)((e,t)=>{let r;if(!t){c.current===e&&(c.current=null,g(),f.current=null);return}let n=f.current?.id;c.current=e,f.current=t,n&&n!==t.id&&g(n),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=p()),null===u.initialValue&&null!==t&&s(e=>({...e,initialValue:t}))}(),(r=f.current)&&r.id&&d.current.fields.set(r.id,{getValue:p,name:o,controlRef:r.controlRef??v,validityData:m(u,i),validate:b})})}({commit:en.commit,invalid:G,markedDirtyRef:J,name:I,setValidityData:ee,validityData:Q});t.useImperativeHandle(L,()=>({validate:ei}),[ei]);let el=t.useMemo(()=>({invalid:G,name:I,validityData:Q,setValidityData:ee,disabled:F,touched:H,setTouched:Z,dirty:Y,setDirty:K,filled:U,setFilled:z,focused:$,setFocused:W,validate:N,validationMode:k,validationDebounceTime:T,shouldValidateOnChange:X,state:er,markedDirtyRef:J,registerFieldControl:ea,validation:en}),[G,I,Q,F,H,Z,Y,K,U,z,$,W,N,k,T,X,er,ea,en]),eo=(0,v.useRenderElement)("div",e,{ref:o,state:er,props:A,stateAttributesMapping:i.fieldValidityMapping});return(0,c.jsx)(n.FieldRootContext.Provider,{value:el,children:eo})}),E=t.forwardRef(function(e,t){return(0,c.jsx)(f,{children:(0,c.jsx)(C,{...e,ref:t})})});e.s(["FieldRoot",0,E],84987)},559713,e=>{"use strict";var t=e.i(277642),r=e.i(139236);e.s(["useRegisteredLabelId",0,function(e,n){let i=(0,r.useBaseUiId)(e);return(0,t.useIsoLayoutEffect)(()=>(n(i),()=>{n(void 0)}),[i,n]),i}])},262407,213700,987854,781406,e=>{"use strict";e.i(8890);var t=e.i(764556),r=e.i(125231),n=e.i(438904),i=e.i(969490),a=e.i(443124),l=e.i(92615),o=e.i(526850),s=e.i(29905),u=e.i(410421),d=e.i(559713);function c(e={}){let{id:t,fallbackControlId:r,native:n=!1,setLabelId:i,focusControl:v}=e,{controlId:p,setLabelId:b}=(0,a.useLabelableContext)(),m=(0,s.useStableCallback)(e=>{b(e),i?.(e)}),g=(0,d.useRegisteredLabelId)(t,m),y=p??r;function h(e){let t=(0,u.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),n||function(e){if(v)return v(e,y);if(!y)return;let t=(0,o.ownerDocument)(e.currentTarget).getElementById(y);(0,l.isHTMLElement)(t)&&f(t)}(e))}return n?{id:g,htmlFor:y??void 0,onMouseDown:h}:{id:g,onClick:h,onPointerDown(e){e.preventDefault()}}}function f(e){e.focus({focusVisible:!0})}e.s(["focusElementWithVisible",0,f,"useLabel",0,c],213700);let v=t.forwardRef(function(e,l){let{render:o,className:s,style:u,id:d,nativeLabel:f=!0,...v}=e,p=(0,r.useFieldRootContext)(!1),{labelId:b}=(0,a.useLabelableContext)(),m=t.useRef(null),g=c({id:b??d,native:f});return(0,i.useRenderElement)("label",e,{ref:[l,m],state:p.state,props:[g,v],stateAttributesMapping:n.fieldValidityMapping})});e.s(["FieldLabel",0,v],262407);var p=e.i(277642),b=e.i(380414),m=e.i(139236),g=e.i(273598),y=e.i(282458),h=e.i(254891),C=e.i(344180);let E={...n.fieldValidityMapping,...y.transitionStatusMapping},x=t.forwardRef(function(e,n){let{render:l,id:o,className:s,match:u,style:d,...c}=e,f=(0,m.useBaseUiId)(o),{validityData:v,state:y,name:x}=(0,r.useFieldRootContext)(!1),{setMessageIds:R}=(0,a.useLabelableContext)(),{errors:T}=(0,b.useFormContext)(),k=x?T[x]:null,I="string"==typeof u,S=!1;S=!0===u||(I?!!v.state[u]:!!k||!1===v.state.valid);let{mounted:w,transitionStatus:P,setMounted:O}=(0,h.useTransitionStatus)(S);(0,p.useIsoLayoutEffect)(()=>{if(S&&f)return R(e=>e.concat(f)),()=>{R(e=>e.filter(e=>e!==f))}},[S,f,R]);let L=t.useRef(null),[M,A]=t.useState(null),[D,N]=t.useState(null),F=v.errors.length>1?(0,C.jsx)("ul",{children:v.errors.map(e=>(0,C.jsx)("li",{children:e},e))}):v.error,V=I?F:k||F,j=v.error;null!=k?j=Array.isArray(k)?JSON.stringify(k):k:v.errors.length>1&&(j=JSON.stringify(v.errors)),S&&j!==D&&(N(j),A(V)),(0,g.useOpenChangeComplete)({open:S,ref:L,onComplete(){S||O(!1)}});let B={...y,transitionStatus:P},_=(0,i.useRenderElement)("div",e,{ref:[n,L],state:B,props:[{id:f,children:S?V:M},c],stateAttributesMapping:E,enabled:w});return w?_:null});e.s(["FieldError",0,x],987854);let R=t.forwardRef(function(e,t){let{render:l,id:o,className:s,style:u,...d}=e,c=(0,m.useBaseUiId)(o),f=(0,r.useFieldRootContext)(!1),{setMessageIds:v}=(0,a.useLabelableContext)();return(0,p.useIsoLayoutEffect)(()=>{if(c)return v(e=>e.concat(c)),()=>{v(e=>e.filter(e=>e!==c))}},[c,v]),(0,i.useRenderElement)("p",e,{ref:t,state:f.state,props:[{id:c},d],stateAttributesMapping:n.fieldValidityMapping})});e.s(["FieldDescription",0,R],781406)},975698,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(125231);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:a=!0,getValue:l,id:o,value:s}=i,{registerFieldControl:u}=(0,n.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&a)return u(t,{controlRef:e,getValue:l,id:o,value:s}),()=>{u(t,void 0)}},[e,a,l,o,u,s])}])},575665,e=>{"use strict";var t=e.i(764556),r=e.i(277642),n=e.i(29905),i=e.i(549154),a=e.i(92615),l=e.i(863728),o=e.i(139236),s=e.i(443124);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:d=!1,controlRef:c}=e,{controlId:f,registerControlId:v}=(0,s.useLabelableContext)(),p=(0,o.useBaseUiId)(u),b=d?f:void 0,m=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),g=t.useRef(!1),y=t.useRef(null!=u),h=(0,n.useStableCallback)(()=>{g.current&&v!==l.NOOP&&(g.current=!1,v(m.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(v!==l.NOOP){if(d){let t=c?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:b??p}else if(null!=u)y.current=!0,e=u;else{if(!y.current)return void h();e=p}if(void 0===e)return void h();g.current=!0,v(m.current,e)}},[u,c,b,v,d,p,m,h]),t.useEffect(()=>h,[h]),f??p}])},681622,e=>{"use strict";var t=e.i(344180),r=e.i(764556);e.i(8890),e.i(636707);var n=e.i(84987),i=e.i(262407),a=e.i(987854),l=e.i(781406),o=e.i(535270),s=e.i(277642),u=e.i(526850),d=e.i(29905),c=e.i(125231),f=e.i(975698),v=e.i(443124),p=e.i(575665),b=e.i(438904),m=e.i(969490),g=e.i(602453),y=e.i(742665),h=e.i(410421);let C=r.forwardRef(function(e,t){let{render:n,className:i,id:a,name:l,value:C,disabled:E=!1,onValueChange:x,defaultValue:R,autoFocus:T=!1,style:k,...I}=e,{state:S,name:w,disabled:P,setTouched:O,setDirty:L,validityData:M,setFocused:A,setFilled:D,validationMode:N,validation:F}=(0,c.useFieldRootContext)(),V=P||E,j={...S,disabled:V},{labelId:B}=(0,v.useLabelableContext)(),_=(0,p.useLabelableId)({id:a});(0,s.useIsoLayoutEffect)(()=>{let e=null!=C;F.inputRef.current?.value||e&&""!==C?D(!0):e&&""===C&&D(!1)},[F.inputRef,D,C]);let U=r.useRef(null);(0,s.useIsoLayoutEffect)(()=>{T&&U.current===(0,h.activeElement)((0,u.ownerDocument)(U.current))&&A(!0)},[T,A]);let[z]=(0,o.useControlled)({controlled:C,default:R,name:"FieldControl",state:"value"}),$=void 0!==C,W=$?z:void 0,Y=(0,d.useStableCallback)(()=>F.inputRef.current?.value);return(0,f.useRegisterFieldControl)(F.inputRef,{id:_,value:W,getValue:Y}),(0,m.useRenderElement)("input",e,{ref:[t,U],state:j,props:[{id:_,disabled:V,name:w??l,ref:F.inputRef,"aria-labelledby":B,autoFocus:T,...$?{value:W}:{defaultValue:R},onChange(e){let t=e.currentTarget.value;x?.(t,(0,g.createChangeEventDetails)(y.REASONS.none,e.nativeEvent)),L(t!==M.initialValue),D(""!==t)},onFocus(){A(!0)},onBlur(e){O(!0),A(!1),"onBlur"===N&&F.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(O(!0),F.commit(e.currentTarget.value))}},F.getInputValidationProps(),I],stateAttributesMapping:b.fieldValidityMapping})});var E=e.i(2602),x=e.i(254891);let R=r.createContext({disabled:!1});var T=e.i(593947),k=e.i(267805);let I=r.createContext(void 0),S=r.forwardRef(function(e,n){let{render:i,className:a,style:l,disabled:o=!1,...s}=e,{state:u,disabled:d}=(0,c.useFieldRootContext)(!1),f=d||o,v=function(e=!0){let t=r.useContext(I);if(void 0===t&&!e)throw Error((0,k.default)(3));return t}(),p=v?.parent.id,g=v?.allValues!==void 0,y=r.useMemo(()=>({disabled:f}),[f]),h=(0,m.useRenderElement)("div",e,{ref:n,state:u,props:s,stateAttributesMapping:b.fieldValidityMapping});return(0,t.jsx)(T.LabelableProvider,{controlId:g?p:void 0,children:(0,t.jsx)(R.Provider,{value:y,children:h})})});e.s(["Control",0,C,"Description",()=>l.FieldDescription,"Error",()=>a.FieldError,"Item",0,S,"Label",()=>i.FieldLabel,"Root",()=>n.FieldRoot,"Validity",0,function(e){let{children:n}=e,{validityData:i,invalid:a}=(0,c.useFieldRootContext)(!1),l=r.useMemo(()=>(0,E.getCombinedFieldValidityData)(i,a),[i,a]),o=!1===l.state.valid,{transitionStatus:s}=(0,x.useTransitionStatus)(o),u=r.useMemo(()=>({...l,validity:l.state,transitionStatus:s}),[l,s]);return(0,t.jsx)(r.Fragment,{children:n(u)})}],906646);var w=e.i(906646),w=w;let P=r.forwardRef(function(e,r){return(0,t.jsx)(w.Control,{ref:r,...e})});var O=e.i(465458);e.s(["Input",0,function({className:e,type:n,onKeyDown:i,...a}){let l=r.useRef(!1),o=r.useCallback(()=>{l.current=!0},[]),s=r.useCallback(()=>{l.current=!1},[]),u=r.useCallback(e=>{if("Enter"===e.key&&l.current){e.preventDefault(),e.stopPropagation();return}i?.(e)},[i]);return(0,t.jsx)(P,{type:n,"data-slot":"input",className:(0,O.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),onCompositionStart:o,onCompositionEnd:s,onKeyDown:u,...a})}],681622)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,144988,e=>{"use strict";let t=(0,e.i(433721).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["default",0,t])},193251,e=>{"use strict";let t=(0,e.i(433721).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],193251)},984178,e=>{"use strict";var t=e.i(144988);e.s(["FileIcon",()=>t.default])},460578,e=>{"use strict";var t=e.i(344180),n=e.i(764556),i=e.i(898822),r=e.i(129981),a=e.i(972846),l=e.i(984178),o=e.i(465458);let s=0;e.s(["FileUpload",0,function({value:e=[],onChange:u,accept:c,maxFiles:d=0,maxSize:f,disabled:p=!1,className:b,placeholder:g}){let[h,v]=(0,n.useState)(null),m=(0,n.useCallback)((t,n)=>{if(v(null),n.length>0){let e=n[0].errors[0]?.message;e&&v(e)}if(0===t.length)return;let i=t.map(e=>{let t={id:`upload-${++s}`,file:e};return e.type.startsWith("image/")&&(t.preview=URL.createObjectURL(e)),t}),r=d>0?[...e,...i].slice(0,d):[...e,...i];u?.(r)},[e,u,d]),x=(0,n.useCallback)(t=>{let n=e.find(e=>e.id===t);n?.preview&&URL.revokeObjectURL(n.preview),u?.(e.filter(e=>e.id!==t))},[e,u]),{getRootProps:y,getInputProps:C,isDragActive:R}=(0,i.useDropzone)({onDrop:m,accept:c,maxFiles:d||void 0,maxSize:f,disabled:p,noClick:!1});return(0,t.jsxs)("div",{className:(0,o.cn)("space-y-3",b),children:[(0,t.jsxs)("div",{...y(),className:(0,o.cn)("relative flex flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-6 py-8 transition-colors cursor-pointer",R?"border-primary bg-primary/5":"border-border hover:border-primary/50 hover:bg-accent/50",p&&"pointer-events-none opacity-50"),children:[(0,t.jsx)("input",{...C()}),(0,t.jsx)(r.Upload,{className:"size-8 text-muted-foreground"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:g??(R?"松开即可上传":"拖拽文件到此处,或点击选择")}),!R&&(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["支持多文件",f?`,单文件最大 ${(f/1024/1024).toFixed(0)}MB`:""]})]})]}),h&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:h}),e.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>{var n;return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2 overflow-hidden",children:[e.preview?(0,t.jsx)("img",{src:e.preview,alt:"",className:"size-10 rounded-md object-cover"}):(0,t.jsx)("div",{className:"flex size-10 items-center justify-center rounded-md bg-muted",children:(0,t.jsx)(l.FileIcon,{className:"size-5 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm",children:e.file.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(n=e.file.size)<1024?`${n} B`:n<1048576?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`})]}),(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),x(e.id)},className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors",children:(0,t.jsx)(a.X,{className:"size-4 text-muted-foreground"})})]},e.id)})})]})}])},790766,e=>{"use strict";e.s([])},257295,619279,415279,439485,e=>{"use strict";var t,n,i=e.i(764556),r=e.i(535270),a=e.i(277642),l=e.i(29905),o=e.i(139236),s=e.i(602453),u=e.i(742665),c=e.i(427708),d=e.i(254891);e.s(["useCollapsibleRoot",0,function(e){let{open:t,defaultOpen:n,onOpenChange:f,disabled:p}=e,b=void 0!==t,[g,h]=(0,r.useControlled)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:v,setMounted:m,transitionStatus:x}=(0,d.useTransitionStatus)(g,!0,!0),[y,C]=i.useState(g),[{height:R,width:S},E]=i.useState({height:void 0,width:void 0}),A=(0,o.useBaseUiId)(),[I,M]=i.useState(),T=I??A,[w,O]=i.useState(!1),[k,D]=i.useState(!1),N=i.useRef(null),L=i.useRef(null),P=i.useRef(null),j=i.useRef(null),W=(0,c.useAnimationsFinished)(j,!1),_=(0,l.useStableCallback)(e=>{let t=!g,n=(0,s.createChangeEventDetails)(u.REASONS.triggerPress,e.nativeEvent);if(f(t,n),n.isCanceled)return;let i=j.current;"css-animation"===L.current&&null!=i&&i.style.removeProperty("animation-name"),w||k||(null!=L.current&&"css-animation"!==L.current&&!v&&t&&m(!0),"css-animation"===L.current&&(!y&&t&&C(!0),!v&&t&&m(!0))),h(t),"none"===L.current&&v&&!t&&m(!1)});return(0,a.useIsoLayoutEffect)(()=>{b&&"none"===L.current&&!g&&m(!1)},[b,g,t,m]),i.useMemo(()=>({abortControllerRef:N,animationTypeRef:L,disabled:p,handleTrigger:_,height:R,mounted:v,open:g,panelId:T,panelRef:j,runOnceAnimationsFinish:W,setDimensions:E,setHiddenUntilFound:O,setKeepMounted:D,setMounted:m,setOpen:h,setPanelIdState:M,setVisible:C,transitionDimensionRef:P,transitionStatus:x,visible:y,width:S}),[N,L,p,_,R,v,g,T,j,W,E,O,D,m,h,C,P,x,y,S])}],257295),e.i(8890);var f=e.i(267805);let p=i.createContext(void 0);e.s(["CollapsibleRootContext",0,p,"useCollapsibleRootContext",0,function(){let e=i.useContext(p);if(void 0===e)throw Error((0,f.default)(15));return e}],619279);var b=e.i(282458);let g=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=b.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=b.TransitionStatusDataAttributes.endingStyle]="endingStyle",t);e.s(["CollapsiblePanelDataAttributes",0,g],415279);let h=((n={}).panelOpen="data-panel-open",n),v={[g.open]:""},m={[g.closed]:""};e.s(["collapsibleOpenStateMapping",0,{open:e=>e?v:m},"triggerOpenStateMapping",0,{open:e=>e?{[h.panelOpen]:""}:null}],439485)},998723,406899,134319,e=>{"use strict";e.i(8890);var t=e.i(764556),n=e.i(29905),i=e.i(969490),r=e.i(257295),a=e.i(619279),l=e.i(439485),o=e.i(282458);let s={...l.collapsibleOpenStateMapping,...o.transitionStatusMapping};e.s(["collapsibleStateAttributesMapping",0,s],406899);var u=e.i(344180);let c=t.forwardRef(function(e,l){let{render:o,className:c,defaultOpen:d=!1,disabled:f=!1,onOpenChange:p,open:b,style:g,...h}=e,v=(0,n.useStableCallback)(p),m=(0,r.useCollapsibleRoot)({open:b,defaultOpen:d,onOpenChange:v,disabled:f}),x=t.useMemo(()=>({open:m.open,disabled:m.disabled,transitionStatus:m.transitionStatus}),[m.open,m.disabled,m.transitionStatus]),y=t.useMemo(()=>({...m,onOpenChange:v,state:x}),[m,v,x]),C=(0,i.useRenderElement)("div",e,{state:x,ref:l,props:h,stateAttributesMapping:s});return(0,u.jsx)(a.CollapsibleRootContext.Provider,{value:y,children:C})});e.s(["CollapsibleRoot",0,c],998723);var d=e.i(931709);let f={...l.triggerOpenStateMapping,...o.transitionStatusMapping},p=t.forwardRef(function(e,n){let{panelId:r,open:l,handleTrigger:o,state:s,disabled:u}=(0,a.useCollapsibleRootContext)(),{className:c,disabled:p=u,id:b,render:g,nativeButton:h=!0,style:v,...m}=e,{getButtonProps:x,buttonRef:y}=(0,d.useButton)({disabled:p,focusableWhenDisabled:!0,native:h}),C=t.useMemo(()=>({"aria-controls":l?r:void 0,"aria-expanded":l,onClick:o}),[r,l,o]);return(0,i.useRenderElement)("button",e,{state:s,ref:[n,y],props:[C,m,x],stateAttributesMapping:f})});e.s(["CollapsibleTrigger",0,p],134319)},18158,e=>{"use strict";e.i(8890);var t,n=e.i(764556),i=e.i(422561),r=e.i(277642),a=e.i(29905),l=e.i(204133),o=e.i(130522),s=e.i(859092),u=e.i(602453),c=e.i(742665),d=e.i(415279);let f=((t={}).disabled="data-disabled",t.orientation="data-orientation",t);e.s(["useCollapsiblePanel",0,function(e){let{abortControllerRef:t,animationTypeRef:p,externalRef:b,height:g,hiddenUntilFound:h,keepMounted:v,id:m,mounted:x,onOpenChange:y,open:C,panelRef:R,runOnceAnimationsFinish:S,setDimensions:E,setMounted:A,setOpen:I,setVisible:M,transitionDimensionRef:T,visible:w,width:O}=e,k=n.useRef(!1),D=n.useRef(null),N=n.useRef(C),L=n.useRef(C),P=(0,s.useAnimationFrame)(),j=n.useMemo(()=>"css-animation"===p.current?!w:!C&&!x,[C,x,w,p]),W=(0,a.useStableCallback)(e=>{if(!e)return;if(null==p.current||null==T.current){let t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,i="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&i||("none"===t.animationName&&"0s"!==t.transitionDuration?p.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?p.current="css-animation":p.current="none"),"horizontal"===e.getAttribute(f.orientation)||t.transitionProperty.indexOf("width")>-1?T.current="width":T.current="height"}if("css-transition"!==p.current)return;(void 0===g||void 0===O)&&(E({height:e.scrollHeight,width:e.scrollWidth}),L.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=s.AnimationFrame.request(()=>{L.current=!1,n=s.AnimationFrame.request(()=>{setTimeout(()=>{e.style.removeProperty("transition-duration")})})}),()=>{s.AnimationFrame.cancel(t),s.AnimationFrame.cancel(n)}}),_=(0,l.useMergedRefs)(b,R,W);return(0,r.useIsoLayoutEffect)(()=>{if("css-transition"!==p.current)return;let e=R.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),C){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")}),L.current||v||e.setAttribute(d.CollapsiblePanelDataAttributes.startingStyle,""),E({height:e.scrollHeight,width:e.scrollWidth}),n=s.AnimationFrame.request(()=>{Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(0===e.scrollHeight&&0===e.scrollWidth)return;E({height:e.scrollHeight,width:e.scrollWidth});let n=new AbortController;t.current=n;let i=n.signal,r=null,a=d.CollapsiblePanelDataAttributes.endingStyle;return(r=new MutationObserver(l=>{l.some(e=>"attributes"===e.type&&e.attributeName===a)&&(r?.disconnect(),r=null,S(()=>{E({height:0,width:0}),e.style.removeProperty("content-visibility"),A(!1),t.current===n&&(t.current=null)},i))})).observe(e,{attributes:!0,attributeFilter:[a]}),()=>{r?.disconnect(),P.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{s.AnimationFrame.cancel(n)}},[t,p,P,h,v,x,C,R,S,E,A]),(0,r.useIsoLayoutEffect)(()=>{if("css-animation"!==p.current)return;let e=R.current;e&&(D.current=e.style.animationName||D.current,e.style.setProperty("animation-name","none"),E({height:e.scrollHeight,width:e.scrollWidth}),N.current||k.current||e.style.removeProperty("animation-name"),C?(null!=t.current&&(t.current.abort(),t.current=null),A(!0),M(!0)):(t.current=new AbortController,S(()=>{A(!1),M(!1),t.current=null},t.current.signal)))},[t,p,C,R,S,E,A,M,w]),(0,o.useOnMount)(()=>{let e=s.AnimationFrame.request(()=>{N.current=!1});return()=>s.AnimationFrame.cancel(e)}),(0,r.useIsoLayoutEffect)(()=>{if(!h)return;let e=R.current;if(!e)return;let t=-1,n=-1;return C&&k.current&&(e.style.transitionDuration="0s",E({height:e.scrollHeight,width:e.scrollWidth}),t=s.AnimationFrame.request(()=>{k.current=!1,n=s.AnimationFrame.request(()=>{setTimeout(()=>{e.style.removeProperty("transition-duration")})})})),()=>{s.AnimationFrame.cancel(t),s.AnimationFrame.cancel(n)}},[h,C,R,E]),(0,r.useIsoLayoutEffect)(()=>{let e=R.current;e&&h&&j&&(e.setAttribute("hidden","until-found"),"css-transition"===p.current&&e.setAttribute(d.CollapsiblePanelDataAttributes.startingStyle,""))},[h,j,p,R]),n.useEffect(function(){let e=R.current;if(e)return(0,i.addEventListener)(e,"beforematch",function(e){k.current=!0,I(!0),y(!0,(0,u.createChangeEventDetails)(c.REASONS.none,e))})},[y,R,I]),n.useMemo(()=>({props:{hidden:j,id:m,ref:_}}),[j,m,_])}],18158)},256186,e=>{"use strict";var t,n=e.i(344180);e.i(790766);var i=e.i(998723),r=e.i(134319);e.i(8890);var a=e.i(764556),l=e.i(277642),o=e.i(969490),s=e.i(619279),u=e.i(406899),c=e.i(18158);let d=((t={}).collapsiblePanelHeight="--collapsible-panel-height",t.collapsiblePanelWidth="--collapsible-panel-width",t);var f=e.i(273598);let p=a.forwardRef(function(e,t){let{className:n,hiddenUntilFound:i,keepMounted:r,render:p,id:b,style:g,...h}=e,{abortControllerRef:v,animationTypeRef:m,height:x,mounted:y,onOpenChange:C,open:R,panelId:S,panelRef:E,runOnceAnimationsFinish:A,setDimensions:I,setHiddenUntilFound:M,setKeepMounted:T,setMounted:w,setPanelIdState:O,setOpen:k,setVisible:D,state:N,transitionDimensionRef:L,visible:P,width:j,transitionStatus:W}=(0,s.useCollapsibleRootContext)(),_=i??!1,z=r??!1;(0,l.useIsoLayoutEffect)(()=>{if(b)return O(b),()=>{O(void 0)}},[b,O]),(0,l.useIsoLayoutEffect)(()=>{M(_)},[M,_]),(0,l.useIsoLayoutEffect)(()=>{T(z)},[T,z]);let{props:F}=(0,c.useCollapsiblePanel)({abortControllerRef:v,animationTypeRef:m,externalRef:t,height:x,hiddenUntilFound:_,id:S,keepMounted:z,mounted:y,onOpenChange:C,open:R,panelRef:E,runOnceAnimationsFinish:A,setDimensions:I,setMounted:w,setOpen:k,setVisible:D,transitionDimensionRef:L,visible:P,width:j});(0,f.useOpenChangeComplete)({open:R&&"idle"===W,ref:E,onComplete(){R&&I({height:void 0,width:void 0})}});let H=a.useMemo(()=>({...N,transitionStatus:W}),[N,W]),B=(0,o.useRenderElement)("div",e,{state:H,ref:[t,E],props:[F,{style:{[d.collapsiblePanelHeight]:void 0===x?"auto":`${x}px`,[d.collapsiblePanelWidth]:void 0===j?"auto":`${j}px`}},h],stateAttributesMapping:u.collapsibleStateAttributesMapping});return z||_||y?B:null});e.s(["Panel",0,p,"Root",()=>i.CollapsibleRoot,"Trigger",()=>r.CollapsibleTrigger],917853);var b=e.i(917853),b=b;e.s(["Collapsible",0,function({...e}){return(0,n.jsx)(b.Root,{"data-slot":"collapsible",...e})},"CollapsibleContent",0,function({...e}){return(0,n.jsx)(b.Panel,{"data-slot":"collapsible-content",...e})},"CollapsibleTrigger",0,function({...e}){return(0,n.jsx)(b.Trigger,{"data-slot":"collapsible-trigger",...e})}],256186)},383171,415955,e=>{"use strict";var t=e.i(220336);e.s(["FolderIcon",()=>t.default],383171);var n=e.i(680422);e.s(["FolderOpenIcon",()=>n.default],415955)},517432,e=>{"use strict";var t=e.i(56032),n=e.i(863728);function i(){return n.NOOP}function r(){return!1}function a(){return!0}e.s(["useIsHydrating",0,function(){return(0,t.useSyncExternalStore)(i,r,a)}])},9174,e=>{"use strict";e.s(["ACTIVE_COMPOSITE_ITEM",0,"data-composite-item-active"])},568769,e=>{"use strict";e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},972308,e=>{"use strict";var t=e.i(764556),n=e.i(863728),i=e.i(756432),r=e.i(568769),a=e.i(29905),l=e.i(204133),o=e.i(100229),s=e.i(877580),u=e.i(9174),c=e.i(410421);let d=[];var f=e.i(352360),p=e.i(969490),b=e.i(189131),g=e.i(344180);e.s(["CompositeRoot",0,function(e){let{render:h,className:v,style:m,refs:x=n.EMPTY_ARRAY,props:y=n.EMPTY_ARRAY,state:C=n.EMPTY_OBJECT,stateAttributesMapping:R,highlightedIndex:S,onHighlightedIndexChange:E,orientation:A,dense:I,itemSizes:M,loopFocus:T,onLoop:w,cols:O,enableHomeAndEndKeys:k,onMapChange:D,stopEventPropagation:N=!0,rootRef:L,disabledIndices:P,modifierKeys:j,highlightItemOnHover:W=!1,tag:_="div",...z}=e,{props:F,highlightedIndex:H,onHighlightedIndexChange:B,elementsRef:K,onMapChange:V,relayKeyboardEvent:Y}=function(e){let{itemSizes:n,cols:i=1,loopFocus:f=!0,onLoop:p,dense:b=!1,orientation:g="both",direction:h,highlightedIndex:v,onHighlightedIndexChange:m,rootRef:x,enableHomeAndEndKeys:y=!1,stopEventPropagation:C=!1,disabledIndices:R,modifierKeys:S=d}=e,[E,A]=t.useState(0),I=i>1,M=t.useRef(null),T=(0,l.useMergedRefs)(M,x),w=t.useRef([]),O=t.useRef(!1),k=v??E,D=(0,a.useStableCallback)((e,t=!1)=>{if((m??A)(e),t){let t=w.current[e];(0,o.scrollIntoViewIfNeeded)(M.current,t,h,g)}}),N=(0,a.useStableCallback)(e=>{if(0===e.size||O.current)return;O.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(u.ACTIVE_COMPOSITE_ITEM))??null,i=n?t.indexOf(n):-1;-1!==i&&D(i),(0,o.scrollIntoViewIfNeeded)(M.current,n,h,g)}),L=(0,a.useStableCallback)((e,t,n)=>p?p?.(e,t,n,w):n),P=t.useMemo(()=>({"aria-orientation":"both"===g?void 0:g,ref:T,onFocus(e){let t=M.current,n=(0,c.getTarget)(e.nativeEvent);t&&null!=n&&(0,o.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let t=y?o.ALL_KEYS:o.ARROW_KEYS;if(!t.has(e.key)||function(e,t){for(let n of o.MODIFIER_KEYS.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,S)||!M.current)return;let a="rtl"===h,l=a?o.ARROW_LEFT:o.ARROW_RIGHT,u={horizontal:l,vertical:o.ARROW_DOWN,both:l}[g],d=a?o.ARROW_RIGHT:o.ARROW_LEFT,v={horizontal:d,vertical:o.ARROW_UP,both:d}[g],m=(0,c.getTarget)(e.nativeEvent);if(null!=m&&(0,o.isNativeInput)(m)&&!(0,r.isElementDisabled)(m)){let t=m.selectionStart,n=m.selectionEnd,i=m.value??"";if(null==t||e.shiftKey||t!==n||e.key!==v&&t<i.length||e.key!==u&&t>0)return}let x=k,E=(0,s.getMinListIndex)(w,R),A=(0,s.getMaxListIndex)(w,R);if(I){let t=n||Array.from({length:w.current.length},()=>({width:1,height:1})),r=(0,s.createGridCellMap)(t,i,b),l=r.findIndex(e=>null!=e&&!(0,s.isListIndexDisabled)(w.current,e,R)),u=r.reduce((e,t,n)=>null==t||(0,s.isListIndexDisabled)(w.current,t,R)?e:n,-1);x=r[(0,s.getGridNavigatedIndex)(r.map(e=>null!=e?w.current[e]:null),{event:e,orientation:g,loopFocus:f,onLoop:L,cols:i,disabledIndices:(0,s.getGridCellIndices)([...R||w.current.map((e,t)=>(0,s.isListIndexDisabled)(w.current,t)?t:void 0),void 0],r),minIndex:l,maxIndex:u,prevIndex:(0,s.getGridCellIndexOfCorner)(k>A?E:k,t,r,i,e.key===o.ARROW_DOWN?"bl":e.key===o.ARROW_RIGHT?"tr":"tl"),rtl:a})]}let T={horizontal:[l],vertical:[o.ARROW_DOWN],both:[l,o.ARROW_DOWN]}[g],O={horizontal:[d],vertical:[o.ARROW_UP],both:[d,o.ARROW_UP]}[g],N=I?t:({horizontal:y?o.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:o.HORIZONTAL_KEYS,vertical:y?o.VERTICAL_KEYS_WITH_EXTRA_KEYS:o.VERTICAL_KEYS,both:t})[g];y&&(e.key===o.HOME?x=E:e.key===o.END&&(x=A)),x===k&&(T.includes(e.key)||O.includes(e.key))&&(f&&x===A&&T.includes(e.key)?(x=E,p&&(x=p(e,k,x,w))):f&&x===E&&O.includes(e.key)?(x=A,p&&(x=p(e,k,x,w))):x=(0,s.findNonDisabledListIndex)(w.current,{startingIndex:x,decrement:O.includes(e.key),disabledIndices:R})),x===k||(0,s.isIndexOutOfListBounds)(w.current,x)||(C&&e.stopPropagation(),N.has(e.key)&&e.preventDefault(),D(x,!0),queueMicrotask(()=>{w.current[x]?.focus()}))}}),[i,b,h,R,w,y,k,I,n,f,p,L,T,S,D,g,C]);return t.useMemo(()=>({props:P,highlightedIndex:k,onHighlightedIndexChange:D,elementsRef:w,disabledIndices:R,onMapChange:N,relayKeyboardEvent:P.onKeyDown}),[P,k,D,w,R,N])}({itemSizes:M,cols:O,loopFocus:T,onLoop:w,dense:I,orientation:A,highlightedIndex:S,onHighlightedIndexChange:E,rootRef:L,stopEventPropagation:N,enableHomeAndEndKeys:k,direction:(0,b.useDirection)(),disabledIndices:P,modifierKeys:j}),U=(0,p.useRenderElement)(_,e,{state:C,ref:x,props:[F,...y,z],stateAttributesMapping:R}),$=t.useMemo(()=>({highlightedIndex:H,onHighlightedIndexChange:B,highlightItemOnHover:W,relayKeyboardEvent:Y}),[H,B,W,Y]);return(0,g.jsx)(f.CompositeRootContext.Provider,{value:$,children:(0,g.jsx)(i.CompositeList,{elementsRef:K,onMapChange:e=>{D?.(e),V(e)},children:U})})}],972308)},812057,e=>{"use strict";var t,n,i,r=e.i(344180);e.s([],236634),e.i(236634),e.i(8890);var a=e.i(764556),l=e.i(535270),o=e.i(277642),s=e.i(29905),u=e.i(969490),c=e.i(756432),d=e.i(267805);let f=a.createContext(void 0);function p(){let e=a.useContext(f);if(void 0===e)throw Error((0,d.default)(64));return e}let b=((t={}).activationDirection="data-activation-direction",t.orientation="data-orientation",t),g={tabActivationDirection:e=>({[b.activationDirection]:e})},h=a.forwardRef(function(e,t){let{className:n,defaultValue:i=0,onValueChange:d,orientation:p="horizontal",render:b,value:h,style:m,...x}=e,y=Object.hasOwn(e,"defaultValue"),C=a.useRef([]),[R,S]=a.useState(()=>new Map),[E,A]=(0,l.useControlled)({controlled:h,default:i,name:"Tabs",state:"value"}),I=void 0!==h,[M,T]=a.useState(()=>new Map),w=a.useCallback(e=>{if(void 0===e)return null;for(let[t,n]of M.entries())if(null!=n&&e===(n.value??n.index))return t;return null},[M]),[O,k]=a.useState(()=>({previousValue:E,tabActivationDirection:"none"})),{previousValue:D,tabActivationDirection:N}=O,L=N,P=!1;D!==E&&(L=v(D,E,p,M),P=null!=D&&null!=E&&null==w(E));let j=P?D:E,W=D!==j||N!==L;(0,o.useIsoLayoutEffect)(()=>{W&&k({previousValue:j,tabActivationDirection:L})},[j,W,L]);let _=(0,s.useStableCallback)((e,t)=>{t.activationDirection=v(E,e,p,M),d?.(e,t),t.isCanceled||A(e)}),z=(0,s.useStableCallback)((e,t)=>{S(n=>{if(n.get(e)===t)return n;let i=new Map(n);return i.set(e,t),i})}),F=(0,s.useStableCallback)((e,t)=>{S(n=>{if(!n.has(e)||n.get(e)!==t)return n;let i=new Map(n);return i.delete(e),i})}),H=a.useCallback(e=>R.get(e),[R]),B=a.useCallback(e=>{for(let t of M.values())if(e===t?.value)return t?.id},[M]),K=a.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:B,getTabPanelIdByValue:H,onValueChange:_,orientation:p,registerMountedTabPanel:z,setTabMap:T,unregisterMountedTabPanel:F,tabActivationDirection:L,value:E}),[w,B,H,_,p,z,T,F,L,E]),V=a.useMemo(()=>{for(let e of M.values())if(null!=e&&e.value===E)return e},[M,E]),Y=a.useMemo(()=>{for(let e of M.values())if(null!=e&&!e.disabled)return e.value},[M]);(0,o.useIsoLayoutEffect)(()=>{if(I||0===M.size)return;let e=V?.disabled,t=null==V&&null!==E;if(y&&e&&E===i||!e&&!t)return;let n=Y??null;E!==n&&(A(n),k(e=>"none"===e.tabActivationDirection?e:{...e,tabActivationDirection:"none"}))},[i,Y,y,I,V,A,M,E]);let U={orientation:p,tabActivationDirection:L},$=(0,u.useRenderElement)("div",e,{state:U,ref:t,props:x,stateAttributesMapping:g});return(0,r.jsx)(f.Provider,{value:K,children:(0,r.jsx)(c.CompositeList,{elementsRef:C,children:$})})});function v(e,t,n,i){if(null==e||null==t)return"none";let r=null,a=null;for(let[n,l]of i.entries()){if(null==l)continue;let i=l.value??l.index;if(e===i&&(r=n),t===i&&(a=n),null!=r&&null!=a)break}if(null==r||null==a)return r!==a&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===n?t>e?"right":"left":t>e?"down":"up":"none";let l=r.getBoundingClientRect(),o=a.getBoundingClientRect();if("horizontal"===n){if(o.left<l.left)return"left";if(o.left>l.left)return"right"}else{if(o.top<l.top)return"up";if(o.top>l.top)return"down"}return"none"}var m=e.i(526850),x=e.i(139236),y=e.i(931709),C=e.i(9174),R=e.i(530909);let S=a.createContext(void 0);function E(){let e=a.useContext(S);if(void 0===e)throw Error((0,d.default)(65));return e}var A=e.i(602453),I=e.i(742665),M=e.i(410421);let T=a.forwardRef(function(e,t){let{className:n,disabled:i=!1,render:r,value:l,id:s,nativeButton:c=!0,style:d,...f}=e,{value:b,getTabPanelIdByValue:g,orientation:h}=p(),{activateOnFocus:v,highlightedTabIndex:S,onTabActivation:T,registerTabResizeObserverElement:w,setHighlightedTabIndex:O,tabsListElement:k}=E(),D=(0,x.useBaseUiId)(s),N=a.useMemo(()=>({disabled:i,id:D,value:l}),[i,D,l]),{compositeProps:L,compositeRef:P,index:j}=(0,R.useCompositeItem)({metadata:N}),W=l===b,_=a.useRef(!1),z=a.useRef(null);a.useEffect(()=>{let e=z.current;if(e)return w(e)},[w]),(0,o.useIsoLayoutEffect)(()=>{if(_.current){_.current=!1;return}if(W&&j>-1&&S!==j){if(null!=k){let e=(0,M.activeElement)((0,m.ownerDocument)(k));if(e&&(0,M.contains)(k,e))return}i||O(j)}},[W,j,S,O,i,k]);let{getButtonProps:F,buttonRef:H}=(0,y.useButton)({disabled:i,native:c,focusableWhenDisabled:!0}),B=g(l),K=a.useRef(!1),V=a.useRef(!1);return(0,u.useRenderElement)("button",e,{state:{disabled:i,active:W,orientation:h},ref:[t,H,P,z],props:[L,{role:"tab","aria-controls":B,"aria-selected":W,id:D,onClick:function(e){W||i||T(l,(0,A.createChangeEventDetails)(I.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){W||(j>-1&&!i&&O(j),!i&&v&&(!K.current||K.current&&V.current)&&T(l,(0,A.createChangeEventDetails)(I.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){W||i||(K.current=!0,e.button&&0!==e.button||(V.current=!0,(0,m.ownerDocument)(e.currentTarget).addEventListener("pointerup",function(){K.current=!1,V.current=!1},{once:!0})))},[C.ACTIVE_COMPOSITE_ITEM]:W?"":void 0,onKeyDownCapture(){_.current=!0}},f,F]})});var w=e.i(730774),O=e.i(517432);let k=((n={}).activeTabLeft="--active-tab-left",n.activeTabRight="--active-tab-right",n.activeTabTop="--active-tab-top",n.activeTabBottom="--active-tab-bottom",n.activeTabWidth="--active-tab-width",n.activeTabHeight="--active-tab-height",n);var D=e.i(394394);let N={...g,activeTabPosition:()=>null,activeTabSize:()=>null},L=a.forwardRef(function(e,t){let{className:n,render:i,renderBeforeHydration:l=!1,style:o,...s}=e,{nonce:c}=(0,D.useCSPContext)(),{getTabElementBySelectedValue:d,orientation:f,tabActivationDirection:b,value:g}=p(),{tabsListElement:h,registerIndicatorUpdateListener:v}=E(),m=(0,O.useIsHydrating)(),x=function(){let[,e]=a.useState({});return a.useCallback(()=>{e({})},[])}();a.useEffect(()=>v(x),[v,x]);let y=0,C=0,R=0,S=0,A=0,I=0,M=!1;if(null!=g&&null!=h){let e=d(g);if(M=!0,null!=e){let{width:t,height:n}=(0,w.getCssDimensions)(e),{width:i,height:r}=(0,w.getCssDimensions)(h),a=e.getBoundingClientRect(),l=h.getBoundingClientRect(),o=i>0?l.width/i:1,s=r>0?l.height/r:1;if(Math.abs(o)>Number.EPSILON&&Math.abs(s)>Number.EPSILON){let e=a.left-l.left,t=a.top-l.top;y=e/o+h.scrollLeft-h.clientLeft,R=t/s+h.scrollTop-h.clientTop}else y=e.offsetLeft,R=e.offsetTop;A=t,I=n,C=h.scrollWidth-y-A,S=h.scrollHeight-R-I}}let T=a.useMemo(()=>M?{left:y,right:C,top:R,bottom:S}:null,[y,C,R,S,M]),L=a.useMemo(()=>M?{width:A,height:I}:null,[A,I,M]),P=a.useMemo(()=>{if(M)return{[k.activeTabLeft]:`${y}px`,[k.activeTabRight]:`${C}px`,[k.activeTabTop]:`${R}px`,[k.activeTabBottom]:`${S}px`,[k.activeTabWidth]:`${A}px`,[k.activeTabHeight]:`${I}px`}},[y,C,R,S,A,I,M]),j=M&&A>0&&I>0,W=(0,u.useRenderElement)("span",e,{state:{orientation:f,activeTabPosition:T,activeTabSize:L,tabActivationDirection:b},ref:t,props:[{role:"presentation",style:P,hidden:!j},s,{suppressHydrationWarning:!0}],stateAttributesMapping:N});return null==g?null:(0,r.jsxs)(a.Fragment,{children:[W,m&&l&&(0,r.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})});var P=e.i(677822),j=e.i(282458),W=e.i(273598),_=e.i(254891),z=e.i(296615);let F=((i={}).index="data-index",i.activationDirection="data-activation-direction",i.orientation="data-orientation",i.hidden="data-hidden",i[i.startingStyle=j.TransitionStatusDataAttributes.startingStyle]="startingStyle",i[i.endingStyle=j.TransitionStatusDataAttributes.endingStyle]="endingStyle",i),H={...g,...j.transitionStatusMapping},B=a.forwardRef(function(e,t){let{className:n,value:i,render:r,keepMounted:l=!1,style:s,...c}=e,{value:d,getTabIdByPanelValue:f,orientation:b,tabActivationDirection:g,registerMountedTabPanel:h,unregisterMountedTabPanel:v}=p(),m=(0,x.useBaseUiId)(),y=a.useMemo(()=>({id:m,value:i}),[m,i]),{ref:C,index:R}=(0,z.useCompositeListItem)({metadata:y}),S=i===d,{mounted:E,transitionStatus:A,setMounted:I}=(0,_.useTransitionStatus)(S),M=!E,T=f(i),w=a.useRef(null),O=(0,u.useRenderElement)("div",e,{state:{hidden:M,orientation:b,tabActivationDirection:g,transitionStatus:A},ref:[t,C,w],props:[{"aria-labelledby":T,hidden:M,id:m,role:"tabpanel",tabIndex:S?0:-1,inert:(0,P.inertValue)(!S),[F.index]:R},c],stateAttributesMapping:H});return((0,W.useOpenChangeComplete)({open:S,ref:w,onComplete(){S||I(!1)}}),(0,o.useIsoLayoutEffect)(()=>{if((!M||l)&&null!=m)return h(i,m),()=>{v(i,m)}},[M,l,i,m,h,v]),l||E)?O:null});var K=e.i(863728),V=e.i(972308);let Y=a.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:i,loopFocus:l=!0,render:o,style:u,...c}=e,{onValueChange:d,orientation:f,value:b,setTabMap:h,tabActivationDirection:v}=p(),[m,x]=a.useState(0),[y,C]=a.useState(null),R=a.useRef(new Set),E=a.useRef(new Set),A=a.useRef(null),I=(0,s.useStableCallback)(()=>{R.current.forEach(e=>{e()})});a.useEffect(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{R.current.size&&I()});return A.current=e,y&&e.observe(y),E.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),A.current=null}},[y,I]);let M=(0,s.useStableCallback)(e=>(R.current.add(e),()=>{R.current.delete(e)})),T=(0,s.useStableCallback)(e=>(E.current.add(e),A.current?.observe(e),()=>{E.current.delete(e),A.current?.unobserve(e)})),w=(0,s.useStableCallback)((e,t)=>{e!==b&&d(e,t)}),O=a.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:m,registerIndicatorUpdateListener:M,registerTabResizeObserverElement:T,onTabActivation:w,setHighlightedTabIndex:x,tabsListElement:y}),[n,m,M,T,w,x,y]);return(0,r.jsx)(S.Provider,{value:O,children:(0,r.jsx)(V.CompositeRoot,{render:o,className:i,style:u,state:{orientation:f,tabActivationDirection:v},refs:[t,C],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},c],stateAttributesMapping:g,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:l,orientation:f,onHighlightedIndexChange:x,onMapChange:h,disabledIndices:K.EMPTY_ARRAY})})});e.s(["Indicator",0,L,"List",0,Y,"Panel",0,B,"Root",0,h,"Tab",0,T],227146);var U=e.i(227146),U=U,$=e.i(294237),q=e.i(465458);let G=(0,$.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...n}){return(0,r.jsx)(U.Root,{"data-slot":"tabs","data-orientation":t,className:(0,q.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...n})},"TabsContent",0,function({className:e,...t}){return(0,r.jsx)(U.Panel,{"data-slot":"tabs-content",className:(0,q.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...n}){return(0,r.jsx)(U.List,{"data-slot":"tabs-list","data-variant":t,className:(0,q.cn)(G({variant:t}),e),...n})},"TabsTrigger",0,function({className:e,...t}){return(0,r.jsx)(U.Tab,{"data-slot":"tabs-trigger",className:(0,q.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],812057)},551157,e=>{"use strict";let t=(0,e.i(433721).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["default",0,t])},882469,e=>{"use strict";var t=e.i(551157);e.s(["Globe",()=>t.default])}]);
|