"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4645,6345],{94645:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var n=o(20034),s=o(29732),a=o(57174),c=o(20882);const r=[{id:"@jupyter-notebook/console-extension:opener",requires:[n.IRouter],autoStart:!0,activate:(e,t)=>{const{commands:o}=e,n=new RegExp("/consoles/(.*)"),s="router:console";o.addCommand(s,{execute:e=>{const t=e.path.match(n);if(!t)return;const[,s]=t;if(!s)return;const a=decodeURIComponent(s);o.execute("console:create",{path:a})}}),t.register({command:s,pattern:n})}},{id:"@jupyter-notebook/console-extension:redirect",requires:[s.IConsoleTracker],autoStart:!0,activate:(e,t)=>{const o=a.PageConfig.getBaseUrl();t.widgetAdded.connect((async(t,n)=>{const{sessionContext:s}=n;await s.ready,(0,c.find)(e.shell.widgets("main"),(e=>e.id===n.id))||(window.open(`${o}consoles/${s.path}`,"_blank"),n.dispose())}))}}]}}]);