vibeman 0.0.5 → 0.0.7
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/api.js +43 -0
- package/dist/index.js +227 -104
- package/dist/ui/assets/index-C_kQPI1m.js +9 -0
- package/dist/ui/index.html +12 -0
- package/package.json +13 -46
- package/README.md +0 -12
- package/dist/runtime/api/.tsbuildinfo +0 -1
- package/dist/runtime/api/agent/agent-service.d.ts +0 -229
- package/dist/runtime/api/agent/agent-service.js +0 -963
- package/dist/runtime/api/agent/ai-providers/amp-cli-provider.d.ts +0 -38
- package/dist/runtime/api/agent/ai-providers/amp-cli-provider.js +0 -268
- package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +0 -61
- package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +0 -362
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +0 -36
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +0 -375
- package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.d.ts +0 -24
- package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.js +0 -291
- package/dist/runtime/api/agent/ai-providers/index.d.ts +0 -9
- package/dist/runtime/api/agent/ai-providers/index.js +0 -9
- package/dist/runtime/api/agent/ai-providers/types.d.ts +0 -185
- package/dist/runtime/api/agent/ai-providers/types.js +0 -5
- package/dist/runtime/api/agent/amp-cli-provider.test.d.ts +0 -1
- package/dist/runtime/api/agent/amp-cli-provider.test.js +0 -99
- package/dist/runtime/api/agent/codex-cli-provider.test.d.ts +0 -1
- package/dist/runtime/api/agent/codex-cli-provider.test.js +0 -172
- package/dist/runtime/api/agent/core-agent-service.d.ts +0 -119
- package/dist/runtime/api/agent/core-agent-service.js +0 -267
- package/dist/runtime/api/agent/parsers.d.ts +0 -16
- package/dist/runtime/api/agent/parsers.js +0 -308
- package/dist/runtime/api/agent/prompt-service.d.ts +0 -30
- package/dist/runtime/api/agent/prompt-service.js +0 -452
- package/dist/runtime/api/agent/prompt-service.test.d.ts +0 -1
- package/dist/runtime/api/agent/prompt-service.test.js +0 -265
- package/dist/runtime/api/agent/routing-policy.d.ts +0 -171
- package/dist/runtime/api/agent/routing-policy.js +0 -196
- package/dist/runtime/api/agent/routing-policy.test.d.ts +0 -1
- package/dist/runtime/api/agent/routing-policy.test.js +0 -63
- package/dist/runtime/api/api/router-helpers.d.ts +0 -32
- package/dist/runtime/api/api/router-helpers.js +0 -31
- package/dist/runtime/api/api/routers/ai.d.ts +0 -200
- package/dist/runtime/api/api/routers/ai.js +0 -396
- package/dist/runtime/api/api/routers/executions.d.ts +0 -93
- package/dist/runtime/api/api/routers/executions.js +0 -94
- package/dist/runtime/api/api/routers/git.d.ts +0 -45
- package/dist/runtime/api/api/routers/git.js +0 -35
- package/dist/runtime/api/api/routers/provider-config.d.ts +0 -199
- package/dist/runtime/api/api/routers/provider-config.js +0 -252
- package/dist/runtime/api/api/routers/settings.d.ts +0 -158
- package/dist/runtime/api/api/routers/settings.js +0 -129
- package/dist/runtime/api/api/routers/tasks.d.ts +0 -141
- package/dist/runtime/api/api/routers/tasks.js +0 -238
- package/dist/runtime/api/api/routers/workflows.d.ts +0 -275
- package/dist/runtime/api/api/routers/workflows.js +0 -311
- package/dist/runtime/api/api/routers/worktrees.d.ts +0 -101
- package/dist/runtime/api/api/routers/worktrees.js +0 -80
- package/dist/runtime/api/api/trpc.d.ts +0 -118
- package/dist/runtime/api/api/trpc.js +0 -34
- package/dist/runtime/api/index.d.ts +0 -9
- package/dist/runtime/api/index.js +0 -117
- package/dist/runtime/api/lib/id-generator.d.ts +0 -70
- package/dist/runtime/api/lib/id-generator.js +0 -123
- package/dist/runtime/api/lib/local-config.d.ts +0 -335
- package/dist/runtime/api/lib/local-config.js +0 -304
- package/dist/runtime/api/lib/logger.d.ts +0 -11
- package/dist/runtime/api/lib/logger.js +0 -188
- package/dist/runtime/api/lib/provider-detection.d.ts +0 -61
- package/dist/runtime/api/lib/provider-detection.js +0 -326
- package/dist/runtime/api/lib/server/agent-service-singleton.d.ts +0 -6
- package/dist/runtime/api/lib/server/agent-service-singleton.js +0 -27
- package/dist/runtime/api/lib/server/bootstrap.d.ts +0 -38
- package/dist/runtime/api/lib/server/bootstrap.js +0 -197
- package/dist/runtime/api/lib/server/git-service-singleton.d.ts +0 -6
- package/dist/runtime/api/lib/server/git-service-singleton.js +0 -47
- package/dist/runtime/api/lib/server/project-root.d.ts +0 -2
- package/dist/runtime/api/lib/server/project-root.js +0 -61
- package/dist/runtime/api/lib/server/task-service-singleton.d.ts +0 -7
- package/dist/runtime/api/lib/server/task-service-singleton.js +0 -58
- package/dist/runtime/api/lib/server/vibeman-info.d.ts +0 -5
- package/dist/runtime/api/lib/server/vibeman-info.js +0 -85
- package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.d.ts +0 -7
- package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.js +0 -57
- package/dist/runtime/api/lib/trpc/server.d.ts +0 -965
- package/dist/runtime/api/lib/trpc/server.js +0 -11
- package/dist/runtime/api/lib/trpc/ws-server.d.ts +0 -8
- package/dist/runtime/api/lib/trpc/ws-server.js +0 -33
- package/dist/runtime/api/persistence/database-service.d.ts +0 -14
- package/dist/runtime/api/persistence/database-service.js +0 -74
- package/dist/runtime/api/persistence/execution-log-persistence.d.ts +0 -90
- package/dist/runtime/api/persistence/execution-log-persistence.js +0 -426
- package/dist/runtime/api/persistence/execution-log-persistence.test.d.ts +0 -1
- package/dist/runtime/api/persistence/execution-log-persistence.test.js +0 -170
- package/dist/runtime/api/router.d.ts +0 -968
- package/dist/runtime/api/router.js +0 -34
- package/dist/runtime/api/settings-service.d.ts +0 -110
- package/dist/runtime/api/settings-service.js +0 -678
- package/dist/runtime/api/tasks/file-watcher.d.ts +0 -23
- package/dist/runtime/api/tasks/file-watcher.js +0 -88
- package/dist/runtime/api/tasks/task-file-parser.d.ts +0 -14
- package/dist/runtime/api/tasks/task-file-parser.js +0 -180
- package/dist/runtime/api/tasks/task-service.d.ts +0 -36
- package/dist/runtime/api/tasks/task-service.js +0 -173
- package/dist/runtime/api/tasks/task-updater.d.ts +0 -62
- package/dist/runtime/api/tasks/task-updater.js +0 -260
- package/dist/runtime/api/tasks/task-updater.test.d.ts +0 -1
- package/dist/runtime/api/tasks/task-updater.test.js +0 -303
- package/dist/runtime/api/types/index.d.ts +0 -186
- package/dist/runtime/api/types/index.js +0 -1
- package/dist/runtime/api/types/settings.d.ts +0 -105
- package/dist/runtime/api/types/settings.js +0 -2
- package/dist/runtime/api/types.d.ts +0 -2
- package/dist/runtime/api/types.js +0 -1
- package/dist/runtime/api/utils/env.d.ts +0 -6
- package/dist/runtime/api/utils/env.js +0 -12
- package/dist/runtime/api/utils/stripNextEnv.d.ts +0 -7
- package/dist/runtime/api/utils/stripNextEnv.js +0 -22
- package/dist/runtime/api/utils/title-slug.d.ts +0 -6
- package/dist/runtime/api/utils/title-slug.js +0 -77
- package/dist/runtime/api/utils/url.d.ts +0 -2
- package/dist/runtime/api/utils/url.js +0 -19
- package/dist/runtime/api/vcs/git-history-service.d.ts +0 -57
- package/dist/runtime/api/vcs/git-history-service.js +0 -228
- package/dist/runtime/api/vcs/git-service.d.ts +0 -136
- package/dist/runtime/api/vcs/git-service.js +0 -307
- package/dist/runtime/api/vcs/worktree-service.d.ts +0 -93
- package/dist/runtime/api/vcs/worktree-service.js +0 -518
- package/dist/runtime/api/vcs/worktree-service.test.d.ts +0 -1
- package/dist/runtime/api/vcs/worktree-service.test.js +0 -20
- package/dist/runtime/api/workflows/quality-pipeline.d.ts +0 -58
- package/dist/runtime/api/workflows/quality-pipeline.js +0 -401
- package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +0 -406
- package/dist/runtime/api/workflows/vibing-orchestrator.js +0 -2462
- package/dist/runtime/api/workflows/workflow-effects.d.ts +0 -45
- package/dist/runtime/api/workflows/workflow-effects.js +0 -49
- package/dist/runtime/api/workflows/workflow-reconciler.d.ts +0 -65
- package/dist/runtime/api/workflows/workflow-reconciler.js +0 -226
- package/dist/runtime/api/workflows/workflow-reducer.d.ts +0 -26
- package/dist/runtime/api/workflows/workflow-reducer.js +0 -288
- package/dist/runtime/api/workflows/workflow-reducer.test.d.ts +0 -1
- package/dist/runtime/api/workflows/workflow-reducer.test.js +0 -247
- package/dist/runtime/api/workflows/workflow-schema.d.ts +0 -546
- package/dist/runtime/api/workflows/workflow-schema.js +0 -256
- package/dist/runtime/web/.next/BUILD_ID +0 -1
- package/dist/runtime/web/.next/app-build-manifest.json +0 -66
- package/dist/runtime/web/.next/app-path-routes-manifest.json +0 -8
- package/dist/runtime/web/.next/build-manifest.json +0 -33
- package/dist/runtime/web/.next/package.json +0 -1
- package/dist/runtime/web/.next/prerender-manifest.json +0 -61
- package/dist/runtime/web/.next/react-loadable-manifest.json +0 -8
- package/dist/runtime/web/.next/required-server-files.json +0 -334
- package/dist/runtime/web/.next/routes-manifest.json +0 -70
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js +0 -1
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/_not-found/page.js +0 -2
- package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/_not-found.html +0 -7
- package/dist/runtime/web/.next/server/app/_not-found.meta +0 -8
- package/dist/runtime/web/.next/server/app/_not-found.rsc +0 -22
- package/dist/runtime/web/.next/server/app/api/health/route.js +0 -1
- package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +0 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/api/upload/route.js +0 -1
- package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app/index.html +0 -7
- package/dist/runtime/web/.next/server/app/index.meta +0 -7
- package/dist/runtime/web/.next/server/app/index.rsc +0 -27
- package/dist/runtime/web/.next/server/app/page.js +0 -112
- package/dist/runtime/web/.next/server/app/page.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/app-paths-manifest.json +0 -8
- package/dist/runtime/web/.next/server/chunks/210.js +0 -1
- package/dist/runtime/web/.next/server/chunks/291.js +0 -18
- package/dist/runtime/web/.next/server/chunks/552.js +0 -22
- package/dist/runtime/web/.next/server/chunks/780.js +0 -1
- package/dist/runtime/web/.next/server/chunks/905.js +0 -6
- package/dist/runtime/web/.next/server/chunks/98.js +0 -1
- package/dist/runtime/web/.next/server/functions-config-manifest.json +0 -4
- package/dist/runtime/web/.next/server/middleware-build-manifest.js +0 -1
- package/dist/runtime/web/.next/server/middleware-manifest.json +0 -6
- package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/dist/runtime/web/.next/server/next-font-manifest.js +0 -1
- package/dist/runtime/web/.next/server/next-font-manifest.json +0 -1
- package/dist/runtime/web/.next/server/pages/404.html +0 -7
- package/dist/runtime/web/.next/server/pages/500.html +0 -1
- package/dist/runtime/web/.next/server/pages/_app.js +0 -1
- package/dist/runtime/web/.next/server/pages/_app.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/pages/_document.js +0 -1
- package/dist/runtime/web/.next/server/pages/_document.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/pages/_error.js +0 -19
- package/dist/runtime/web/.next/server/pages/_error.js.nft.json +0 -1
- package/dist/runtime/web/.next/server/pages-manifest.json +0 -6
- package/dist/runtime/web/.next/server/server-reference-manifest.js +0 -1
- package/dist/runtime/web/.next/server/server-reference-manifest.json +0 -1
- package/dist/runtime/web/.next/server/webpack-runtime.js +0 -1
- package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_buildManifest.js +0 -1
- package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_ssgManifest.js +0 -1
- package/dist/runtime/web/.next/static/chunks/05c91ade-7d09b2b280adffd1.js +0 -1
- package/dist/runtime/web/.next/static/chunks/201-51bef3fa8c832e2e.js +0 -1
- package/dist/runtime/web/.next/static/chunks/524-89747ed9b0294f8a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/554-8bec6e9cca6acc67.js +0 -1
- package/dist/runtime/web/.next/static/chunks/764.86e9503a69d45a85.js +0 -1
- package/dist/runtime/web/.next/static/chunks/7ab4dc20-239138e0ae7af24a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/905-342391e3d3a3678f.js +0 -20
- package/dist/runtime/web/.next/static/chunks/a8a5ce16-4edea7df2d9b544a.js +0 -79
- package/dist/runtime/web/.next/static/chunks/ad74d572-4c1b162e2c15acaa.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/.vibeman/assets/images/[...path]/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/_not-found/page-34e66b251c2b5044.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/health/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/upload/route-7b752a8641f96c1f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/layout-df9ac93cb02b2385.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/page-6610743f7de5f92a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/c25e0690-e9b798b8de667da1.js +0 -1
- package/dist/runtime/web/.next/static/chunks/framework-57157ec4d37f64aa.js +0 -1
- package/dist/runtime/web/.next/static/chunks/main-app-156cc0c60371bd78.js +0 -1
- package/dist/runtime/web/.next/static/chunks/main-df25d367c47b1fec.js +0 -1
- package/dist/runtime/web/.next/static/chunks/pages/_app-9f629a5e1131d19f.js +0 -1
- package/dist/runtime/web/.next/static/chunks/pages/_error-9238238274c7efcd.js +0 -1
- package/dist/runtime/web/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/webpack-cd50e39b423d1808.js +0 -1
- package/dist/runtime/web/.next/static/css/2728291c68f99cb1.css +0 -3
- package/dist/runtime/web/.next/static/css/4fbf378a264bd4ea.css +0 -1
- package/dist/runtime/web/.next/static/css/521bd69cc298cd1a.css +0 -1
- package/dist/runtime/web/.next/static/css/537e22821e101b87.css +0 -1
- package/dist/runtime/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/dist/runtime/web/package.json +0 -65
- package/dist/runtime/web/server.js +0 -44
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[905],{328:(e,t,n)=>{"use strict";n.d(t,{W:()=>tp});var r=n(25874),i=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:n,...r}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]},o=/^\s*>\s$/,s=r.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return i("blockquote",{...(0,r.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},parseMarkdown:(e,t)=>t.createNode("blockquote",void 0,t.parseChildren(e.tokens||[])),renderMarkdown:(e,t)=>{if(!e.content)return"";let n=[];return e.content.forEach(e=>{let r=t.renderChildren([e]).split("\n").map(e=>""===e.trim()?">":`> ${e}`);n.push(r.join("\n"))}),n.join(`
|
|
2
|
-
>
|
|
3
|
-
`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,r.tG)({find:o,type:this.type})]}}),l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,h=r.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return i("strong",{...(0,r.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,r.OX)({find:l,type:this.type}),(0,r.OX)({find:u,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:a,type:this.type}),(0,r.Zc)({find:c,type:this.type})]}}),d=/(^|[^`])`([^`]+)`(?!`)$/,p=/(^|[^`])`([^`]+)`(?!`)/g,f=r.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.OX)({find:d,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:p,type:this.type})]}}),g=n(63218),m=/^```([a-z]+)?[\s\n]$/,y=/^~~~([a-z]+)?[\s\n]$/,v=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;if(!n)return null;let r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n;return(null==(n=e.raw)?void 0:n.startsWith("```"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.language)||"";return e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${r}
|
|
4
|
-
|
|
5
|
-
\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;if(o.parent.type!==this.type)return!1;let l=" ".repeat(n);return s?e.commands.insertContent(l):e.commands.command(({tr:e})=>{let{from:t,to:n}=i,o=r.doc.textBetween(t,n,"\n","\n").split("\n").map(e=>l+e).join("\n");return e.replaceWith(t,n,r.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;return o.parent.type===this.type&&(s?e.commands.command(({tr:e})=>{var t;let{pos:i}=o,s=o.start(),l=o.end(),a=r.doc.textBetween(s,l,"\n","\n").split("\n"),u=0,c=0,h=i-s;for(let e=0;e<a.length;e+=1){if(c+a[e].length>=h){u=e;break}c+=a[e].length+1}let d=Math.min(((null==(t=a[u].match(/^ */))?void 0:t[0])||"").length,n);if(0===d)return!0;let p=s;for(let e=0;e<u;e+=1)p+=a[e].length+1;return e.delete(p,p+d),i-p<=d&&e.setSelection(g.U3.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:o}=i,s=r.doc.textBetween(t,o,"\n","\n").split("\n").map(e=>{var t;let r=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,n);return e.slice(r)}).join("\n");return e.replaceWith(t,o,r.schema.text(s)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!!o&&!!s&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let s=i.after();return void 0!==s&&(r.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(g.LN.near(r.resolve(s))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,r.JJ)({find:m,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.JJ)({find:y,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new g.k_({key:new g.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=null==i?void 0:i.mode;if(!n||!o)return!1;let{tr:s,schema:l}=e.state,a=l.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:o},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(g.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),b=r.bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),k=r.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>`
|
|
6
|
-
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&l&&o){let t=l.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),w=r.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,(0,r.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.level)?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),x=n(77525),S=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,E=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,M=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,A=r.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.OX)({find:S,type:this.type}),(0,r.OX)({find:E,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:C,type:this.type}),(0,r.Zc)({find:M,type:this.type})]}});let T="numeric",R="ascii",O="alpha",N="asciinumeric",L="alphanumeric",I="domain",_="emoji",D="whitespace";function j(e,t,n){for(let r in t[T]&&(t[N]=!0,t[L]=!0),t[R]&&(t[N]=!0,t[O]=!0),t[N]&&(t[L]=!0),t[O]&&(t[L]=!0),t[L]&&(t[I]=!0),t[_]&&(t[I]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function P(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}P.groups={},P.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){let i;return r=r||P.groups,t&&t.j?i=t:(i=new P(t),n&&r&&j(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){if(r=r||P.groups,t&&t.j)return this.j[e]=t,t;let i,o=this.go(e);return o?(Object.assign((i=new P).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new P,t&&(r&&(i.t&&"string"==typeof i.t?j(t,Object.assign(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(i.t,r),n),r):n&&j(t,n,r)),i.t=t),this.j[e]=i,i}};let z=(e,t,n,r,i)=>e.ta(t,n,r,i),$=(e,t,n,r,i)=>e.tr(t,n,r,i),F=(e,t,n,r,i)=>e.ts(t,n,r,i),B=(e,t,n,r,i)=>e.tt(t,n,r,i),K="WORD",U="UWORD",H="ASCIINUMERICAL",J="ALPHANUMERICAL",W="LOCALHOST",q="UTLD",V="SCHEME",G="SLASH_SCHEME",Y="OPENBRACE",X="CLOSEBRACE",Z="OPENBRACKET",Q="CLOSEBRACKET",ee="OPENPAREN",et="CLOSEPAREN",en="OPENANGLEBRACKET",er="CLOSEANGLEBRACKET",ei="FULLWIDTHLEFTPAREN",eo="FULLWIDTHRIGHTPAREN",es="LEFTCORNERBRACKET",el="RIGHTCORNERBRACKET",ea="LEFTWHITECORNERBRACKET",eu="RIGHTWHITECORNERBRACKET",ec="FULLWIDTHLESSTHAN",eh="FULLWIDTHGREATERTHAN",ed="AMPERSAND",ep="APOSTROPHE",ef="ASTERISK",eg="BACKSLASH",em="BACKTICK",ey="CARET",ev="COLON",eb="COMMA",ek="DOLLAR",ew="EQUALS",ex="EXCLAMATION",eS="HYPHEN",eC="PERCENT",eE="PIPE",eM="PLUS",eA="POUND",eT="QUERY",eR="QUOTE",eO="FULLWIDTHMIDDLEDOT",eN="SEMI",eL="SLASH",eI="TILDE",e_="UNDERSCORE",eD="EMOJI";var ej=Object.freeze({__proto__:null,ALPHANUMERICAL:J,AMPERSAND:ed,APOSTROPHE:ep,ASCIINUMERICAL:H,ASTERISK:ef,AT:"AT",BACKSLASH:eg,BACKTICK:em,CARET:ey,CLOSEANGLEBRACKET:er,CLOSEBRACE:X,CLOSEBRACKET:Q,CLOSEPAREN:et,COLON:ev,COMMA:eb,DOLLAR:ek,DOT:"DOT",EMOJI:eD,EQUALS:ew,EXCLAMATION:ex,FULLWIDTHGREATERTHAN:eh,FULLWIDTHLEFTPAREN:ei,FULLWIDTHLESSTHAN:ec,FULLWIDTHMIDDLEDOT:eO,FULLWIDTHRIGHTPAREN:eo,HYPHEN:eS,LEFTCORNERBRACKET:es,LEFTWHITECORNERBRACKET:ea,LOCALHOST:W,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:en,OPENBRACE:Y,OPENBRACKET:Z,OPENPAREN:ee,PERCENT:eC,PIPE:eE,PLUS:eM,POUND:eA,QUERY:eT,QUOTE:eR,RIGHTCORNERBRACKET:el,RIGHTWHITECORNERBRACKET:eu,SCHEME:V,SEMI:eN,SLASH:eL,SLASH_SCHEME:G,SYM:"SYM",TILDE:eI,TLD:"TLD",UNDERSCORE:e_,UTLD:q,UWORD:U,WORD:K,WS:"WS"});let eP=/[a-z]/,ez=/\p{L}/u,e$=/\p{Emoji}/u,eF=/\d/,eB=/\s/,eK=null,eU=null;function eH(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let i,o=e.charCodeAt(r),s=o<55296||o>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,s=0;for(;s<r;){let l=e,a=null,u=0,c=null,h=-1,d=-1;for(;s<r&&(a=l.go(n[s]));)(l=a).accepts()?(h=0,d=0,c=l):h>=0&&(h+=n[s].length,d++),u+=n[s].length,o+=n[s].length,s++;o-=h,s-=d,u-=h,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function eJ(e,t,n,r,i){let o,s=t.length;for(let n=0;n<s-1;n++){let s=t[n];e.j[s]?o=e.j[s]:((o=new P(r)).jr=i.slice(),e.j[s]=o),e=o}return(o=new P(n)).jr=i.slice(),e.j[t[s-1]]=o,o}function eW(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;"0123456789".indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}let eq={defaultProtocol:"http",events:null,format:eG,formatHref:eG,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eV(e,t=null){let n=Object.assign({},eq);e&&(n=Object.assign(n,e instanceof eV?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}function eG(e){return e}function eY(e,t){this.t="token",this.v=e,this.tk=t}function eX(e,t){class n extends eY{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}eV.prototype={o:eq,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:eq[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eY.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eq.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),i=this.toFormattedString(e),o={},s=e.get("className",t,this),l=e.get("target",t,this),a=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=n,s&&(o.class=s),l&&(o.target=l),a&&(o.rel=a),u&&Object.assign(o,u),{tagName:r,attributes:o,content:i,eventListeners:c}}};let eZ=eX("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eQ=eX("text"),e0=eX("nl"),e1=eX("url",{isLink:!0,toHref(e=eq.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==W&&e[1].t===ev}}),e2=e=>new P(e);function e3(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}let e5="undefined"!=typeof console&&console&&console.warn||(()=>{}),e4={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function e6(e,t=!1){if(e4.initialized&&e5(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
|
|
7
|
-
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
8
|
-
2. Cannot start or end with "-"
|
|
9
|
-
3. "-" cannot repeat`);e4.customSchemes.push([e,t])}function e9(e){return e4.initialized||function(){e4.scanner=function(e=[]){let t={};P.groups=t;let n=new P;null==eK&&(eK=eW("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==eU&&(eU=eW("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),B(n,"'",ep),B(n,"{",Y),B(n,"}",X),B(n,"[",Z),B(n,"]",Q),B(n,"(",ee),B(n,")",et),B(n,"<",en),B(n,">",er),B(n,"(",ei),B(n,")",eo),B(n,"「",es),B(n,"」",el),B(n,"『",ea),B(n,"』",eu),B(n,"<",ec),B(n,">",eh),B(n,"&",ed),B(n,"*",ef),B(n,"@","AT"),B(n,"`",em),B(n,"^",ey),B(n,":",ev),B(n,",",eb),B(n,"$",ek),B(n,".","DOT"),B(n,"=",ew),B(n,"!",ex),B(n,"-",eS),B(n,"%",eC),B(n,"|",eE),B(n,"+",eM),B(n,"#",eA),B(n,"?",eT),B(n,'"',eR),B(n,"/",eL),B(n,";",eN),B(n,"~",eI),B(n,"_",e_),B(n,"\\",eg),B(n,"・",eO);let r=$(n,eF,"NUM",{[T]:!0});$(r,eF,r);let i=$(r,eP,H,{[N]:!0}),o=$(r,ez,J,{[L]:!0}),s=$(n,eP,K,{[R]:!0});$(s,eF,i),$(s,eP,s),$(i,eF,i),$(i,eP,i);let l=$(n,ez,U,{[O]:!0});$(l,eP),$(l,eF,o),$(l,ez,l),$(o,eF,o),$(o,eP),$(o,ez,o);let a=B(n,"\n","NL",{[D]:!0}),u=B(n,"\r","WS",{[D]:!0}),c=$(n,eB,"WS",{[D]:!0});B(n,"",c),B(u,"\n",a),B(u,"",c),$(u,eB,c),B(c,"\r"),B(c,"\n"),$(c,eB,c),B(c,"",c);let h=$(n,e$,eD,{[_]:!0});B(h,"#"),$(h,e$,h),B(h,"️",h);let d=B(h,"");B(d,"#"),$(d,e$,h);let p=[[eP,s],[eF,i]],f=[[eP,null],[ez,l],[eF,o]];for(let e=0;e<eK.length;e++)eJ(n,eK[e],"TLD",K,p);for(let e=0;e<eU.length;e++)eJ(n,eU[e],q,U,f);j("TLD",{tld:!0,ascii:!0},t),j(q,{utld:!0,alpha:!0},t),eJ(n,"file",V,K,p),eJ(n,"mailto",V,K,p),eJ(n,"http",G,K,p),eJ(n,"https",G,K,p),eJ(n,"ftp",G,K,p),eJ(n,"ftps",G,K,p),j(V,{scheme:!0,ascii:!0},t),j(G,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{scheme:!0}:{slashscheme:!0};r.indexOf("-")>=0?i[I]=!0:eP.test(r)?eF.test(r)?i[N]=!0:i[R]=!0:i[T]=!0,F(n,r,r,i)}return F(n,"localhost",W,{ascii:!0}),n.jd=new P("SYM"),{start:n,tokens:Object.assign({groups:t},ej)}}(e4.customSchemes);for(let e=0;e<e4.tokenQueue.length;e++)e4.tokenQueue[e][1]({scanner:e4.scanner});e4.parser=function({groups:e}){let t=e.domain.concat([ed,ef,"AT",eg,em,ey,ek,ew,eS,"NUM",eC,eE,eM,eA,eL,"SYM",eI,e_]),n=[ep,ev,eb,"DOT",ex,eC,eT,eR,eN,en,er,Y,X,Q,Z,ee,et,ei,eo,es,el,ea,eu,ec,eh],r=[ed,ep,ef,eg,em,ey,ek,ew,eS,Y,X,eC,eE,eM,eA,eT,eL,"SYM",eI,e_],i=e2(),o=B(i,eI);z(o,r,o),z(o,e.domain,o);let s=e2(),l=e2(),a=e2();z(i,e.domain,s),z(i,e.scheme,l),z(i,e.slashscheme,a),z(s,r,o),z(s,e.domain,s);let u=B(s,"AT");B(o,"AT",u),B(l,"AT",u),B(a,"AT",u);let c=B(o,"DOT");z(c,r,o),z(c,e.domain,o);let h=e2();z(u,e.domain,h),z(h,e.domain,h);let d=B(h,"DOT");z(d,e.domain,h);let p=e2(eZ);z(d,e.tld,p),z(d,e.utld,p),B(u,W,p);let f=B(h,eS);B(f,eS,f),z(f,e.domain,h),z(p,e.domain,h),B(p,"DOT",d),B(p,eS,f),z(B(p,ev),e.numeric,eZ);let g=B(s,eS),m=B(s,"DOT");B(g,eS,g),z(g,e.domain,s),z(m,r,o),z(m,e.domain,s);let y=e2(e1);z(m,e.tld,y),z(m,e.utld,y),z(y,e.domain,s),z(y,r,o),B(y,"DOT",m),B(y,eS,g),B(y,"AT",u);let v=B(y,ev),b=e2(e1);z(v,e.numeric,b);let k=e2(e1),w=e2();z(k,t,k),z(k,n,w),z(w,t,k),z(w,n,w),B(y,eL,k),B(b,eL,k);let x=B(l,ev),S=B(a,ev),C=B(S,eL),E=B(C,eL);z(l,e.domain,s),B(l,"DOT",m),B(l,eS,g),z(a,e.domain,s),B(a,"DOT",m),B(a,eS,g),z(x,e.domain,k),B(x,eL,k),B(x,eT,k),z(E,e.domain,k),z(E,t,k),B(E,eL,k);let M=[[Y,X],[Z,Q],[ee,et],[en,er],[ei,eo],[es,el],[ea,eu],[ec,eh]];for(let e=0;e<M.length;e++){let[r,i]=M[e],o=B(k,r);B(w,r,o),B(o,i,k);let s=e2(e1);z(o,t,s);let l=e2();z(o,n),z(s,t,s),z(s,n,l),z(l,t,s),z(l,n,l),B(s,i,k),B(l,i,k)}return B(i,W,y),B(i,"NL",e0),{start:i,tokens:ej}}(e4.scanner.tokens);for(let e=0;e<e4.pluginQueue.length;e++)e4.pluginQueue[e][1]({scanner:e4.scanner,parser:e4.parser});e4.initialized=!0}(),function(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let l=e,a=null,u=null,c=0,h=null,d=-1;for(;i<r&&!(a=l.go(n[i].t));)s.push(n[i++]);for(;i<r&&(u=a||l.go(n[i].t));)a=null,(l=u).accepts()?(d=0,h=l):d>=0&&d++,i++,c++;if(d<0)(i-=c)<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(e3(eQ,t,s)),s=[]),i-=d,c-=d;let e=h.t,r=n.slice(i-c,i);o.push(e3(e,t,r))}}return s.length>0&&o.push(e3(eQ,t,s)),o}(e4.parser.start,e,eH(e4.scanner.start,e))}function e8(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new eV(n),i=e9(e),o=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}e9.scan=eH;var e7="[\0- \xa0 -\u2029 ]",te=new RegExp(e7),tt=RegExp(`${e7}$`),tn=RegExp(e7,"g");function tr(e,t){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(tn,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var ti=r.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if("string"==typeof e)return void e6(e);e6(e.scheme,e.optionalSlashes)})},onDestroy(){P.groups={},e4.scanner=null,e4.parser=null,e4.tokenQueue=[],e4.pluginQueue=[],e4.customSchemes=[],e4.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!tr(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!tr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!tr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,r.KV)(this.options.HTMLAttributes,e),0]:["a",(0,r.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.href)||"",i=t.renderChildren(e);return`[${i}](${r})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!tr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return(!n||!!this.options.isAllowedUri(n,{defaultValidate:e=>!!tr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.Zc)({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=e8(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!tr(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let i=[],{protocols:o,defaultProtocol:s}=this.options;return this.options.autolink&&i.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!tr(e,o),protocols:o,defaultProtocol:s}),shouldAutoLink:this.options.shouldAutoLink},new g.k_({key:new g.hs("autolink"),appendTransaction:(t,n,i)=>{let o=t.some(e=>e.docChanged)&&!n.doc.eq(i.doc),s=t.some(e=>e.getMeta("preventAutolink"));if(!o||s)return;let{tr:l}=i,a=(0,r.T7)(n.doc,[...t]);if((0,r.FF)(a).forEach(({newRange:t})=>{let n,o,s=(0,r.Nx)(i.doc,t,e=>e.isTextblock);if(s.length>1)n=s[0],o=i.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ");else if(s.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!tt.test(e))return;n=s[0],o=i.doc.textBetween(n.pos,t.to,void 0," ")}if(n&&o){let t=o.split(te).filter(Boolean);if(t.length<=0)return!1;let s=t[t.length-1],a=n.pos+o.lastIndexOf(s);if(!s)return!1;let u=e9(s).map(t=>t.toObject(e.defaultProtocol));if(!(1===u.length?u[0].isLink:3===u.length&&!!u[1].isLink&&["()","[]"].includes(u[0].value+u[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,r.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}}))),i.push((t={type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection},new g.k_({key:new g.hs("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,s;if(0!==i.button||!e.editable)return!1;let l=!1;if(t.enableClickSelection&&(l=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){let n=null;if(i.target instanceof HTMLAnchorElement)n=i.target;else{let e=i.target,t=[];for(;"DIV"!==e.nodeName;)t.push(e),e=e.parentNode;n=t.find(e=>"A"===e.nodeName)}if(!n)return l;let a=(0,r.gu)(e.state,t.type.name),u=null!=(o=null==n?void 0:n.href)?o:a.href,c=null!=(s=null==n?void 0:n.target)?s:a.target;n&&u&&(window.open(u,c),l=!0)}return l}}}))),this.options.linkOnPaste&&i.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink},new g.k_({key:new g.hs("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{shouldAutoLink:i}=n,{state:o}=e,{selection:s}=o,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(e=>{a+=e.textContent});let u=e8(a,{defaultProtocol:n.defaultProtocol}).find(e=>e.isLink&&e.value===a);return!!a&&!!u&&(void 0===i||!!i(u.href))&&n.editor.commands.setMark(n.type,{href:u.href})}}}))),i}}),to=n(59937),ts=r.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];return 1===n.length&&"image"===n[0].type?t.parseChildren([n[0]]):t.createNode("paragraph",void 0,t.parseInline(n))},renderMarkdown:(e,t)=>e&&Array.isArray(e.content)?t.renderChildren(e.content):"",addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tl=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,ta=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tu=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.OX)({find:tl,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:ta,type:this.type})]}}),tc=r.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),th=r.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:"underline",raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),td=n(24779),tp=r.YY.create({name:"starterKit",addExtensions(){var e,t,n,r;let i=[];return!1!==this.options.bold&&i.push(h.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(s.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(to.Rg.configure(this.options.bulletList)),!1!==this.options.code&&i.push(f.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(v.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(td.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(td.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(k.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(w.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(td.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(x.d.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(A.configure(this.options.italic)),!1!==this.options.listItem&&i.push(to.ck.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(to.it.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(ti.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(to._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(ts.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(tu.configure(this.options.strike)),!1!==this.options.text&&i.push(tc.configure(this.options.text)),!1!==this.options.underline&&i.push(th.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&i.push(td.JU.configure(null==(r=this.options)?void 0:r.trailingNode)),i}})},1619:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(29139),i=n(68798),o=n(37893),s=e=>{let{present:t,children:n}=e,s=function(e){var t,n;let[i,s]=r.useState(),a=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[h,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(a.current);c.current="mounted"===h?e:"none"},[h]),(0,o.N)(()=>{let t=a.current,n=u.current;if(n!==e){let r=c.current,i=l(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,o.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=l(a.current).includes(CSS.escape(e.animationName));if(e.target===i&&r&&(d("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=l(a.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}d("ANIMATION_END")},[i,d]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,s(e)},[])}}(t),a="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),u=(0,i.s)(s.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||s.isPresent?r.cloneElement(a,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},1838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return l},urlObjectKeys:function(){return s}});let r=n(45788)._(n(44846)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",s=e.pathname||"",l=e.hash||"",a=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),a&&"object"==typeof a&&(a=String(r.urlQueryToSearchParams(a)));let c=e.search||a&&"?"+a||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return o(e)}},2359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(62720),i=n(89785);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},5288:(e,t,n)=>{"use strict";n.d(t,{hO:()=>a,sG:()=>l});var r=n(29139),i=n(24930),o=n(72744),s=n(27123),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function a(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},5512:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(29139),i=n(27123);function o(e,t=[]){let n=[],s=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return s.scopeName=e,[function(t,o){let s=r.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,u=n?.[e]?.[l]||s,c=r.useMemo(()=>a,Object.values(a));return(0,i.jsx)(u.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,i){let a=i?.[e]?.[l]||s,u=r.useContext(a);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(s,...t)]}},7124:(e,t,n)=>{"use strict";var r=n(90372);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},7381:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","sparkles","Sparkles",[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z",key:"svg-0"}]])},7783:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r,i=n(29139),o=n(37893),s=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function l({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return s(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}Symbol("RADIX:SYNC_STATE")},7809:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","thumb-up","ThumbUp",[["path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1h3a4 4 0 0 0 4 -4v-1a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1 -2 2h-7a3 3 0 0 1 -3 -3",key:"svg-0"}]])},8085:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","user","User",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]])},8342:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},10880:(e,t,n)=>{"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>ep});var i=r(),o={exec:()=>null};function s(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(l.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var l={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u=/(?:[*+-]|\d{1,9}[.)])/,c=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=s(c).replace(/bull/g,u).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=s(c).replace(/bull/g,u).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),p=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\.|[^\[\]\\])+/,g=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m=s(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,u).getRegex(),y="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",v=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b=s("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",v).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k=s(p).replace("hr",a).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),w={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",k).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:a,html:b,lheading:h,list:m,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:k,table:o,text:/^[^\n]+/},x=s("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",a).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),S={...w,lheading:d,table:x,paragraph:s(p).replace("hr",a).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",x).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},C={...w,html:s(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",v).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(p).replace("hr",a).replace("heading"," *#{1,6} *[^\n]").replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E=/^( {2,}|\\)\n(?!\s*$)/,M=/[\p{P}\p{S}]/u,A=/[\s\p{P}\p{S}]/u,T=/[^\s\p{P}\p{S}]/u,R=s(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,A).getRegex(),O=/(?!~)[\p{P}\p{S}]/u,N=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,L=s(N,"u").replace(/punct/g,M).getRegex(),I=s(N,"u").replace(/punct/g,O).getRegex(),_="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",D=s(_,"gu").replace(/notPunctSpace/g,T).replace(/punctSpace/g,A).replace(/punct/g,M).getRegex(),j=s(_,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,O).getRegex(),P=s("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,T).replace(/punctSpace/g,A).replace(/punct/g,M).getRegex(),z=s(/\\(punct)/,"gu").replace(/punct/g,M).getRegex(),$=s(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),F=s(v).replace("(?:--\x3e|$)","--\x3e").getRegex(),B=s("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",F).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),H=s(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",f).getRegex(),J=s(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),W=s("reflink|nolink(?!\\()","g").replace("reflink",H).replace("nolink",J).getRegex(),q={_backpedal:o,anyPunctuation:z,autolink:$,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:E,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:o,emStrongLDelim:L,emStrongRDelimAst:D,emStrongRDelimUnd:P,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:U,nolink:J,punctuation:R,reflink:H,reflinkSearch:W,tag:B,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:o},V={...q,link:s(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},G={...q,emStrongRDelimAst:j,emStrongLDelim:I,url:s(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Y={...G,br:s(E).replace("{2,}","*").getRegex(),text:s(G.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},X={normal:w,gfm:S,pedantic:C},Z={normal:q,gfm:G,breaks:Y,pedantic:V},Q={"&":"&","<":"<",">":">",'"':""","'":"'"},ee=e=>Q[e];function et(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,ee)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,ee);return e}function en(e){try{e=encodeURI(e).replace(l.percentDecode,"%")}catch{return null}return e}function er(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,"|");return n}function ei(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let o=e.charAt(r-i-1);if(o!==t||n)if(o!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function eo(e,t,n,r,i){let o=t.href,s=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}var es=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ei(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ei(e,"#");this.options.pedantic?e=t.trim():(!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ei(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ei(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,o=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),o=!0;else if(o)break;else s.push(e[t]);e=e.slice(t);let l=s.join("\n"),a=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
10
|
-
${l}`:l,r=r?`${r}
|
|
11
|
-
${a}`:a;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+"\n"+e.join("\n"),o=this.blockquote(t);i[i.length-1]=o,n=n.substring(0,n.length-c.raw.length)+o.raw,r=r.substring(0,r.length-c.text.length)+o.text;break}if(c?.type==="list"){let t=c.raw+"\n"+e.join("\n"),o=this.list(t);i[i.length-1]=o,n=n.substring(0,n.length-c.raw.length)+o.raw,r=r.substring(0,r.length-c.raw.length)+o.raw,e=t.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n,r=!1,l="",a="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let u=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],h=!u.trim(),d=0;if(this.options.pedantic?(d=2,a=u.trimStart()):h?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,a=u.slice(d),d+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(l+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),r=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let s,p=e.split("\n",1)[0];if(c=p,s=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),r.test(c)||i.test(c)||o.test(c)||t.test(c)||n.test(c))break;if(s.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+s.slice(d);else{if(h||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||r.test(u)||i.test(u)||n.test(u))break;a+="\n"+c}h||c.trim()||(h=!0),l+=p+"\n",e=e.substring(p.length+1),u=s.slice(d)}}!i.loose&&(s?i.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(s=!0));let p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(a))&&(n="[ ] "!==p[0],a=a.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:l,task:!!p,checked:n,loose:!1,text:a,tokens:[]}),i.raw+=l}let l=i.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=er(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(er(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ei(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eo(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eo(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,o,s=n,l=0,a="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=[...i].length,r[3]||r[4]){s+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){l+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s+l);let t=[...r[0]][0].length,a=e.slice(0,n+r.index+t+o);if(Math.min(n,o)%2){let e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}let u=a.slice(2,-2);return{type:"strong",raw:a,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},el=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new es,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:l,block:X.normal,inline:Z.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=Z.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=Z.breaks:t.inline=Z.gfm),this.tokenizer.rules=t}static get rules(){return{block:X,inline:Z}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(l.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(l.tabCharGlobal," ").replace(l.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&o?.type==="paragraph"?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";for(;e;){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,o))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},ea=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(l.notSpaceStart)?.[0],i=e.replace(l.endingNewline,"")+"\n";return r?'<pre><code class="language-'+et(r)+'">'+(n?i:et(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:et(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){let t=this.parser.parse(e);return`<blockquote>
|
|
12
|
-
${t}</blockquote>
|
|
13
|
-
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
14
|
-
`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+et(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
15
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
16
|
-
`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>
|
|
17
|
-
${e}</tr>
|
|
18
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
19
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${et(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=en(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+et(t)+'"'),o+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=en(e);if(null===i)return et(n);e=i;let o=`<img src="${e}" alt="${n}"`;return t&&(o+=` title="${et(t)}"`),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:et(e.text)}},eu=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ec=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new ea,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eu}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let o=i,s=this.renderer.text(o);for(;r+1<e.length&&"text"===e[r+1].type;)o=e[++r],s+="\n"+this.renderer.text(o);t?n+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):n+=s;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},eh=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?el.lex:el.lexInline}provideParser(){return this.block?ec.parse:ec.parseInline}},ed=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ec;Renderer=ea;TextRenderer=eu;Lexer=el;Tokenizer=es;Hooks=eh;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new ea(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new es(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eh;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];eh.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));let n=r.call(t,e);return i.call(t,n)}:t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return el.lex(e,t??this.defaults)}parser(e,t){return ec.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?el.lex:el.lexInline,l=i.hooks?i.hooks.provideParser():e?ec.parse:ec.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>l(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let e=s(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=l(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+et(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ep(e,t){return ed.parse(e,t)}ep.options=ep.setOptions=function(e){return ed.setOptions(e),ep.defaults=ed.defaults,i=ep.defaults,ep},ep.getDefaults=r,ep.defaults=i,ep.use=function(...e){return ed.use(...e),ep.defaults=ed.defaults,i=ep.defaults,ep},ep.walkTokens=function(e,t){return ed.walkTokens(e,t)},ep.parseInline=ed.parseInline,ep.Parser=ec,ep.parser=ec.parse,ep.Renderer=ea,ep.TextRenderer=eu,ep.Lexer=el,ep.lexer=el.lex,ep.Tokenizer=es,ep.Hooks=eh,ep.parse=ep,ep.options,ep.setOptions,ep.use,ep.walkTokens,ep.parseInline,ec.parse,el.lex},10986:(e,t,n)=>{"use strict";n.d(t,{$f:()=>O,G2:()=>b,I$:()=>C,Im:()=>L,Qv:()=>a,Sd:()=>y,Z1:()=>E,_G:()=>c,_e:()=>p,bh:()=>k,eB:()=>u,eT:()=>m,ec:()=>N,hy:()=>A,ic:()=>s,iz:()=>M,pC:()=>x,yY:()=>w,y_:()=>I});var r=n(14832),i=n(55156),o=n(63218);let s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}let a=(e,t,n)=>{let s=l(e,n);if(!s)return!1;let a=f(s);if(!a){let n=s.blockRange(),i=n&&(0,r.jP)(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=a.nodeBefore;if(T(e,a,t,-1))return!0;if(0==s.parent.content.size&&(d(u,"end")||o.nh.isSelectable(u)))for(let n=s.depth;;n--){let l=(0,r.$L)(e.doc,s.before(n),s.after(n),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let n=e.tr.step(l);n.setSelection(d(u,"end")?o.LN.findFrom(n.doc.resolve(n.mapping.map(a.pos,-1)),-1):o.nh.create(n.doc,a.pos-u.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||s.node(n-1).childCount>1)break}return!!u.isAtom&&a.depth==s.depth-1&&(t&&t(e.tr.delete(a.pos-u.nodeSize,a.pos).scrollIntoView()),!0)},u=(e,t,n)=>{let r=l(e,n);if(!r)return!1;let i=f(r);return!!i&&h(e,i,t)},c=(e,t,n)=>{let r=g(e,n);if(!r)return!1;let i=v(r);return!!i&&h(e,i,t)};function h(e,t,n){let s=t.nodeBefore,l=t.pos-1;for(;!s.isTextblock;l--){if(s.type.spec.isolating)return!1;let e=s.lastChild;if(!e)return!1;s=e}let a=t.nodeAfter,u=t.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let c=(0,r.$L)(e.doc,l,u,i.Ji.empty);if(!c||c.from!=l||c instanceof r.Ln&&c.slice.size>=u-l)return!1;if(n){let t=e.tr.step(c);t.setSelection(o.U3.create(t.doc,l)),n(t.scrollIntoView())}return!0}function d(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let p=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;s=f(r)}let l=s&&s.nodeBefore;return!!l&&!!o.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos-l.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function g(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}let m=(e,t,n)=>{let s=g(e,n);if(!s)return!1;let l=v(s);if(!l)return!1;let a=l.nodeAfter;if(T(e,l,t,1))return!0;if(0==s.parent.content.size&&(d(a,"start")||o.nh.isSelectable(a))){let n=(0,r.$L)(e.doc,s.before(),s.after(),i.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(d(a,"start")?o.LN.findFrom(r.doc.resolve(r.mapping.map(l.pos)),1):o.nh.create(r.doc,r.mapping.map(l.pos))),t(r.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==s.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},y=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;s=v(r)}let l=s&&s.nodeAfter;return!!l&&!!o.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos)).scrollIntoView()),!0)};function v(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let b=(e,t)=>{let n=e.selection,i=n instanceof o.nh,s;if(i){if(n.node.isTextblock||!(0,r.n9)(e.doc,n.from))return!1;s=n.from}else if(null==(s=(0,r.N0)(e.doc,n.from,-1)))return!1;if(t){let n=e.tr.join(s);i&&n.setSelection(o.nh.create(n.doc,s-e.doc.resolve(s).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},k=(e,t)=>{let n=e.selection,i;if(n instanceof o.nh){if(n.node.isTextblock||!(0,r.n9)(e.doc,n.to))return!1;i=n.to}else if(null==(i=(0,r.N0)(e.doc,n.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},w=(e,t)=>{let{$from:n,$to:i}=e.selection,o=n.blockRange(i),s=o&&(0,r.jP)(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)},x=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!n.parent.type.spec.code&&!!n.sameParent(r)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function S(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let C=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),l=S(i.contentMatchAt(s));if(!l||!i.canReplaceWith(s,s,l))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,l.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},E=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o.i5||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=S(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,l=e.tr.insert(n,s.createAndFill());l.setSelection(o.U3.create(l.doc,n+1)),t(l.scrollIntoView())}return!0},M=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},A=(e,t)=>{let{$from:n,to:r}=e.selection,i,s=n.sharedDepth(r);return 0!=s&&(i=n.before(s),t&&t(e.tr.setSelection(o.nh.create(e.doc,i))),!0)};function T(e,t,n,s){let l,a,u,c=t.nodeBefore,h=t.nodeAfter,p,f,g=c.type.spec.isolating||h.type.spec.isolating;if(!g&&(l=t.nodeBefore,a=t.nodeAfter,u=t.index(),l&&a&&l.type.compatibleContent(a.type)&&(!l.content.size&&t.parent.canReplace(u-1,u)?(n&&n(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(u,u+1)&&!!(a.isTextblock||(0,r.n9)(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let m=!g&&t.parent.canReplace(t.index(),t.index()+1);if(m&&(p=(f=c.contentMatchAt(c.childCount)).findWrapping(h.type))&&f.matchType(p[0]||h.type).validEnd){if(n){let o=t.pos+h.nodeSize,s=i.FK.empty;for(let e=p.length-1;e>=0;e--)s=i.FK.from(p[e].create(null,s));s=i.FK.from(c.copy(s));let l=e.tr.step(new r.Wg(t.pos-1,o,t.pos,o,new i.Ji(s,1,0),p.length,!0)),a=l.doc.resolve(o+2*p.length);a.nodeAfter&&a.nodeAfter.type==c.type&&(0,r.n9)(l.doc,a.pos)&&l.join(a.pos),n(l.scrollIntoView())}return!0}let y=h.type.spec.isolating||s>0&&g?null:o.LN.findFrom(t,1),v=y&&y.$from.blockRange(y.$to),b=v&&(0,r.jP)(v);if(null!=b&&b>=t.depth)return n&&n(e.tr.lift(v,b).scrollIntoView()),!0;if(m&&d(h,"start",!0)&&d(c,"end")){let o=c,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let l=h,a=1;for(;!l.isTextblock;l=l.firstChild)a++;if(o.canReplace(o.childCount,o.childCount,l.content)){if(n){let o=i.FK.empty;for(let e=s.length-1;e>=0;e--)o=i.FK.from(s[e].copy(o));n(e.tr.step(new r.Wg(t.pos-s.length,t.pos+h.nodeSize,t.pos+a,t.pos+h.nodeSize-a,new i.Ji(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function R(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}let O=R(-1),N=R(1);function L(e,t=null){return function(n,i){let{$from:o,$to:s}=n.selection,l=o.blockRange(s),a=l&&(0,r.oM)(l,e,t);return!!a&&(i&&i(n.tr.wrap(l,a).scrollIntoView()),!0)}}function I(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(o,s,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,e,t)}r(i.scrollIntoView())}return!0}}function _(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let D=_(s,a,p),j=_(s,m,y),P={Enter:_(x,E,M,(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!n.parentOffset&&!!(0,r.zy)(e.doc,n.pos)&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let s=[],l,a,u=!1,c=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){let t;u=n.end(e)==n.pos+(n.depth-e),c=n.start(e)==n.pos-(n.depth-e),a=S(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));s.unshift(t||(u&&a?{type:a}:null)),l=e;break}if(1==e)return!1;s.unshift(null)}let h=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&h.deleteSelection();let d=h.mapping.map(n.pos),p=(0,r.zy)(h.doc,d,s.length,s);if(p||(s[0]=a?{type:a}:null,p=(0,r.zy)(h.doc,d,s.length,s)),!p)return!1;if(h.split(d,s.length,s),!u&&c&&n.node(l).type!=a){let e=h.mapping.map(n.before(l)),t=h.doc.resolve(e);a&&n.node(l-1).canReplaceWith(t.index(),t.index()+1,a)&&h.setNodeMarkup(h.mapping.map(n.before(l)),a)}return t&&t(h.scrollIntoView()),!0}),"Mod-Enter":C,Backspace:D,"Mod-Backspace":D,"Shift-Backspace":D,Delete:j,"Mod-Delete":j,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},z={"Ctrl-h":P.Backspace,"Alt-Backspace":P["Mod-Backspace"],"Ctrl-d":P.Delete,"Ctrl-Alt-Backspace":P["Mod-Delete"],"Alt-Delete":P["Mod-Delete"],"Alt-d":P["Mod-Delete"],"Ctrl-a":O,"Ctrl-e":N};for(let e in P)z[e]=P[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},11270:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","filter","Filter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]])},11599:(e,t,n)=>{"use strict";n.d(t,{qW:()=>d});var r,i=n(29139),o=n(38903),s=n(5288),l=n(68798),a=n(92487),u=n(27123),c="dismissableLayer.update",h=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=i.forwardRef((e,t)=>{var n,d;let{disableOutsidePointerEvents:g=!1,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:b,onDismiss:k,...w}=e,x=i.useContext(h),[S,C]=i.useState(null),E=null!=(d=null==S?void 0:S.ownerDocument)?d:null==(n=globalThis)?void 0:n.document,[,M]=i.useState({}),A=(0,l.s)(t,e=>C(e)),T=Array.from(x.layers),[R]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),O=T.indexOf(R),N=S?T.indexOf(S):-1,L=x.layersWithOutsidePointerEventsDisabled.size>0,I=N>=O,_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,a.c)(e),o=i.useRef(!1),s=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){f("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",s.current),s.current=t,n.addEventListener("click",s.current,{once:!0})):t()}else n.removeEventListener("click",s.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));I&&!n&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==k||k())},E),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,a.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&f("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==k||k())},E);return!function(e,t=globalThis?.document){let n=(0,a.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===x.layers.size-1&&(null==m||m(e),!e.defaultPrevented&&k&&(e.preventDefault(),k()))},E),i.useEffect(()=>{if(S)return g&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(S)),x.layers.add(S),p(),()=>{g&&1===x.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[S,E,g,x]),i.useEffect(()=>()=>{S&&(x.layers.delete(S),x.layersWithOutsidePointerEventsDisabled.delete(S),p())},[S,x]),i.useEffect(()=>{let e=()=>M({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.sG.div,{...w,ref:A,style:{pointerEvents:L?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,_.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function f(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,s.hO)(o,l):o.dispatchEvent(l)}d.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(h),r=i.useRef(null),o=(0,l.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(s.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},12591:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","refresh","Refresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]])},12811:(e,t,n)=>{"use strict";e.exports=n(68611)},13759:(e,t,n)=>{"use strict";n.d(t,{JR:()=>S,_G:()=>c,gB:()=>p,gl:()=>k});var r=n(29139),i=n(77945),o=n(35115);function s(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e){return null!==e&&e>=0}let a=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,o=s(t,r,n),l=t[i],a=o[i];return a&&l?{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}:null},u={scaleX:1,scaleY:1},c=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e,l=null!=(t=o[n])?t:r;if(!l)return null;if(i===n){let e=o[s];return e?{x:0,y:n<s?e.top+e.height-(l.top+l.height):e.top-l.top,...u}:null}let a=function(e,t,n){let r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(o,i,n);return i>n&&i<=s?{x:0,y:-l.height-a,...u}:i<n&&i>=s?{x:0,y:l.height+a,...u}:{x:0,y:0,...u}},h="Sortable",d=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:a,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:s,strategy:l=a,disabled:u=!1}=e,{active:c,dragOverlay:p,droppableRects:f,over:g,measureDroppableContainers:m}=(0,i.fF)(),y=(0,o.YG)(h,n),v=null!==p.rect,b=(0,r.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),k=null!=c,w=c?b.indexOf(c.id):-1,x=g?b.indexOf(g.id):-1,S=(0,r.useRef)(b),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,S.current),E=-1!==x&&-1===w||C,M="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,o.Es)(()=>{C&&k&&m(b)},[C,b,k,m]),(0,r.useEffect)(()=>{S.current=b},[b]);let A=(0,r.useMemo)(()=>({activeIndex:w,containerId:y,disabled:M,disableTransforms:E,items:b,overIndex:x,useDragOverlay:v,sortedRects:b.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(b.length)),strategy:l}),[w,y,M.draggable,M.droppable,E,b,x,f,v,l]);return r.createElement(d.Provider,{value:A},t)}let f=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:l,previousContainerId:a,transition:u}=e;return!!u&&!!r&&(l===o||i!==s)&&(!!n||s!==i&&t===a)},m={duration:200,easing:"ease"},y="transform",v=o.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),b={roleDescription:"sortable"};function k(e){var t,n,s,a;let{animateLayoutChanges:u=g,attributes:c,disabled:h,data:p,getNewIndex:k=f,id:w,strategy:x,resizeObserverConfig:S,transition:C=m}=e,{items:E,containerId:M,activeIndex:A,disabled:T,disableTransforms:R,sortedRects:O,overIndex:N,useDragOverlay:L,strategy:I}=(0,r.useContext)(d),_=(t=h,n=T,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(s=null==t?void 0:t.draggable)?s:n.draggable,droppable:null!=(a=null==t?void 0:t.droppable)?a:n.droppable}),D=E.indexOf(w),j=(0,r.useMemo)(()=>({sortable:{containerId:M,index:D,items:E},...p}),[M,p,D,E]),P=(0,r.useMemo)(()=>E.slice(E.indexOf(w)),[E,w]),{rect:z,node:$,isOver:F,setNodeRef:B}=(0,i.zM)({id:w,data:j,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:P,...S}}),{active:K,activatorEvent:U,activeNodeRect:H,attributes:J,setNodeRef:W,listeners:q,isDragging:V,over:G,setActivatorNodeRef:Y,transform:X}=(0,i.PM)({id:w,data:j,attributes:{...b,...c},disabled:_.draggable}),Z=(0,o.jn)(B,W),Q=!!K,ee=Q&&!R&&l(A)&&l(N),et=!L&&V,en=et&&ee?X:null,er=ee?null!=en?en:(null!=x?x:I)({rects:O,activeNodeRect:H,activeIndex:A,overIndex:N,index:D}):null,ei=l(A)&&l(N)?k({id:w,items:E,activeIndex:A,overIndex:N}):D,eo=null==K?void 0:K.id,es=(0,r.useRef)({activeId:eo,items:E,newIndex:ei,containerId:M}),el=E!==es.current.items,ea=u({active:K,containerId:M,isDragging:V,isSorting:Q,id:w,index:D,items:E,newIndex:es.current.newIndex,previousItems:es.current.items,previousContainerId:es.current.containerId,transition:C,wasDragging:null!=es.current.activeId}),eu=function(e){let{disabled:t,index:n,node:s,rect:l}=e,[a,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,o.Es)(()=>{if(!t&&n!==c.current&&s.current){let e=l.current;if(e){let t=(0,i.Sj)(s.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)},[t,n,s,l]),(0,r.useEffect)(()=>{a&&u(null)},[a]),a}({disabled:!ea,index:D,node:$,rect:z});return(0,r.useEffect)(()=>{Q&&es.current.newIndex!==ei&&(es.current.newIndex=ei),M!==es.current.containerId&&(es.current.containerId=M),E!==es.current.items&&(es.current.items=E)},[Q,ei,M,E]),(0,r.useEffect)(()=>{if(eo===es.current.activeId)return;if(eo&&!es.current.activeId){es.current.activeId=eo;return}let e=setTimeout(()=>{es.current.activeId=eo},50);return()=>clearTimeout(e)},[eo]),{active:K,activeIndex:A,attributes:J,data:j,rect:z,index:D,newIndex:ei,items:E,isOver:F,isSorting:Q,isDragging:V,listeners:q,node:$,overIndex:N,over:G,setNodeRef:Z,setActivatorNodeRef:Y,setDroppableNodeRef:B,setDraggableNodeRef:W,transform:null!=eu?eu:er,transition:eu||el&&es.current.newIndex===D?v:(!et||(0,o.kx)(U))&&C&&(Q||ea)?o.Ks.Transition.toString({...C,property:y}):void 0}}function w(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let x=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],S=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:s,droppableContainers:l,over:a,scrollableAncestors:u}}=t;if(x.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];l.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let o=s.get(n.id);if(o)switch(e.code){case i.vL.Down:r.top<o.top&&t.push(n);break;case i.vL.Up:r.top>o.top&&t.push(n);break;case i.vL.Left:r.left>o.left&&t.push(n);break;case i.vL.Right:r.left<o.left&&t.push(n)}});let c=(0,i.y$)({active:n,collisionRect:r,droppableRects:s,droppableContainers:t,pointerCoordinates:null}),h=(0,i.Vy)(c,"id");if(h===(null==a?void 0:a.id)&&c.length>1&&(h=c[1].id),null!=h){let e=l.get(n.id),t=l.get(h),a=t?s.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){let n=(0,i.sl)(c).some((e,t)=>u[t]!==e),s=C(e,t),l=function(e,t){return!!w(e)&&!!w(t)&&!!C(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),h=n||!s?{x:0,y:0}:{x:l?r.width-a.width:0,y:l?r.height-a.height:0},d={x:a.left,y:a.top};return h.x&&h.y?d:(0,o.Re)(d,h)}}}};function C(e,t){return!!w(e)&&!!w(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},14791:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]])},14832:(e,t,n)=>{"use strict";n.d(t,{$L:()=>R,Ln:()=>g,N0:()=>A,Um:()=>T,Wg:()=>m,X9:()=>s,Ys:()=>d,dL:()=>F,jP:()=>b,n9:()=>E,oM:()=>k,zy:()=>C});var r=n(55156);class i{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&o.empty)return o.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let u=this.ranges[l+o],c=this.ranges[l+s],h=a+u;if(e<=h){let o=u?e==a?-1:e==h?1:t:t,s=a+r+(o<0?0:c);if(n)return s;let d=e==(t<0?a:h)?null:l/3+(e-a)*65536,p=e==a?2:e==h?1:4;return(t<0?e!=a:e!=h)&&(p|=8),new i(s,p,d)}r+=c-u}return n?e+r:new i(e+r,0,null)}touches(e,t){let n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let l=this.ranges[t+i];if(e<=s+l&&t==3*r)return!0;n+=this.ranges[t+o]-l}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?i:0),l=o+(this.inverted?0:i),a=this.ranges[r+t],u=this.ranges[r+n];e(s,s+a,l,l+u),i+=u-a}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?o.empty:new o(e<0?[0,-e,0]:[0,0,e])}}o.empty=new o([]);class s{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new s(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new s;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new i(e,r,null)}}let l=Object.create(null);class a{getMap(){return o.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=l[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in l)throw RangeError("Duplicate use of step JSON ID "+e);return l[e]=t,t.prototype.jsonID=e,t}}class u{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new u(e,null)}static fail(e){return new u(null,e)}static fromReplace(e,t,n,i){try{return u.ok(e.replace(t,n,i))}catch(e){if(e instanceof r.vI)return u.fail(e.message);throw e}}}function c(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);o.content.size&&(o=o.copy(c(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return r.FK.fromArray(i)}class h extends a{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),o=new r.Ji(c(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,o)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}a.jsonID("addMark",h);class d extends a{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r.Ji(c(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,n)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new d(t.pos,n.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}a.jsonID("removeMark",d);class p extends a{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new p(this.pos,t.marks[n]);return new p(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}a.jsonID("addNodeMark",p);class f extends a{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new p(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}a.jsonID("removeNodeMark",f);class g extends a{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&y(e,this.from,this.to)?u.fail("Structure replace would overwrite content"):u.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(e){return new g(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new g(t.pos,Math.max(t.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof g)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new g(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new g(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new g(t.from,t.to,r.Ji.fromJSON(e,t.slice),!!t.structure)}}a.jsonID("replace",g);class m extends a{constructor(e,t,n,r,i,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(y(e,this.from,this.gapFrom)||y(e,this.gapTo,this.to)))return u.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return u.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?u.fromReplace(e,this.from,this.to,n):u.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new m(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new m(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new m(t.from,t.to,t.gapFrom,t.gapTo,r.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function y(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function v(e,t,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<s.childCount;t++){let u=s.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)n.allowsMarkType(u.marks[t].type)||e.step(new d(a,c,u.marks[t]));if(o&&u.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),l.push(new g(a+e.index,a+e.index+e[0].length,i))}}else l.push(new g(a,c,r.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(r.FK.empty,!0);e.replace(a,a,new r.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function b(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let o=e.$from.node(n),s=e.$from.index(n)+r,l=e.$to.indexAfter(n)-i;if(n<e.depth&&o.canReplace(s,l,t))return n;if(0==n||o.type.spec.isolating||!((0==s||o.canReplace(s,o.childCount))&&(l==o.childCount||o.canReplace(0,l))))break;s&&(r=1),l<o.childCount&&(i=1)}return null}function k(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;l&&e<i;e++)l=l.matchType(n.child(e).type);return l&&l.validEnd?s:null}(r,t);return o?i.map(w).concat({type:t,attrs:n}).concat(o.map(w)):null}function w(e){return{type:e,attrs:null}}function x(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(i.text);){let i=e.mapping.slice(r).map(n+1+o+s.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function S(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function C(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>o;e--,t--){let n=i.node(e),o=i.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(o,n.childCount),l=r&&r[t+1];l&&(s=s.replaceChild(0,l.type.create(l.attrs)));let a=r&&r[t]||n;if(!n.canReplace(o+1,n.childCount)||!a.type.validContent(s))return!1}let l=i.indexAfter(o),a=r&&r[0];return i.node(o).canReplaceWith(l,l,a?a.type:i.node(o+1).type)}function E(e,t){let n=e.resolve(t),r=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function M(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==r?e.type.schema.nodes.text:o.type;if(!(n=n.matchType(s))||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(e,t))}function A(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,o,s=r.index(e);if(e==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(e+1),s++,o=r.node(e).maybeChild(s)):(i=r.node(e).maybeChild(s-1),o=r.node(e+1)),i&&!i.isTextblock&&M(i,o)&&r.node(e).canReplace(s,s+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function T(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,o=r.index(t)+ +(n>0),s=r.node(t),l=!1;if(1==e)l=s.canReplace(o,o,i);else{let e=s.contentMatchAt(o).findWrapping(i.firstChild.type);l=e&&s.canReplaceWith(o,o,e[0])}if(l)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function R(e,t,n=t,i=r.Ji.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),s=e.resolve(n);return O(o,s,i)?new g(t,n,i):new N(o,s,i).fit()}function O(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}a.jsonID("replaceAround",m);class N{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,s=n.depth,l=i.depth;for(;s&&l&&1==o.childCount;)o=o.firstChild.content,s--,l--;let a=new r.Ji(o,s,l);return e>-1?new m(n.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||n.pos!=this.$to.pos?new g(n.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,i=(n?(e=_(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:s,match:l}=this.frontier[o],a,u=null;if(1==t&&(i?l.matchType(i.type)||(u=l.fillBefore(r.FK.from(i),!1)):e&&s.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:o,parent:e,inject:u};if(2==t&&i&&(a=l.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:o,parent:e,wrap:a};if(e&&l.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=_(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new r.Ji(e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=_(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r.Ji(L(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r.Ji(L(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let s=this.unplaced,l=n?n.content:s.content,a=s.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(s.content.size-s.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(function e(t,n,i){if(n<=0)return t;let o=t.content;return n>1&&(o=o.replaceChild(0,e(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=t.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),t.copy(o)}(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=I(this.placed,t,r.FK.from(c)),this.frontier[t].match=h,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?r.Ji.empty:new r.Ji(L(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new r.Ji(L(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!D(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=D(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=D(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=I(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=I(this.placed,this.depth,r.FK.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.FK.empty,!0);e.childCount&&(this.placed=I(this.placed,this.frontier.length,e))}}function L(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(L(e.firstChild.content,t-1,n)))}function I(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(I(e.lastChild.content,t-1,n)))}function _(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function D(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let l=r.fillBefore(o.content,!0,s);return l&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,s)?l:null}function j(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class P extends a{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return u.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(i),0,+!t.isLeaf))}getMap(){return o.empty}invert(e){return new P(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new P(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new P(t.pos,t.attr,t.value)}}a.jsonID("attr",P);class z extends a{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return u.ok(n)}getMap(){return o.empty}invert(e){return new z(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new z(t.attr,t.value)}}a.jsonID("docAttr",z);let $=class extends Error{};($=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),$.prototype.constructor=$,$.prototype.name="TransformError";class F{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new $(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.Ji.empty){let i=R(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r.Ji(r.FK.from(n),0,0))}delete(e,t){return this.replace(e,t,r.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),s=e.doc.resolve(n);if(O(o,s,i))return e.step(new g(t,n,i));let l=j(o,s);0==l[l.length-1]&&l.pop();let a=-(o.depth+1);l.unshift(a);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;l.indexOf(e)>-1?a=e:o.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==i.openStart)break;e=n.content}for(let e=h-1;e>=0;e--){var d;let t=c[e],n=(d=t.type).spec.defining||d.spec.definingForContent;if(n&&!t.sameMarkup(o.node(Math.abs(a)-1)))h=e;else if(n||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=o.node(c-1),f=o.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(o.before(c),h?s.after(c):n,new r.Ji(function e(t,n,i,o,s){if(n<i){let r=t.firstChild;t=t.replaceChild(0,r.copy(e(r.content,n+1,i,o,r)))}if(n>o){let e=s.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.FK.empty,!0))}return t}(i.content,0,i.openStart,a),a,i.openEnd))}}let p=e.steps.length;for(let r=l.length-1;r>=0&&(e.replace(t,n,i),!(e.steps.length>p));r--){let e=l[r];e<0||(t=o.before(e),n=s.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){var i=e,o=t;if(!n.isInline&&i==o&&this.doc.resolve(i).parent.content.size){let e=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(this.doc,i,n.type);null!=e&&(i=o=e)}return this.replaceRange(i,o,new r.Ji(r.FK.from(n),0,0)),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=j(r,i);for(let t=0;t<o.length;t++){let n=o[t],s=t==o.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return e.delete(r.before(o),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:i,$to:o,depth:s}=t,l=i.before(s+1),a=o.after(s+1),u=l,c=a,h=r.FK.empty,d=0;for(let e=s,t=!1;e>n;e--)t||i.index(e)>0?(t=!0,h=r.FK.from(i.node(e).copy(h)),d++):u--;let p=r.FK.empty,f=0;for(let e=s,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,p=r.FK.from(o.node(e).copy(p)),f++):c++;e.step(new m(u,c,l,a,new r.Ji(h.append(p),d,f),h.size-d,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(t-n),l=s.node().type;if(o&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let r=e.doc.resolve(t+n);S(e,r.node(),r.before(),a)}l.inlineContent&&v(e,t+n-1,l,s.node().contentMatchAt(s.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-n);if(e.step(new g(c,u.map(t+n,-1),r.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);x(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let i=r.FK.empty;for(let e=n.length-1;e>=0;e--){if(i.size){let t=n[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.FK.from(n[e].type.create(n[e].attrs,i))}let o=t.start,s=t.end;e.step(new m(o,s,o,s,new r.Ji(i,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,i=null){var o=this;if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let s=o.steps.length;return o.doc.nodesBetween(e,t,(e,t)=>{var l,a,u;let c,h,d="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(n,d)&&(l=o.doc,a=o.mapping.slice(s).map(t),u=n,h=(c=l.resolve(a)).index(),c.parent.canReplaceWith(h,h+1,u))){let i=null;if(n.schema.linebreakReplacement){let e="pre"==n.whitespace,t=!!n.contentMatch.matchType(n.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&S(o,e,t,s),v(o,o.mapping.slice(s).map(t,1),n,void 0,null===i);let l=o.mapping.slice(s),a=l.map(t,1),u=l.map(t+e.nodeSize,1);return o.step(new m(a,u,a+1,u-1,new r.Ji(r.FK.from(n.create(d,null,e.marks)),0,0),1,!0)),!0===i&&x(o,e,t,s),!1}}),this}setNodeMarkup(e,t,n=null,i){return!function(e,t,n,i,o){let s=e.doc.nodeAt(t);if(!s)throw RangeError("No node at given position");n||(n=s.type);let l=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,l);if(!n.validContent(s.content))throw RangeError("Invalid content for node type "+n.name);e.step(new m(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new r.Ji(r.FK.from(l),0,0),1,!0))}(this,e,t,n,i),this}setNodeAttribute(e,t,n){return this.step(new P(e,t,n)),this}setDocAttribute(e,t){return this.step(new z(e,t)),this}addNodeMark(e,t){return this.step(new p(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(t instanceof r.CU)t.isInSet(n.marks)&&this.step(new f(e,t));else{let r=n.marks,i,o=[];for(;i=t.isInSet(r);)o.push(new f(e,i)),r=i.removeFromSet(r);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,n){return!function(e,t,n=1,i){let o=e.doc.resolve(t),s=r.FK.empty,l=r.FK.empty;for(let e=o.depth,t=o.depth-n,a=n-1;e>t;e--,a--){s=r.FK.from(o.node(e).copy(s));let t=i&&i[a];l=r.FK.from(t?t.type.create(t.attrs,l):o.node(e).copy(l))}e.step(new g(t,t,new r.Ji(s.append(l),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let i,o,s,l;return r=this,s=[],l=[],r.doc.nodesBetween(e,t,(r,a,u)=>{if(!r.isInline)return;let c=r.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,e),p=Math.min(a+r.nodeSize,t),f=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(f)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=p:s.push(i=new d(u,p,c[e])));o&&o.to==u?o.to=p:l.push(o=new h(u,p,n))}}),s.forEach(e=>r.step(e)),l.forEach(e=>r.step(e)),this}removeMark(e,t,n){var i;let o,s;return i=this,o=[],s=0,i.doc.nodesBetween(e,t,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(n instanceof r.sX){let e=i.marks,t;for(;t=n.isInSet(e);)(a||(a=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length){let n=Math.min(l+i.nodeSize,t);for(let t=0;t<a.length;t++){let r=a[t],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==s-1&&r.eq(o[e].style)&&(i=t)}i?(i.to=n,i.step=s):o.push({style:r,from:Math.max(l,e),to:n,step:s})}}}),o.forEach(e=>i.step(new d(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return v(this,e,t,n),this}}},15427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},useLinkStatus:function(){return v}});let r=n(45788),i=n(27123),o=r._(n(29139)),s=n(1838),l=n(33160),a=n(93659),u=n(62720),c=n(96706);n(9205);let h=n(60083),d=n(2359),p=n(86151);n(89309);let f=n(89352);function g(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function m(e){var t;let n,r,s,[m,v]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),b=(0,o.useRef)(null),{href:k,as:w,children:x,prefetch:S=null,passHref:C,replace:E,shallow:M,scroll:A,onClick:T,onMouseEnter:R,onTouchStart:O,legacyBehavior:N=!1,onNavigate:L,ref:I,unstable_dynamicOnHover:_,...D}=e;n=x,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let j=o.default.useContext(l.AppRouterContext),P=!1!==S,z=!1!==S?null===(t=S)||"auto"===t?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:$,as:F}=o.default.useMemo(()=>{let e=g(k);return{href:e,as:w?g(w):e}},[k,w]);N&&(r=o.default.Children.only(n));let B=N?r&&"object"==typeof r&&r.ref:I,K=o.default.useCallback(e=>(null!==j&&(b.current=(0,h.mountLinkInstance)(e,$,j,z,P,v)),()=>{b.current&&((0,h.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,h.unmountPrefetchableInstance)(e)}),[P,$,j,z,v]),U={ref:(0,a.useMergedRef)(K,B),onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),j&&(e.defaultPrevented||function(e,t,n,r,i,s,l){let{nodeName:a}=e.currentTarget;if(!("A"===a.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,d.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,p.dispatchNavigateAction)(n||t,i?"replace":"push",null==s||s,r.current)})}}(e,$,F,b,E,A,L))},onMouseEnter(e){N||"function"!=typeof R||R(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),j&&P&&(0,h.onNavigationIntent)(e.currentTarget,!0===_)},onTouchStart:function(e){N||"function"!=typeof O||O(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),j&&P&&(0,h.onNavigationIntent)(e.currentTarget,!0===_)}};return(0,u.isAbsoluteUrl)(F)?U.href=F:N&&!C&&("a"!==r.type||"href"in r.props)||(U.href=(0,c.addBasePath)(F)),s=N?o.default.cloneElement(r,U):(0,i.jsx)("a",{...D,...U,children:n}),(0,i.jsx)(y.Provider,{value:m,children:s})}let y=(0,o.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,o.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17507:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","brand-vscode","BrandVscode",[["path",{d:"M16 3v18l4 -2.5v-13z",key:"svg-0"}],["path",{d:"M9.165 13.903l-4.165 3.597l-2 -1l4.333 -4.5m1.735 -1.802l6.932 -7.198v5l-4.795 4.141",key:"svg-1"}],["path",{d:"M16 16.5l-11 -10l-2 1l13 13.5",key:"svg-2"}]])},18704:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]])},20127:(e,t,n)=>{"use strict";n.d(t,{Te:()=>p});var r=/highlight-(?:text|source)-([a-z0-9]+)/;function i(e){e.addRule("highlightedCodeBlock",{filter:function(e){var t=e.firstChild;return"DIV"===e.nodeName&&r.test(e.className)&&t&&"PRE"===t.nodeName},replacement:function(e,t,n){var i=((t.className||"").match(r)||[null,""])[1];return"\n\n"+n.fence+i+"\n"+t.firstChild.textContent+"\n"+n.fence+"\n\n"}})}function o(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(e){return"~"+e+"~"}})}var s=Array.prototype.indexOf,l=Array.prototype.every,a={};function u(e){var t,n,r=e.parentNode;return"THEAD"===r.nodeName||r.firstChild===e&&("TABLE"===r.nodeName||(n=(t=r).previousSibling,"TBODY"===t.nodeName&&(!n||"THEAD"===n.nodeName&&/^\s*$/i.test(n.textContent))))&&l.call(e.childNodes,function(e){return"TH"===e.nodeName})}function c(e,t){var n=s.call(t.parentNode.childNodes,t),r=" ";return 0===n&&(r="| "),r+e+" |"}function h(e){for(var t in e.keep(function(e){return"TABLE"===e.nodeName&&!u(e.rows[0])}),a)e.addRule(t,a[t])}function d(e){e.addRule("taskListItems",{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}})}function p(e){e.use([i,o,h,d])}a.tableCell={filter:["th","td"],replacement:function(e,t){return c(e,t)}},a.tableRow={filter:"tr",replacement:function(e,t){var n="",r={left:":--",right:"--:",center:":-:"};if(u(t))for(var i=0;i<t.childNodes.length;i++){var o="---",s=(t.childNodes[i].getAttribute("align")||"").toLowerCase();s&&(o=r[s]||o),n+=c(o,t.childNodes[i])}return"\n"+e+(n?"\n"+n:"")}},a.table={filter:function(e){return"TABLE"===e.nodeName&&u(e.rows[0])},replacement:function(e){return"\n\n"+(e=e.replace("\n\n","\n"))+"\n\n"}},a.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}}},21431:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});let o=r(n(71958)),s=n(57003),l=i(n(29139));function a(e,t,n,r){let i,o,s=t?null:function(e){let t={};return e.bg&&(t.backgroundColor=`rgb(${e.bg})`),e.fg&&(t.color=`rgb(${e.fg})`),t}(n),a=t?(o="",(n.bg&&(o+=`${n.bg}-bg `),n.fg&&(o+=`${n.fg}-fg `),n.decoration&&(o+=`ansi-${n.decoration} `),""===o)?null:o=o.substring(0,o.length-1)):null;if(!e)return l.createElement("span",{style:s,key:r,className:a},n.content);let u=[],c=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g,h=0;for(;null!==(i=c.exec(n.content));){let[,e,t]=i,r=i.index+e.length;r>h&&u.push(n.content.substring(h,r));let o=t.startsWith("www.")?`http://${t}`:t;u.push(l.createElement("a",{key:h,href:o,target:"_blank"},`${t}`)),h=c.lastIndex}return h<n.content.length&&u.push(n.content.substring(h)),l.createElement("span",{style:s,key:r,className:a},u)}t.default=function(e){let{className:t,useClasses:n,children:r,linkify:i}=e;return l.createElement("code",{className:t},(function(e,t=!1){return e=s.escapeCarriageReturn(function(e){let t=e;do t=(e=t).replace(/[^\n]\x08/gm,"");while(t.length<e.length);return e}(e)),o.default.ansiToJson(e,{json:!0,remove_empty:!0,use_classes:t})})(null!=r?r:"",null!=n&&n).map(a.bind(null,null!=i&&i,null!=n&&n)))}},24595:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r,i=n(29139),o=n(37893),s=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function a(e){let[t,n]=i.useState(s());return(0,o.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},24779:(e,t,n)=>{"use strict";n.d(t,{QO:()=>D,vR:()=>j,Or:()=>P,LN:()=>z,JU:()=>F,lb:()=>B});var r=n(25874),i=n(63218),o=n(14832);class s{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=t.width)?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),l=s.width/o.offsetWidth,a=s.height/o.offsetHeight;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*a;i={left:r.left,right:r.right,top:o-s,bottom:o+s}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let n=u.getBoundingClientRect(),r=n.width/u.offsetWidth,i=n.height/u.offsetHeight;e=n.left-u.scrollLeft*r,t=n.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/a+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,o.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var l=n(89841),a=n(81122),u=n(55156);class c extends i.LN{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return c.valid(n)?new c(n):i.LN.near(n)}content(){return u.Ji.empty}eq(e){return e instanceof c&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new c(e.resolve(t.pos))}getBookmark(){return new h(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||d(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||d(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){t:for(;;){if(!n&&c.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(c.valid(s))return s}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!i.nh.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue t}break}o=s,r+=t;let l=e.doc.resolve(r);if(c.valid(l))return l}return null}}}c.prototype.visible=!1,c.findFrom=c.findGapCursorFrom,i.LN.jsonID("gapcursor",c);class h{constructor(e){this.pos=e}map(e){return new h(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return c.valid(t)?new c(t):i.LN.near(t)}}function d(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}let p=(0,a.K)({ArrowLeft:f("horiz",-1),ArrowRight:f("horiz",1),ArrowUp:f("vert",-1),ArrowDown:f("vert",1)});function f(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let s=e.selection,l=t>0?s.$to:s.$from,a=s.empty;if(s instanceof i.U3){if(!o.endOfTextblock(n)||0==l.depth)return!1;a=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=c.findGapCursorFrom(l,t,a);return!!u&&(r&&r(e.tr.setSelection(new c(u))),!0)}}function g(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!c.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new c(r))),!0)}function m(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof c))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=u.FK.empty;for(let e=r.length-1;e>=0;e--)o=u.FK.from(r[e].createAndFill(null,o));let s=e.state.tr.replace(n.pos,n.pos,new u.Ji(o,0,0));return s.setSelection(i.U3.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function y(e){if(!(e.selection instanceof c))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",l.zF.create(e.doc,[l.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var v=function(){};v.prototype.append=function(e){return e.length?(e=v.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},v.prototype.prepend=function(e){return e.length?v.from(e).append(this):this},v.prototype.appendInner=function(e){return new k(this,e)},v.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?v.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},v.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},v.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},v.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},v.from=function(e){return e instanceof v?e:e&&e.length?new b(e):v.empty};var b=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(v);v.empty=new b([]);var k=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(v);class w{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}t&&(r=(n=this.remapping(s,this.items.length)).maps.length);let l=e.tr,a=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(s,t+1)).maps.length),r--,u.push(e);return}if(n){u.push(new x(e.map));let t=e.step.map(n.slice(r)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new x(i,void 0,void 0,a.length+u.length))),r--,i&&n.appendMap(i,r)}else l.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new w(this.items.slice(0,s).append(u.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:l,selection:i}}addTransform(e,t,n,r){var i,o;let s,l=[],a=this.eventCount,u=this.items,c=!r&&u.length?u.get(u.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),o=new x(e.mapping.maps[n],i,t),s;(s=c&&c.merge(o))&&(o=s,n?l.pop():u=u.slice(0,u.length-1)),l.push(o),t&&(a++,t=void 0),r||(c=o)}let h=a-n.depth;return h>C&&(i=u,o=h,i.forEach((e,t)=>{if(e.selection&&0==o--)return s=t,!1}),u=i.slice(s),a-=h),new w(u.append(l),a)}remapping(e,t){let n=new o.X9;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new w(this.items.append(e.map(e=>new x(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let l=t;this.items.forEach(t=>{let r=i.getMirror(--l);if(null==r)return;o=Math.min(o,r);let a=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(l+1,r));u&&s++,n.push(new x(a,o,u))}else n.push(new x(a))},r);let a=[];for(let e=t;e<o;e++)a.push(new x(i.maps[e]));let u=new w(this.items.slice(0,r).append(a).append(n),s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)r.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let l=o.selection&&o.selection.map(t.slice(n));l&&i++;let a=new x(s.invert(),e,l),u,c=r.length-1;(u=r.length&&r[c].merge(a))?r[c]=u:r.push(a)}}else o.map&&n--},this.items.length,0),new w(v.from(r.reverse()),i)}}w.empty=new w(v.empty,0);class x{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new x(t.getMap().invert(),t,this.selection)}}}class S{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let C=20;function E(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function M(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let A=!1,T=null;function R(e){let t=e.plugins;if(T!=t){A=!1,T=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){A=!0;break}}return A}let O=new i.hs("history"),N=new i.hs("closeHistory");function L(e,t){return(n,r)=>{let i=O.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=R(t),i=O.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),l=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),a=new S(n?l:o.remaining,n?o.remaining:l,null,0,-1);return o.transform.setSelection(s).setMeta(O,{redo:n,historyState:a})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let I=L(!1,!0),_=L(!0,!0);L(!1,!1),L(!0,!1),r.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let t=r.tr.deleteRange(0,o-i);return e=!0,t}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta("paste"))return!1;let o=e.selection.$head.pos;return e.deleteRange(o-(i-n),o),!(this.storage.characters({node:e.doc})>n)}})]}});var D=r.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new i.k_({view:t=>new s(t,e)})}(this.options)]}});r.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,o=[];if(!n||!r)return l.zF.create(e,[]);let s=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;s+=1}});let a=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((a+=1,"deepest"===this.options.mode&&s-a>0||"shallowest"===this.options.mode&&a>1)?"deepest"===this.options.mode:void o.push(l.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),l.zF.create(e,o)}}})]}});var j=r.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new i.k_({props:{decorations:y,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&c.valid(n)?new c(n):null,handleClick:g,handleKeyDown:p,handleDOMEvents:{beforeinput:m}}})],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,r.gk)((0,r.iI)(e,"allowGapCursor",n)))?t:null}}}),P=r.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("placeholder"),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,o=[];if(!n)return null;let s=this.editor.isEmpty;return e.descendants((e,t)=>{let n=i>=t&&i<=t+e.nodeSize,a=!e.isLeaf&&(0,r.Op)(e);if((n||!this.options.showOnlyCurrent)&&a){let r=[this.options.emptyNodeClass];s&&r.push(this.options.emptyEditorClass);let i=l.NZ.node(t,t+e.nodeSize,{class:r.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});o.push(i)}return this.options.includeChildren}),l.zF.create(e,o)}}})]}}),z=r.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:n=>n.selection.empty||e.isFocused||!e.isEditable||(0,r.BQ)(n.selection)||e.view.dragging?null:l.zF.create(n.doc,[l.NZ.inline(n.selection.from,n.selection.to,{class:t.className})])}})]}});function $({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var F=r.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),n=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(n).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,r,i)=>{let{doc:o,tr:s,schema:l}=i,a=t.getState(i),u=o.content.size,c=l.nodes[n];if(a)return s.insert(u,c.create())},state:{init:(e,t)=>!$({node:t.tr.doc.lastChild,types:r}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!$({node:e.doc.lastChild,types:r})}})]}}),B=r.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>I(e,t),redo:()=>({state:e,dispatch:t})=>_(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:O,state:{init:()=>new S(w.empty,w.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(O),o;if(i)return i.historyState;n.getMeta(N)&&(e=new S(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(O))if(s.getMeta(O).redo)return new S(e.done.addTransform(n,void 0,r,R(t)),e.undone,E(n.mapping.maps),e.prevTime,e.prevComposition);else return new S(e.done,e.undone.addTransform(n,void 0,r,R(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new S(e.done.rebased(n,o),e.undone.rebased(n,o),M(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new S(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),M(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),l=s?M(e.prevRanges,n.mapping):E(n.mapping.maps);return new S(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,R(t)),w.empty,l,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?I:"historyRedo"==n?_:null;return!!r&&!!e.editable&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},26389:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","player-pause","PlayerPause",[["path",{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},28037:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","git-commit","GitCommit",[["path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-0"}],["path",{d:"M12 3l0 6",key:"svg-1"}],["path",{d:"M12 15l0 6",key:"svg-2"}]])},28797:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(24779).Or},29444:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","bug","Bug",[["path",{d:"M9 9v-1a3 3 0 0 1 6 0v1",key:"svg-0"}],["path",{d:"M8 9h8a6 6 0 0 1 1 3v3a5 5 0 0 1 -10 0v-3a6 6 0 0 1 1 -3",key:"svg-1"}],["path",{d:"M3 13l4 0",key:"svg-2"}],["path",{d:"M17 13l4 0",key:"svg-3"}],["path",{d:"M12 20l0 -6",key:"svg-4"}],["path",{d:"M4 19l3.35 -2",key:"svg-5"}],["path",{d:"M20 19l-3.35 -2",key:"svg-6"}],["path",{d:"M4 7l3.75 2.4",key:"svg-7"}],["path",{d:"M20 7l-3.75 2.4",key:"svg-8"}]])},29659:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","code-dots","CodeDots",[["path",{d:"M15 12h.01",key:"svg-0"}],["path",{d:"M12 12h.01",key:"svg-1"}],["path",{d:"M9 12h.01",key:"svg-2"}],["path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2",key:"svg-3"}],["path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2",key:"svg-4"}]])},30496:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","list-details","ListDetails",[["path",{d:"M13 5h8",key:"svg-0"}],["path",{d:"M13 9h5",key:"svg-1"}],["path",{d:"M13 15h8",key:"svg-2"}],["path",{d:"M13 19h5",key:"svg-3"}],["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-4"}],["path",{d:"M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-5"}]])},33175:()=>{},34203:(e,t,n)=>{"use strict";n.d(t,{UC:()=>J,ZL:()=>H,bL:()=>K,l9:()=>U});var r=n(29139),i=n(38903),o=n(68798),s=n(5512),l=n(11599),a=n(79325),u=n(61661),c=n(24595),h=n(92450),d=n(40816),p=n(1619),f=n(5288),g=n(72744),m=n(7783),y=n(63299),v=n(82404),b=n(27123),k="Popover",[w,x]=(0,s.A)(k,[h.Bk]),S=(0,h.Bk)(),[C,E]=w(k),M=e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,a=S(t),u=r.useRef(null),[d,p]=r.useState(!1),[f,g]=(0,m.i)({prop:i,defaultProp:null!=o&&o,onChange:s,caller:k});return(0,b.jsx)(h.bL,{...a,children:(0,b.jsx)(C,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:f,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:l,children:n})})};M.displayName=k;var A="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,o=E(A,n),s=S(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:a}=o;return r.useEffect(()=>(l(),()=>a()),[l,a]),(0,b.jsx)(h.Mz,{...s,...i,ref:t})}).displayName=A;var T="PopoverTrigger",R=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,s=E(T,n),l=S(n),a=(0,o.s)(t,s.triggerRef),u=(0,b.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":B(s.open),...r,ref:a,onClick:(0,i.mK)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,b.jsx)(h.Mz,{asChild:!0,...l,children:u})});R.displayName=T;var O="PopoverPortal",[N,L]=w(O,{forceMount:void 0}),I=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=E(O,t);return(0,b.jsx)(N,{scope:t,forceMount:n,children:(0,b.jsx)(p.C,{present:n||o.open,children:(0,b.jsx)(d.Z,{asChild:!0,container:i,children:r})})})};I.displayName=O;var _="PopoverContent",D=r.forwardRef((e,t)=>{let n=L(_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=E(_,e.__scopePopover);return(0,b.jsx)(p.C,{present:r||o.open,children:o.modal?(0,b.jsx)(P,{...i,ref:t}):(0,b.jsx)(z,{...i,ref:t})})});D.displayName=_;var j=(0,g.TL)("PopoverContent.RemoveScroll"),P=r.forwardRef((e,t)=>{let n=E(_,e.__scopePopover),s=r.useRef(null),l=(0,o.s)(t,s),a=r.useRef(!1);return r.useEffect(()=>{let e=s.current;if(e)return(0,y.Eq)(e)},[]),(0,b.jsx)(v.A,{as:j,allowPinchZoom:!0,children:(0,b.jsx)($,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),z=r.forwardRef((e,t)=>{let n=E(_,e.__scopePopover),i=r.useRef(!1),o=r.useRef(!1);return(0,b.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,s;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(s=n.triggerRef.current)||s.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,s;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let l=t.target;(null==(s=n.triggerRef.current)?void 0:s.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),$=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:f,...g}=e,m=E(_,n),y=S(n);return(0,a.Oh)(),(0,b.jsx)(u.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,b.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>m.onOpenChange(!1),children:(0,b.jsx)(h.UC,{"data-state":B(m.open),role:"dialog",id:m.contentId,...y,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),F="PopoverClose";function B(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=E(F,n);return(0,b.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=F,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=S(n);return(0,b.jsx)(h.i3,{...i,...r,ref:t})}).displayName="PopoverArrow";var K=M,U=R,H=I,J=D},34697:(e,t,n)=>{"use strict";e.exports=n(98340)},35115:(e,t,n)=>{"use strict";n.d(t,{$$:()=>g,Es:()=>p,KG:()=>y,Ks:()=>A,Ll:()=>l,Re:()=>C,Sw:()=>o,TW:()=>d,WQ:()=>S,YG:()=>w,YN:()=>m,ZC:()=>b,_q:()=>f,ag:()=>R,e_:()=>M,jn:()=>i,kx:()=>E,l6:()=>s,lk:()=>v,sb:()=>c,wz:()=>u,xZ:()=>h,zk:()=>a});var r=n(29139);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function a(e){var t,n;return e?s(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){let{Document:t}=a(e);return e instanceof t}function c(e){return!s(e)&&e instanceof a(e).HTMLElement}function h(e){return e instanceof a(e).SVGElement}function d(e){return e?s(e)?e.document:l(e)?u(e)?e:c(e)||h(e)?e.ownerDocument:document:document:document}let p=o?r.useLayoutEffect:r.useEffect;function f(e){let t=(0,r.useRef)(e);return p(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function g(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function m(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function v(e){let t=f(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function b(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let k={};function w(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==k[e]?0:k[e]+1;return k[e]=n,e+"-"+n},[e,t])}function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let S=x(1),C=x(-1);function E(e){if(!e)return!1;let{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function M(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let A=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[A.Translate.toString(e),A.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),T="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function R(e){return e.matches(T)?e:e.querySelector(T)}},37893:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(29139),i=globalThis?.document?r.useLayoutEffect:()=>{}},38903:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},40816:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(29139),i=n(24930),o=n(5288),s=n(37893),l=n(27123),a=r.forwardRef((e,t)=>{var n,a;let{container:u,...c}=e,[h,d]=r.useState(!1);(0,s.N)(()=>d(!0),[]);let p=u||h&&(null==(a=globalThis)||null==(n=a.document)?void 0:n.body);return p?i.createPortal((0,l.jsx)(o.sG.div,{...c,ref:t}),p):null});a.displayName="Portal"},42060:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","folder","Folder",[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]])},43123:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","flask","Flask",[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]])},43619:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:()=>r})},44632:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","terminal","Terminal",[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]])},44846:(e,t)=>{"use strict";function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,r(e));else t.set(n,r(i));return t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},45676:(e,t,n)=>{"use strict";n.d(t,{RS:()=>_,gR:()=>D,N:()=>ee,yV:()=>et,YE:()=>$,nd:()=>K,vF:()=>X,CM:()=>function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])},XJ:()=>Z,EW:()=>j,F2:()=>P,cX:()=>L,Go:()=>H,Qp:()=>Q,O_:()=>U,tZ:()=>z,nr:()=>N,$u:()=>F,em:()=>B,Jt:()=>V,SE:()=>W,OS:()=>J});var r=n(5603),i=n(29139),o=n.t(i,2),s='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',l="undefined"==typeof Element,a=l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!l&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},c=function(e,t){void 0===t&&(t=!0);var n,r=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&c(e.parentNode)},h=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},d=function(e,t,n){if(c(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(s));return t&&a.call(e,s)&&r.unshift(e),r=r.filter(n)},p=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var o=i.shift();if(!c(o,!1))if("SLOT"===o.tagName){var l=o.assignedElements(),u=p(l.length?l:o.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:o,candidates:u})}else{a.call(o,s)&&n.filter(o)&&(t||!e.includes(o))&&r.push(o);var h=o.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(o),d=!c(h,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(h&&d){var f=p(!0===h?o.children:h.children,!0,n);n.flatten?r.push.apply(r,f):r.push({scopeParent:o,candidates:f})}else i.unshift.apply(i,o.children)}}return r},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},g=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||h(e))&&!f(e)?0:e.tabIndex},m=function(e,t){var n=g(e);return n<0&&t&&!f(e)?0:n},y=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},b=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},k=function(e){if(!e.name)return!0;var t,n=e.form||u(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=b(t,e.form);return!i||i===e},w=function(e){return v(e)&&"radio"===e.type&&!k(e)},x=function(e){var t,n,r,i,o,s,l,a=e&&u(e),c=null==(t=a)?void 0:t.host,h=!1;if(a&&a!==e)for(h=!!(null!=(n=c)&&null!=(r=n.ownerDocument)&&r.contains(c)||null!=e&&null!=(i=e.ownerDocument)&&i.contains(e));!h&&c;)h=!!(null!=(s=c=null==(o=a=u(c))?void 0:o.host)&&null!=(l=s.ownerDocument)&&l.contains(c));return h},S=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},C=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return S(e)}else{if("function"==typeof r){for(var o=e;e;){var s=e.parentElement,l=u(e);if(s&&!s.shadowRoot&&!0===r(s))return S(e);e=e.assignedSlot?e.assignedSlot:s||l===e.ownerDocument?s:l.host}e=o}if(x(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},E=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},M=function(e,t){return!(t.disabled||c(t)||v(t)&&"hidden"===t.type||C(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||E(t))},A=function(e,t){return!(w(t)||0>g(t))&&!!M(e,t)},T=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},R=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,o=i?e.scopeParent:e,s=m(o,i),l=i?R(e.candidates):o;0===s?i?t.push.apply(t,l):t.push(o):n.push({documentOrder:r,tabIndex:s,item:e,isScope:i,content:l})}),n.sort(y).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},O=function(e,t){return R((t=t||{}).getShadowRoot?p([e],t.includeContainer,{filter:A.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:T}):d(e,t.includeContainer,A.bind(null,t)))};function N(){return/apple/i.test(navigator.vendor)}function L(){return(function(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform})().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}let I="data-floating-ui-focusable";function _(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function D(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function j(e){return"composedPath"in e?e.composedPath()[0]:e.target}function P(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function z(e){return e.matches("html,body")}function $(e){return(null==e?void 0:e.ownerDocument)||document}function F(e){return(0,r.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function B(e){if(!e||(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent})().includes("jsdom/"))return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function K(e){return e?e.hasAttribute(I)?e:e.querySelector("["+I+"]")||e:null}function U(e){return"nativeEvent"in e}function H(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var J="undefined"!=typeof document?i.useLayoutEffect:function(){};function W(e){let t=i.useRef(e);return J(()=>{t.current=e}),t}let q={...o}.useInsertionEffect||(e=>e());function V(e){let t=i.useRef(()=>{});return q(()=>{t.current=e}),i.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}let G=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Y(e,t){let n=O(e,G()),r=n.length;if(0===r)return;let i=_($(e)),o=n.indexOf(i);return n[-1===o?1===t?0:r-1:o+t]}function X(e){return Y($(e).body,1)||e}function Z(e){return Y($(e).body,-1)||e}function Q(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!D(n,r)}function ee(e){O(e,G()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function et(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},48953:(e,t,n)=>{"use strict";n.d(t,{vC:()=>k});var r=n(29139);n(27123);let i=["shift","alt","meta","mod","ctrl","control"],o={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function s(e){return(o[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function l(e){return i.includes(e)}function a(e,t=","){return e.toLowerCase().split(t)}function u(e,t="+",n=">",r=!1,o){let l=[],a=!1;(e=e.trim()).includes(n)?(a=!0,l=e.toLocaleLowerCase().split(n).map(e=>s(e))):l=e.toLocaleLowerCase().split(t).map(e=>s(e));let c={alt:l.includes("alt"),ctrl:l.includes("ctrl")||l.includes("control"),shift:l.includes("shift"),meta:l.includes("meta"),mod:l.includes("mod"),useKey:r},h=l.filter(e=>!i.includes(e));return{...c,keys:h,description:o,isSequence:a,hotkey:e}}"u">typeof document&&(document.addEventListener("keydown",e=>{void 0!==e.code&&d([s(e.code)])}),document.addEventListener("keyup",e=>{void 0!==e.code&&p([s(e.code)])})),"u">typeof window&&(window.addEventListener("blur",()=>{c.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{c.clear()},0)}));let c=new Set;function h(e){return Array.isArray(e)}function d(e){let t=Array.isArray(e)?e:[e];c.has("meta")&&c.forEach(e=>!l(e)&&c.delete(e.toLowerCase())),t.forEach(e=>c.add(e.toLowerCase()))}function p(e){let t=Array.isArray(e)?e:[e];"meta"===e?c.clear():t.forEach(e=>c.delete(e.toLowerCase()))}let f=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function g(e,t=!1){var n;let r,i,{target:o,composed:s}=e;return(n=o).tagName&&!n.tagName.startsWith("-")&&n.tagName.includes("-")&&s?(r=e.composedPath()[0]&&e.composedPath()[0].tagName,i=e.composedPath()[0]&&e.composedPath()[0].role):(r=o&&o.tagName,i=o&&o.role),h(t)?!!(r&&t&&t.some(e=>e.toLowerCase()===r.toLowerCase()||e===i)):!!(r&&t&&t)}let m=(0,r.createContext)(void 0),y=(0,r.createContext)({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),v=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},b="u">typeof window?r.useLayoutEffect:r.useEffect;function k(e,t,n,i){let o=(0,r.useRef)(null),k=(0,r.useRef)(!1),w=Array.isArray(n)?Array.isArray(i)?void 0:i:n,x=h(e)?e.join(w?.delimiter):e,S=Array.isArray(n)?n:Array.isArray(i)?i:void 0,C=(0,r.useCallback)(t,S??[]),E=(0,r.useRef)(C);S?E.current=C:E.current=t;let M=function(e){let t=(0,r.useRef)(void 0);return function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((r,i)=>r&&e(t[i],n[i]),!0):t===n}(t.current,e)||(t.current=e),t.current}(w),{activeScopes:A}=(0,r.useContext)(y),T=(0,r.useContext)(m);return b(()=>{var e;if(M?.enabled===!1||(e=M?.scopes,0===A.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!1):!(!e||A.some(t=>e.includes(t))||A.includes("*"))))return;let t=[],n,r=(e,r=!1)=>{if(!(g(e,f)&&!g(e,M?.enableOnFormTags))){if(null!==o.current){let t=o.current.getRootNode();if((t instanceof Document||t instanceof ShadowRoot)&&t.activeElement!==o.current&&!o.current.contains(t.activeElement))return void v(e)}e.target?.isContentEditable&&!M?.enableOnContentEditable||a(x,M?.delimiter).forEach(i=>{if(i.includes(M?.splitKey??"+")&&i.includes(M?.sequenceSplitKey??">"))return void console.warn(`Hotkey ${i} contains both ${M?.splitKey??"+"} and ${M?.sequenceSplitKey??">"} which is not supported.`);let o=u(i,M?.splitKey,M?.sequenceSplitKey,M?.useKey,M?.description);if(o.isSequence){n=setTimeout(()=>{t=[]},M?.sequenceTimeoutMs??1e3);let r=o.useKey?e.key:s(e.code);if(l(r.toLowerCase()))return;if(t.push(r),r!==o.keys?.[t.length-1]){t=[],n&&clearTimeout(n);return}t.length===o.keys?.length&&(E.current(e,o),n&&clearTimeout(n),t=[])}else if(((e,t,n=!1)=>{let{alt:r,meta:i,mod:o,shift:l,ctrl:a,keys:u,useKey:d}=t,{code:p,key:f,ctrlKey:g,metaKey:m,shiftKey:y,altKey:v}=e,b=s(p);if(d&&u?.length===1&&u.includes(f))return!0;if(!u?.includes(b)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(b))return!1;if(!n){if(r!==v&&"alt"!==b||l!==y&&"shift"!==b)return!1;if(o){if(!m&&!g)return!1}else if(i!==m&&"meta"!==b&&"os"!==b||a!==g&&"ctrl"!==b&&"control"!==b)return!1}return!!(u&&1===u.length&&u.includes(b))||(u?function(e,t=","){return(h(e)?e:e.split(t)).every(e=>c.has(e.trim().toLowerCase()))}(u):!u)})(e,o,M?.ignoreModifiers)||o.keys?.includes("*")){var a,d;if(M?.ignoreEventWhen?.(e)||r&&k.current)return;if(("function"==typeof(a=M?.preventDefault)&&a(e,o)||!0===a)&&e.preventDefault(),"function"==typeof(d=M?.enabled)?!d(e,o):!0!==d&&void 0!==d)return void v(e);E.current(e,o),r||(k.current=!0)}})}},i=e=>{void 0!==e.code&&(d(s(e.code)),(M?.keydown===void 0&&M?.keyup!==!0||M?.keydown)&&r(e))},m=e=>{void 0!==e.code&&(p(s(e.code)),k.current=!1,M?.keyup&&r(e,!0))},y=o.current||w?.document||document;return y.addEventListener("keyup",m,w?.eventListenerOptions),y.addEventListener("keydown",i,w?.eventListenerOptions),T&&a(x,M?.delimiter).forEach(e=>T.addHotkey(u(e,M?.splitKey,M?.sequenceSplitKey,M?.useKey,M?.description))),()=>{y.removeEventListener("keyup",m,w?.eventListenerOptions),y.removeEventListener("keydown",i,w?.eventListenerOptions),T&&a(x,M?.delimiter).forEach(e=>T.removeHotkey(u(e,M?.splitKey,M?.sequenceSplitKey,M?.useKey,M?.description))),t=[],n&&clearTimeout(n)}},[x,M,A]),o}},52063:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","file-text","FileText",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M9 9l1 0",key:"svg-2"}],["path",{d:"M9 13l6 0",key:"svg-3"}],["path",{d:"M9 17l6 0",key:"svg-4"}]])},52096:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","test-pipe","TestPipe",[["path",{d:"M20 8.04l-12.122 12.124a2.857 2.857 0 1 1 -4.041 -4.04l12.122 -12.124",key:"svg-0"}],["path",{d:"M7 13h8",key:"svg-1"}],["path",{d:"M19 15l1.5 1.6a2 2 0 1 1 -3 0l1.5 -1.6z",key:"svg-2"}],["path",{d:"M15 3l6 6",key:"svg-3"}]])},52784:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","search","Search",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]])},53004:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","clock","Clock",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]])},54190:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","calendar","Calendar",[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]])},55156:(e,t,n)=>{"use strict";function r(e){this.content=e}n.d(t,{S4:()=>F,ZF:()=>G,FK:()=>i,CU:()=>a,sX:()=>P,bP:()=>S,u$:()=>w,vI:()=>u,Sj:()=>z,Ji:()=>c}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),s=i.content.slice();return -1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new r(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};class i{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,s=0;s<t;o++){let l=this.content[o],a=s+l.nodeSize;if(a>e&&!1!==n(l,r+s,i||null,o)&&l.content.size){let i=s+1;l.nodesBetween(Math.max(0,e-i),Math.min(l.content.size,t-i),n,r+i)}s=a}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(s,l)=>{let a=s.isText?s.text.slice(Math.max(e,l)-l,t-l):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&a||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=a},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new i(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],l=o+s.nodeSize;l>e&&((o<e||l>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=l}return new i(n,r)}cutByIndex(e,t){return e==t?i.empty:0==e&&t==this.content.length?this:new i(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new i(r,o)}addToStart(e){return new i([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new i(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),s=n.child(i);if(o==s){r+=o.nodeSize;continue}if(!o.sameMarkup(s))return r;if(o.isText&&o.text!=s.text){for(let e=0;o.text[e]==s.text[e];e++)r++;return r}if(o.content.size||s.content.size){let t=e(o.content,s.content,r+1);if(null!=t)return t}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,i){for(let o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:r,b:i};let l=t.child(--o),a=n.child(--s),u=l.nodeSize;if(l==a){r-=u,i-=u;continue}if(!l.sameMarkup(a))return{a:r,b:i};if(l.isText&&l.text!=a.text){let e=0,t=Math.min(l.text.length,a.text.length);for(;e<t&&l.text[l.text.length-e-1]==a.text[a.text.length-e-1];)e++,r--,i--;return{a:r,b:i}}if(l.content.size||a.content.size){let t=e(l.content,a.content,r-1,i-1);if(t)return t}r-=u,i-=u}}(this,e,t,n)}findIndex(e){if(0==e)return s(0,e);if(e==this.size)return s(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e){if(r==e)return s(t+1,r);return s(t,n)}n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return i.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new i(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return i.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new i(t||e,n)}static from(e){if(!e)return i.empty;if(e instanceof i)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new i([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}i.empty=new i([],0);let o={index:0,offset:0};function s(e,t){return o.index=e,o.offset=t,o}function l(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!l(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!l(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class a{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&l(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return a.none;if(e instanceof a)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}a.none=[];class u extends Error{}class c{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:s}=t.findIndex(n),l=t.maybeChild(o);if(s==n||l.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let a=e(l.content,n-s-1,r,l);return a&&t.replaceChild(o,l.copy(a))}(this.content,e+this.openStart,t);return n&&new c(n,this.openStart,this.openEnd)}removeBetween(e,t){return new c(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),s=t.maybeChild(i),{index:l,offset:a}=t.findIndex(r);if(o==n||s.isText){if(a!=r&&!t.child(l).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=l)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return c.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new c(i.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new c(e,n,r)}}function h(e,t){if(!t.type.compatibleContent(e.type))throw new u("Cannot join "+t.type.name+" onto "+e.type.name)}function d(e,t,n){let r=e.node(n);return h(r,t.node(n)),r}function p(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function f(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(p(e.nodeAfter,r),o++));for(let e=o;e<s;e++)p(i.child(e),r);t&&t.depth==n&&t.textOffset&&p(t.nodeBefore,r)}function g(e,t){return e.type.checkContent(t),e.copy(t)}function m(e,t,n){let r=[];return f(null,e,n,r),e.depth>n&&p(g(d(e,t,n+1),m(e,t,n+1)),r),f(t,null,n,r),new i(r)}c.empty=new c(i.empty,0,0);class y{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return a.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new w(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),s=i-o;if(n.push(t,e,r+o),!s||(t=t.child(e)).isText)break;i=s-1,r+=o+1}return new y(t,n,i)}static resolveCached(e,t){let n=k.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else k.set(e,n=new v);let r=n.elts[n.i]=y.resolve(e,t);return n.i=(n.i+1)%b,r}}class v{constructor(){this.elts=[],this.i=0}}let b=12,k=new WeakMap;class w{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let x=Object.create(null);class S{constructor(e,t,n,r=a.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||i.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&l(this.attrs,t||e.defaultAttrs||x)&&a.sameSet(this.marks,n||a.none)}copy(e=null){return e==this.content?this:new S(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new S(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return c.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),s=r.start(o);return new c(r.node(o).content.cut(r.pos-s,i.pos-s),r.depth-o,i.depth-o)}replace(e,t,n){var r=this.resolve(e),o=this.resolve(t);if(n.openStart>r.depth)throw new u("Inserted content deeper than insertion position");if(r.depth-n.openStart!=o.depth-n.openEnd)throw new u("Inconsistent open depths");return function e(t,n,r,o){let s=t.index(o),l=t.node(o);if(s==n.index(o)&&o<t.depth-r.openStart){let i=e(t,n,r,o+1);return l.copy(l.content.replaceChild(s,i))}if(!r.content.size)return g(l,m(t,n,o));if(r.openStart||r.openEnd||t.depth!=o||n.depth!=o){let{start:e,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(i.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return g(l,function e(t,n,r,o,s){let l=t.depth>s&&d(t,n,s+1),a=o.depth>s&&d(r,o,s+1),u=[];return f(null,t,s,u),l&&a&&n.index(s)==r.index(s)?(h(l,a),p(g(l,e(t,n,r,o,s+1)),u)):(l&&p(g(l,m(t,n,s+1)),u),f(n,r,s,u),a&&p(g(a,m(r,o,s+1)),u)),f(o,null,s,u),new i(u)}(t,e,s,n,o))}{let e=t.parent,i=e.content;return g(e,i.cut(0,t.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(r,o,n,0)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return y.resolveCached(this,e)}resolveNoCache(e){return y.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),E(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=i.empty,r=0,o=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,o),l=s&&s.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=a.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!a.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=i.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}S.prototype.text=void 0;class C extends S{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):E(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new C(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new C(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function E(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class M{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r,i=new A(e,t);if(null==i.next)return M.empty;let o=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=T(e),r=n;return e.eat(",")&&(r="}"!=e.next?T(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let s=(n=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,o)),[]);if("seq"==t.type)for(let r=0;;r++){let s=e(t.exprs[r],o);if(r==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){let s=n();return r(o,s),i(e(t.expr,s),s),[r(s)]}else if("plus"==t.type){let s=n();return i(e(t.expr,o),s),i(e(t.expr,s),s),[r(s)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){let s=o;for(let r=0;r<t.min;r++){let r=n();i(e(t.expr,s),r),s=r}if(-1==t.max)i(e(t.expr,s),s);else for(let o=t.min;o<t.max;o++){let o=n();r(s,o),i(e(t.expr,s),o),s=o}return[r(s)]}else if("name"==t.type)return[r(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(o),r=Object.create(null),function e(t){let i=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{let r;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(r=i[t][1]);O(n,t).forEach(t=>{r||i.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})}})});let o=r[t.join(",")]=new M(t.indexOf(n.length-1)>-1);for(let t=0;t<i.length;t++){let n=i[t][1].sort(R);o.next.push({type:i[t][0],next:r[n.join(",")]||e(n)})}return o}(O(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(s,l){let a=s.matchFragment(e,n);if(a&&(!t||a.validEnd))return i.from(l.map(e=>e.createAndFill()));for(let e=0;e<s.next.length;e++){let{type:t,next:n}=s.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=o(n,l.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}M.empty=new M(!0);class A{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function T(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function R(e,t){return t-e}function O(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(R)}function N(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function L(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function I(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function _(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new j(e,r,t[r]);return n}class D{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=_(e,n.attrs),this.defaultAttrs=N(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==M.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:L(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new S(this,this.computeAttrs(e),i.from(t),a.setFrom(n))}createChecked(e=null,t,n){return t=i.from(t),this.checkContent(t),new S(this,this.computeAttrs(e),t,a.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=i.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(i.empty,!0);return o?new S(this,e,t.append(o),a.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){I(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:a.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new D(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class j{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class P{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=_(e,r.attrs),this.excluded=null;let i=N(this.attrs);this.instance=i?new a(this,i):null}create(e=null){return!e&&this.instance?this.instance:new a(this,L(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new P(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){I(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class z{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=D.compile(this.spec.nodes,this),this.marks=P.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=M.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?$(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:$(this,n.split(" "))}this.nodeFromJSON=e=>S.fromJSON(this,e),this.markFromJSON=e=>a.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof D){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new C(n,n.defaultAttrs,e,a.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function $(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class F{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new W(this,t,!1);return n.addAll(e,a.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new W(this,t,!0);return n.addAll(e,a.none,t.from,t.to),c.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r,i;let n=this.tags[o];if(r=e,i=n.tag,(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,i)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=q(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=q(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new F(e,F.schemaRules(e)))}}let B={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},K={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},U={ol:!0,ul:!0};function H(e,t,n){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&n}class J{constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=a.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(i.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=i.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!B.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class W{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,o=H(null,t.preserveWhitespace,0)|4*!!n;i=r?new J(r.type,r.attrs,a.none,!0,t.topMatch||r.type.contentMatch,o):n?new J(null,null,a.none,!0,null,o):new J(e.schema.topNodeType,null,a.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:o}=this.parser;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if("full"===i)n=n.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(o.text(e[n]),t,!/\S/.test(e[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;U.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&U.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));n:if(l?l.ignore:K.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let n,r=this.needsBlock;if(B.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break n}let s=l&&l.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,l,n,!1===l.consuming?s:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,o;if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,o=0;t>=0;t--){let s=this.nodes[t],l=s.findWrapping(e);if(l&&(!r||r.length>l.length+o)&&(r=l,i=s,!l.length))break;if(s.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=a.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):V(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=H(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let l=a.none;return n=n.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!V(t.type,e))||(l=t.addToSet(l),!1)),this.nodes.push(new J(e,t,l,r,null,s)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,o=(e,s)=>{for(;e>=0;e--){let l=t[e];if(""==l){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!e||e.name!=l&&!e.isInGroup(l))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function q(e){let t={};for(let n in e)t[n]=e[n];return t}function V(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class G{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=X(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Q(X(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Q(X(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return Q(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new G(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Y(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Y(e.marks)}}function Y(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function X(e){return e.document||window.document}let Z=new WeakMap;function Q(e,t,n,r){let i,o,s;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let l=t[0],a;if("string"!=typeof l)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=Z.get(r))&&Z.set(r,(s=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let n=0;n<t.length;n++)e(t[n]);else for(let n in t)e(t[n])}(r),o=s)),a=o)&&a.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let u=l.indexOf(" ");u>0&&(n=l.slice(0,u),l=l.slice(u+1));let c=n?e.createElementNS(n,l):e.createElement(l),h=t[1],d=1;if(h&&"object"==typeof h&&null==h.nodeType&&!Array.isArray(h)){for(let e in d=2,h)if(null!=h[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),h[e]):"style"==e&&c.style?c.style.cssText=h[e]:c.setAttribute(e,h[e])}}for(let o=d;o<t.length;o++){let s=t[o];if(0===s){if(o<t.length-1||o>d)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:t,contentDOM:o}=Q(e,s,n,r);if(c.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:c,contentDOM:i}}},55471:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","code","Code",[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M14 4l-4 16",key:"svg-2"}]])},57003:e=>{function t(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r./.test(e);)e=e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,t,n){return n+t.slice(n.length)});return e}function n(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),n=[];t.length>0;){var r=function(e){for(var t=0,n=0;n<e.length;n++)e[t].length<=e[n].length&&(t=n);return t}(t);n.push(t[r]),t=t.slice(r+1)}return n.join("\r")}e.exports=t,e.exports.escapeCarriageReturn=t,e.exports.escapeCarriageReturnSafe=function(e){if(!e)return"";if(!/\r/.test(e))return e;if(!/\n/.test(e))return n(e);var r=(e=e.replace(/\r+\n/gm,"\n")).lastIndexOf("\n");return t(e.slice(0,r))+"\n"+n(e.slice(r+1))}},57436:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","coins","Coins",[["path",{d:"M9 14c0 1.657 2.686 3 6 3s6 -1.343 6 -3s-2.686 -3 -6 -3s-6 1.343 -6 3z",key:"svg-0"}],["path",{d:"M9 14v4c0 1.656 2.686 3 6 3s6 -1.344 6 -3v-4",key:"svg-1"}],["path",{d:"M3 6c0 1.072 1.144 2.062 3 2.598s4.144 .536 6 0c1.856 -.536 3 -1.526 3 -2.598c0 -1.072 -1.144 -2.062 -3 -2.598s-4.144 -.536 -6 0c-1.856 .536 -3 1.526 -3 2.598z",key:"svg-2"}],["path",{d:"M3 6v10c0 .888 .772 1.45 2 2",key:"svg-3"}],["path",{d:"M3 11c0 .888 .772 1.45 2 2",key:"svg-4"}]])},57567:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","copy","Copy",[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]])},59101:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","eye","Eye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]])},59452:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","git-pull-request","GitPullRequest",[["path",{d:"M6 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M6 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M6 8l0 8",key:"svg-3"}],["path",{d:"M11 6h5a2 2 0 0 1 2 2v8",key:"svg-4"}],["path",{d:"M14 9l-3 -3l3 -3",key:"svg-5"}]])},59937:(e,t,n)=>{"use strict";n.d(t,{L2:()=>M,Rg:()=>l,_0:()=>A,_J:()=>C,ck:()=>a,it:()=>b});var r=n(25874),i=Object.defineProperty,o="textStyle",s=/^\s*([-+*])\s$/,l=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(o)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.tG)({find:s,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:s,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(o),editor:this.editor})),[e]}}),a=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{if("list_item"!==e.type)return[];let n=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))n=t.parseChildren(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(n=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let r=e.tokens.slice(1),i=t.parseChildren(r);n.push(...i)}}else n=t.parseChildren(e.tokens)}return 0===n.length&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(e,t,n)=>(0,r.kj)(e,t,e=>"bulletList"===e.parentType?"- ":"orderedList"===e.parentType?`${e.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})({},{findListItemPos:()=>u,getNextListDepth:()=>c,handleBackspace:()=>f,handleDelete:()=>y,hasListBefore:()=>h,hasListItemAfter:()=>v,hasListItemBefore:()=>d,listItemHasSubList:()=>p,nextListIsDeeper:()=>g,nextListIsHigher:()=>m});var u=(e,t)=>{let{$from:n}=t.selection,i=(0,r.Pg)(e,t.schema),o=n.depth,s=n.pos,l=null;for(;o>0&&null===l;)n.node(o).type===i?l=o:(o-=1,s-=1);return null===l?null:{$pos:t.doc.resolve(s),depth:l}},c=(e,t)=>{let n=u(e,t);if(!n)return!1;let[,i]=(0,r.fl)(t,e,n.$pos.pos+4);return i},h=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!!o&&!!n.includes(o.type.name)},d=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return 0!==i.index()&&(null==(n=i.nodeBefore)?void 0:n.type.name)===e},p=(e,t,n)=>{if(!n)return!1;let i=(0,r.Pg)(e,t.schema),o=!1;return n.descendants(e=>{e.type===i&&(o=!0)}),o},f=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,r.rU)(e.state,t)&&h(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let o=i.at(-1);if(!o)return!1;let s=e.state.doc.resolve(r.start()+o.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}if(!(0,r.rU)(e.state,t)||!(0,r.J_)(e.state))return!1;let i=u(t,e.state);if(!i)return!1;let o=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),s=p(t,e.state,o);return d(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},g=(e,t)=>{let n=c(e,t),r=u(e,t);return!!r&&!!n&&n>r.depth},m=(e,t)=>{let n=c(e,t),r=u(e,t);return!!r&&!!n&&n<r.depth},y=(e,t)=>{if(!(0,r.rU)(e.state,t)||!(0,r.QN)(e.state,t))return!1;let{selection:n}=e.state,{$from:i,$to:o}=n;return!(!n.empty&&i.sameParent(o))&&(g(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():m(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},v=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-r.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(n=i.nodeAfter)?void 0:n.type.name)===e},b=r.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&y(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&y(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&f(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&f(e,n,r)&&(t=!0)}),t}}}}),k=/^(\s*)(\d+)\.\s+(.*)$/,w=/^\s/,x="textStyle",S=/^(\d+)\.\s$/,C=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.KV)(this.options.HTMLAttributes,n),0]:["ol",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let n=e.start||1,r=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}})}(e.items,t):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),n=null==t?void 0:t.index;return void 0!==n?n:-1},tokenize:(e,t,n)=>{var r;let i=e.split("\n"),[o,s]=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],o=i.match(k);if(!o)break;let[,s,l,a]=o,u=s.length,c=a,h=n+1,d=[i];for(;h<e.length;){let t=e[h];if(t.match(k))break;if(""===t.trim())d.push(t),c+="\n",h+=1;else if(t.match(w))d.push(t),c+=`
|
|
20
|
-
${t.slice(u+2)}`,h+=1;else break}t.push({indent:u,number:parseInt(l,10),content:c.trim(),raw:d.join("\n")}),r=h,n=h}return[t,r]}(i);if(0===o.length)return;let l=function e(t,n,r){var i;let o=[],s=0;for(;s<t.length;){let l=t[s];if(l.indent===n){let a=l.content.split("\n"),u=(null==(i=a[0])?void 0:i.trim())||"",c=[];u&&c.push({type:"paragraph",raw:u,tokens:r.inlineTokens(u)});let h=a.slice(1).join("\n").trim();if(h){let e=r.blockTokens(h);c.push(...e)}let d=s+1,p=[];for(;d<t.length&&t[d].indent>n;)p.push(t[d]),d+=1;if(p.length>0){let t=Math.min(...p.map(e=>e.indent)),n=e(p,t,r);c.push({type:"list",ordered:!0,start:p[0].number,items:n,raw:p.map(e=>e.raw).join("\n")})}o.push({type:"list_item",raw:l.raw,tokens:c}),s=d}else s+=1}return o}(o,0,n);if(0!==l.length)return{type:"list",ordered:!0,start:(null==(r=o[0])?void 0:r.number)||1,items:l,raw:i.slice(0,s).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(x)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.tG)({find:S,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:S,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(x)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),E=/^\s*(\[([( |x])?\])\s$/,M=r.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,r.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;let i=(null==(n=e.attrs)?void 0:n.checked)?"x":" ",o=`- [${i}] `;return(0,r.kj)(e,t,o)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement("li"),o=document.createElement("label"),s=document.createElement("span"),l=document.createElement("input"),a=document.createElement("div"),u=e=>{var t,n;l.ariaLabel=(null==(n=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:n.call(t,e,l.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};return u(e),o.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",e=>e.preventDefault()),l.addEventListener("change",t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:i}=t.target;r.isEditable&&"function"==typeof n&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==r?void 0:r.attrs,checked:i}),!0}).run(),r.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,i)||(l.checked=!l.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,o.append(l,s),i.append(o,a),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)}),{dom:i,contentDOM:a,update:e=>e.type===this.type&&(i.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,u(e),!0)}}},addInputRules(){return[(0,r.tG)({find:E,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),A=r.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,t,n){let i=e=>{let t=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);return t?[{type:"taskList",raw:t.raw,items:t.items}]:n.blockTokens(e)},o=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});r.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(l.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(a.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(b.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(C.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(M.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(A.configure(this.options.taskList)),e}})},61661:(e,t,n)=>{"use strict";n.d(t,{n:()=>h});var r=n(29139),i=n(68798),o=n(5288),s=n(92487),l=n(27123),a="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},h=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:h=!1,onMountAutoFocus:m,onUnmountAutoFocus:y,...v}=e,[b,k]=r.useState(null),w=(0,s.c)(m),x=(0,s.c)(y),S=r.useRef(null),C=(0,i.s)(t,e=>k(e)),E=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(h){let e=function(e){if(E.paused||!b)return;let t=e.target;b.contains(t)?S.current=t:f(S.current,{select:!0})},t=function(e){if(E.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||f(S.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&f(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[h,b,E.paused]),r.useEffect(()=>{if(b){g.add(E);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(a,c);b.addEventListener(a,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(f(r,{select:t}),document.activeElement!==n)return}(d(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&f(b))}return()=>{b.removeEventListener(a,w),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||f(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,x),g.remove(E)},0)}}},[b,w,x,E]);let M=r.useCallback(e=>{if(!n&&!h||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=d(e);return[p(t,e),p(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&f(o,{select:!0})):(e.preventDefault(),n&&f(i,{select:!0})):r===t&&e.preventDefault()}},[n,h,E.paused]);return(0,l.jsx)(o.sG.div,{tabIndex:-1,...v,ref:C,onKeyDown:M})});function d(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function f(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}h.displayName="FocusScope";var g=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=m(e,t)).unshift(t)},remove(t){var n;null==(n=(e=m(e,t))[0])||n.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},62720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return g},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return a},getLocationOrigin:function(){return s},getURL:function(){return l},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=s();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function h(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Object.defineProperty(Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}class g extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},63218:(e,t,n)=>{"use strict";n.d(t,{$t:()=>S,LN:()=>s,U3:()=>c,hs:()=>A,i5:()=>f,k_:()=>C,nh:()=>d});var r=n(55156),i=n(14832);let o=Object.create(null);class s{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.Ji.empty){let n=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=n,n=n.lastChild;let o=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:u}=s[l],c=e.mapping.slice(o);e.replaceRange(c.map(a.pos),c.map(u.pos),l?r.Ji.empty:t),0==l&&y(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],l=e.mapping.slice(n),a=l.map(o.pos),u=l.map(s.pos);i?e.deleteRange(a,u):(e.replaceRangeWith(a,u,t),y(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new c(e):m(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?m(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):m(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return m(e,e,0,0,1)||new f(e)}static atEnd(e){return m(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let a=!1;function u(e){a||e.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends s{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=e.resolve(t.map(this.anchor));return new c(r.parent.inlineContent?r:n,n)}replace(e,t=r.Ji.empty){if(super.replace(e,t),t==r.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,n,!0)||s.findFrom(t,-n,!0);if(!e)return s.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(s.findFrom(e,-n,!0)||s.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new c(e,t)}}s.jsonID("text",c);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class d extends s{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?s.near(i):new d(i)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(e){return e instanceof d&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new d(e.resolve(t.anchor))}static create(e,t){return new d(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}d.prototype.visible=!1,s.jsonID("node",d);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new h(n,n):new p(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&d.isSelectable(n)?new d(t):s.near(t)}}class f extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.Ji.empty){if(t==r.Ji.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return g}}s.jsonID("all",f);let g={map(){return this},resolve:e=>new f(e)};function m(e,t,n,r,i,o=!1){if(t.inlineContent)return c.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let r=t.child(s);if(r.isAtom){if(!o&&d.isSelectable(r))return d.create(e,n-(i<0?r.nodeSize:0))}else{let t=m(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function y(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let l=e.steps[o];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,n,i)=>{null==r&&(r=i)}),e.setSelection(s.near(e.doc.resolve(r),n)))}class v extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function b(e,t){return t&&e?e.bind(t):e}class k{constructor(e,t,n){this.name=e,this.init=b(t.init,n),this.apply=b(t.apply,n)}}let w=[new k("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new k("selection",{init:(e,t)=>e.selection||s.atStart(t.doc),apply:e=>e.selection}),new k("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new k("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class x{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=w.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new k(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let l=r?r[o].n:0,a=r?r[o].state:this,u=l<t.length&&s.spec.appendTransaction.call(s,l?t.slice(l):t,a,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new S(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new v(this)}static create(e){let t=new x(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new S(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new x(this.schema,e.plugins),n=t.fields,r=new S(t);for(let t=0;t<n.length;t++){let i=n[t].name;r[i]=this.hasOwnProperty(i)?this[i]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],l=s.spec.state;if(s.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,r)){o[i.name]=l.fromJSON.call(s,e,t[r],o);return}}o[i.name]=i.init(e,o)}}),o}}class C{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:M("plugin")}getState(e){return e[this.key]}}let E=Object.create(null);function M(e){return e in E?e+"$"+ ++E[e]:(E[e]=0,e+"$")}class A{constructor(e="key"){this.key=M(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},63299:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},a=function(e,t,n,a){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],h=[],d=new Set,p=new Set(u),f=function(e){!e||d.has(e)||(d.add(e),f(e.parentNode))};u.forEach(f);var g=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))g(e);else try{var t=e.getAttribute(a),o=null!==t&&"false"!==t,s=(r.get(e)||0)+1,l=(c.get(e)||0)+1;r.set(e,s),c.set(e,l),h.push(e),1===s&&o&&i.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(a,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return g(t),d.clear(),s++,function(){h.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(a),i.delete(e)),o||e.removeAttribute(n)}),--s||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),a(r,i,n,"aria-hidden")):function(){return null}}},64590:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","history","History",[["path",{d:"M12 8l0 4l2 2",key:"svg-0"}],["path",{d:"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5",key:"svg-1"}]])},68611:(e,t,n)=>{"use strict";var r=n(29139),i=n(34697),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,l=r.useRef,a=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=l(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var p=s(e,(h=u(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,l=n)}var s,l,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],h[1]);return a(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},68798:(e,t,n)=>{"use strict";n.d(t,{s:()=>s,t:()=>o});var r=n(29139);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function s(...e){return r.useCallback(o(...e),e)}},71958:e=>{"use strict";var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]];e.exports=function(){function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0}return t(e,null,[{key:"escapeForHtml",value:function(t){return new e().escapeForHtml(t)}},{key:"linkify",value:function(t){return new e().linkify(t)}},{key:"ansiToHtml",value:function(t,n){return new e().ansiToHtml(t,n)}},{key:"ansiToJson",value:function(t,n){return new e().ansiToJson(t,n)}},{key:"ansiToText",value:function(t){return new e().ansiToText(t)}}]),t(e,[{key:"setupPalette",value:function(){this.PALETTE_COLORS=[];for(var e=0;e<2;++e)for(var t=0;t<8;++t)this.PALETTE_COLORS.push(n[e][t].color);for(var r=[0,95,135,175,215,255],i=function(e,t,n){return r[e]+", "+r[t]+", "+r[n]},o=0;o<6;++o)for(var s=0;s<6;++s)for(var l=0;l<6;++l)this.PALETTE_COLORS.push(i(o,s,l));for(var a=8,u=0;u<24;++u,a+=10)this.PALETTE_COLORS.push(i(a,a,a))}},{key:"escapeForHtml",value:function(e){return e.replace(/[&<>]/gm,function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":""})}},{key:"linkify",value:function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,function(e){return'<a href="'+e+'">'+e+"</a>"})}},{key:"ansiToHtml",value:function(e,t){return this.process(e,t,!0)}},{key:"ansiToJson",value:function(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}},{key:"ansiToText",value:function(e){return this.process(e,{},!1)}},{key:"process",value:function(e,t,n){var r=this,i=e.split(/\033\[/),o=i.shift();null==t&&(t={}),t.clearLine=/\r/.test(e);var s=i.map(function(e){return r.processChunk(e,t,n)});if(t&&t.json){var l=this.processChunkJson("");return l.content=o,l.clearLine=t.clearLine,s.unshift(l),t.remove_empty&&(s=s.filter(function(e){return!e.isEmpty()})),s}return s.unshift(o),s.join("")}},{key:"processChunkJson",value:function(e,t,r){var i=(t=void 0===t?{}:t).use_classes=void 0!==t.use_classes&&t.use_classes,o=t.key=i?"class":"color",s={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,clearLine:t.clearLine,decoration:null,was_processed:!1,isEmpty:function(){return!s.content}},l=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!l)return s;s.content=l[4];var a=l[2].split(";");if(""!==l[1]||"m"!==l[3]||!r)return s;for(this.decoration=null;a.length>0;){var u=parseInt(a.shift());if(isNaN(u)||0===u)this.fg=this.bg=this.decoration=null;else if(1===u)this.decoration="bold";else if(2===u)this.decoration="dim";else if(3==u)this.decoration="italic";else if(4==u)this.decoration="underline";else if(5==u)this.decoration="blink";else if(7===u)this.decoration="reverse";else if(8===u)this.decoration="hidden";else if(9===u)this.decoration="strikethrough";else if(39==u)this.fg=null;else if(49==u)this.bg=null;else if(u>=30&&u<38)this.fg=n[0][u%10][o];else if(u>=90&&u<98)this.fg=n[1][u%10][o];else if(u>=40&&u<48)this.bg=n[0][u%10][o];else if(u>=100&&u<108)this.bg=n[1][u%10][o];else if(38===u||48===u){var c=38===u;if(a.length>=1){var h=a.shift();if("5"===h&&a.length>=1){var d=parseInt(a.shift());if(d>=0&&d<=255)if(i){var p=d>=16?"ansi-palette-"+d:n[+(d>7)][d%8].class;c?this.fg=p:this.bg=p}else this.PALETTE_COLORS||this.setupPalette(),c?this.fg=this.PALETTE_COLORS[d]:this.bg=this.PALETTE_COLORS[d]}else if("2"===h&&a.length>=3){var f=parseInt(a.shift()),g=parseInt(a.shift()),m=parseInt(a.shift());if(f>=0&&f<=255&&g>=0&&g<=255&&m>=0&&m<=255){var y=f+", "+g+", "+m;i?c?(this.fg="ansi-truecolor",this.fg_truecolor=y):(this.bg="ansi-truecolor",this.bg_truecolor=y):c?this.fg=y:this.bg=y}}}}}return null===this.fg&&null===this.bg&&null===this.decoration||(s.fg=this.fg,s.bg=this.bg,s.fg_truecolor=this.fg_truecolor,s.bg_truecolor=this.bg_truecolor,s.decoration=this.decoration,s.was_processed=!0),s}},{key:"processChunk",value:function(e,t,n){var r=this;t=t||{};var i=this.processChunkJson(e,t,n);if(t.json)return i;if(i.isEmpty())return"";if(!i.was_processed)return i.content;var o=t.use_classes,s=[],l=[],a={},u=function(e){var t=[],n=void 0;for(n in e)e.hasOwnProperty(n)&&t.push("data-"+n+'="'+r.escapeForHtml(e[n])+'"');return t.length>0?" "+t.join(" "):""};return(i.fg&&(o?(l.push(i.fg+"-fg"),null!==i.fg_truecolor&&(a["ansi-truecolor-fg"]=i.fg_truecolor,i.fg_truecolor=null)):s.push("color:rgb("+i.fg+")")),i.bg&&(o?(l.push(i.bg+"-bg"),null!==i.bg_truecolor&&(a["ansi-truecolor-bg"]=i.bg_truecolor,i.bg_truecolor=null)):s.push("background-color:rgb("+i.bg+")")),i.decoration&&(o?l.push("ansi-"+i.decoration):"bold"===i.decoration?s.push("font-weight:bold"):"dim"===i.decoration?s.push("opacity:0.5"):"italic"===i.decoration?s.push("font-style:italic"):"reverse"===i.decoration?s.push("filter:invert(100%)"):"hidden"===i.decoration?s.push("visibility:hidden"):"strikethrough"===i.decoration?s.push("text-decoration:line-through"):s.push("text-decoration:"+i.decoration)),o)?'<span class="'+l.join(" ")+'"'+u(a)+">"+i.content+"</span>":'<span style="'+s.join(";")+'"'+u(a)+">"+i.content+"</span>"}}]),e}()},72744:(e,t,n)=>{"use strict";n.d(t,{TL:()=>s});var r=n(29139),i=n(68798),o=n(27123);function s(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var s;let e,l,a=(s=n,(l=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(l=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,a):a),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...s}=e,l=r.Children.toArray(i),u=l.find(a);if(u){let e=u.props.children,i=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...s,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...s,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var l=Symbol("radix.slottable");function a(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},72950:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]])},74176:(e,t,n)=>{"use strict";function r(e,t){return Array(t+1).join(e)}function i(e){return e.replace(/^\n*/,"")}function o(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}n.d(t,{A:()=>I});var s,l=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function a(e){return d(e,l)}var u=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function c(e){return d(e,u)}var h=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function d(e,t){return t.indexOf(e.nodeName)>=0}function p(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var f={};function g(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function m(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function y(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(function(e,t,n){var r=e.filter;if("string"==typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if("function"==typeof r){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}(i,t,n))return i}}function v(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function b(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}f.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},f.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},f.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var i=Number(t.nodeName.charAt(1));if("setext"!==n.headingStyle||!(i<3))return"\n\n"+r("#",i)+" "+e+"\n\n";var o=r(1===i?"=":"-",e.length);return"\n\n"+e+"\n"+o+"\n\n"}},f.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=o(i(e)).replace(/^/gm,"> "))+"\n\n"}},f.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},f.listItem={filter:"li",replacement:function(e,t,n){var r=n.bulletListMarker+" ",s=t.parentNode;if("OL"===s.nodeName){var l=s.getAttribute("start"),a=Array.prototype.indexOf.call(s.children,t);r=(l?Number(l)+a:a+1)+". "}var u=/\n$/.test(e);return e=(e=o(i(e))+(u?"\n":"")).replace(/\n/gm,"\n"+" ".repeat(r.length)),r+e+(t.nextSibling?"\n":"")}},f.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},f.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var i,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,l=n.fence.charAt(0),a=3,u=RegExp("^"+l+"{3,}","gm");i=u.exec(s);)i[0].length>=a&&(a=i[0].length+1);var c=r(l,a);return"\n\n"+c+o+"\n"+s.replace(/\n$/,"")+"\n"+c+"\n\n"}},f.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},f.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=g(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}},f.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),s=g(t.getAttribute("title"));switch(s&&(s=' "'+s+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+s;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+s;break;default:var l=this.references.length+1;r="["+e+"]["+l+"]",i="["+l+"]: "+o+s}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},f.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},f.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},f.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},f.image={filter:"img",replacement:function(e,t){var n=g(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=g(t.getAttribute("title"));return r?"+")":""}},m.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){var t;return e.isBlank?this.blankRule:(t=y(this.array,e,this.options))||(t=y(this._keep,e,this.options))||(t=y(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var k="undefined"!=typeof window?window:{},w=!function(){var e=k.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?function(){var e=function(){};return!function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){k.ActiveXObject&&(e=!0)}return e}()?e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t},e}():k.DOMParser;function x(e,t){var n;return!function(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return"PRE"===e.nodeName};if(!(!t.firstChild||i(t))){for(var o=null,s=!1,l=null,a=b(null,t,i);a!==t;){if(3===a.nodeType||4===a.nodeType){var u=a.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&" "===u[0]&&(u=u.substr(1)),!u){a=v(a);continue}a.data=u,o=a}else if(1===a.nodeType)n(a)||"BR"===a.nodeName?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):r(a)||i(a)?(o=null,s=!0):o&&(s=!1);else{a=v(a);continue}var c=b(l,a,i);l=a,a=c}o&&(o.data=o.data.replace(/ $/,""),o.data||v(o))}}({element:n="string"==typeof e?(s=s||new w).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:a,isVoid:c,isPre:t.preformattedCode?S:null}),n}function S(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function C(e,t){var n;return e.isBlock=a(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=!c(n=e)&&!d(n,h)&&/^\s*$/i.test(n.textContent)&&!p(n,u)&&!p(n,h),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n,r={leading:(n=e.textContent.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/))[1],leadingAscii:n[2],leadingNonAscii:n[3],trailing:n[4],trailingNonAscii:n[5],trailingAscii:n[6]};return r.leadingAscii&&E("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&E("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}(e,t),e}function E(e,t,n){var r,i,o;return"left"===e?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(3===r.nodeType?o=i.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||a(r)||(o=i.test(r.textContent))),o}var M=Array.prototype.reduce,A=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function T(e){if(!(this instanceof T))return new T(e);this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},{rules:f,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}},e),this.rules=new m(this.options)}function R(e){var t=this;return M.call(e.childNodes,function(e,n){n=new C(n,t.options);var r="";return 3===n.nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=N.call(t,n)),L(e,r)},"")}function O(e){var t=this;return this.rules.forEach(function(n){"function"==typeof n.append&&(e=L(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function N(e){var t=this.rules.forNode(e),n=R.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function L(e,t){var n=o(e),r=i(t),s=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,s)+r}T.prototype={turndown:function(e){var t;if(!(null!=(t=e)&&("string"==typeof t||t.nodeType&&(1===t.nodeType||9===t.nodeType||11===t.nodeType))))throw TypeError(e+" is not a string, or an element/document/fragment node.");return""===e?"":O.call(this,R.call(this,new x(e,this.options)))},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if("function"==typeof e)e(this);else throw TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return A.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};let I=T},76640:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","terminal-2","Terminal2",[["path",{d:"M8 9l3 3l-3 3",key:"svg-0"}],["path",{d:"M13 15l3 0",key:"svg-1"}],["path",{d:"M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-2"}]])},77390:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","wand","Wand",[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3",key:"svg-0"}],["path",{d:"M15 6l3 3",key:"svg-1"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-3"}]])},77525:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,d:()=>o});var r=n(25874),i=n(63218),o=r.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,r.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:o}=n,s=e();return(0,r.BQ)(n)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(i.U3.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(i.nh.create(t.doc,n.pos)):t.setSelection(i.U3.create(t.doc,n.pos));else{let o=e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType,s=null==o?void 0:o.create();s&&(t.insert(r,s),t.setSelection(i.U3.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.jT)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),s=o},77945:(e,t,n)=>{"use strict";let r;n.d(t,{Mp:()=>e$,Hd:()=>e0,vL:()=>l,uN:()=>eo,AN:()=>ec,y$:()=>L,Sj:()=>z,Vy:()=>N,sl:()=>F,fF:()=>eU,PM:()=>eK,zM:()=>eJ,MS:()=>E,FR:()=>M});var i,o,s,l,a,u,c,h,d,p,f=n(29139),g=n(24930),m=n(35115);let y={display:"none"};function v(e){let{id:t,value:n}=e;return f.createElement("div",{id:t,style:y},n)}function b(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return f.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let k=(0,f.createContext)(null),w={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},x={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function S(e){let{announcements:t=x,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=w}=e,{announce:o,announcement:s}=function(){let[e,t]=(0,f.useState)("");return{announce:(0,f.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=(0,m.YG)("DndLiveRegion"),[a,u]=(0,f.useState)(!1);(0,f.useEffect)(()=>{u(!0)},[]);var c=(0,f.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}}),[o,t]);let h=(0,f.useContext)(k);if((0,f.useEffect)(()=>{if(!h)throw Error("useDndMonitor must be used within a children of <DndContext>");return h(c)},[c,h]),!a)return null;let d=f.createElement(f.Fragment,null,f.createElement(v,{id:r,value:i.draggable}),f.createElement(b,{id:l,announcement:s}));return n?(0,g.createPortal)(d,n):d}function C(){}function E(e,t){return(0,f.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function M(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,f.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(i||(i={}));let A=Object.freeze({x:0,y:0});function T(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function O(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function N(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}let L=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=O(t),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=O(r),s=Number((i.reduce((e,t,r)=>e+function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}(n[r],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(T)},I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<o){let s=t.width*t.height,l=e.width*e.height,a=(i-r)*(o-n);return Number((a/(s+l-a)).toFixed(4))}return 0}(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(R)};function _(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:A}let D=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1);function j(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let P={ignoreTransform:!1};function z(e,t){void 0===t&&(t=P);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,m.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=j(t);if(!r)return e;let{scaleX:i,scaleY:o,x:s,y:l}=r,a=e.left-s-(1-i)*parseFloat(n),u=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,h=o?e.height/o:e.height;return{width:c,height:h,top:u,right:a+c,bottom:u+h,left:a}}(n,t,r))}let{top:r,left:i,width:o,height:s,bottom:l,right:a}=n;return{top:r,left:i,width:o,height:s,bottom:l,right:a}}function $(e){return z(e,{ignoreTransform:!0})}function F(e,t){let n=[];return e?function r(i){var o;if(null!=t&&n.length>=t||!i)return n;if((0,m.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,m.sb)(i)||(0,m.xZ)(i)||n.includes(i))return n;let s=(0,m.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,m.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,s)&&n.push(i),void 0===(o=s)&&(o=(0,m.zk)(i).getComputedStyle(i)),"fixed"===o.position)?n:r(i.parentNode)}(e):n}function B(e){let[t]=F(e,1);return null!=t?t:null}function K(e){return m.Sw&&e?(0,m.l6)(e)?e:(0,m.Ll)(e)?(0,m.wz)(e)||e===(0,m.TW)(e).scrollingElement?window:(0,m.sb)(e)?e:null:null:null}function U(e){return(0,m.l6)(e)?e.scrollX:e.scrollLeft}function H(e){return(0,m.l6)(e)?e.scrollY:e.scrollTop}function J(e){return{x:U(e),y:H(e)}}function W(e){return!!m.Sw&&!!e&&e===document.scrollingElement}function q(e){let t={x:0,y:0},n=W(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(o||(o={}));let V={x:.2,y:.2};function G(e){return e.reduce((e,t)=>(0,m.WQ)(e,J(t)),A)}function Y(e,t){if(void 0===t&&(t=z),!e)return;let{top:n,left:r,bottom:i,right:o}=t(e);B(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let X=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+U(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+H(t),0)}]];class Z{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=F(t),r=G(n);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,X))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(n),s=r[t]-i;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Q{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ee(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function et(e){e.preventDefault()}function en(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(s||(s={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(l||(l={}));let er={start:[l.Space,l.Enter],cancel:[l.Esc],end:[l.Space,l.Enter,l.Tab]},ei=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case l.Right:return{...n,x:n.x+25};case l.Left:return{...n,x:n.x-25};case l.Down:return{...n,y:n.y+25};case l.Up:return{...n,y:n.y-25}}};class eo{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Q((0,m.TW)(t)),this.windowListeners=new Q((0,m.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(s.Resize,this.handleCancel),this.windowListeners.add(s.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(s.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Y(n),t(A)}handleKeyDown(e){if((0,m.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=er,coordinateGetter:o=ei,scrollBehavior:s="smooth"}=r,{code:a}=e;if(i.end.includes(a))return void this.handleEnd(e);if(i.cancel.includes(a))return void this.handleCancel(e);let{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:A;this.referenceCoordinates||(this.referenceCoordinates=c);let h=o(e,{active:t,context:n.current,currentCoordinates:c});if(h){let t=(0,m.Re)(h,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:o,isRight:a,isLeft:u,isBottom:c,maxScroll:d,minScroll:p}=q(n),f=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),g={x:Math.min(i===l.Right?f.right-f.width/2:f.right,Math.max(i===l.Right?f.left:f.left+f.width/2,h.x)),y:Math.min(i===l.Down?f.bottom-f.height/2:f.bottom,Math.max(i===l.Down?f.top:f.top+f.height/2,h.y))},m=i===l.Right&&!a||i===l.Left&&!u,y=i===l.Down&&!c||i===l.Up&&!o;if(m&&g.x!==h.x){let e=n.scrollLeft+t.x,o=i===l.Right&&e<=d.x||i===l.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:s});o?r.x=n.scrollLeft-e:r.x=i===l.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(y&&g.y!==h.y){let e=n.scrollTop+t.y,o=i===l.Down&&e<=d.y||i===l.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:s});o?r.y=n.scrollTop-e:r.y=i===l.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,m.WQ)((0,m.Re)(h,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function es(e){return!!(e&&"distance"in e)}function el(e){return!!(e&&"delay"in e)}eo.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=er,onActivation:i}=t,{active:o}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ea{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,m.zk)(e);return e instanceof t?e:(0,m.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,m.TW)(o),this.documentListeners=new Q(this.document),this.listeners=new Q(n),this.windowListeners=new Q((0,m.zk)(o)),this.initialCoordinates=null!=(r=(0,m.e_)(i))?r:A,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(s.Resize,this.handleCancel),this.windowListeners.add(s.DragStart,et),this.windowListeners.add(s.VisibilityChange,this.handleCancel),this.windowListeners.add(s.ContextMenu,et),this.documentListeners.add(s.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(el(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(es(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(s.Click,en,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(s.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!r)return;let l=null!=(t=(0,m.e_)(e))?t:A,a=(0,m.Re)(r,l);if(!n&&s){if(es(s)){if(null!=s.tolerance&&ee(a,s.tolerance))return this.handleCancel();if(ee(a,s.distance))return this.handleStart()}return el(s)&&ee(a,s.tolerance)?this.handleCancel():void this.handlePending(s,a)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===l.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eu={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ec extends ea{constructor(e){let{event:t}=e;super(e,eu,(0,m.TW)(t.target))}}ec.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let eh={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(a||(a={}));class ed extends ea{constructor(e){super(e,eh,(0,m.TW)(e.event.target))}}ed.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==a.RightClick&&(null==r||r({event:n}),!0)}}];let ep={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ef extends ea{constructor(e){super(e,ep)}static setup(){return window.addEventListener(ep.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ep.move.name,e)};function e(){}}}ef.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(u||(u={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(c||(c={}));let eg={x:{[o.Backward]:!1,[o.Forward]:!1},y:{[o.Backward]:!1,[o.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(h||(h={})),(d||(d={})).Optimized="optimized";let em=new Map;function ey(e,t){return(0,m.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ev(e){let{callback:t,disabled:n}=e,r=(0,m._q)(t),i=(0,f.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,f.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eb(e){return new Z(z(e),e)}function ek(e,t,n){void 0===t&&(t=eb);let[r,i]=(0,f.useState)(null);function o(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o})}let s=function(e){let{callback:t,disabled:n}=e,r=(0,m._q)(t),i=(0,f.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,f.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),l=ev({callback:o});return(0,m.Es)(()=>{o(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())},[e]),r}let ew=[];function ex(e,t){void 0===t&&(t=[]);let n=(0,f.useRef)(null);return(0,f.useEffect)(()=>{n.current=null},t),(0,f.useEffect)(()=>{let t=e!==A;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,m.Re)(e,n.current):A}function eS(e){return(0,f.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let eC=[];function eE(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,m.sb)(t)?t:e}let eM=[{sensor:ec,options:{}},{sensor:eo,options:{}}],eA={current:{}},eT={draggable:{measure:$},droppable:{measure:$,strategy:h.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:z}};class eR extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eO={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eR,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:C},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eT,measureDroppableContainers:C,windowRect:null,measuringScheduled:!1},eN={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:C,draggableNodes:new Map,over:null,measureDroppableContainers:C},eL=(0,f.createContext)(eN),eI=(0,f.createContext)(eO);function e_(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eR}}}function eD(e,t){switch(t.type){case i.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i.DragEnd:case i.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new eR(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case i.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let s=new eR(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case i.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let o=new eR(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function ej(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,f.useContext)(eL),o=(0,m.ZC)(r),s=(0,m.ZC)(null==n?void 0:n.id);return(0,f.useEffect)(()=>{if(!t&&!r&&o&&null!=s){if(!(0,m.kx)(o)||document.activeElement===o.target)return;let e=i.get(s);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,m.ag)(e);if(t){t.focus();break}}})}},[r,t,i,s,o]),null}function eP(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let ez=(0,f.createContext)({...A,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(p||(p={}));let e$=(0,f.memo)(function(e){var t,n,r,s,l,a;let{id:d,accessibility:y,autoScroll:v=!0,children:b,sensors:w=eM,collisionDetection:x=I,measuring:C,modifiers:E,...M}=e,[T,R]=(0,f.useReducer)(eD,void 0,e_),[O,L]=function(){let[e]=(0,f.useState)(()=>new Set),t=(0,f.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,f.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[j,P]=(0,f.useState)(p.Uninitialized),$=j===p.Initialized,{draggable:{active:U,nodes:H,translate:Y},droppable:{containers:X}}=T,Q=null!=U?H.get(U):null,ee=(0,f.useRef)({initial:null,translated:null}),et=(0,f.useMemo)(()=>{var e;return null!=U?{id:U,data:null!=(e=null==Q?void 0:Q.data)?e:eA,rect:ee}:null},[U,Q]),en=(0,f.useRef)(null),[er,ei]=(0,f.useState)(null),[eo,es]=(0,f.useState)(null),el=(0,m.YN)(M,Object.values(M)),ea=(0,m.YG)("DndDescribedBy",d),eu=(0,f.useMemo)(()=>X.getEnabled(),[X]),ec=(0,f.useMemo)(()=>({draggable:{...eT.draggable,...null==C?void 0:C.draggable},droppable:{...eT.droppable,...null==C?void 0:C.droppable},dragOverlay:{...eT.dragOverlay,...null==C?void 0:C.dragOverlay}}),[null==C?void 0:C.draggable,null==C?void 0:C.droppable,null==C?void 0:C.dragOverlay]),{droppableRects:eh,measureDroppableContainers:ed,measuringScheduled:ep}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[o,s]=(0,f.useState)(null),{frequency:l,measure:a,strategy:u}=i,c=(0,f.useRef)(e),d=function(){switch(u){case h.Always:return!1;case h.BeforeDragging:return n;default:return!n}}(),p=(0,m.YN)(d),g=(0,f.useCallback)(function(e){void 0===e&&(e=[]),p.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),y=(0,f.useRef)(null),v=(0,m.KG)(t=>{if(d&&!n)return em;if(!t||t===em||c.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Z(a(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,d,a]);return(0,f.useEffect)(()=>{c.current=e},[e]),(0,f.useEffect)(()=>{d||g()},[n,d]),(0,f.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,f.useEffect)(()=>{d||"number"!=typeof l||null!==y.current||(y.current=setTimeout(()=>{g(),y.current=null},l))},[l,d,g,...r]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:null!=o}}(eu,{dragging:$,dependencies:[Y.x,Y.y],config:ec.droppable}),ef=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,m.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(H,U),eb=(0,f.useMemo)(()=>eo?(0,m.e_)(eo):null,[eo]),eR=function(){let e=(null==er?void 0:er.autoScrollEnabled)===!1,t="object"==typeof v?!1===v.enabled:!1===v,n=$&&!e&&!t;return"object"==typeof v?{...v,enabled:n}:{enabled:n}}(),eO=ey(ef,ec.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,o=(0,f.useRef)(!1),{x:s,y:l}="boolean"==typeof i?{x:i,y:i}:i;(0,m.Es)(()=>{if(!s&&!l||!t){o.current=!1;return}if(o.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=_(n(e),r);if(s||(i.x=0),l||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=B(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,l,r,n])}({activeNode:null!=U?H.get(U):null,config:eR.layoutShiftCompensation,initialRect:eO,measure:ec.draggable.measure});let eN=ek(ef,ec.draggable.measure,eO),e$=ek(ef?ef.parentElement:null),eF=(0,f.useRef)({activatorEvent:null,active:null,activeNode:ef,collisionRect:null,collisions:null,droppableRects:eh,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:X,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eB=X.getNodeFor(null==(t=eF.current.over)?void 0:t.id),eK=function(e){let{measure:t}=e,[n,r]=(0,f.useState)(null),i=ev({callback:(0,f.useCallback)(e=>{for(let{target:n}of e)if((0,m.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),o=(0,f.useCallback)(e=>{let n=eE(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[s,l]=(0,m.lk)(o);return(0,f.useMemo)(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}({measure:ec.dragOverlay.measure}),eU=null!=(n=eK.nodeRef.current)?n:ef,eH=$?null!=(r=eK.rect)?r:eN:null,eJ=!!(eK.nodeRef.current&&eK.rect),eW=function(e){let t=ey(e);return _(e,t)}(eJ?null:eN),eq=eS(eU?(0,m.zk)(eU):null),eV=function(e){let t=(0,f.useRef)(e),n=(0,m.KG)(n=>e?n&&n!==ew&&e&&t.current&&e.parentNode===t.current.parentNode?n:F(e):ew,[e]);return(0,f.useEffect)(()=>{t.current=e},[e]),n}($?null!=eB?eB:ef:null),eG=function(e,t){void 0===t&&(t=z);let[n]=e,r=eS(n?(0,m.zk)(n):null),[i,o]=(0,f.useState)(eC);function s(){o(()=>e.length?e.map(e=>W(e)?r:new Z(t(e),e)):eC)}let l=ev({callback:s});return(0,m.Es)(()=>{null==l||l.disconnect(),s(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),i}(eV),eY=eP(E,{transform:{x:Y.x-eW.x,y:Y.y-eW.y,scaleX:1,scaleY:1},activatorEvent:eo,active:et,activeNodeRect:eN,containerNodeRect:e$,draggingNodeRect:eH,over:eF.current.over,overlayNodeRect:eK.rect,scrollableAncestors:eV,scrollableAncestorRects:eG,windowRect:eq}),eX=eb?(0,m.WQ)(eb,Y):null,eZ=function(e){let[t,n]=(0,f.useState)(null),r=(0,f.useRef)(e),i=(0,f.useCallback)(e=>{let t=K(e.target);t&&n(e=>e?(e.set(t,J(t)),new Map(e)):null)},[]);return(0,f.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let s=e.map(e=>{let t=K(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,J(t)]):null}).filter(e=>null!=e);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=K(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,f.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,m.WQ)(e,t),A):G(e):A,[e,t])}(eV),eQ=ex(eZ),e0=ex(eZ,[eN]),e1=(0,m.WQ)(eY,eQ),e2=eH?D(eH,eY):null,e3=et&&e2?x({active:et,collisionRect:e2,droppableRects:eh,droppableContainers:eu,pointerCoordinates:eX}):null,e5=N(e3,"id"),[e4,e6]=(0,f.useState)(null),e9=(l=eJ?eY:(0,m.WQ)(eY,e0),a=null!=(s=null==e4?void 0:e4.rect)?s:null,{...l,scaleX:a&&eN?a.width/eN.width:1,scaleY:a&&eN?a.height/eN.height:1}),e8=(0,f.useRef)(null),e7=(0,f.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==en.current)return;let o=H.get(en.current);if(!o)return;let s=e.nativeEvent,l=new n({active:en.current,activeNode:o,event:s,options:r,context:eF,onAbort(e){if(!H.get(e))return;let{onDragAbort:t}=el.current,n={id:e};null==t||t(n),O({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!H.get(e))return;let{onDragPending:i}=el.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),O({type:"onDragPending",event:o})},onStart(e){let t=en.current;if(null==t)return;let n=H.get(t);if(!n)return;let{onDragStart:r}=el.current,o={activatorEvent:s,active:{id:t,data:n.data,rect:ee}};(0,g.unstable_batchedUpdates)(()=>{null==r||r(o),P(p.Initializing),R({type:i.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:o}),ei(e8.current),es(s)})},onMove(e){R({type:i.DragMove,coordinates:e})},onEnd:a(i.DragEnd),onCancel:a(i.DragCancel)});function a(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=eF.current,l=null;if(t&&o){let{cancelDrop:a}=el.current;l={activatorEvent:s,active:t,collisions:n,delta:o,over:r},e===i.DragEnd&&"function"==typeof a&&await Promise.resolve(a(l))&&(e=i.DragCancel)}en.current=null,(0,g.unstable_batchedUpdates)(()=>{R({type:e}),P(p.Uninitialized),e6(null),ei(null),es(null),e8.current=null;let t=e===i.DragEnd?"onDragEnd":"onDragCancel";if(l){let e=el.current[t];null==e||e(l),O({type:t,event:l})}})}}e8.current=l},[H]),te=(0,f.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,o=H.get(r);null!==en.current||!o||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},en.current=r,e7(n,t))},[H,e7]),tt=(0,f.useMemo)(()=>w.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:te(e.handler,t)}))]},[]),[w,te]);(0,f.useEffect)(()=>{if(!m.Sw)return;let e=w.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},w.map(e=>{let{sensor:t}=e;return t})),(0,m.Es)(()=>{eN&&j===p.Initializing&&P(p.Initialized)},[eN,j]),(0,f.useEffect)(()=>{let{onDragMove:e}=el.current,{active:t,activatorEvent:n,collisions:r,over:i}=eF.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:e1.x,y:e1.y},over:i};(0,g.unstable_batchedUpdates)(()=>{null==e||e(o),O({type:"onDragMove",event:o})})},[e1.x,e1.y]),(0,f.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eF.current;if(!e||null==en.current||!t||!i)return;let{onDragOver:o}=el.current,s=r.get(e5),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,a={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,g.unstable_batchedUpdates)(()=>{e6(l),null==o||o(a),O({type:"onDragOver",event:a})})},[e5]),(0,m.Es)(()=>{eF.current={activatorEvent:eo,active:et,activeNode:ef,collisionRect:e2,collisions:e3,droppableRects:eh,draggableNodes:H,draggingNode:eU,draggingNodeRect:eH,droppableContainers:X,over:e4,scrollableAncestors:eV,scrollAdjustedTranslate:e1},ee.current={initial:eH,translated:e2}},[et,ef,e3,e2,H,eU,eH,eh,X,e4,eV,e1]),function(e){let{acceleration:t,activator:n=u.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:l=5,order:a=c.TreeOrder,pointerCoordinates:h,scrollableAncestors:d,scrollableAncestorRects:p,delta:g,threshold:y}=e,v=function(e){let{delta:t,disabled:n}=e,r=(0,m.ZC)(t);return(0,m.KG)(e=>{if(n||!r||!e)return eg;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[o.Backward]:e.x[o.Backward]||-1===i.x,[o.Forward]:e.x[o.Forward]||1===i.x},y:{[o.Backward]:e.y[o.Backward]||-1===i.y,[o.Forward]:e.y[o.Forward]||1===i.y}}},[n,t,r])}({delta:g,disabled:!s}),[b,k]=(0,m.$$)(),w=(0,f.useRef)({x:0,y:0}),x=(0,f.useRef)({x:0,y:0}),S=(0,f.useMemo)(()=>{switch(n){case u.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case u.DraggableRect:return i}},[n,i,h]),C=(0,f.useRef)(null),E=(0,f.useCallback)(()=>{let e=C.current;if(!e)return;let t=w.current.x*x.current.x,n=w.current.y*x.current.y;e.scrollBy(t,n)},[]),M=(0,f.useMemo)(()=>a===c.TreeOrder?[...d].reverse():d,[a,d]);(0,f.useEffect)(()=>{if(!s||!d.length||!S)return void k();for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=p[d.indexOf(e)];if(!n)continue;let{direction:i,speed:s}=function(e,t,n,r,i){let{top:s,left:l,right:a,bottom:u}=n;void 0===r&&(r=10),void 0===i&&(i=V);let{isTop:c,isBottom:h,isLeft:d,isRight:p}=q(e),f={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&s<=t.top+m.height?(f.y=o.Backward,g.y=r*Math.abs((t.top+m.height-s)/m.height)):!h&&u>=t.bottom-m.height&&(f.y=o.Forward,g.y=r*Math.abs((t.bottom-m.height-u)/m.height)),!p&&a>=t.right-m.width?(f.x=o.Forward,g.x=r*Math.abs((t.right-m.width-a)/m.width)):!d&&l<=t.left+m.width&&(f.x=o.Backward,g.x=r*Math.abs((t.left+m.width-l)/m.width)),{direction:f,speed:g}}(e,n,S,t,y);for(let e of["x","y"])v[e][i[e]]||(s[e]=0,i[e]=0);if(s.x>0||s.y>0){k(),C.current=e,b(E,l),w.current=s,x.current=i;return}}w.current={x:0,y:0},x.current={x:0,y:0},k()},[t,E,r,k,s,l,JSON.stringify(S),JSON.stringify(v),b,d,M,p,JSON.stringify(y)])}({...eR,delta:Y,draggingRect:e2,pointerCoordinates:eX,scrollableAncestors:eV,scrollableAncestorRects:eG});let tn=(0,f.useMemo)(()=>({active:et,activeNode:ef,activeNodeRect:eN,activatorEvent:eo,collisions:e3,containerNodeRect:e$,dragOverlay:eK,draggableNodes:H,droppableContainers:X,droppableRects:eh,over:e4,measureDroppableContainers:ed,scrollableAncestors:eV,scrollableAncestorRects:eG,measuringConfiguration:ec,measuringScheduled:ep,windowRect:eq}),[et,ef,eN,eo,e3,e$,eK,H,X,eh,e4,ed,eV,eG,ec,ep,eq]),tr=(0,f.useMemo)(()=>({activatorEvent:eo,activators:tt,active:et,activeNodeRect:eN,ariaDescribedById:{draggable:ea},dispatch:R,draggableNodes:H,over:e4,measureDroppableContainers:ed}),[eo,tt,et,eN,R,ea,H,e4,ed]);return f.createElement(k.Provider,{value:L},f.createElement(eL.Provider,{value:tr},f.createElement(eI.Provider,{value:tn},f.createElement(ez.Provider,{value:e9},b)),f.createElement(ej,{disabled:(null==y?void 0:y.restoreFocus)===!1})),f.createElement(S,{...y,hiddenTextDescribedById:ea}))}),eF=(0,f.createContext)(null),eB="button";function eK(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,o=(0,m.YG)("Draggable"),{activators:s,activatorEvent:l,active:a,activeNodeRect:u,ariaDescribedById:c,draggableNodes:h,over:d}=(0,f.useContext)(eL),{role:p=eB,roleDescription:g="draggable",tabIndex:y=0}=null!=i?i:{},v=(null==a?void 0:a.id)===t,b=(0,f.useContext)(v?ez:eF),[k,w]=(0,m.lk)(),[x,S]=(0,m.lk)(),C=(0,f.useMemo)(()=>s.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[s,t]),E=(0,m.YN)(n);return(0,m.Es)(()=>(h.set(t,{id:t,key:o,node:k,activatorNode:x,data:E}),()=>{let e=h.get(t);e&&e.key===o&&h.delete(t)}),[h,t]),{active:a,activatorEvent:l,activeNodeRect:u,attributes:(0,f.useMemo)(()=>({role:p,tabIndex:y,"aria-disabled":r,"aria-pressed":!!v&&p===eB||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,p,y,v,g,c.draggable]),isDragging:v,listeners:r?void 0:C,node:k,over:d,setNodeRef:w,setActivatorNodeRef:S,transform:b}}function eU(){return(0,f.useContext)(eI)}let eH={timeout:25};function eJ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,s=(0,m.YG)("Droppable"),{active:l,dispatch:a,over:u,measureDroppableContainers:c}=(0,f.useContext)(eL),h=(0,f.useRef)({disabled:n}),d=(0,f.useRef)(!1),p=(0,f.useRef)(null),g=(0,f.useRef)(null),{disabled:y,updateMeasurementsFor:v,timeout:b}={...eH,...o},k=(0,m.YN)(null!=v?v:r),w=ev({callback:(0,f.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(k.current)?k.current:[k.current]),g.current=null},b)},[b]),disabled:y||!l}),x=(0,f.useCallback)((e,t)=>{w&&(t&&(w.unobserve(t),d.current=!1),e&&w.observe(e))},[w]),[S,C]=(0,m.lk)(x),E=(0,m.YN)(t);return(0,f.useEffect)(()=>{w&&S.current&&(w.disconnect(),d.current=!1,w.observe(S.current))},[S,w]),(0,f.useEffect)(()=>(a({type:i.RegisterDroppable,element:{id:r,key:s,disabled:n,node:S,rect:p,data:E}}),()=>a({type:i.UnregisterDroppable,key:s,id:r})),[r]),(0,f.useEffect)(()=>{n!==h.current.disabled&&(a({type:i.SetDroppableDisabled,id:r,key:s,disabled:n}),h.current.disabled=n)},[r,s,n,a]),{active:l,rect:p,isOver:(null==u?void 0:u.id)===r,node:S,over:u,setNodeRef:C}}function eW(e){let{animation:t,children:n}=e,[r,i]=(0,f.useState)(null),[o,s]=(0,f.useState)(null),l=(0,m.ZC)(n);return n||r||!l||i(l),(0,m.Es)(()=>{if(!o)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n)return void i(null);Promise.resolve(t(n,o)).then(()=>{i(null)})},[t,r,o]),f.createElement(f.Fragment,null,n,r?(0,f.cloneElement)(r,{ref:s}):null)}let eq={x:0,y:0,scaleX:1,scaleY:1};function eV(e){let{children:t}=e;return f.createElement(eL.Provider,{value:eN},f.createElement(ez.Provider,{value:eq},t))}let eG={position:"fixed",touchAction:"none"},eY=e=>(0,m.kx)(e)?"transform 250ms ease":void 0,eX=(0,f.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:s,rect:l,style:a,transform:u,transition:c=eY}=e;if(!l)return null;let h=i?u:{...u,scaleX:1,scaleY:1},d={...eG,width:l.width,height:l.height,top:l.top,left:l.left,transform:m.Ks.Transform.toString(h),transformOrigin:i&&r?function(e,t){let n=(0,m.e_)(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,l):void 0,transition:"function"==typeof c?c(r):c,...a};return f.createElement(n,{className:s,style:d,ref:t},o)}),eZ={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:m.Ks.Transform.toString(t)},{transform:m.Ks.Transform.toString(n)}]},sideEffects:(r={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,i={},{styles:o,className:s}=r;if(null!=o&&o.active)for(let[e,n]of Object.entries(o.active))void 0!==n&&(i[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=o&&o.dragOverlay)for(let[e,t]of Object.entries(o.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=s&&s.active&&t.node.classList.add(s.active),null!=s&&s.dragOverlay&&n.node.classList.add(s.dragOverlay),function(){for(let[e,n]of Object.entries(i))t.node.style.setProperty(e,n);null!=s&&s.active&&t.node.classList.remove(s.active)}})},eQ=0,e0=f.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:o,modifiers:s,wrapperElement:l="div",className:a,zIndex:u=999}=e,{activatorEvent:c,active:h,activeNodeRect:d,containerNodeRect:p,draggableNodes:g,droppableContainers:y,dragOverlay:v,over:b,measuringConfiguration:k,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:S}=eU(),C=(0,f.useContext)(ez),E=function(e){return(0,f.useMemo)(()=>{if(null!=e)return++eQ},[e])}(null==h?void 0:h.id),M=eP(s,{activatorEvent:c,active:h,activeNodeRect:d,containerNodeRect:p,draggingNodeRect:v.rect,over:b,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:C,windowRect:S}),A=ey(d),T=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,m._q)((e,o)=>{if(null===t)return;let s=n.get(e);if(!s)return;let l=s.node.current;if(!l)return;let a=eE(o);if(!a)return;let{transform:u}=(0,m.zk)(o).getComputedStyle(o),c=j(u);if(!c)return;let h="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...eZ,...e};return e=>{let{active:o,dragOverlay:s,transform:l,...a}=e;if(!t)return;let u={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},c={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/s.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/s.rect.height:1},h={x:l.x-u.x,y:l.y-u.y,...c},d=i({...a,active:o,dragOverlay:s,transform:{initial:l,final:h}}),[p]=d,f=d[d.length-1];if(JSON.stringify(p)===JSON.stringify(f))return;let g=null==r?void 0:r({active:o,dragOverlay:s,...a}),m=s.node.animate(d,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{m.onfinish=()=>{null==g||g(),e()}})}}(t);return Y(l,i.draggable.measure),h({active:{id:e,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(a)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:r,draggableNodes:g,droppableContainers:y,measuringConfiguration:k}),R=A?v.setRef:void 0;return f.createElement(eV,null,f.createElement(eW,{animation:T},h&&E?f.createElement(eX,{key:E,id:h.id,ref:R,as:l,activatorEvent:c,adjustScale:t,className:a,transition:o,rect:A,style:{zIndex:u,...i},transform:M},n):null))})},79325:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>o});var r=n(29139),i=0;function o(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:s()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:s()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},79526:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","flag","Flag",[["path",{d:"M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9z",key:"svg-0"}],["path",{d:"M5 21v-7",key:"svg-1"}]])},81122:(e,t,n)=>{"use strict";n.d(t,{K:()=>f,w:()=>p});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)r[48+l]=r[96+l]=String(l);for(var l=1;l<=24;l++)r[l+111]="F"+l;for(var l=65;l<=90;l++)r[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in r)i.hasOwnProperty(a)||(i[a]=r[a]);var u=n(63218);let c="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),h="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function d(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function p(e){return new u.k_({props:{handleKeyDown:f(e)}})}function f(e){let t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else if(/^mod$/i.test(s))c?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+s)}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),i&&(s="Meta-"+s),r&&(s="Shift-"+s),s}(n)]=e[n];return t}(e);return function(e,n){var l;let a=("Esc"==(l=!(o&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||s&&n.shiftKey&&n.key&&1==n.key.length||"Unidentified"==n.key)&&n.key||(n.shiftKey?i:r)[n.keyCode]||n.key||"Unidentified")&&(l="Escape"),"Del"==l&&(l="Delete"),"Left"==l&&(l="ArrowLeft"),"Up"==l&&(l="ArrowUp"),"Right"==l&&(l="ArrowRight"),"Down"==l&&(l="ArrowDown"),l),u,c=t[d(a,n)];if(c&&c(e.state,e.dispatch,e))return!0;if(1==a.length&&" "!=a){if(n.shiftKey){let r=t[d(a,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(h&&n.ctrlKey&&n.altKey)&&(u=r[n.keyCode])&&u!=a){let r=t[d(u,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},84244:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","trash","Trash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]])},84940:(e,t,n)=>{"use strict";n.d(t,{UC:()=>th,YJ:()=>td,q7:()=>tp,ZL:()=>tc,z6:()=>tf,bL:()=>ta,Pb:()=>tg,G5:()=>ty,ZP:()=>tm,l9:()=>tu});var r,i=n(29139),o=n(38903),s=n(68798),l=n(5512),a=n(7783),u=n(5288);function c(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t){var n=c(e,t,"get");return n.get?n.get.call(e):n.value}function d(e,t,n){var r=c(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var p=n(72744),f=n(27123);function g(e){let t=e+"CollectionProvider",[n,r]=(0,l.A)(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:n}=e,r=i.useRef(null),s=i.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:s,collectionRef:r,children:n})};u.displayName=t;let c=e+"CollectionSlot",h=(0,p.TL)(c),d=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(c,n),o=(0,s.s)(t,i.collectionRef);return(0,f.jsx)(h,{ref:o,children:r})});d.displayName=c;let g=e+"CollectionItemSlot",m="data-radix-collection-item",y=(0,p.TL)(g),v=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,l=i.useRef(null),u=(0,s.s)(t,l),c=a(g,n);return i.useEffect(()=>(c.itemMap.set(l,{ref:l,...o}),()=>void c.itemMap.delete(l))),(0,f.jsx)(y,{...{[m]:""},ref:u,children:r})});return v.displayName=g,[{Provider:u,Slot:d,ItemSlot:v},function(t){let n=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var m=new WeakMap;function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=v(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function v(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return m.get(this)&&(this.has(e)?h(this,r)[h(this,r).indexOf(e)]=e:h(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let i,o=this.has(t),s=h(this,r).length,l=v(e),a=l>=0?l:s+l,u=a<0||a>=s?-1:a;if(u===this.size||o&&u===this.size-1||-1===u)return this.set(t,n),this;let c=this.size+ +!o;l<0&&a++;let d=[...h(this,r)],p=!1;for(let e=a;e<c;e++)if(a===e){let r=d[e];d[e]===t&&(r=d[e+1]),o&&this.delete(t),i=this.get(r),this.set(t,n)}else{p||d[e-1]!==t||(p=!0);let n=d[p?e:e-1],r=i;i=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=h(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let i=h(this,r).indexOf(e);return -1===i?this:this.insert(i,t,n)}after(e){let t=h(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let i=h(this,r).indexOf(e);return -1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return d(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&h(this,r).splice(h(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=y(h(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=y(h(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return h(this,r).indexOf(e)}keyAt(e){return y(h(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=0,s=null!=i?i:this.at(0);for(let e of this)s=0===o&&1===t.length?e:Reflect.apply(r,this,[s,e,o,this]),o++;return s}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);o=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[o,n,e,this])}return o}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,r,{writable:!0,value:void 0}),d(this,r,[...super.keys()]),m.set(this,!0)}};var b=i.createContext(void 0);function k(e){let t=i.useContext(b);return e||t||"ltr"}var w=n(11599),x=n(79325),S=n(61661),C=n(24595),E=n(92450),M=n(40816),A=n(1619),T=n(92487),R="rovingFocusGroup.onEntryFocus",O={bubbles:!1,cancelable:!0},N="RovingFocusGroup",[L,I,_]=g(N),[D,j]=(0,l.A)(N,[_]),[P,z]=D(N),$=i.forwardRef((e,t)=>(0,f.jsx)(L.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(L.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(F,{...e,ref:t})})}));$.displayName=N;var F=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:l=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:m=!1,...y}=e,v=i.useRef(null),b=(0,s.s)(t,v),w=k(c),[x,S]=(0,a.i)({prop:h,defaultProp:null!=d?d:null,onChange:p,caller:N}),[C,E]=i.useState(!1),M=(0,T.c)(g),A=I(n),L=i.useRef(!1),[_,D]=i.useState(0);return i.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(R,M),()=>e.removeEventListener(R,M)},[M]),(0,f.jsx)(P,{scope:n,orientation:r,dir:w,loop:l,currentTabStopId:x,onItemFocus:i.useCallback(e=>S(e),[S]),onItemShiftTab:i.useCallback(()=>E(!0),[]),onFocusableItemAdd:i.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>D(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:C||0===_?-1:0,"data-orientation":r,...y,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(R,O);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=A().filter(e=>e.focusable);H([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),m)}}L.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>E(!1))})})}),B="RovingFocusGroupItem",K=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:l,children:a,...c}=e,h=(0,C.B)(),d=l||h,p=z(B,n),g=p.currentTabStopId===d,m=I(n),{onFocusableItemAdd:y,onFocusableItemRemove:v,currentTabStopId:b}=p;return i.useEffect(()=>{if(r)return y(),()=>v()},[r,y,v]),(0,f.jsx)(L.ItemSlot,{scope:n,id:d,focusable:r,active:s,children:(0,f.jsx)(u.sG.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{r?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return U[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>H(n))}}),children:"function"==typeof a?a({isCurrentTabStop:g,hasTabStop:null!=b}):a})})});K.displayName=B;var U={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function H(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var J=n(63299),W=n(82404),q=["Enter"," "],V=["ArrowUp","PageDown","End"],G=["ArrowDown","PageUp","Home",...V],Y={ltr:[...q,"ArrowRight"],rtl:[...q,"ArrowLeft"]},X={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Z="Menu",[Q,ee,et]=g(Z),[en,er]=(0,l.A)(Z,[et,E.Bk,j]),ei=(0,E.Bk)(),eo=j(),[es,el]=en(Z),[ea,eu]=en(Z),ec=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:l=!0}=e,a=ei(t),[u,c]=i.useState(null),h=i.useRef(!1),d=(0,T.c)(s),p=k(o);return i.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,f.jsx)(E.bL,{...a,children:(0,f.jsx)(es,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:c,children:(0,f.jsx)(ea,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:h,dir:p,modal:l,children:r})})})};ec.displayName=Z;var eh=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ei(n);return(0,f.jsx)(E.Mz,{...i,...r,ref:t})});eh.displayName="MenuAnchor";var ed="MenuPortal",[ep,ef]=en(ed,{forceMount:void 0}),eg=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=el(ed,t);return(0,f.jsx)(ep,{scope:t,forceMount:n,children:(0,f.jsx)(A.C,{present:n||o.open,children:(0,f.jsx)(M.Z,{asChild:!0,container:i,children:r})})})};eg.displayName=ed;var em="MenuContent",[ey,ev]=en(em),eb=i.forwardRef((e,t)=>{let n=ef(em,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=el(em,e.__scopeMenu),s=eu(em,e.__scopeMenu);return(0,f.jsx)(Q.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(A.C,{present:r||o.open,children:(0,f.jsx)(Q.Slot,{scope:e.__scopeMenu,children:s.modal?(0,f.jsx)(ek,{...i,ref:t}):(0,f.jsx)(ew,{...i,ref:t})})})})}),ek=i.forwardRef((e,t)=>{let n=el(em,e.__scopeMenu),r=i.useRef(null),l=(0,s.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,J.Eq)(e)},[]),(0,f.jsx)(eS,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ew=i.forwardRef((e,t)=>{let n=el(em,e.__scopeMenu);return(0,f.jsx)(eS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ex=(0,p.TL)("MenuContent.ScrollLock"),eS=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:l,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:m,onDismiss:y,disableOutsideScroll:v,...b}=e,k=el(em,n),C=eu(em,n),M=ei(n),A=eo(n),T=ee(n),[R,O]=i.useState(null),N=i.useRef(null),L=(0,s.s)(t,N,k.onContentChange),I=i.useRef(0),_=i.useRef(""),D=i.useRef(0),j=i.useRef(null),P=i.useRef("right"),z=i.useRef(0),F=v?W.A:i.Fragment;i.useEffect(()=>()=>window.clearTimeout(I.current),[]),(0,x.Oh)();let B=i.useCallback(e=>{var t,n;return P.current===(null==(t=j.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],l=t[o],a=s.x,u=s.y,c=l.x,h=l.y;u>r!=h>r&&n<(c-a)*(r-u)/(h-u)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null==(n=j.current)?void 0:n.area)},[]);return(0,f.jsx)(ey,{scope:n,searchRef:_,onItemEnter:i.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:i.useCallback(e=>{var t;B(e)||(null==(t=N.current)||t.focus(),O(null))},[B]),onTriggerLeave:i.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:D,onPointerGraceIntentChange:i.useCallback(e=>{j.current=e},[]),children:(0,f.jsx)(F,{...v?{as:ex,allowPinchZoom:!0}:void 0,children:(0,f.jsx)(S.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.mK)(a,e=>{var t;e.preventDefault(),null==(t=N.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,f.jsx)(w.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:m,onDismiss:y,children:(0,f.jsx)($,{asChild:!0,...A,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:O,onEntryFocus:(0,o.mK)(h,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(E.UC,{role:"menu","aria-orientation":"vertical","data-state":eX(k.open),"data-radix-menu-content":"",dir:C.dir,...M,...b,ref:L,style:{outline:"none",...b.style},onKeyDown:(0,o.mK)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=_.current+e,i=T().filter(e=>!e.disabled),o=document.activeElement,s=null==(t=i.find(e=>e.ref.current===o))?void 0:t.textValue,l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,s=(r=Math.max(o,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(s=s.filter(e=>e!==n));let l=s.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}(i.map(e=>e.textValue),r,s),a=null==(n=i.find(e=>e.textValue===l))?void 0:n.ref.current;!function e(t){_.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout(()=>e(""),1e3))}(r),a&&setTimeout(()=>a.focus())})(e.key));let i=N.current;if(e.target!==i||!G.includes(e.key))return;e.preventDefault();let o=T().filter(e=>!e.disabled).map(e=>e.ref.current);V.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),_.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,e0(e=>{let t=e.target,n=z.current!==e.clientX;e.currentTarget.contains(t)&&n&&(P.current=e.clientX>z.current?"right":"left",z.current=e.clientX)}))})})})})})})});eb.displayName=em;var eC=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(u.sG.div,{role:"group",...r,ref:t})});eC.displayName="MenuGroup";var eE=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(u.sG.div,{...r,ref:t})});eE.displayName="MenuLabel";var eM="MenuItem",eA="menu.itemSelect",eT=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...l}=e,a=i.useRef(null),c=eu(eM,e.__scopeMenu),h=ev(eM,e.__scopeMenu),d=(0,s.s)(t,a),p=i.useRef(!1);return(0,f.jsx)(eR,{...l,ref:d,disabled:n,onClick:(0,o.mK)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(eA,{bubbles:!0,cancelable:!0});e.addEventListener(eA,e=>null==r?void 0:r(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;n||t&&" "===e.key||q.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eT.displayName=eM;var eR=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:l,...a}=e,c=ev(eM,n),h=eo(n),d=i.useRef(null),p=(0,s.s)(t,d),[g,m]=i.useState(!1),[y,v]=i.useState("");return i.useEffect(()=>{let e=d.current;if(e){var t;v((null!=(t=e.textContent)?t:"").trim())}},[a.children]),(0,f.jsx)(Q.ItemSlot,{scope:n,disabled:r,textValue:null!=l?l:y,children:(0,f.jsx)(K,{asChild:!0,...h,focusable:!r,children:(0,f.jsx)(u.sG.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:p,onPointerMove:(0,o.mK)(e.onPointerMove,e0(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,e0(e=>c.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>m(!0)),onBlur:(0,o.mK)(e.onBlur,()=>m(!1))})})})}),eO=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,f.jsx)(ez,{scope:e.__scopeMenu,checked:n,children:(0,f.jsx)(eT,{role:"menuitemcheckbox","aria-checked":eZ(n)?"mixed":n,...i,ref:t,"data-state":eQ(n),onSelect:(0,o.mK)(i.onSelect,()=>null==r?void 0:r(!!eZ(n)||!n),{checkForDefaultPrevented:!1})})})});eO.displayName="MenuCheckboxItem";var eN="MenuRadioGroup",[eL,eI]=en(eN,{value:void 0,onValueChange:()=>{}}),e_=i.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,T.c)(r);return(0,f.jsx)(eL,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,f.jsx)(eC,{...i,ref:t})})});e_.displayName=eN;var eD="MenuRadioItem",ej=i.forwardRef((e,t)=>{let{value:n,...r}=e,i=eI(eD,e.__scopeMenu),s=n===i.value;return(0,f.jsx)(ez,{scope:e.__scopeMenu,checked:s,children:(0,f.jsx)(eT,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":eQ(s),onSelect:(0,o.mK)(r.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});ej.displayName=eD;var eP="MenuItemIndicator",[ez,e$]=en(eP,{checked:!1}),eF=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=e$(eP,n);return(0,f.jsx)(A.C,{present:r||eZ(o.checked)||!0===o.checked,children:(0,f.jsx)(u.sG.span,{...i,ref:t,"data-state":eQ(o.checked)})})});eF.displayName=eP;var eB=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eB.displayName="MenuSeparator";var eK=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ei(n);return(0,f.jsx)(E.i3,{...i,...r,ref:t})});eK.displayName="MenuArrow";var eU="MenuSub",[eH,eJ]=en(eU),eW=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=el(eU,t),l=ei(t),[a,u]=i.useState(null),[c,h]=i.useState(null),d=(0,T.c)(o);return i.useEffect(()=>(!1===s.open&&d(!1),()=>d(!1)),[s.open,d]),(0,f.jsx)(E.bL,{...l,children:(0,f.jsx)(es,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:h,children:(0,f.jsx)(eH,{scope:t,contentId:(0,C.B)(),triggerId:(0,C.B)(),trigger:a,onTriggerChange:u,children:n})})})};eW.displayName=eU;var eq="MenuSubTrigger",eV=i.forwardRef((e,t)=>{let n=el(eq,e.__scopeMenu),r=eu(eq,e.__scopeMenu),l=eJ(eq,e.__scopeMenu),a=ev(eq,e.__scopeMenu),u=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:h}=a,d={__scopeMenu:e.__scopeMenu},p=i.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return i.useEffect(()=>p,[p]),i.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),h(null)}},[c,h]),(0,f.jsx)(eh,{asChild:!0,...d,children:(0,f.jsx)(eR,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":eX(n.open),...e,ref:(0,s.t)(t,l.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,e0(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(a.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,e0(e=>{var t,r;p();let i=null==(t=n.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(r=n.content)?void 0:r.dataset.side,o="right"===t,s=i[o?"left":"right"],l=i[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:s,y:i.top},{x:l,y:i.top},{x:l,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,t=>{let i=""!==a.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&Y[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null==(o=n.content)||o.focus(),t.preventDefault()}})})})});eV.displayName=eq;var eG="MenuSubContent",eY=i.forwardRef((e,t)=>{let n=ef(em,e.__scopeMenu),{forceMount:r=n.forceMount,...l}=e,a=el(em,e.__scopeMenu),u=eu(em,e.__scopeMenu),c=eJ(eG,e.__scopeMenu),h=i.useRef(null),d=(0,s.s)(t,h);return(0,f.jsx)(Q.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(A.C,{present:r||a.open,children:(0,f.jsx)(Q.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(eS,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=h.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=X[u.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null==(r=c.trigger)||r.focus(),e.preventDefault()}})})})})})});function eX(e){return e?"open":"closed"}function eZ(e){return"indeterminate"===e}function eQ(e){return eZ(e)?"indeterminate":e?"checked":"unchecked"}function e0(e){return t=>"mouse"===t.pointerType?e(t):void 0}eY.displayName=eG;var e1="DropdownMenu",[e2,e3]=(0,l.A)(e1,[er]),e5=er(),[e4,e6]=e2(e1),e9=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:l,modal:u=!0}=e,c=e5(t),h=i.useRef(null),[d,p]=(0,a.i)({prop:o,defaultProp:null!=s&&s,onChange:l,caller:e1});return(0,f.jsx)(e4,{scope:t,triggerId:(0,C.B)(),triggerRef:h,contentId:(0,C.B)(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,f.jsx)(ec,{...c,open:d,onOpenChange:p,dir:r,modal:u,children:n})})};e9.displayName=e1;var e8="DropdownMenuTrigger",e7=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=e6(e8,n),a=e5(n);return(0,f.jsx)(eh,{asChild:!0,...a,children:(0,f.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:(0,s.t)(t,l.triggerRef),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e7.displayName=e8;var te=e=>{let{__scopeDropdownMenu:t,...n}=e,r=e5(t);return(0,f.jsx)(eg,{...r,...n})};te.displayName="DropdownMenuPortal";var tt="DropdownMenuContent",tn=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,s=e6(tt,n),l=e5(n),a=i.useRef(!1);return(0,f.jsx)(eb,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...r,ref:t,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;a.current||null==(t=s.triggerRef.current)||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,o.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!s.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tn.displayName=tt;var tr=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eC,{...i,...r,ref:t})});tr.displayName="DropdownMenuGroup",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eE,{...i,...r,ref:t})}).displayName="DropdownMenuLabel";var ti=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eT,{...i,...r,ref:t})});ti.displayName="DropdownMenuItem",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eO,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem";var to=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(e_,{...i,...r,ref:t})});to.displayName="DropdownMenuRadioGroup",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(ej,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eF,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eB,{...i,...r,ref:t})}).displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eK,{...i,...r,ref:t})}).displayName="DropdownMenuArrow";var ts=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eV,{...i,...r,ref:t})});ts.displayName="DropdownMenuSubTrigger";var tl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=e5(n);return(0,f.jsx)(eY,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tl.displayName="DropdownMenuSubContent";var ta=e9,tu=e7,tc=te,th=tn,td=tr,tp=ti,tf=to,tg=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,s=e5(t),[l,u]=(0,a.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:"DropdownMenuSub"});return(0,f.jsx)(eW,{...s,open:l,onOpenChange:u,children:n})},tm=ts,ty=tl},85437:(e,t,n)=>{"use strict";n.d(t,{D9:()=>nr,FR:()=>E,oO:()=>ns});var r,i,o,s=n(27123),l=n(29139);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,l=[],a=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}(e,t)||p(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function m(e,t){return e(t={exports:{}},t.exports),t.exports}var y=m(function(e){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&e.push(s)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}),v={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(e){var t=e.renderDefault;return(0,e.wrapInAnchor)(t())},codeEvents:{},gutterEvents:{}},b=(0,l.createContext)(v),k=b.Provider,w=m(function(e,t){e.exports={parse:function(e){for(var t,n,r,i,o,s=[],l=2,a=e.split("\n"),u=a.length,c=0;c<u;){var h=a[c];if(0===h.indexOf("diff --git")){t={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(o=function(e){var t,n=e.slice(11),r=null,i=null;switch(n.indexOf('"')){case -1:r=(t=n.split(" "))[0].slice(2),i=t[1].slice(2);break;case 0:var o=n.indexOf('"',2);r=n.slice(3,o);var s=n.indexOf('"',o+1);i=s<0?n.slice(o+4):n.slice(s+3,-1);break;default:r=(t=n.split(" "))[0].slice(2),i=t[1].slice(3,-1)}return{oldPath:r,newPath:i}}(h)).oldPath,newPath:o.newPath},s.push(t);var d,p=null;r:for(;d=a[++c];){var f=d.indexOf(" "),g=f>-1?d.slice(0,f):g;switch(g){case"diff":c--;break r;case"deleted":case"new":var m=d.slice(f+1);0===m.indexOf("file mode")&&(t["new"===g?"newMode":"oldMode"]=m.slice(10));break;case"similarity":t.similarity=parseInt(d.split(" ")[2],10);break;case"index":var y=d.slice(f+1).split(" "),v=y[0].split("..");t.oldRevision=v[0],t.newRevision=v[1],y[1]&&(t.oldMode=t.newMode=y[1]);break;case"copy":case"rename":var b=d.slice(f+1);0===b.indexOf("from")?t.oldPath=b.slice(5):t.newPath=b.slice(3),p=g;break;case"---":var k=d.slice(f+1),w=a[++c].slice(4);"/dev/null"===k?(w=w.slice(2),p="add"):"/dev/null"===w?(k=k.slice(2),p="delete"):(p="modify",k=k.slice(2),w=w.slice(2)),k&&(t.oldPath=k),w&&(t.newPath=w),l=5;break r}}t.type=p||"modify"}else if(0===h.indexOf("Binary"))t.isBinary=!0,t.type=h.indexOf("/dev/null and")>=0?"add":h.indexOf("and /dev/null")>=0?"delete":"modify",l=2,t=null;else if(5===l)if(0===h.indexOf("@@")){var x=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(h);n={content:h,oldStart:x[1]-0,newStart:x[4]-0,oldLines:x[3]-0||1,newLines:x[6]-0||1,changes:[]},t.hunks.push(n),r=n.oldStart,i=n.newStart}else{var S=h.slice(0,1),C={content:h.slice(1)};switch(S){case"+":C.type="insert",C.isInsert=!0,C.lineNumber=i,i++;break;case"-":C.type="delete",C.isDelete=!0,C.lineNumber=r,r++;break;case" ":C.type="normal",C.isNormal=!0,C.oldLineNumber=r,C.newLineNumber=i,r++,i++;break;case"\\":var E=n.changes[n.changes.length-1];E.isDelete||(t.newEndingNewLine=!1),E.isInsert||(t.oldEndingNewLine=!1)}C.type&&n.changes.push(C)}c++}return s}}});function x(e){return"insert"===e.type}function S(e){return"delete"===e.type}function C(e){return"normal"===e.type}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){if(e.startsWith("diff --git"))return e;var t=e.indexOf("\n"),n=e.indexOf("\n",t+1),r=e.slice(0,t),i=e.slice(t+1,n),o=r.split(" ").slice(1,-3).join(" "),s=i.split(" ").slice(1,-3).join(" ");return["diff --git a/".concat(o," b/").concat(s),"index 1111111..2222222 100644","--- a/".concat(o),"+++ b/".concat(s),e.slice(n+1)].join("\n")}(e.trimStart());return w.parse(n).map(function(e){var n;return n=e.hunks.map(function(e){var n,r="zip"===t.nearbySequences?(n=e.changes.reduce(function(e,t,n){var r=d(e,3),i=r[0],o=r[1],s=r[2];return o?x(t)&&s>=0?(i.splice(s+1,0,t),[i,t,s+2]):(i.push(t),[i,t,S(t)&&S(o)?s:n]):(i.push(t),[i,t,S(t)?n:-1])},[[],null,-1]),d(n,1)[0]):e.changes;return u(u({},e),{},{isPlain:!1,changes:r})}),u(u({},e),{},{hunks:n})})}function M(e){return["".concat(e,"Start"),"".concat(e,"Lines")]}function A(e){return"old"===e?function(e){return x(e)?-1:C(e)?e.oldLineNumber:e.lineNumber}:function(e){return S(e)?-1:C(e)?e.newLineNumber:e.lineNumber}}function T(e,t){return function(n,r){var i=n[e],o=i+n[t];return r>=i&&r<o}}function R(e,t){return function(n,r,i){var o=n[e]+n[t],s=r[e];return i>=o&&i<s}}function O(e){var t,n,r=A(e),i=(n=T((t=d(M(e),2))[0],t[1]),function(e,t){return e.find(function(e){return n(e,t)})});return function(e,t){var n=i(e,t);if(n)return n.changes.find(function(e){return r(e)===t})}}function N(e){var t="old"===e?"new":"old",n=d(M(e),2),r=n[0],i=n[1],o=d(M(t),2),s=o[0],l=o[1],a=A(e),u=A(t),c=T(r,i),h=R(r,i);return function(e,t){var n=e[0];if(t<n[r]){var o=n[r]-t;return n[s]-o}var d=e[e.length-1];if(d[r]+d[i]<=t){var p=t-d[r]-d[i];return d[s]+d[l]+p}for(var f=0;f<e.length;f++){var g=e[f],m=e[f+1];if(c(g,t)){var y=g.changes.findIndex(function(e){return a(e)===t}),v=g.changes[y];if(C(v))return u(v);var b=S(v)?y+1:y-1,k=g.changes[b];if(!k)return -1;var w=x(v)?"delete":"insert";return k.type===w?u(k):-1}if(h(g,m,t)){var E=t-g[r]-g[i];return g[s]+g[l]+E}}throw Error("Unexpected line position ".concat(t))}}var L=function(e,t){return e===t||e!=e&&t!=t},I=function(e,t){for(var n=e.length;n--;)if(L(e[n][0],t))return n;return -1},_=Array.prototype.splice;function D(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}D.prototype.clear=function(){this.__data__=[],this.size=0},D.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():_.call(t,n,1),--this.size,!0)},D.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},D.prototype.has=function(e){return I(this.__data__,e)>-1},D.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var j="object"==typeof g&&g&&g.Object===Object&&g,P="object"==typeof self&&self&&self.Object===Object&&self,z=j||P||Function("return this")(),$=z.Symbol,F=Object.prototype,B=F.hasOwnProperty,K=F.toString,U=$?$.toStringTag:void 0,H=function(e){var t=B.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch(e){}var i=K.call(e);return r&&(t?e[U]=n:delete e[U]),i},J=Object.prototype.toString,W=$?$.toStringTag:void 0,q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?H(e):J.call(e)},V=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},G=function(e){if(!V(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=z["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=Function.prototype.toString,Q=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=/^\[object .+?Constructor\]$/,et=Object.prototype,en=Function.prototype.toString,er=et.hasOwnProperty,ei=RegExp("^"+en.call(er).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eo=function(e){return!(!V(e)||X&&X in e)&&(G(e)?ei:ee).test(Q(e))},es=function(e,t){var n=null==e?void 0:e[t];return eo(n)?n:void 0},el=es(z,"Map"),ea=es(Object,"create"),eu=Object.prototype.hasOwnProperty,ec=Object.prototype.hasOwnProperty;function eh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eh.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},eh.prototype.get=function(e){var t=this.__data__;if(ea){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eu.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:ec.call(t,e)},eh.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ea&&void 0===t?"__lodash_hash_undefined__":t,this};var ed=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ep=function(e,t){var n=e.__data__;return ed(t)?n["string"==typeof t?"string":"hash"]:n.map};function ef(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=this.__data__=new D(e);this.size=t.size}function em(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ef;++t<n;)this.add(e[t])}ef.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(el||D),string:new eh}},ef.prototype.delete=function(e){var t=ep(this,e).delete(e);return this.size-=!!t,t},ef.prototype.get=function(e){return ep(this,e).get(e)},ef.prototype.has=function(e){return ep(this,e).has(e)},ef.prototype.set=function(e,t){var n=ep(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},eg.prototype.clear=function(){this.__data__=new D,this.size=0},eg.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eg.prototype.get=function(e){return this.__data__.get(e)},eg.prototype.has=function(e){return this.__data__.has(e)},eg.prototype.set=function(e,t){var n=this.__data__;if(n instanceof D){var r=n.__data__;if(!el||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ef(r)}return n.set(e,t),this.size=n.size,this},em.prototype.add=em.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},em.prototype.has=function(e){return this.__data__.has(e)};var ey=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},ev=function(e,t,n,r,i,o){var s=1&n,l=e.length,a=t.length;if(l!=a&&!(s&&a>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var h=-1,d=!0,p=2&n?new em:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var f=e[h],g=t[h];if(r)var m=s?r(g,f,h,t,e,o):r(f,g,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!ey(t,function(e,t){if(!p.has(t)&&(f===e||i(f,e,n,r,o)))return p.push(t)})){d=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},eb=z.Uint8Array,ek=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},ew=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},ex=$?$.prototype:void 0,eS=ex?ex.valueOf:void 0,eC=function(e,t,n,r,i,o,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new eb(e),new eb(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return L(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=ek;case"[object Set]":var a=1&r;if(l||(l=ew),e.size!=t.size&&!a)break;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=ev(l(e),l(t),r,i,o,s);return s.delete(e),c;case"[object Symbol]":if(eS)return eS.call(e)==eS.call(t)}return!1},eE=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},eM=Array.isArray,eA=function(e,t,n){var r=t(e);return eM(e)?r:eE(r,n(e))},eT=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o},eR=Object.prototype.propertyIsEnumerable,eO=Object.getOwnPropertySymbols,eN=eO?function(e){return null==e?[]:eT(eO(e=Object(e)),function(t){return eR.call(e,t)})}:function(){return[]},eL=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},eI=function(e){return null!=e&&"object"==typeof e},e_=function(e){return eI(e)&&"[object Arguments]"==q(e)},eD=Object.prototype,ej=eD.hasOwnProperty,eP=eD.propertyIsEnumerable,ez=e_(function(){return arguments}())?e_:function(e){return eI(e)&&ej.call(e,"callee")&&!eP.call(e,"callee")},e$=function(){return!1},eF=m(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?z.Buffer:void 0;e.exports=(i?i.isBuffer:void 0)||e$}),eB=/^(?:0|[1-9]\d*)$/,eK=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&eB.test(e))&&e>-1&&e%1==0&&e<t},eU=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},eH={};eH["[object Float32Array]"]=eH["[object Float64Array]"]=eH["[object Int8Array]"]=eH["[object Int16Array]"]=eH["[object Int32Array]"]=eH["[object Uint8Array]"]=eH["[object Uint8ClampedArray]"]=eH["[object Uint16Array]"]=eH["[object Uint32Array]"]=!0,eH["[object Arguments]"]=eH["[object Array]"]=eH["[object ArrayBuffer]"]=eH["[object Boolean]"]=eH["[object DataView]"]=eH["[object Date]"]=eH["[object Error]"]=eH["[object Function]"]=eH["[object Map]"]=eH["[object Number]"]=eH["[object Object]"]=eH["[object RegExp]"]=eH["[object Set]"]=eH["[object String]"]=eH["[object WeakMap]"]=!1;var eJ=m(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&j.process;e.exports=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}()}),eW=eJ&&eJ.isTypedArray,eq=eW?function(e){return eW(e)}:function(e){return eI(e)&&eU(e.length)&&!!eH[q(e)]},eV=Object.prototype.hasOwnProperty,eG=function(e,t){var n=eM(e),r=!n&&ez(e),i=!n&&!r&&eF(e),o=!n&&!r&&!i&&eq(e),s=n||r||i||o,l=s?eL(e.length,String):[],a=l.length;for(var u in e)!t&&!eV.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||eK(u,a))||l.push(u);return l},eY=Object.prototype,eX=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eY)},eZ=(i=Object.keys,o=Object,function(e){return i(o(e))}),eQ=Object.prototype.hasOwnProperty,e0=function(e){if(!eX(e))return eZ(e);var t=[];for(var n in Object(e))eQ.call(e,n)&&"constructor"!=n&&t.push(n);return t},e1=function(e){return null!=e&&eU(e.length)&&!G(e)},e2=function(e){return e1(e)?eG(e):e0(e)},e3=function(e){return eA(e,e2,eN)},e5=Object.prototype.hasOwnProperty,e4=function(e,t,n,r,i,o){var s=1&n,l=e3(e),a=l.length;if(a!=e3(t).length&&!s)return!1;for(var u=a;u--;){var c=l[u];if(!(s?c in t:e5.call(t,c)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=s;++u<a;){var g=e[c=l[u]],m=t[c];if(r)var y=s?r(m,g,c,t,e,o):r(g,m,c,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}f||(f="constructor"==c)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},e6=es(z,"DataView"),e9=es(z,"Promise"),e8=es(z,"Set"),e7=es(z,"WeakMap"),te=Q(e6),tt=Q(el),tn=Q(e9),tr=Q(e8),ti=Q(e7),to=q;(e6&&"[object DataView]"!=to(new e6(new ArrayBuffer(1)))||el&&"[object Map]"!=to(new el)||e9&&"[object Promise]"!=to(e9.resolve())||e8&&"[object Set]"!=to(new e8)||e7&&"[object WeakMap]"!=to(new e7))&&(to=function(e){var t=q(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case te:return"[object DataView]";case tt:return"[object Map]";case tn:return"[object Promise]";case tr:return"[object Set]";case ti:return"[object WeakMap]"}return t});var ts=to,tl="[object Object]",ta=Object.prototype.hasOwnProperty,tu=function(e,t,n,r,i,o){var s=eM(e),l=eM(t),a=s?"[object Array]":ts(e),u=l?"[object Array]":ts(t),c=(a="[object Arguments]"==a?tl:a)==tl,h=(u="[object Arguments]"==u?tl:u)==tl,d=a==u;if(d&&eF(e)){if(!eF(t))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new eg),s||eq(e)?ev(e,t,n,r,i,o):eC(e,t,a,n,r,i,o);if(!(1&n)){var p=c&&ta.call(e,"__wrapped__"),f=h&&ta.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new eg),i(g,m,n,r,o)}}return!!d&&(o||(o=new eg),e4(e,t,n,r,i,o))},tc=function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(eI(t)||eI(n))?tu(t,n,r,i,e,o):t!=t&&n!=n)},th=function(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var a=(l=n[i])[0],u=e[a],c=l[1];if(s&&l[2]){if(void 0===u&&!(a in e))return!1}else{var h=new eg;if(r)var d=r(u,c,a,e,t,h);if(!(void 0===d?tc(c,u,3,r,h):d))return!1}}return!0},td=function(e){return e==e&&!V(e)},tp=function(e){for(var t=e2(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,td(i)]}return t},tf=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},tg=function(e){var t=tp(e);return 1==t.length&&t[0][2]?tf(t[0][0],t[0][1]):function(n){return n===e||th(n,e,t)}},tm=function(e){return"symbol"==typeof e||eI(e)&&"[object Symbol]"==q(e)},ty=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tv=/^\w*$/,tb=function(e,t){if(eM(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!tm(e))||tv.test(e)||!ty.test(e)||null!=t&&e in Object(t)};function tk(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(tk.Cache||ef),n}tk.Cache=ef;var tw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tx=/\\(\\)?/g,tS=function(e){var t=tk(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tw,function(e,n,r,i){t.push(r?i.replace(tx,"$1"):n||e)}),t}),tC=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},tE=$?$.prototype:void 0,tM=tE?tE.toString:void 0,tA=function e(t){if("string"==typeof t)return t;if(eM(t))return tC(t,e)+"";if(tm(t))return tM?tM.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},tT=function(e,t){return eM(e)?e:tb(e,t)?[e]:tS(null==e?"":tA(e))},tR=function(e){if("string"==typeof e||tm(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},tO=function(e,t){for(var n=0,r=(t=tT(t,e)).length;null!=e&&n<r;)e=e[tR(t[n++])];return n&&n==r?e:void 0},tN=function(e,t,n){var r=null==e?void 0:tO(e,t);return void 0===r?n:r},tL=function(e,t){return null!=e&&t in Object(e)},tI=function(e,t,n){for(var r=-1,i=(t=tT(t,e)).length,o=!1;++r<i;){var s=tR(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&eU(i)&&eK(s,i)&&(eM(e)||ez(e))},t_=function(e){return e},tD=function(e){var t;return tb(e)?(t=tR(e),function(e){return null==e?void 0:e[t]}):function(t){return tO(t,e)}},tj=function(e){var t,n;return"function"==typeof e?e:null==e?t_:"object"==typeof e?eM(e)?(t=e[0],n=e[1],tb(t)&&td(n)?tf(tR(t),n):function(e){var r=tN(e,t);return void 0===r&&r===n?null!=e&&tI(e,t,tL):tc(n,r,3)}):tg(e):tD(e)};function tP(e){if(!e)throw Error("change is not provided");if(C(e))return"N".concat(e.oldLineNumber);var t=x(e)?"I":"D";return"".concat(t).concat(e.lineNumber)}A("old"),A("new"),N("old"),A("old"),T("oldStart","oldLines"),R("oldStart","oldLines");var tz=A("old"),t$=A("new"),tF=(O("old"),O("new"),N("new"),N("old"),function(){try{var e=es(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()),tB=function(e,t,n){"__proto__"==t&&tF?tF(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},tK=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),s=o.length;s--;){var l=o[++r];if(!1===t(i[l],l,i))break}return e},tU=function(e,t){return e&&tK(e,t,e2)},tH=function(e,t){var n={};return t=tj(t),tU(e,function(e,r,i){tB(n,r,t(e,r,i))}),n},tJ=["changeKey","text","tokens","renderToken"],tW=function e(t,n){var r=t.type,i=t.value,o=t.markType,l=t.properties,a=t.className,u=t.children,c=function(t){return(0,s.jsx)("span",{className:t,children:i||u&&u.map(e)},n)};switch(r){case"text":return i;case"mark":return c("diff-code-mark diff-code-mark-".concat(o));case"edit":return c("diff-code-edit");default:var h=l&&l.className;return c(y(a||h))}},tq=(0,l.memo)(function(e){var t=e.changeKey,n=e.text,r=e.tokens,i=e.renderToken,o=h(e,tJ),l=i?function(e,t){return i(e,tW,t)}:tW;return(0,s.jsx)("td",u(u({},o),{},{"data-change-key":t,children:r?!function(e){if(!Array.isArray(e))return!0;if(e.length>1)return!1;if(1===e.length){var t=d(e,1)[0];return"text"===t.type&&!t.value}return!0}(r)?r.map(l):" ":n||" "}))});function tV(e,t){return function(){var n="old"===t?tz(e):t$(e);return -1===n?void 0:n}}function tG(e,t){return function(n){return e&&n?(0,s.jsx)("a",{href:t?"#"+t:void 0,children:n}):n}}function tY(e,t){return t?function(n){e(),t(n)}:e}function tX(e,t,n,r){return(0,l.useMemo)(function(){var i=tH(e,function(e){return function(n){return e&&e(t,n)}});return i.onMouseEnter=tY(n,i.onMouseEnter),i.onMouseLeave=tY(r,i.onMouseLeave),i},[e,n,r,t])}function tZ(e,t,n,r,i,o,l,a,c){var h={change:t,side:r,inHoverState:a,renderDefault:tV(t,r),wrapInAnchor:tG(i,o)};return(0,s.jsx)("td",u(u({className:e},l),{},{"data-change-key":n,children:c(h)}))}var tQ=(0,l.memo)(function(e){var t,n,r,i=e.change,o=e.selected,a=e.tokens,c=e.className,h=e.generateLineClassName,p=e.gutterClassName,f=e.codeClassName,g=e.gutterEvents,m=e.codeEvents,v=e.hideGutter,b=e.gutterAnchor,k=e.generateAnchorID,w=e.renderToken,x=e.renderGutter,S=i.type,C=i.content,E=tP(i),M=(n=(t=d((0,l.useState)(!1),2))[0],r=t[1],[n,(0,l.useCallback)(function(){return r(!0)},[]),(0,l.useCallback)(function(){return r(!1)},[])]),A=d(M,3),T=A[0],R=A[1],O=A[2],N=(0,l.useMemo)(function(){return{change:i}},[i]),L=tX(g,N,R,O),I=tX(m,N,R,O),_=k(i),D=h({changes:[i],defaultGenerate:function(){return c}}),j=y("diff-gutter","diff-gutter-".concat(S),p,{"diff-gutter-selected":o}),P=y("diff-code","diff-code-".concat(S),f,{"diff-code-selected":o});return(0,s.jsxs)("tr",{id:_,className:y("diff-line",D),children:[!v&&tZ(j,i,E,"old",b,_,L,T,x),!v&&tZ(j,i,E,"new",b,_,L,T,x),(0,s.jsx)(tq,u({className:P,changeKey:E,text:C,tokens:a,renderToken:w},I))]})});function t0(e){var t=e.hideGutter,n=e.element;return(0,s.jsx)("tr",{className:"diff-widget",children:(0,s.jsx)("td",{colSpan:t?1:3,className:"diff-widget-content",children:n})})}var t1=["hideGutter","selectedChanges","tokens","lineClassName"],t2=["hunk","widgets","className"];function t3(e){var t,n=e.hunk,r=e.widgets,i=e.className,o=h(e,t2),l=(t=n.changes,t.reduce(function(e,t){var n=tP(t);e.push(["change",n,t]);var i=r[n];return i&&e.push(["widget",n,i]),e},[]));return(0,s.jsx)("tbody",{className:y("diff-hunk",i),children:l.map(function(e){return function(e,t){var n=d(e,3),r=n[0],i=n[1],o=n[2],l=t.hideGutter,a=t.selectedChanges,c=t.tokens,p=t.lineClassName,f=h(t,t1);if("change"===r){var g=S(o)?"old":"new",m=S(o)?tz(o):t$(o),y=c?c[g][m-1]:null;return(0,s.jsx)(tQ,u({className:p,change:o,hideGutter:l,selected:a.includes(i),tokens:y},f),"change".concat(i))}return"widget"===r?(0,s.jsx)(t0,{hideGutter:l,element:o},"widget".concat(i)):null}(e,o)})})}function t5(e,t,n,r){var i=(0,l.useCallback)(function(){return t(e)},[e,t]),o=(0,l.useCallback)(function(){return t("")},[t]);return(0,l.useMemo)(function(){var t=tH(r,function(t){return function(r){return t&&t({side:e,change:n},r)}});return t.onMouseEnter=tY(i,t.onMouseEnter),t.onMouseLeave=tY(o,t.onMouseLeave),t},[n,r,i,e,o])}function t4(e){var t=e.change,n=e.side,r=e.selected,i=e.tokens,o=e.gutterClassName,l=e.codeClassName,a=e.gutterEvents,h=e.codeEvents,d=e.anchorID,p=e.gutterAnchor,f=e.gutterAnchorTarget,g=e.hideGutter,m=e.hover,v=e.renderToken,b=e.renderGutter;if(!t){var k=y("diff-gutter","diff-gutter-omit",o),w=y("diff-code","diff-code-omit",l);return[!g&&(0,s.jsx)("td",{className:k},"gutter"),(0,s.jsx)("td",{className:w},"code")]}var x=t.type,S=t.content,C=tP(t),E=0===n?"old":"new",M=u({id:d||void 0,className:y("diff-gutter","diff-gutter-".concat(x),c({"diff-gutter-selected":r},"diff-line-hover-"+E,m),o),children:b({change:t,side:E,inHoverState:m,renderDefault:tV(t,E),wrapInAnchor:tG(p,f)})},a),A=y("diff-code","diff-code-".concat(x),c({"diff-code-selected":r},"diff-line-hover-"+E,m),l);return[!g&&(0,s.jsx)("td",u(u({},M),{},{"data-change-key":C}),"gutter"),(0,s.jsx)(tq,u({className:A,changeKey:C,text:S,tokens:i,renderToken:v},h),"code")]}var t6=(0,l.memo)(function(e){var t=e.className,n=e.oldChange,r=e.newChange,i=e.oldSelected,o=e.newSelected,a=e.oldTokens,c=e.newTokens,h=e.monotonous,p=e.gutterClassName,f=e.codeClassName,g=e.gutterEvents,m=e.codeEvents,v=e.hideGutter,b=e.generateAnchorID,k=e.generateLineClassName,w=e.gutterAnchor,x=e.renderToken,S=e.renderGutter,C=d((0,l.useState)(""),2),E=C[0],M=C[1],A=t5("old",M,n,g),T=t5("new",M,r,g),R=t5("old",M,n,m),O=t5("new",M,r,m),N=n&&b(n),L=r&&b(r),I=k({changes:[n,r],defaultGenerate:function(){return t}}),_={monotonous:h,hideGutter:v,gutterClassName:p,codeClassName:f,gutterEvents:g,codeEvents:m,renderToken:x,renderGutter:S},D=u(u({},_),{},{change:n,side:0,selected:i,tokens:a,gutterEvents:A,codeEvents:R,anchorID:N,gutterAnchor:w,gutterAnchorTarget:N,hover:"old"===E}),j=u(u({},_),{},{change:r,side:1,selected:o,tokens:c,gutterEvents:T,codeEvents:O,anchorID:n===r?null:L,gutterAnchor:w,gutterAnchorTarget:n===r?N:L,hover:"new"===E});if(h)return(0,s.jsx)("tr",{className:y("diff-line",I),children:t4(n?D:j)});var P=n&&!r?"diff-line-old-only":!n&&r?"diff-line-new-only":n===r?"diff-line-normal":"diff-line-compare";return(0,s.jsxs)("tr",{className:y("diff-line",P,I),children:[t4(D),t4(j)]})});function t9(e){var t=e.hideGutter,n=e.oldElement,r=e.newElement;return e.monotonous?(0,s.jsx)("tr",{className:"diff-widget",children:(0,s.jsx)("td",{colSpan:t?1:2,className:"diff-widget-content",children:n||r})}):n===r?(0,s.jsx)("tr",{className:"diff-widget",children:(0,s.jsx)("td",{colSpan:t?2:4,className:"diff-widget-content",children:n})}):(0,s.jsxs)("tr",{className:"diff-widget",children:[(0,s.jsx)("td",{colSpan:t?1:2,className:"diff-widget-content",children:n}),(0,s.jsx)("td",{colSpan:t?1:2,className:"diff-widget-content",children:r})]})}var t8=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],t7=["hunk","widgets","className"];function ne(e,t){return(e?tP(e):"00")+(t?tP(t):"00")}function nt(e){var t=e.hunk,n=e.widgets,r=e.className,i=h(e,t7),o=function(e,t){for(var n=function(e){return e&&t[tP(e)]||null},r=[],i=0;i<e.length;i++){var o=e[i];if(C(o))r.push(["change",ne(o,o),o,o]);else if(S(o)){var s=e[i+1];s&&x(s)?(i+=1,r.push(["change",ne(o,s),o,s])):r.push(["change",ne(o,null),o,null])}else r.push(["change",ne(null,o),null,o]);var l=r[r.length-1],a=n(l[2]),u=n(l[3]);if(a||u){var c=l[1];r.push(["widget",c,a,u])}}return r}(t.changes,n);return(0,s.jsx)("tbody",{className:y("diff-hunk",r),children:o.map(function(e){return function(e,t){var n=d(e,4),r=n[0],i=n[1],o=n[2],l=n[3],a=t.selectedChanges,c=t.monotonous,p=t.hideGutter,f=t.tokens,g=t.lineClassName,m=h(t,t8);if("change"===r){var y=!!o&&a.includes(tP(o)),v=!!l&&a.includes(tP(l)),b=o&&f?f.old[tz(o)-1]:null,k=l&&f?f.new[t$(l)-1]:null;return(0,s.jsx)(t6,u({className:g,oldChange:o,newChange:l,monotonous:c,hideGutter:p,oldSelected:y,newSelected:v,oldTokens:b,newTokens:k},m),"change".concat(i))}return"widget"===r?(0,s.jsx)(t9,{monotonous:c,hideGutter:p,oldElement:o,newElement:l},"widget".concat(i)):null}(e,i)})})}var nn=["gutterType","hunkClassName"];function nr(e){var t=e.hunk,n=(0,l.useContext)(b),r=n.gutterType,i=n.hunkClassName,o=h(n,nn),a="unified"===o.viewType?t3:nt;return(0,s.jsx)(a,u(u({},o),{},{hunk:t,hideGutter:"none"===r,gutterAnchor:"anchor"===r,className:i}))}function ni(){}function no(e,t){var n=t?"auto":"none";e instanceof HTMLElement&&e.style.userSelect!==n&&(e.style.userSelect=n)}var ns=(0,l.memo)(function(e){var t=e.diffType,n=e.hunks,r=e.optimizeSelection,i=e.className,o=e.hunkClassName,a=void 0===o?v.hunkClassName:o,u=e.lineClassName,c=void 0===u?v.lineClassName:u,h=e.generateLineClassName,d=void 0===h?v.generateLineClassName:h,g=e.gutterClassName,m=void 0===g?v.gutterClassName:g,b=e.codeClassName,w=void 0===b?v.codeClassName:b,x=e.gutterType,S=void 0===x?v.gutterType:x,C=e.viewType,E=void 0===C?v.viewType:C,M=e.gutterEvents,A=void 0===M?v.gutterEvents:M,T=e.codeEvents,R=void 0===T?v.codeEvents:T,O=e.generateAnchorID,N=void 0===O?v.generateAnchorID:O,L=e.selectedChanges,I=void 0===L?v.selectedChanges:L,_=e.widgets,D=void 0===_?v.widgets:_,j=e.renderGutter,P=void 0===j?v.renderGutter:j,z=e.tokens,$=e.renderToken,F=e.children,B=(0,l.useRef)(null),K=(0,l.useCallback)(function(e){var t=e.target;if(0===e.button){var n=function(e,t){for(var n=e;n&&n!==document.documentElement&&!n.classList.contains(t);)n=n.parentElement;return n===document.documentElement?null:n}(t,"diff-code");if(n&&n.parentElement){var r=window.getSelection();r&&r.removeAllRanges();var i=((function(e){if(Array.isArray(e))return f(e)})(o=n.parentElement.children)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||p(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).indexOf(n);if(1===i||3===i){var o,s,l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(B.current?B.current.querySelectorAll(".diff-line"):[]);try{for(l.s();!(s=l.n()).done;){var a=s.value.children;no(a[1],1===i),no(a[3],3===i)}}catch(e){l.e(e)}finally{l.f()}}}}},[]),U="none"===S,H="add"===t||"delete"===t,J="split"===E&&!H&&r?K:ni,W=(0,l.useMemo)(function(){return(0,s.jsxs)("colgroup","unified"===E?{children:[!U&&(0,s.jsx)("col",{className:"diff-gutter-col"}),!U&&(0,s.jsx)("col",{className:"diff-gutter-col"}),(0,s.jsx)("col",{})]}:H?{children:[!U&&(0,s.jsx)("col",{className:"diff-gutter-col"}),(0,s.jsx)("col",{})]}:{children:[!U&&(0,s.jsx)("col",{className:"diff-gutter-col"}),(0,s.jsx)("col",{}),!U&&(0,s.jsx)("col",{className:"diff-gutter-col"}),(0,s.jsx)("col",{})]})},[E,H,U]),q=(0,l.useMemo)(function(){return{hunkClassName:a,lineClassName:c,generateLineClassName:d,gutterClassName:m,codeClassName:w,monotonous:H,hideGutter:U,viewType:E,gutterType:S,codeEvents:R,gutterEvents:A,generateAnchorID:N,selectedChanges:I,widgets:D,renderGutter:P,tokens:z,renderToken:$}},[w,R,N,m,A,S,U,a,c,d,H,P,$,I,z,E,D]);return(0,s.jsx)(k,{value:q,children:(0,s.jsxs)("table",{ref:B,className:y("diff","diff-".concat(E),i),onMouseDown:J,children:[W,(void 0===F?function(e){return e.map(function(e){return(0,s.jsx)(nr,{hunk:e},"-".concat(e.oldStart,",").concat(e.oldLines," +").concat(e.newStart,",").concat(e.newLines))})}:F)(n)]})})}),nl=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r},na=(r=tU,function(e,t){if(null==e)return e;if(!e1(e))return r(e,t);for(var n=e.length,i=-1,o=Object(e);++i<n&&!1!==t(o[i],i,o););return e}),nu=function(e,t,n,r){return na(e,function(e,i,o){t(r,e,n(e),o)}),r},nc=function(e,t){return function(n,r){var i=eM(n)?nl:nu,o=t?t():{};return i(n,e,tj(r),o)}};nc(function(e,t,n){tB(e,n,t)}),$&&$.isConcatSpreadable;var nh=Object.prototype.hasOwnProperty;nc(function(e,t,n){nh.call(e,n)?e[n].push(t):tB(e,n,[t])}),Object.prototype.hasOwnProperty;var nd=m(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==e||null==n)throw Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var s=r,l=this.diff_commonPrefix(e,n),a=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var u=e.substring(e.length-l);e=e.substring(0,e.length-l),n=n.substring(0,n.length-l);var c=this.diff_compute_(e,n,s,o);return a&&c.unshift(new t.Diff(0,a)),u&&c.push(new t.Diff(0,u)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,n,r,i){if(!e)return[new t.Diff(1,n)];if(!n)return[new t.Diff(-1,e)];var o,s=e.length>n.length?e:n,l=e.length>n.length?n:e,a=s.indexOf(l);if(-1!=a)return o=[new t.Diff(1,s.substring(0,a)),new t.Diff(0,l),new t.Diff(1,s.substring(a+l.length))],e.length>n.length&&(o[0][0]=o[2][0]=-1),o;if(1==l.length)return[new t.Diff(-1,e),new t.Diff(1,n)];var u=this.diff_halfMatch_(e,n);if(u){var c=u[0],h=u[1],d=u[2],p=u[3],f=u[4],g=this.diff_main(c,d,r,i),m=this.diff_main(h,p,r,i);return g.concat([new t.Diff(0,f)],m)}return r&&e.length>100&&n.length>100?this.diff_lineMode_(e,n,i):this.diff_bisect_(e,n,i)},t.prototype.diff_lineMode_=function(e,n,r){var i=this.diff_linesToChars_(e,n);e=i.chars1,n=i.chars2;var o=i.lineArray,s=this.diff_main(e,n,!1,r);this.diff_charsToLines_(s,o),this.diff_cleanupSemantic(s),s.push(new t.Diff(0,""));for(var l=0,a=0,u=0,c="",h="";l<s.length;){switch(s[l][0]){case 1:u++,h+=s[l][1];break;case -1:a++,c+=s[l][1];break;case 0:if(a>=1&&u>=1){s.splice(l-a-u,a+u),l=l-a-u;for(var d=this.diff_main(c,h,!1,r),p=d.length-1;p>=0;p--)s.splice(l,0,d[p]);l+=d.length}u=0,a=0,c="",h=""}l++}return s.pop(),s},t.prototype.diff_bisect_=function(e,n,r){for(var i=e.length,o=n.length,s=Math.ceil((i+o)/2),l=2*s,a=Array(l),u=Array(l),c=0;c<l;c++)a[c]=-1,u[c]=-1;a[s+1]=0,u[s+1]=0;for(var h=i-o,d=h%2!=0,p=0,f=0,g=0,m=0,y=0;y<s&&!((new Date).getTime()>r);y++){for(var v=-y+p;v<=y-f;v+=2){for(var b=s+v,k=(x=v==-y||v!=y&&a[b-1]<a[b+1]?a[b+1]:a[b-1]+1)-v;x<i&&k<o&&e.charAt(x)==n.charAt(k);)x++,k++;if(a[b]=x,x>i)f+=2;else if(k>o)p+=2;else if(d&&(C=s+h-v)>=0&&C<l&&-1!=u[C]&&x>=(S=i-u[C]))return this.diff_bisectSplit_(e,n,x,k,r)}for(var w=-y+g;w<=y-m;w+=2){for(var x,S,C=s+w,E=(S=w==-y||w!=y&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-w;S<i&&E<o&&e.charAt(i-S-1)==n.charAt(o-E-1);)S++,E++;if(u[C]=S,S>i)m+=2;else if(E>o)g+=2;else if(!d&&(b=s+h-w)>=0&&b<l&&-1!=a[b]&&(k=s+(x=a[b])-b,x>=(S=i-S)))return this.diff_bisectSplit_(e,n,x,k,r)}}return[new t.Diff(-1,e),new t.Diff(1,n)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),s=t.substring(0,r),l=e.substring(n),a=t.substring(r),u=this.diff_main(o,s,!1,i),c=this.diff_main(l,a,!1,i);return u.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,s=-1,l=n.length;s<e.length-1;){-1==(s=e.indexOf("\n",i))&&(s=e.length-1);var a=e.substring(i,s+1);(r.hasOwnProperty?r.hasOwnProperty(a):void 0!==r[a])?t+=String.fromCharCode(r[a]):(l==o&&(a=e.substring(i),s=e.length),t+=String.fromCharCode(l),r[a]=l,n[l++]=a),i=s+1}return t}n[0]="";var o=4e4,s=i(e);return o=65535,{chars1:s,chars2:i(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,s=1;;){var l=e.substring(i-s),a=t.indexOf(l);if(-1==a)return o;s+=a,0!=a&&e.substring(i-s)!=t.substring(0,s)||(o=s,s++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var i=this;function o(e,t,n){for(var r,o,s,l,a=e.substring(n,n+Math.floor(e.length/4)),u=-1,c="";-1!=(u=t.indexOf(a,u+1));){var h=i.diff_commonPrefix(e.substring(n),t.substring(u)),d=i.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<d+h&&(c=t.substring(u-d,u)+t.substring(u,u+h),r=e.substring(0,n-d),o=e.substring(n+h),s=t.substring(0,u-d),l=t.substring(u+h))}return 2*c.length>=e.length?[r,o,s,l,c]:null}var s,l,a,u,c,h=o(n,r,Math.ceil(n.length/4)),d=o(n,r,Math.ceil(n.length/2));return h||d?(s=d?h&&h[4].length>d[4].length?h:d:h,e.length>t.length?(l=s[0],a=s[1],u=s[2],c=s[3]):(u=s[0],c=s[1],l=s[2],a=s[3]),[l,a,u,c,s[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var n=!1,r=[],i=0,o=null,s=0,l=0,a=0,u=0,c=0;s<e.length;)0==e[s][0]?(r[i++]=s,l=u,a=c,u=0,c=0,o=e[s][1]):(1==e[s][0]?u+=e[s][1].length:c+=e[s][1].length,o&&o.length<=Math.max(l,a)&&o.length<=Math.max(u,c)&&(e.splice(r[i-1],0,new t.Diff(-1,o)),e[r[i-1]+1][0]=1,i--,s=--i>0?r[i-1]:-1,l=0,a=0,u=0,c=0,o=null,n=!0)),s++;for(n&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s<e.length;){if(-1==e[s-1][0]&&1==e[s][0]){var h=e[s-1][1],d=e[s][1],p=this.diff_commonOverlap_(h,d),f=this.diff_commonOverlap_(d,h);p>=f?(p>=h.length/2||p>=d.length/2)&&(e.splice(s,0,new t.Diff(0,d.substring(0,p))),e[s-1][1]=h.substring(0,h.length-p),e[s+1][1]=d.substring(p),s++):(f>=h.length/2||f>=d.length/2)&&(e.splice(s,0,new t.Diff(0,h.substring(0,f))),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-f),e[s+1][0]=-1,e[s+1][1]=h.substring(f),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),i=n.charAt(0),o=r.match(t.nonAlphaNumericRegex_),s=i.match(t.nonAlphaNumericRegex_),l=o&&r.match(t.whitespaceRegex_),a=s&&i.match(t.whitespaceRegex_),u=l&&r.match(t.linebreakRegex_),c=a&&i.match(t.linebreakRegex_),h=u&&e.match(t.blanklineEndRegex_),d=c&&n.match(t.blanklineStartRegex_);return h||d?5:u||c?4:o&&!l&&a?3:l||a?2:o||s?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var i=e[r-1][1],o=e[r][1],s=e[r+1][1],l=this.diff_commonSuffix(i,o);if(l){var a=o.substring(o.length-l);i=i.substring(0,i.length-l),o=a+o.substring(0,o.length-l),s=a+s}for(var u=i,c=o,h=s,d=n(i,o)+n(o,s);o.charAt(0)===s.charAt(0);){i+=o.charAt(0),o=o.substring(1)+s.charAt(0),s=s.substring(1);var p=n(i,o)+n(o,s);p>=d&&(d=p,u=i,c=o,h=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,h?e[r+1][1]=h:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var n=!1,r=[],i=0,o=null,s=0,l=!1,a=!1,u=!1,c=!1;s<e.length;)0==e[s][0]?(e[s][1].length<this.Diff_EditCost&&(u||c)?(r[i++]=s,l=u,a=c,o=e[s][1]):(i=0,o=null),u=c=!1):(-1==e[s][0]?c=!0:u=!0,o&&(l&&a&&u&&c||o.length<this.Diff_EditCost/2&&l+a+u+c==3)&&(e.splice(r[i-1],0,new t.Diff(-1,o)),e[r[i-1]+1][0]=1,i--,o=null,l&&a?(u=c=!0,i=0):(s=--i>0?r[i-1]:-1,u=c=!1),n=!0)),s++;n&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var n,r=0,i=0,o=0,s="",l="";r<e.length;)switch(e[r][0]){case 1:o++,l+=e[r][1],r++;break;case -1:i++,s+=e[r][1],r++;break;case 0:i+o>1?(0!==i&&0!==o&&(0!==(n=this.diff_commonPrefix(l,s))&&(r-i-o>0&&0==e[r-i-o-1][0]?e[r-i-o-1][1]+=l.substring(0,n):(e.splice(0,0,new t.Diff(0,l.substring(0,n))),r++),l=l.substring(n),s=s.substring(n)),0!==(n=this.diff_commonSuffix(l,s))&&(e[r][1]=l.substring(l.length-n)+e[r][1],l=l.substring(0,l.length-n),s=s.substring(0,s.length-n))),r-=i+o,e.splice(r,i+o),s.length&&(e.splice(r,0,new t.Diff(-1,s)),r++),l.length&&(e.splice(r,0,new t.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,i=0,s="",l=""}""===e[e.length-1][1]&&e.pop();var a=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),a=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),a=!0)),r++;a&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var n,r=0,i=0,o=0,s=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),-1!==e[n][0]&&(i+=e[n][1].length),!(r>t));n++)o=r,s=i;return e.length!=n&&-1===e[n][0]?s:s+(t-o)},t.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,i=/>/g,o=/\n/g,s=0;s<e.length;s++){var l=e[s][0],a=e[s][1].replace(n,"&").replace(r,"<").replace(i,">").replace(o,"¶<br>");switch(l){case 1:t[s]='<ins style="background:#e6ffe6;">'+a+"</ins>";break;case -1:t[s]='<del style="background:#ffe6e6;">'+a+"</del>";break;case 0:t[s]="<span>"+a+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var o=e[i][0],s=e[i][1];switch(o){case 1:n+=s.length;break;case -1:r+=s.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+Math.max(n,r)},t.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case -1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,n){for(var r=[],i=0,o=0,s=n.split(/\t/g),l=0;l<s.length;l++){var a=s[l].substring(1);switch(s[l].charAt(0)){case"+":try{r[i++]=new t.Diff(1,decodeURI(a))}catch(e){throw Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var u=parseInt(a,10);if(isNaN(u)||u<0)throw Error("Invalid number in diff_fromDelta: "+a);var c=e.substring(o,o+=u);"="==s[l].charAt(0)?r[i++]=new t.Diff(0,c):r[i++]=new t.Diff(-1,c);break;default:if(s[l])throw Error("Invalid diff operation in diff_fromDelta: "+s[l])}}if(o!=e.length)throw Error("Delta length ("+o+") does not equal source text length ("+e.length+").");return r},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,s=Math.abs(n-r);return i.Match_Distance?o+s/i.Match_Distance:s?1:o}var s=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(s=Math.min(o(0,l),s),-1!=(l=e.lastIndexOf(t,n+t.length))&&(s=Math.min(o(0,l),s)));var a,u,c=1<<t.length-1;l=-1;for(var h,d=t.length+e.length,p=0;p<t.length;p++){for(a=0,u=d;a<u;)o(p,n+u)<=s?a=u:d=u,u=Math.floor((d-a)/2+a);d=u;var f=Math.max(1,n-u+1),g=Math.min(n+u,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<p)-1;for(var y=g;y>=f;y--){var v=r[e.charAt(y-1)];if(m[y]=0===p?(m[y+1]<<1|1)&v:(m[y+1]<<1|1)&v|(h[y+1]|h[y])<<1|1|h[y+1],m[y]&c){var b=o(p,y-1);if(b<=s){if(s=b,!((l=y-1)>n))break;f=Math.max(1,2*n-l)}}}if(o(p+1,n)>s)break;h=m}return l},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var r=n.substring(e.start2,e.start2+e.length1),i=0;n.indexOf(r)!=n.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,r=n.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var o=n.substring(e.start2-i,e.start2);o&&e.diffs.unshift(new t.Diff(0,o));var s=n.substring(e.start2+e.length1,e.start2+e.length1+i);s&&e.diffs.push(new t.Diff(0,s)),e.start1-=o.length,e.start2-=o.length,e.length1+=o.length+s.length,e.length2+=o.length+s.length}},t.prototype.patch_make=function(e,n,r){var i,o;if("string"==typeof e&&"string"==typeof n&&void 0===r)i=e,(o=this.diff_main(i,n,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===n&&void 0===r)o=e,i=this.diff_text1(o);else if("string"==typeof e&&n&&"object"==typeof n&&void 0===r)i=e,o=n;else{if("string"!=typeof e||"string"!=typeof n||!r||"object"!=typeof r)throw Error("Unknown call format to patch_make.");i=e,o=r}if(0===o.length)return[];for(var s=[],l=new t.patch_obj,a=0,u=0,c=0,h=i,d=i,p=0;p<o.length;p++){var f=o[p][0],g=o[p][1];switch(a||0===f||(l.start1=u,l.start2=c),f){case 1:l.diffs[a++]=o[p],l.length2+=g.length,d=d.substring(0,c)+g+d.substring(c);break;case -1:l.length1+=g.length,l.diffs[a++]=o[p],d=d.substring(0,c)+d.substring(c+g.length);break;case 0:g.length<=2*this.Patch_Margin&&a&&o.length!=p+1?(l.diffs[a++]=o[p],l.length1+=g.length,l.length2+=g.length):g.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(l,h),s.push(l),l=new t.patch_obj,a=0,h=d,u=c)}1!==f&&(u+=g.length),-1!==f&&(c+=g.length)}return a&&(this.patch_addContext_(l,h),s.push(l)),s},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new t.patch_obj;o.diffs=[];for(var s=0;s<i.diffs.length;s++)o.diffs[s]=new t.Diff(i.diffs[s][0],i.diffs[s][1]);o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,n[r]=o}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,i=[],o=0;o<e.length;o++){var s,l,a=e[o].start2+r,u=this.diff_text1(e[o].diffs),c=-1;if(u.length>this.Match_MaxBits?-1!=(s=this.match_main(t,u.substring(0,this.Match_MaxBits),a))&&(-1==(c=this.match_main(t,u.substring(u.length-this.Match_MaxBits),a+u.length-this.Match_MaxBits))||s>=c)&&(s=-1):s=this.match_main(t,u,a),-1==s)i[o]=!1,r-=e[o].length2-e[o].length1;else if(i[o]=!0,r=s-a,u==(l=-1==c?t.substring(s,s+u.length):t.substring(s,c+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[o].diffs)+t.substring(s+u.length);else{var h=this.diff_main(u,l,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(h)/u.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(h);for(var d,p=0,f=0;f<e[o].diffs.length;f++){var g=e[o].diffs[f];0!==g[0]&&(d=this.diff_xIndex(h,p)),1===g[0]?t=t.substring(0,s+d)+g[1]+t.substring(s+d):-1===g[0]&&(t=t.substring(0,s+d)+t.substring(s+this.diff_xIndex(h,p+g[1].length))),-1!==g[0]&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),i]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,r="",i=1;i<=n;i++)r+=String.fromCharCode(i);for(i=0;i<e.length;i++)e[i].start1+=n,e[i].start2+=n;var o=e[0],s=o.diffs;if(0==s.length||0!=s[0][0])s.unshift(new t.Diff(0,r)),o.start1-=n,o.start2-=n,o.length1+=n,o.length2+=n;else if(n>s[0][1].length){var l=n-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],o.start1-=l,o.start2-=l,o.length1+=l,o.length2+=l}return 0==(s=(o=e[e.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push(new t.Diff(0,r)),o.length1+=n,o.length2+=n):n>s[s.length-1][1].length&&(l=n-s[s.length-1][1].length,s[s.length-1][1]+=r.substring(0,l),o.length1+=l,o.length2+=l),r},t.prototype.patch_splitMax=function(e){for(var n=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=n)){var i=e[r];e.splice(r--,1);for(var o=i.start1,s=i.start2,l="";0!==i.diffs.length;){var a=new t.patch_obj,u=!0;for(a.start1=o-l.length,a.start2=s-l.length,""!==l&&(a.length1=a.length2=l.length,a.diffs.push(new t.Diff(0,l)));0!==i.diffs.length&&a.length1<n-this.Patch_Margin;){var c=i.diffs[0][0],h=i.diffs[0][1];1===c?(a.length2+=h.length,s+=h.length,a.diffs.push(i.diffs.shift()),u=!1):-1===c&&1==a.diffs.length&&0==a.diffs[0][0]&&h.length>2*n?(a.length1+=h.length,o+=h.length,u=!1,a.diffs.push(new t.Diff(c,h)),i.diffs.shift()):(h=h.substring(0,n-a.length1-this.Patch_Margin),a.length1+=h.length,o+=h.length,0===c?(a.length2+=h.length,s+=h.length):u=!1,a.diffs.push(new t.Diff(c,h)),h==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(h.length))}l=(l=this.diff_text2(a.diffs)).substring(l.length-this.Patch_Margin);var d=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==d&&(a.length1+=d.length,a.length2+=d.length,0!==a.diffs.length&&0===a.diffs[a.diffs.length-1][0]?a.diffs[a.diffs.length-1][1]+=d:a.diffs.push(new t.Diff(0,d))),u||e.splice(++r,0,a)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var n=[];if(!e)return n;for(var r=e.split("\n"),i=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<r.length;){var s=r[i].match(o);if(!s)throw Error("Invalid patch string: "+r[i]);var l=new t.patch_obj;for(n.push(l),l.start1=parseInt(s[1],10),""===s[2]?(l.start1--,l.length1=1):"0"==s[2]?l.length1=0:(l.start1--,l.length1=parseInt(s[2],10)),l.start2=parseInt(s[3],10),""===s[4]?(l.start2--,l.length2=1):"0"==s[4]?l.length2=0:(l.start2--,l.length2=parseInt(s[4],10)),i++;i<r.length;){var a=r[i].charAt(0);try{var u=decodeURI(r[i].substring(1))}catch(e){throw Error("Illegal escape in patch_fromText: "+u)}if("-"==a)l.diffs.push(new t.Diff(-1,u));else if("+"==a)l.diffs.push(new t.Diff(1,u));else if(" "==a)l.diffs.push(new t.Diff(0,u));else{if("@"==a)break;if(""!==a)throw Error('Invalid patch mode "'+a+'" in: '+u)}i++}}return n},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case -1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0});nd.DIFF_EQUAL,nd.DIFF_DELETE,nd.DIFF_INSERT},87434:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","git-branch","GitBranch",[["path",{d:"M7 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M7 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M17 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M7 8l0 8",key:"svg-3"}],["path",{d:"M9 18h6a2 2 0 0 0 2 -2v-5",key:"svg-4"}],["path",{d:"M14 14l3 -3l3 3",key:"svg-5"}]])},88931:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>B,pl:()=>G,VR:()=>Z,gu:()=>er,aA:()=>Y,hG:()=>V,er:()=>H});var r=n(29139),i=n(24930),o=n(34697),s=n(27123),l=n(25874);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function d(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);let{cache:i}=r,o=i.get(t),s=i.get(n);if(o&&s)return o===n&&s===t;i.set(t,n),i.set(n,t);let l=e(t,n,r);return i.delete(t),i.delete(n),l}}function p(e){return a(e).concat(u(e))}let f=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:m,keys:y}=Object;function v(e,t){return e.byteLength===t.byteLength&&O(new Uint8Array(e),new Uint8Array(t))}function b(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function k(e,t){return e.byteLength===t.byteLength&&O(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function w(e,t){return g(e.getTime(),t.getTime())}function x(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function C(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let s=Array(o),l=e.entries(),a=0;for(;(r=l.next())&&!r.done;){let o=t.entries(),l=!1,u=0;for(;(i=o.next())&&!i.done;){if(s[u]){u++;continue}let o=r.value,c=i.value;if(n.equals(o[0],c[0],a,u,e,t,n)&&n.equals(o[1],c[1],o[0],c[0],e,t,n)){l=s[u]=!0;break}u++}if(!l)return!1;a++}return!0}function E(e,t,n){let r=y(e),i=r.length;if(y(t).length!==i)return!1;for(;i-- >0;)if(!L(e,t,n,r[i]))return!1;return!0}function M(e,t,n){let r,i,o,s=p(e),l=s.length;if(p(t).length!==l)return!1;for(;l-- >0;)if(!L(e,t,n,r=s[l])||(i=m(e,r),o=m(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function A(e,t){return g(e.valueOf(),t.valueOf())}function T(e,t){return e.source===t.source&&e.flags===t.flags}function R(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let s=Array(o),l=e.values();for(;(r=l.next())&&!r.done;){let o=t.values(),l=!1,a=0;for(;(i=o.next())&&!i.done;){if(!s[a]&&n.equals(r.value,i.value,r.value,i.value,e,t,n)){l=s[a]=!0;break}a++}if(!l)return!1}return!0}function O(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function N(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function L(e,t,n,r){return("_owner"===r||"__o"===r||"__v"===r)&&(!!e.$$typeof||!!t.$$typeof)||f(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}let I={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},_=Object.prototype.toString,D=j();function j(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:f}){return function(g,m,y){if(g===m)return!0;if(null==g||null==m)return!1;let v=typeof g;if(v!==typeof m)return!1;if("object"!==v)return"number"===v?l(g,m,y):"function"===v&&o(g,m,y);let b=g.constructor;if(b!==m.constructor)return!1;if(b===Object)return a(g,m,y);if(Array.isArray(g))return t(g,m,y);if(b===Date)return r(g,m,y);if(b===RegExp)return c(g,m,y);if(b===Map)return s(g,m,y);if(b===Set)return h(g,m,y);let k=_.call(g);if("[object Date]"===k)return r(g,m,y);if("[object RegExp]"===k)return c(g,m,y);if("[object Map]"===k)return s(g,m,y);if("[object Set]"===k)return h(g,m,y);if("[object Object]"===k)return"function"!=typeof g.then&&"function"!=typeof m.then&&a(g,m,y);if("[object URL]"===k)return p(g,m,y);if("[object Error]"===k)return i(g,m,y);if("[object Arguments]"===k)return a(g,m,y);if(I[k])return d(g,m,y);if("[object ArrayBuffer]"===k)return e(g,m,y);if("[object DataView]"===k)return n(g,m,y);if("[object Boolean]"===k||"[object Number]"===k||"[object String]"===k)return u(g,m,y);if(f){let e=f[k];if(!e){let t=null!=g?g[Symbol.toStringTag]:void 0;t&&(e=f[t])}if(e)return e(g,m,y)}return!1}}(function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:v,areArraysEqual:n?M:b,areDataViewsEqual:k,areDatesEqual:w,areErrorsEqual:x,areFunctionsEqual:S,areMapsEqual:n?h(C,M):C,areNumbersEqual:g,areObjectsEqual:n?M:E,arePrimitiveWrappersEqual:A,areRegExpsEqual:T,areSetsEqual:n?h(R,M):R,areTypedArraysEqual:n?h(O,M):O,areUrlsEqual:N,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=d(r.areArraysEqual),t=d(r.areMapsEqual),n=d(r.areObjectsEqual),i=d(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}(e)),s=n?n(o):function(e,t,n,r,i,s,l){return o(e,t,l)};return function({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(o,s){let{cache:l=e?new WeakMap:void 0,meta:a}=n();return t(o,s,{cache:l,equals:r,meta:a,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let o={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,o)}}({circular:t,comparator:o,createState:r,equals:s,strict:i})}j({strict:!0}),j({circular:!0}),j({circular:!0,strict:!0}),j({createInternalComparator:()=>g}),j({strict:!0,createInternalComparator:()=>g}),j({circular:!0,createInternalComparator:()=>g}),j({circular:!0,createInternalComparator:()=>g,strict:!0});var P=n(12811),z=({contentComponent:e})=>{let t=(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,s.jsx)(s.Fragment,{children:Object.values(t)})},$=class extends r.Component{constructor(e){var t;super(e),this.editorContentRef=r.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(e.view.dom),e.setOptions({element:t}),e.contentComponent=function(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(n,r){t={...t,[n]:i.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var e;let t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.firstChild))return;let n=document.createElement("div");n.append(t.view.dom),t.setOptions({element:n})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:((...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})})(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&(0,s.jsx)(z,{contentComponent:e.contentComponent})]})}},F=(0,r.forwardRef)((e,t)=>{let n=r.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return r.createElement($,{key:n,innerRef:t,...e})}),B=r.memo(F),K="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,U=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function H(e){var t;let[n]=(0,r.useState)(()=>new U(e.editor)),i=(0,P.useSyncExternalStoreWithSelector)(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:D);return K(()=>n.watch(e.editor),[e.editor,n]),(0,r.useDebugValue)(i),i}var J="undefined"==typeof window,W=J||!!("undefined"!=typeof window&&window.next),q=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender)return J||W?null:this.createEditor();return this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBeforeCreate)?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBlur)?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onCreate)?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDestroy)?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null==(n=(t=this.options.current).onFocus)?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onSelectionUpdate)?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null==(n=(t=this.options.current).onTransaction)?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onUpdate)?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null==(n=(t=this.options.current).onContentError)?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDrop)?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null==(n=(t=this.options.current).onPaste)?void 0:n.call(t,...e)},onDelete:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDelete)?void 0:n.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var r;return e===(null==(r=t.extensions)?void 0:r[n])}):e[n]===t[n]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function V(e={},t=[]){let n=(0,r.useRef)(e);n.current=e;let[i]=(0,r.useState)(()=>new q(n)),s=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,r.useDebugValue)(s),(0,r.useEffect)(i.onRender(t)),H({editor:s,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),s}var G=(0,r.createContext)({editor:null});G.Consumer;var Y=()=>(0,r.useContext)(G),X=(0,r.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Z=r.forwardRef((e,t)=>{let{onDragStart:n}=(0,r.useContext)(X),i=e.as||"div";return(0,s.jsx)(i,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});function Q(e){return!!("function"==typeof e&&e.prototype&&e.prototype.isReactComponent)}function ee(e){return!!("object"==typeof e&&e.$$typeof&&("Symbol(react.forward_ref)"===e.$$typeof.toString()||"react.forward_ref"===e.$$typeof.description))}var et=class{constructor(e,{editor:t,props:n={},as:r="div",className:o=""}){this.ref=null,this.id=Math.floor(0xffffffff*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),o&&this.element.classList.add(...o.split(" ")),this.editor.isInitialized?(0,i.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.render()})}render(){var e;let t=this.component,n=this.props,i=this.editor,o=function(){try{if(r.version)return parseInt(r.version.split(".")[0],10)>=19}catch{}return!1}(),l=function(e){if(Q(e)||ee(e))return!0;if("object"==typeof e&&e.$$typeof&&("Symbol(react.memo)"===e.$$typeof.toString()||"react.memo"===e.$$typeof.description)){let t=e.type;if(t)return Q(t)||ee(t)}return!1}(t),a={...n};a.ref&&!(o||l)&&delete a.ref,!a.ref&&(o||l)&&(a.ref=e=>{this.ref=e}),this.reactElement=(0,s.jsx)(t,{...a}),null==(e=null==i?void 0:i.contentComponent)||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;let t=this.editor;null==(e=null==t?void 0:t.contentComponent)||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};r.createContext({markViewContentRef:()=>{}}),l.Db;var en=class extends l.Yv{constructor(e,t,n){if(super(e,t,n),this.selectionRafId=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";let e=this.dom.querySelector("[data-node-view-content]");if(!e)return;e.appendChild(this.contentDOMElement)}}mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode(),ref:(0,r.createRef)()};if(!this.component.displayName){let e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&(e.hasAttribute("data-node-view-wrapper")&&e.removeAttribute("data-node-view-wrapper"),e.appendChild(this.contentDOMElement))}},n=this.component,i=(0,r.memo)(e=>(0,s.jsx)(X.Provider,{value:t,children:(0,r.createElement)(n,e)}));i.displayName="ReactNodeView";let o=this.node.isInline?"span":"div";this.options.as&&(o=this.options.as);let{className:l=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new et(i,{editor:this.editor,props:e,as:o,className:`node-${this.node.type.name} ${l}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null==(e=this.renderer.element.firstElementChild)?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;let{from:e,to:t}=this.editor.state.selection,n=this.getPos();if("number"==typeof n)if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,n){let r=e=>{this.renderer.updateProps(e),"function"==typeof this.options.attrs&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){let i=this.node,o=this.decorations,s=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:i,oldDecorations:o,newNode:e,newDecorations:t,oldInnerDecorations:s,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n})})}return e===this.node&&this.decorations===t&&this.innerDecorations===n||(this.node=e,this.decorations=t,this.innerDecorations=n,r({node:e,decorations:t,innerDecorations:n}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let e={};if("function"==typeof this.options.attrs){let t=this.editor.extensionManager.attributes,n=(0,l.zU)(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function er(e,t){return n=>n.editor.contentComponent?new en(e,n,t):{}}},89309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},90312:(e,t,n)=>{"use strict";n.d(t,{$B:()=>l,Sd:()=>o,T2:()=>s});var r=n(14832),i=n(55156);function o(e,t=null){return function(n,o){let{$from:s,$to:l}=n.selection,a=s.blockRange(l);if(!a)return!1;let u=o?n.tr:null;return!!function(e,t,n,o=null){let s=!1,l=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=a.resolve(t.start-2);l=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let u=(0,r.oM)(l,n,o,t);return!!u&&(e&&function(e,t,n,o,s){let l=i.FK.empty;for(let e=n.length-1;e>=0;e--)l=i.FK.from(n[e].type.create(n[e].attrs,l));e.step(new r.Wg(t.start-2*!!o,t.end,t.start,t.end,new i.Ji(l,0,0),n.length,!0));let a=0;for(let e=0;e<n.length;e++)n[e].type==s&&(a=e+1);let u=n.length-a,c=t.start+n.length-2*!!o,h=t.parent;for(let n=t.startIndex,i=t.endIndex,o=!0;n<i;n++,o=!1)!o&&(0,r.zy)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=h.child(n).nodeSize}(e,t,u,s,n),!0)}(u,a,e,t)&&(o&&o(u.scrollIntoView()),!0)}}function s(e){return function(t,n){let{$from:o,$to:s}=t.selection,l=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!l&&(!n||(o.node(l.depth-1).type==e?function(e,t,n,o){let s=e.tr,l=o.end,a=o.$to.end(o.depth);l<a&&(s.step(new r.Wg(l-1,a,l,a,new i.Ji(i.FK.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(s.doc.resolve(o.$from.pos),s.doc.resolve(a),o.depth));let u=(0,r.jP)(o);if(null==u)return!1;s.lift(o,u);let c=s.doc.resolve(s.mapping.map(l,-1)-1);return(0,r.n9)(s.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&s.join(c.pos),t(s.scrollIntoView()),!0}(t,n,e,l):function(e,t,n){let o=e.tr,s=n.parent;for(let e=n.end,t=n.endIndex-1,r=n.startIndex;t>r;t--)e-=s.child(t).nodeSize,o.delete(e-1,e+1);let l=o.doc.resolve(n.start),a=l.nodeAfter;if(o.mapping.map(n.end)!=n.start+l.nodeAfter.nodeSize)return!1;let u=0==n.startIndex,c=n.endIndex==s.childCount,h=l.node(-1),d=l.index(-1);if(!h.canReplace(d+ +!u,d+1,a.content.append(c?i.FK.empty:i.FK.from(s))))return!1;let p=l.pos,f=p+a.nodeSize;return o.step(new r.Wg(p-!!u,f+ +!!c,p+1,f-1,new i.Ji((u?i.FK.empty:i.FK.from(s.copy(i.FK.empty))).append(c?i.FK.empty:i.FK.from(s.copy(i.FK.empty))),+!u,+!c),+!u)),t(o.scrollIntoView()),!0}(t,n,l)))}}function l(e){return function(t,n){let{$from:o,$to:s}=t.selection,l=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);if(!l)return!1;let a=l.startIndex;if(0==a)return!1;let u=l.parent,c=u.child(a-1);if(c.type!=e)return!1;if(n){let o=c.lastChild&&c.lastChild.type==u.type,s=i.FK.from(o?e.create():null),a=new i.Ji(i.FK.from(e.create(null,i.FK.from(u.type.create(null,s)))),o?3:1,0),h=l.start,d=l.end;n(t.tr.step(new r.Wg(h-(o?3:1),d,h,d,a,1,!0)).scrollIntoView())}return!0}}},91233:(e,t,n)=>{"use strict";n.d(t,{_V:()=>o});var r=n(25874),i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=r.bP.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.KV)(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,n,r,i,o,s;let l=null!=(n=null==(t=e.attrs)?void 0:t.src)?n:"",a=null!=(i=null==(r=e.attrs)?void 0:r.alt)?i:"",u=null!=(s=null==(o=e.attrs)?void 0:o.title)?s:"";return u?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||"undefined"==typeof document)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:i}=this.options.resize;return({node:o,getPos:s,HTMLAttributes:l,editor:a})=>{let u=document.createElement("img");Object.entries(l).forEach(([e,t])=>{if(null!=t)switch(e){case"width":case"height":break;default:u.setAttribute(e,t)}}),u.src=l.src;let c=new r.Nz({element:u,editor:a,node:o,getPos:s,onResize:(e,t)=>{u.style.width=`${e}px`,u.style.height=`${t}px`},onCommit:(e,t)=>{let n=s();void 0!==n&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,n)=>e.type===o.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:!0===i}}),h=c.dom;return h.style.visibility="hidden",h.style.pointerEvents="none",u.onload=()=>{h.style.visibility="",h.style.pointerEvents=""},c}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.jT)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},92450:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>L,i3:()=>_,UC:()=>I,bL:()=>N,Bk:()=>g});var r=n(29139),i=n(44048),o=n(17988),s=n(5288),l=n(27123),a=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,l.jsx)(s.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});a.displayName="Arrow";var u=n(68798),c=n(5512),h=n(92487),d=n(37893),p="Popper",[f,g]=(0,c.A)(p),[m,y]=f(p),v=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,l.jsx)(m,{scope:t,anchor:i,onAnchorChange:o,children:n})};v.displayName=p;var b="PopperAnchor",k=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=y(b,n),c=r.useRef(null),h=(0,u.s)(t,c),d=r.useRef(null);return r.useEffect(()=>{let e=d.current;d.current=(null==i?void 0:i.current)||c.current,e!==d.current&&a.onAnchorChange(d.current)}),i?null:(0,l.jsx)(s.sG.div,{...o,ref:h})});k.displayName=b;var w="PopperContent",[x,S]=f(w),C=r.forwardRef((e,t)=>{var n,a,c,p,f,g,m,v;let{__scopePopper:b,side:k="bottom",sideOffset:S=0,align:C="center",alignOffset:E=0,arrowPadding:M=0,avoidCollisions:A=!0,collisionBoundary:N=[],collisionPadding:L=0,sticky:I="partial",hideWhenDetached:_=!1,updatePositionStrategy:D="optimized",onPlaced:j,...P}=e,z=y(w,b),[$,F]=r.useState(null),B=(0,u.s)(t,e=>F(e)),[K,U]=r.useState(null),H=function(e){let[t,n]=r.useState(void 0);return(0,d.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(K),J=null!=(m=null==H?void 0:H.width)?m:0,W=null!=(v=null==H?void 0:H.height)?v:0,q="number"==typeof L?L:{top:0,right:0,bottom:0,left:0,...L},V=Array.isArray(N)?N:[N],G=V.length>0,Y={padding:q,boundary:V.filter(T),altBoundary:G},{refs:X,floatingStyles:Z,placement:Q,isPositioned:ee,middlewareData:et}=(0,i.we)({strategy:"fixed",placement:k+("center"!==C?"-"+C:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.ll)(...t,{animationFrame:"always"===D})},elements:{reference:z.anchor},middleware:[(0,i.cY)({mainAxis:S+W,alignmentAxis:E}),A&&(0,i.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?(0,i.ER)():void 0,...Y}),A&&(0,i.UU)({...Y}),(0,i.Ej)({...Y,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:s}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(i,"px")),l.setProperty("--radix-popper-anchor-width","".concat(o,"px")),l.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),K&&(0,i.UE)({element:K,padding:M}),R({arrowWidth:J,arrowHeight:W}),_&&(0,i.jD)({strategy:"referenceHidden",...Y})]}),[en,er]=O(Q),ei=(0,h.c)(j);(0,d.N)(()=>{ee&&(null==ei||ei())},[ee,ei]);let eo=null==(n=et.arrow)?void 0:n.x,es=null==(a=et.arrow)?void 0:a.y,el=(null==(c=et.arrow)?void 0:c.centerOffset)!==0,[ea,eu]=r.useState();return(0,d.N)(()=>{$&&eu(window.getComputedStyle($).zIndex)},[$]),(0,l.jsx)("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:ee?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ea,"--radix-popper-transform-origin":[null==(p=et.transformOrigin)?void 0:p.x,null==(f=et.transformOrigin)?void 0:f.y].join(" "),...(null==(g=et.hide)?void 0:g.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(x,{scope:b,placedSide:en,onArrowChange:U,arrowX:eo,arrowY:es,shouldHideArrow:el,children:(0,l.jsx)(s.sG.div,{"data-side":en,"data-align":er,...P,ref:B,style:{...P.style,animation:ee?void 0:"none"}})})})});C.displayName=w;var E="PopperArrow",M={top:"bottom",right:"left",bottom:"top",left:"right"},A=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=S(E,n),o=M[i.placedSide];return(0,l.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(a,{...r,ref:t,style:{...r.style,display:"block"}})})});function T(e){return null!==e}A.displayName=E;var R=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;let{placement:l,rects:a,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,h=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,f]=O(l),g={start:"0%",center:"50%",end:"100%"}[f],m=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+h/2,y=(null!=(s=null==(i=u.arrow)?void 0:i.y)?s:0)+d/2,v="",b="";return"bottom"===p?(v=c?g:"".concat(m,"px"),b="".concat(-d,"px")):"top"===p?(v=c?g:"".concat(m,"px"),b="".concat(a.floating.height+d,"px")):"right"===p?(v="".concat(-d,"px"),b=c?g:"".concat(y,"px")):"left"===p&&(v="".concat(a.floating.width+d,"px"),b=c?g:"".concat(y,"px")),{data:{x:v,y:b}}}});function O(e){let[t,n="center"]=e.split("-");return[t,n]}var N=v,L=k,I=C,_=A},92487:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(29139);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},93132:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]])},93605:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]])},93659:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(29139);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95717:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","player-play","PlayerPlay",[["path",{d:"M7 4v16l13 -8z",key:"svg-0"}]])},97195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","settings","Settings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},97508:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(98555).A)("outline","plus","Plus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},98340:(e,t,n)=>{"use strict";var r=n(29139),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,l=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return l(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},98555:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(29139),i={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let o=(e,t,n,o)=>{let s=(0,r.forwardRef)((n,s)=>{let{color:l="currentColor",size:a=24,stroke:u=2,title:c,className:h,children:d,...p}=n;return(0,r.createElement)("svg",{ref:s,...i[e],width:a,height:a,className:["tabler-icon","tabler-icon-".concat(t),h].join(" "),..."filled"===e?{fill:l}:{strokeWidth:u,stroke:l},...p},[c&&(0,r.createElement)("title",{key:"svg-title"},c),...o.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])});return s.displayName="".concat(n),s}}}]);
|