mbuali's picture
Upload folder using huggingface_hub
d1ceb73 verified
/*! For license information please see 7506.bundle.js.LICENSE.txt */
(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7506],{7506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AddButton:()=>or,Button:()=>d,Collapser:()=>bt,CommandPaletteSvg:()=>Ia,CommandToolbarButton:()=>ta,CommandToolbarButtonComponent:()=>Qo,ContextMenuSvg:()=>La,DEFAULT_STYLE_CLASS:()=>ur,DEFAULT_UI_OPTIONS:()=>sr,DockPanelSvg:()=>Ha,DropButton:()=>rr,FilenameSearcher:()=>da,FilterBox:()=>ca,FormComponent:()=>pr,FormRendererRegistry:()=>Oa,HTMLSelect:()=>gr,HTML_SELECT_CLASS:()=>mr,HoverBox:()=>za,IFormRendererRegistry:()=>Ba,IFrame:()=>vr,ILabIconManager:()=>Da,IRankedMenu:()=>br,InputGroup:()=>wr,LabIcon:()=>b,MenuSvg:()=>Ea,MoveButton:()=>ir,PanelWithToolbar:()=>ra,RankedMenu:()=>Cr,ReactWidget:()=>Vo,ReactiveToolbar:()=>Ko,SidePanel:()=>ga,Spinner:()=>va,Styling:()=>ua,Switch:()=>fa,TABLE_CLASS:()=>wa,TabBarSvg:()=>Ta,TabPanelSvg:()=>Fa,Table:()=>ba,Toolbar:()=>Zo,ToolbarButton:()=>Xo,ToolbarButtonComponent:()=>Yo,UseSignal:()=>Po,VDomModel:()=>Wo,VDomRenderer:()=>Ro,WindowedLayout:()=>Sa,WindowedList:()=>_a,WindowedListModel:()=>Ca,addAboveIcon:()=>C,addBelowIcon:()=>_,addCommandToolbarButtonClass:()=>ea,addIcon:()=>S,addToolbarButtonClass:()=>Jo,badIcon:()=>y,bellIcon:()=>j,blankIcon:()=>x,bugDotIcon:()=>k,bugIcon:()=>I,buildIcon:()=>M,caretDownEmptyIcon:()=>L,caretDownEmptyThinIcon:()=>E,caretDownIcon:()=>T,caretLeftIcon:()=>H,caretRightIcon:()=>F,caretUpEmptyThinIcon:()=>$,caretUpIcon:()=>A,caseSensitiveIcon:()=>z,checkIcon:()=>B,circleEmptyIcon:()=>D,circleIcon:()=>O,classes:()=>a,classesDedupe:()=>l,clearIcon:()=>N,closeIcon:()=>V,codeCheckIcon:()=>R,codeIcon:()=>P,collapseAllIcon:()=>W,collapseIcon:()=>U,consoleIcon:()=>q,copyIcon:()=>G,copyrightIcon:()=>Z,cutIcon:()=>K,deleteIcon:()=>Y,downloadIcon:()=>J,duplicateIcon:()=>X,editIcon:()=>Q,ellipsesIcon:()=>ee,errorIcon:()=>te,expandAllIcon:()=>ne,expandIcon:()=>se,extensionIcon:()=>ie,fastForwardIcon:()=>re,fileIcon:()=>oe,fileUploadIcon:()=>ae,filterDotIcon:()=>le,filterIcon:()=>ce,filterListIcon:()=>de,folderFavoriteIcon:()=>he,folderIcon:()=>pe,fuzzySearch:()=>aa,getReactAttrs:()=>c,historyIcon:()=>ue,homeIcon:()=>me,html5Icon:()=>ge,imageIcon:()=>ve,infoIcon:()=>fe,inspectorIcon:()=>we,jsonIcon:()=>be,juliaIcon:()=>ye,jupyterFaviconIcon:()=>xe,jupyterIcon:()=>Ce,jupyterlabWordmarkIcon:()=>_e,kernelIcon:()=>Se,keyboardIcon:()=>je,launchIcon:()=>ke,launcherIcon:()=>Ie,lineFormIcon:()=>Me,linkIcon:()=>Le,listIcon:()=>Ee,lockIcon:()=>Te,markdownIcon:()=>He,mermaidIcon:()=>Fe,moveDownIcon:()=>$e,moveUpIcon:()=>Ae,newFolderIcon:()=>ze,notTrustedIcon:()=>Be,notebookIcon:()=>De,numberingIcon:()=>Oe,offlineBoltIcon:()=>Ne,paletteIcon:()=>Ve,pasteIcon:()=>Re,pdfIcon:()=>Pe,pythonIcon:()=>We,rKernelIcon:()=>Ue,reactIcon:()=>qe,redoIcon:()=>Ge,refreshIcon:()=>Ze,regexIcon:()=>Ke,runIcon:()=>Ye,runningIcon:()=>Je,saveIcon:()=>Xe,searchIcon:()=>Qe,settingsIcon:()=>et,shareIcon:()=>tt,spreadsheetIcon:()=>nt,stopIcon:()=>st,tabIcon:()=>it,tableRowsIcon:()=>rt,tagIcon:()=>ot,terminalIcon:()=>at,textEditorIcon:()=>lt,tocIcon:()=>ct,treeViewIcon:()=>dt,trustedIcon:()=>ht,undoIcon:()=>pt,updateFilterFunction:()=>la,userIcon:()=>ut,usersIcon:()=>mt,vegaIcon:()=>gt,wordIcon:()=>vt,yamlIcon:()=>ft});var s=n(78156),i=n.n(s),r=n(68722);function o(e){return e.map((e=>e&&"object"==typeof e?Object.keys(e).map((t=>!!e[t]&&t)):"string"==typeof e?e.split(/\s+/):[])).reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e))}function a(...e){return o(e).join(" ")}function l(...e){return[...new Set(o(e))].join(" ")}function c(e,{ignore:t=[]}={}){return e.getAttributeNames().reduce(((n,s)=>("style"===s||t.includes(s)||(s.startsWith("data")?n[s]=e.getAttribute(s):n[r.Text.camelCase(s)]=e.getAttribute(s)),n)),{})}function d(e){const{minimal:t,small:n,children:s,...r}=e;return i().createElement("button",{...r,className:a(e.className,t?"jp-mod-minimal":"",n?"jp-mod-small":"","jp-Button")},s)}var h=n(81997),p=n(63485),u=n(20998),m=n(37634);const g='<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 18 18">\n <g class="jp-icon3" fill="#616161">\n <path d="M9 13.5c-2.49 0-4.5-2.01-4.5-4.5S6.51 4.5 9 4.5c1.24 0 2.36.52 3.17 1.33L10 8h5V3l-1.76 1.76C12.15 3.68 10.66 3 9 3 5.69 3 3.01 5.69 3.01 9S5.69 15 9 15c2.97 0 5.43-2.16 5.9-5h-1.52c-.46 2-2.24 3.5-4.38 3.5z"/>\n </g>\n</svg>\n';var v,f,w=n(73062);!function(e){const t={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},".jp-mod-dropTarget&":{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}},toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function n(e){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...e}}}const s={center:n({margin:"0 auto",width:"100%"}),top:n({margin:"0 0 auto 0"}),right:n({margin:"0 0 0 auto"}),bottom:n({margin:"auto 0 0 0"}),left:n({margin:"0 auto 0 0"}),"top right":n({margin:"0 0 auto auto"}),"bottom right":n({margin:"auto 0 0 auto"}),"bottom left":n({margin:"auto auto 0 0"}),"top left":n({margin:"0 auto 0 auto"})};function i(e){return{element:{height:e,width:e}}}const r={small:i("14px"),normal:i("16px"),large:i("20px"),xlarge:i("24px")};const o=new Map;e.styleClass=function(e){if(!e||0===Object.keys(e).length)return"";let{elementPosition:n,elementSize:i,stylesheet:a,...l}=e;const c={...n&&{elementPosition:n},...i&&{elementSize:i}},d="string"==typeof a&&0===Object.keys(l).length,h=d?[a,n,i].join(","):"";if(d&&o.has(h))return o.get(h);const p=function(e){return e?(Array.isArray(e)||(e=[e]),e.map((e=>"string"==typeof e?t[e]:e))):[]}(a);p.push({element:l,options:c});const u=function(e){var t;return(0,w.oB)({...e.container,$nest:{...null===(t=e.container)||void 0===t?void 0:t.$nest,svg:e.element}})}(function(e){const t=Object.assign({},...e.map((e=>e.options)));return t.elementPosition&&e.unshift(s[t.elementPosition]),t.elementSize&&e.unshift(r[t.elementSize]),function(e){return{container:Object.assign({},...e.map((e=>e.container))),element:Object.assign({},...e.map((e=>e.element)))}}(e)}(p));return d&&o.set(h,u),u}}(v||(v={}));class b{static remove(e){for(;e.firstChild;)e.firstChild.remove();return e.className="",e}static resolve({icon:e}){if(e instanceof b)return e;if("string"==typeof e){return b._instances.get(e)||(b._debug&&console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`),new b({name:e,svgstr:g,_loading:!0}))}return new b(e)}static resolveElement({icon:e,iconClass:t,fallback:n,...s}){return f.isResolvable(e)?b.resolve({icon:e}).element(s):!t&&n?n.element(s):(s.className=a(t,s.className),f.blankElement(s))}static resolveReact({icon:e,iconClass:t,fallback:n,...s}){if(!f.isResolvable(e))return!t&&n?i().createElement(n.react,{...s}):(s.className=a(t,s.className),i().createElement(f.blankReact,{...s}));const r=b.resolve({icon:e});return i().createElement(r.react,{...s})}static resolveSvg({name:e,svgstr:t}){const n=(new DOMParser).parseFromString(f.svgstrShim(t),"image/svg+xml"),s=n.querySelector("parsererror");if(s){const n=`SVG HTML was malformed for LabIcon instance.\nname: ${e}, svgstr: ${t}`;return b._debug?(console.error(n),s):(console.warn(n),null)}return n.documentElement}static toggleDebug(e){b._debug=null!=e?e:!b._debug}constructor({name:e,svgstr:t,render:n,unrender:s,_loading:i=!1}){if(this._props={},this._svgReplaced=new h.Signal(this),this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,!e||!t)return console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`),y;if(this._loading=i,b._instances.has(e)){const n=b._instances.get(e);return this._loading?(n.svgstr=t,this._loading=!1,n):(b._debug&&console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${n.svgstr}, svgstr: ${t}`),n.svgstr=t,n)}this.name=e,this.react=this._initReact(e),this.svgstr=t,this._initRender({render:n,unrender:s}),b._instances.set(this.name,this)}bindprops(e){const t=Object.create(this);return t._props=e,t.react=t._initReact(t.name+"_bind"),t}element(e={}){var t;let{className:n,container:s,label:i,title:r,tag:o="div",...a}={...this._props,...e};const l=null==s?void 0:s.firstChild;if((null===(t=null==l?void 0:l.dataset)||void 0===t?void 0:t.iconId)===this._uuid)return l;if(!this.svgElement)return document.createElement("div");if(s)for(;s.firstChild;)s.firstChild.remove();else o&&(s=document.createElement(o));const c=this.svgElement.cloneNode(!0);return s?(null!=i&&(s.textContent=i),f.initContainer({container:s,className:n,styleProps:a,title:r}),s.appendChild(c),s):(i&&console.warn(),c)}render(e,t){var n;let s=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof s&&(s=void 0),this.element({container:e,label:s,...null==t?void 0:t.props})}get svgElement(){return void 0===this._svgElement&&(this._svgElement=this._initSvg({uuid:this._uuid})),this._svgElement}get svgInnerHTML(){return void 0===this._svgInnerHTML&&(null===this.svgElement?this._svgInnerHTML=null:this._svgInnerHTML=this.svgElement.innerHTML),this._svgInnerHTML}get svgReactAttrs(){return void 0===this._svgReactAttrs&&(null===this.svgElement?this._svgReactAttrs=null:this._svgReactAttrs=c(this.svgElement,{ignore:["data-icon-id"]})),this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;const t=u.UUID.uuid4(),n=this._uuid;this._uuid=t,this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,document.querySelectorAll(`[data-icon-id="${n}"]`).forEach((e=>{this.svgElement&&e.replaceWith(this.svgElement.cloneNode(!0))})),this._svgReplaced.emit()}_initReact(e){const t=i().forwardRef(((e={},t)=>{const{className:n,container:s,label:r,title:o,slot:l,tag:c="div",...d}={...this._props,...e},[,h]=i().useState(this._uuid);i().useEffect((()=>{const e=()=>{h(this._uuid)};return this._svgReplaced.connect(e),()=>{this._svgReplaced.disconnect(e)}}));const p=null!=c?c:i().Fragment;if(!this.svgInnerHTML||!this.svgReactAttrs)return i().createElement(i().Fragment,null);const u={...this.svgReactAttrs};c||Object.assign(u,{className:n||d?a(n,v.styleClass(d)):void 0,title:o,slot:l});const m=i().createElement("svg",{...u,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:t});if(s)return f.initContainer({container:s,className:n,styleProps:d,title:o}),i().createElement(i().Fragment,null,m,r);{let e={};return p!==i().Fragment&&(e={className:n||d?a(n,v.styleClass(d)):void 0,title:o,slot:l}),i().createElement(p,{...e},m,r)}}));return t.displayName=`LabIcon_${e}`,t}_initRender({render:e,unrender:t}){e?(this.render=e,t&&(this.unrender=t)):t&&console.warn("In _initRender, ignoring unrender arg since render is undefined")}_initSvg({title:e,uuid:t}={}){const n=b.resolveSvg(this);return n?("parsererror"!==n.tagName&&(n.dataset.icon=this.name,t&&(n.dataset.iconId=t),e&&f.setTitleSvg(n,e)),n):n}}b._debug=!1,b._instances=new Map,function(e){function t({container:e,className:t,styleProps:n,title:s}){null!=s&&(e.title=s);const i=v.styleClass(n);if(null!=t){const n=a(t,i);return e.className=n,n}return i?(e.classList.add(i),i):""}e.blankElement=function({className:t="",container:n,label:s,title:i,tag:r="div",slot:o,...a}){if((null==n?void 0:n.className)===t)return n;if(n)for(;n.firstChild;)n.firstChild.remove();else n=document.createElement(null!=r?r:"div");return null!=s&&(n.textContent=s),e.initContainer({container:n,className:t,styleProps:a,title:i}),n},e.blankReact=i().forwardRef((({className:e="",container:n,label:s,title:r,tag:o="div",...l},c)=>{const d=null!=o?o:"div";return n?(t({container:n,className:e,styleProps:l,title:r}),i().createElement(i().Fragment,null)):i().createElement(d,{className:a(e,v.styleClass(l))},c&&x.react({ref:c}),s)})),e.blankReact.displayName="BlankReact",e.initContainer=t,e.isResolvable=function(e){return!(!e||!("string"==typeof e||e.name&&e.svgstr))},e.setTitleSvg=function(e,t){const n=e.getElementsByTagName("title");if(n.length)n[0].textContent=t;else{const n=document.createElement("title");n.textContent=t,e.appendChild(n)}},e.svgstrShim=function(e,t=!0){const[,n,s]=decodeURIComponent(e).replace(/>\s*\n\s*</g,"><").replace(/\s*\n\s*/g," ").match(t?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?(<svg.*)/);return n?atob(s):s};class n{constructor(e,t){this._icon=e,this._rendererOptions=t}render(e,t){}}e.Renderer=n,e.ElementRenderer=class extends n{render(e,t){var n,s;let i=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof i&&(i=void 0),this._icon.element({container:e,label:i,...null===(s=this._rendererOptions)||void 0===s?void 0:s.props,...null==t?void 0:t.props})}},e.ReactRenderer=class extends n{constructor(){super(...arguments),this._rootDOM=null}render(e,t){var n,s;let r=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof r&&(r=void 0);const o=this._icon;null!==this._rootDOM&&this._rootDOM.unmount(),this._rootDOM=(0,m.s)(e),this._rootDOM.render(i().createElement(o.react,{container:e,label:r,...null===(s=this._rendererOptions)||void 0===s?void 0:s.props,...null==t?void 0:t.props}))}unrender(e){null!==this._rootDOM&&(this._rootDOM.unmount(),this._rootDOM=null)}}}(f||(f={}));const y=new b({name:"ui-components:bad",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path\n class="jp-icon0"\n fill="#000"\n d="M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"\n />\n</svg>\n'}),x=new b({name:"ui-components:blank",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path\n fill="#000"\n fill-opacity="0.0"\n d="M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"\n />\n</svg>\n'}),C=new b({name:"ui-components:add-above",svgstr:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_137_19492)">\n<path class="jp-icon3" d="M4.75 4.93066H6.625V6.80566C6.625 7.01191 6.79375 7.18066 7 7.18066C7.20625 7.18066 7.375 7.01191 7.375 6.80566V4.93066H9.25C9.45625 4.93066 9.625 4.76191 9.625 4.55566C9.625 4.34941 9.45625 4.18066 9.25 4.18066H7.375V2.30566C7.375 2.09941 7.20625 1.93066 7 1.93066C6.79375 1.93066 6.625 2.09941 6.625 2.30566V4.18066H4.75C4.54375 4.18066 4.375 4.34941 4.375 4.55566C4.375 4.76191 4.54375 4.93066 4.75 4.93066Z" fill="#616161" stroke="#616161" stroke-width="0.7"/>\n</g>\n<path class="jp-icon3" fill-rule="evenodd" clip-rule="evenodd" d="M11.5 9.5V11.5L2.5 11.5V9.5L11.5 9.5ZM12 8C12.5523 8 13 8.44772 13 9V12C13 12.5523 12.5523 13 12 13L2 13C1.44772 13 1 12.5523 1 12V9C1 8.44772 1.44771 8 2 8L12 8Z" fill="#616161"/>\n<defs>\n<clipPath id="clip0_137_19492">\n<rect class="jp-icon3" width="6" height="6" fill="white" transform="matrix(-1 0 0 1 10 1.55566)"/>\n</clipPath>\n</defs>\n</svg>\n'}),_=new b({name:"ui-components:add-below",svgstr:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_137_19498)">\n<path class="jp-icon3" d="M9.25 10.0693L7.375 10.0693L7.375 8.19434C7.375 7.98809 7.20625 7.81934 7 7.81934C6.79375 7.81934 6.625 7.98809 6.625 8.19434L6.625 10.0693L4.75 10.0693C4.54375 10.0693 4.375 10.2381 4.375 10.4443C4.375 10.6506 4.54375 10.8193 4.75 10.8193L6.625 10.8193L6.625 12.6943C6.625 12.9006 6.79375 13.0693 7 13.0693C7.20625 13.0693 7.375 12.9006 7.375 12.6943L7.375 10.8193L9.25 10.8193C9.45625 10.8193 9.625 10.6506 9.625 10.4443C9.625 10.2381 9.45625 10.0693 9.25 10.0693Z" fill="#616161" stroke="#616161" stroke-width="0.7"/>\n</g>\n<path class="jp-icon3" fill-rule="evenodd" clip-rule="evenodd" d="M2.5 5.5L2.5 3.5L11.5 3.5L11.5 5.5L2.5 5.5ZM2 7C1.44772 7 1 6.55228 1 6L1 3C1 2.44772 1.44772 2 2 2L12 2C12.5523 2 13 2.44772 13 3L13 6C13 6.55229 12.5523 7 12 7L2 7Z" fill="#616161"/>\n<defs>\n<clipPath id="clip0_137_19498">\n<rect class="jp-icon3" width="6" height="6" fill="white" transform="matrix(1 1.74846e-07 1.74846e-07 -1 4 13.4443)"/>\n</clipPath>\n</defs>\n</svg>\n'}),S=new b({name:"ui-components:add",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>\n </g>\n</svg>\n'}),j=new b({name:"ui-components:bell",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 16 16" version="1.1">\n <path class="jp-icon2 jp-icon-selectable" fill="#333333"\n d="m8 0.29c-1.4 0-2.7 0.73-3.6 1.8-1.2 1.5-1.4 3.4-1.5 5.2-0.18 2.2-0.44 4-2.3 5.3l0.28 1.3h5c0.026 0.66 0.32 1.1 0.71 1.5 0.84 0.61 2 0.61 2.8 0 0.52-0.4 0.6-1 0.71-1.5h5l0.28-1.3c-1.9-0.97-2.2-3.3-2.3-5.3-0.13-1.8-0.26-3.7-1.5-5.2-0.85-1-2.2-1.8-3.6-1.8zm0 1.4c0.88 0 1.9 0.55 2.5 1.3 0.88 1.1 1.1 2.7 1.2 4.4 0.13 1.7 0.23 3.6 1.3 5.2h-10c1.1-1.6 1.2-3.4 1.3-5.2 0.13-1.7 0.3-3.3 1.2-4.4 0.59-0.72 1.6-1.3 2.5-1.3zm-0.74 12h1.5c-0.0015 0.28 0.015 0.79-0.74 0.79-0.73 0.0016-0.72-0.53-0.74-0.79z" />\n</svg>\n'}),k=new b({name:"ui-components:bug-dot",svgstr:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3 jp-icon-selectable" fill="#616161">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.19 8H20V10H17.91C17.96 10.33 18 10.66 18 11V12H20V14H18.5H18V14.0275C15.75 14.2762 14 16.1837 14 18.5C14 19.208 14.1635 19.8779 14.4549 20.4739C13.7063 20.8117 12.8757 21 12 21C9.78 21 7.85 19.79 6.81 18H4V16H6.09C6.04 15.67 6 15.34 6 15V14H4V12H6V11C6 10.66 6.04 10.33 6.09 10H4V8H6.81C7.26 7.22 7.88 6.55 8.62 6.04L7 4.41L8.41 3L10.59 5.17C11.04 5.06 11.51 5 12 5C12.49 5 12.96 5.06 13.42 5.17L15.59 3L17 4.41L15.37 6.04C16.12 6.55 16.74 7.22 17.19 8ZM10 16H14V14H10V16ZM10 12H14V10H10V12Z" fill="#616161"/>\n <path d="M22 18.5C22 20.433 20.433 22 18.5 22C16.567 22 15 20.433 15 18.5C15 16.567 16.567 15 18.5 15C20.433 15 22 16.567 22 18.5Z" fill="#616161"/>\n </g>\n</svg>\n'}),I=new b({name:"ui-components:bug",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3 jp-icon-selectable" fill="#616161">\n <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/>\n </g>\n</svg>\n'}),M=new b({name:"ui-components:build",svgstr:'<svg width="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M14.9 17.45C16.25 17.45 17.35 16.35 17.35 15C17.35 13.65 16.25 12.55 14.9 12.55C13.54 12.55 12.45 13.65 12.45 15C12.45 16.35 13.54 17.45 14.9 17.45ZM20.1 15.68L21.58 16.84C21.71 16.95 21.75 17.13 21.66 17.29L20.26 19.71C20.17 19.86 20 19.92 19.83 19.86L18.09 19.16C17.73 19.44 17.33 19.67 16.91 19.85L16.64 21.7C16.62 21.87 16.47 22 16.3 22H13.5C13.32 22 13.18 21.87 13.15 21.7L12.89 19.85C12.46 19.67 12.07 19.44 11.71 19.16L9.96002 19.86C9.81002 19.92 9.62002 19.86 9.54002 19.71L8.14002 17.29C8.05002 17.13 8.09002 16.95 8.22002 16.84L9.70002 15.68L9.65001 15L9.70002 14.31L8.22002 13.16C8.09002 13.05 8.05002 12.86 8.14002 12.71L9.54002 10.29C9.62002 10.13 9.81002 10.07 9.96002 10.13L11.71 10.84C12.07 10.56 12.46 10.32 12.89 10.15L13.15 8.28998C13.18 8.12998 13.32 7.99998 13.5 7.99998H16.3C16.47 7.99998 16.62 8.12998 16.64 8.28998L16.91 10.15C17.33 10.32 17.73 10.56 18.09 10.84L19.83 10.13C20 10.07 20.17 10.13 20.26 10.29L21.66 12.71C21.75 12.86 21.71 13.05 21.58 13.16L20.1 14.31L20.15 15L20.1 15.68Z"/>\n <path d="M7.32966 7.44454C8.0831 7.00954 8.33932 6.05332 7.90432 5.29988C7.46932 4.54643 6.5081 4.28156 5.75466 4.71656C5.39176 4.92608 5.12695 5.27118 5.01849 5.67594C4.91004 6.08071 4.96682 6.51198 5.17634 6.87488C5.61134 7.62832 6.57622 7.87954 7.32966 7.44454ZM9.65718 4.79593L10.8672 4.95179C10.9628 4.97741 11.0402 5.07133 11.0382 5.18793L11.0388 6.98893C11.0455 7.10054 10.9616 7.19518 10.855 7.21054L9.66001 7.38083L9.23915 8.13188L9.66961 9.25745C9.70729 9.36271 9.66934 9.47699 9.57408 9.53199L8.01523 10.432C7.91131 10.492 7.79337 10.4677 7.72105 10.3824L6.98748 9.43188L6.10931 9.43083L5.34704 10.3905C5.28909 10.4702 5.17383 10.4905 5.07187 10.4339L3.51245 9.53293C3.41049 9.47633 3.37647 9.35741 3.41075 9.25679L3.86347 8.14093L3.61749 7.77488L3.42347 7.37883L2.23075 7.21297C2.12647 7.19235 2.04049 7.10342 2.04245 6.98682L2.04187 5.18582C2.04383 5.06922 2.11909 4.97958 2.21704 4.96922L3.42065 4.79393L3.86749 4.02788L3.41105 2.91731C3.37337 2.81204 3.41131 2.69776 3.51523 2.63776L5.07408 1.73776C5.16934 1.68276 5.28729 1.70704 5.35961 1.79231L6.11915 2.72788L6.98001 2.73893L7.72496 1.78922C7.79156 1.70458 7.91548 1.67922 8.00879 1.74082L9.56821 2.64182C9.67017 2.69842 9.71285 2.81234 9.68723 2.90797L9.21718 4.03383L9.46316 4.39988L9.65718 4.79593Z"/>\n </g>\n</svg>\n'}),L=new b({name:"ui-components:caret-down-empty",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 18 18">\n <g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n <path d="M5.2,5.9L9,9.7l3.8-3.8l1.2,1.2l-4.9,5l-4.9-5L5.2,5.9z"/>\n </g>\n</svg>\n'}),E=new b({name:"ui-components:caret-down-empty-thin",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 20 20">\n\t<g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n\t\t<polygon class="st1" points="9.9,13.6 3.6,7.4 4.4,6.6 9.9,12.2 15.4,6.7 16.1,7.4 "/>\n\t</g>\n</svg>\n'}),T=new b({name:"ui-components:caret-down",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 18 18">\n <g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n <path d="M5.2,7.5L9,11.2l3.8-3.8H5.2z"/>\n </g>\n</svg>\n'}),H=new b({name:"ui-components:caret-left",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 18 18">\n\t<g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n\t\t<path d="M10.8,12.8L7.1,9l3.8-3.8l0,7.6H10.8z"/>\n </g>\n</svg>\n'}),F=new b({name:"ui-components:caret-right",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 18 18">\n <g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n <path d="M7.2,5.2L10.9,9l-3.8,3.8V5.2H7.2z"/>\n </g>\n</svg>\n'}),$=new b({name:"ui-components:caret-up-empty-thin",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 20 20">\n\t<g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n\t\t<polygon class="st1" points="15.4,13.3 9.9,7.7 4.4,13.2 3.6,12.5 9.9,6.3 16.1,12.6 "/>\n\t</g>\n</svg>\n'}),A=new b({name:"ui-components:caret-up",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 18 18">\n\t<g class="jp-icon3" fill="#616161" shape-rendering="geometricPrecision">\n\t\t<path d="M5.2,10.5L9,6.8l3.8,3.8H5.2z"/>\n </g>\n</svg>\n'}),z=new b({name:"ui-components:case-sensitive",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 20 20">\n <g class="jp-icon2" fill="#414141">\n <rect x="2" y="2" width="16" height="16"/>\n </g>\n <g class="jp-icon-accent2" fill="#FFF">\n <path d="M7.6,8h0.9l3.5,8h-1.1L10,14H6l-0.9,2H4L7.6,8z M8,9.1L6.4,13h3.2L8,9.1z"/>\n <path d="M16.6,9.8c-0.2,0.1-0.4,0.1-0.7,0.1c-0.2,0-0.4-0.1-0.6-0.2c-0.1-0.1-0.2-0.4-0.2-0.7 c-0.3,0.3-0.6,0.5-0.9,0.7c-0.3,0.1-0.7,0.2-1.1,0.2c-0.3,0-0.5,0-0.7-0.1c-0.2-0.1-0.4-0.2-0.6-0.3c-0.2-0.1-0.3-0.3-0.4-0.5 c-0.1-0.2-0.1-0.4-0.1-0.7c0-0.3,0.1-0.6,0.2-0.8c0.1-0.2,0.3-0.4,0.4-0.5C12,7,12.2,6.9,12.5,6.8c0.2-0.1,0.5-0.1,0.7-0.2 c0.3-0.1,0.5-0.1,0.7-0.1c0.2,0,0.4-0.1,0.6-0.1c0.2,0,0.3-0.1,0.4-0.2c0.1-0.1,0.2-0.2,0.2-0.4c0-1-1.1-1-1.3-1 c-0.4,0-1.4,0-1.4,1.2h-0.9c0-0.4,0.1-0.7,0.2-1c0.1-0.2,0.3-0.4,0.5-0.6c0.2-0.2,0.5-0.3,0.8-0.3C13.3,4,13.6,4,13.9,4 c0.3,0,0.5,0,0.8,0.1c0.3,0,0.5,0.1,0.7,0.2c0.2,0.1,0.4,0.3,0.5,0.5C16,5,16,5.2,16,5.6v2.9c0,0.2,0,0.4,0,0.5 c0,0.1,0.1,0.2,0.3,0.2c0.1,0,0.2,0,0.3,0V9.8z M15.2,6.9c-1.2,0.6-3.1,0.2-3.1,1.4c0,1.4,3.1,1,3.1-0.5V6.9z"/>\n </g>\n</svg>\n'}),B=new b({name:"ui-components:check",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3 jp-icon-selectable" fill="#616161">\n <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>\n </g>\n</svg>\n'}),D=new b({name:"ui-components:circle-empty",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n </g>\n</svg>\n'}),O=new b({name:"ui-components:circle",svgstr:'<svg viewBox="0 0 18 18" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <circle cx="9" cy="9" r="8"/>\n </g>\n</svg>\n'}),N=new b({name:"ui-components:clear",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <mask id="donutHole">\n <rect width="24" height="24" fill="white" />\n <circle cx="12" cy="12" r="8" fill="black"/>\n </mask>\n\n <g class="jp-icon3" fill="#616161">\n <rect height="18" width="2" x="11" y="3" transform="rotate(315, 12, 12)"/>\n <circle cx="12" cy="12" r="10" mask="url(#donutHole)"/>\n </g>\n</svg>\n'}),V=new b({name:"ui-components:close",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon-none jp-icon-selectable-inverse jp-icon3-hover" fill="none">\n <circle cx="12" cy="12" r="11"/>\n </g>\n\n <g class="jp-icon3 jp-icon-selectable jp-icon-accent2-hover" fill="#616161">\n <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>\n </g>\n\n <g class="jp-icon-none jp-icon-busy" fill="none">\n <circle cx="12" cy="12" r="7"/>\n </g>\n</svg>\n'}),R=new b({name:"ui-components:code-check",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24">\n <g class="jp-icon3 jp-icon-selectable" fill="#616161" shape-rendering="geometricPrecision">\n <path d="M6.59,3.41L2,8L6.59,12.6L8,11.18L4.82,8L8,4.82L6.59,3.41M12.41,3.41L11,4.82L14.18,8L11,11.18L12.41,12.6L17,8L12.41,3.41M21.59,11.59L13.5,19.68L9.83,16L8.42,17.41L13.5,22.5L23,13L21.59,11.59Z" />\n </g>\n</svg>\n'}),P=new b({name:"ui-components:code",svgstr:'<svg width="22" height="22" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">\n\t<g class="jp-icon3" fill="#616161">\n\t\t<path d="M11.4 18.6L6.8 14L11.4 9.4L10 8L4 14L10 20L11.4 18.6ZM16.6 18.6L21.2 14L16.6 9.4L18 8L24 14L18 20L16.6 18.6V18.6Z"/>\n\t</g>\n</svg>\n'}),W=new b({name:"ui-components:collapse-all",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path\n d="M8 2c1 0 11 0 12 0s2 1 2 2c0 1 0 11 0 12s0 2-2 2C20 14 20 4 20 4S10 4 6 4c0-2 1-2 2-2z" />\n <path\n d="M18 8c0-1-1-2-2-2S5 6 4 6s-2 1-2 2c0 1 0 11 0 12s1 2 2 2c1 0 11 0 12 0s2-1 2-2c0-1 0-11 0-12zm-2 0v12H4V8z" />\n <path d="M6 13v2h8v-2z" />\n </g>\n</svg>\n'}),U=new b({name:"ui-components:collapse",svgstr:'<svg width="16" viewBox="0 0 8.5 10.5" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon-output" fill="#BDBDBD">\n <path d="M.019 0h8.458v1.064H.019zM0 9.52h8.491v1.059H0zM4.776 2.912H3.72V1.323h1.056z" />\n <path d="M4.244 5.243l-1.06-1.167-1.06-1.167h4.24l-1.06 1.167zM4.772 9.257H3.716V7.665h1.056z" />\n <path d="M4.242 5.332L5.302 6.5l1.06 1.167h-4.24l1.06-1.167z" />\n </g>\n</svg>\n'}),q=new b({name:"ui-components:console",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 200 200">\n <g class="jp-console-icon-background-color jp-icon-selectable" fill="#0288D1">\n <path d="M20 19.8h160v159.9H20z"/>\n </g>\n <g class="jp-console-icon-color jp-icon-selectable-inverse" fill="#fff">\n <path d="M105 127.3h40v12.8h-40zM51.1 77L74 99.9l-23.3 23.3 10.5 10.5 23.3-23.3L95 99.9 84.5 89.4 61.6 66.5z"/>\n </g>\n</svg>\n'}),G=new b({name:"ui-components:copy",svgstr:'<svg viewBox="0 0 18 18" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M11.9,1H3.2C2.4,1,1.7,1.7,1.7,2.5v10.2h1.5V2.5h8.7V1z M14.1,3.9h-8c-0.8,0-1.5,0.7-1.5,1.5v10.2c0,0.8,0.7,1.5,1.5,1.5h8 c0.8,0,1.5-0.7,1.5-1.5V5.4C15.5,4.6,14.9,3.9,14.1,3.9z M14.1,15.5h-8V5.4h8V15.5z"/>\n </g>\n</svg>\n'}),Z=new b({name:"ui-components:copyright",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">\n <g class="jp-icon3" fill="#616161">\n <path d="M11.88,9.14c1.28,0.06,1.61,1.15,1.63,1.66h1.79c-0.08-1.98-1.49-3.19-3.45-3.19C9.64,7.61,8,9,8,12.14 c0,1.94,0.93,4.24,3.84,4.24c2.22,0,3.41-1.65,3.44-2.95h-1.79c-0.03,0.59-0.45,1.38-1.63,1.44C10.55,14.83,10,13.81,10,12.14 C10,9.25,11.28,9.16,11.88,9.14z M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M12,20c-4.41,0-8-3.59-8-8 s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z"/>\n </g>\n</svg>\n'}),K=new b({name:"ui-components:cut",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"/>\n </g>\n</svg>\n'}),Y=new b({name:"ui-components:delete",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16px" height="16px">\n <path d="M0 0h24v24H0z" fill="none" />\n <path class="jp-icon3" fill="#626262" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />\n</svg>\n'}),J=new b({name:"ui-components:download",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>\n </g>\n</svg>\n'}),X=new b({name:"ui-components:duplicate",svgstr:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path class="jp-icon3" fill-rule="evenodd" clip-rule="evenodd" d="M2.79998 0.875H8.89582C9.20061 0.875 9.44998 1.13914 9.44998 1.46198C9.44998 1.78482 9.20061 2.04896 8.89582 2.04896H3.35415C3.04936 2.04896 2.79998 2.3131 2.79998 2.63594V9.67969C2.79998 10.0025 2.55061 10.2667 2.24582 10.2667C1.94103 10.2667 1.69165 10.0025 1.69165 9.67969V2.04896C1.69165 1.40328 2.1904 0.875 2.79998 0.875ZM5.36665 11.9V4.55H11.0833V11.9H5.36665ZM4.14165 4.14167C4.14165 3.69063 4.50728 3.325 4.95832 3.325H11.4917C11.9427 3.325 12.3083 3.69063 12.3083 4.14167V12.3083C12.3083 12.7594 11.9427 13.125 11.4917 13.125H4.95832C4.50728 13.125 4.14165 12.7594 4.14165 12.3083V4.14167Z" fill="#616161"/>\n<path class="jp-icon3" d="M9.43574 8.26507H8.36431V9.3365C8.36431 9.45435 8.26788 9.55078 8.15002 9.55078C8.03217 9.55078 7.93574 9.45435 7.93574 9.3365V8.26507H6.86431C6.74645 8.26507 6.65002 8.16864 6.65002 8.05078C6.65002 7.93292 6.74645 7.8365 6.86431 7.8365H7.93574V6.76507C7.93574 6.64721 8.03217 6.55078 8.15002 6.55078C8.26788 6.55078 8.36431 6.64721 8.36431 6.76507V7.8365H9.43574C9.5536 7.8365 9.65002 7.93292 9.65002 8.05078C9.65002 8.16864 9.5536 8.26507 9.43574 8.26507Z" fill="#616161" stroke="#616161" stroke-width="0.5"/>\n</svg>\n'}),Q=new b({name:"ui-components:edit",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>\n </g>\n</svg>\n'}),ee=new b({name:"ui-components:ellipses",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <circle cx="5" cy="12" r="2"/>\n <circle cx="12" cy="12" r="2"/>\n <circle cx="19" cy="12" r="2"/>\n </g>\n</svg>\n'}),te=new b({name:"ui-components:error",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n<g class="jp-icon3" fill="#616161"><circle cx="12" cy="19" r="2"/><path d="M10 3h4v12h-4z"/></g>\n<path fill="none" d="M0 0h24v24H0z"/>\n</svg>\n'}),ne=new b({name:"ui-components:expand-all",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path\n d="M8 2c1 0 11 0 12 0s2 1 2 2c0 1 0 11 0 12s0 2-2 2C20 14 20 4 20 4S10 4 6 4c0-2 1-2 2-2z" />\n <path\n d="M18 8c0-1-1-2-2-2S5 6 4 6s-2 1-2 2c0 1 0 11 0 12s1 2 2 2c1 0 11 0 12 0s2-1 2-2c0-1 0-11 0-12zm-2 0v12H4V8z" />\n <path d="M11 10H9v3H6v2h3v3h2v-3h3v-2h-3z" />\n </g>\n</svg>\n'}),se=new b({name:"ui-components:expand",svgstr:'<svg width="16" viewBox="0 0 8.5 10.5" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon-output" fill="#BDBDBD">\n <path d="M.019 0h8.458v1.064H.019zM0 9.521h8.491v1.059H0zM3.712 3.699h1.056v1.589H3.712z" />\n <path d="M4.244 1.368l1.06 1.167 1.06 1.167h-4.24l1.06-1.167zM3.712 5.288h1.056V6.88H3.712z" />\n <path d="M4.242 9.213l-1.06-1.167-1.06-1.167h4.24l-1.06 1.167z" />\n </g>\n</svg>\n'}),ie=new b({name:"ui-components:extension",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"/>\n </g>\n</svg>\n'}),re=new b({name:"ui-components:fast-forward",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/>\n </g>\n</svg>\n'}),oe=new b({name:"ui-components:file",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M19.3 8.2l-5.5-5.5c-.3-.3-.7-.5-1.2-.5H3.9c-.8.1-1.6.9-1.6 1.8v14.1c0 .9.7 1.6 1.6 1.6h14.2c.9 0 1.6-.7 1.6-1.6V9.4c.1-.5-.1-.9-.4-1.2zm-5.8-3.3l3.4 3.6h-3.4V4.9zm3.9 12.7H4.7c-.1 0-.2 0-.2-.2V4.7c0-.2.1-.3.2-.3h7.2v4.4s0 .8.3 1.1c.3.3 1.1.3 1.1.3h4.3v7.2s-.1.2-.2.2z"/>\n</svg>\n'}),ae=new b({name:"ui-components:file-upload",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/>\n </g>\n</svg>\n'}),le=new b({name:"ui-components:filter-dot",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#FFF">\n <path d="M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z" />\n </g>\n <g class="jp-icon-dot" fill="#FFF">\n <circle cx="18" cy="17" r="3"></circle>\n </g>\n</svg>\n'}),ce=new b({name:"ui-components:filter",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#FFF">\n <path d="M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z" />\n </g>\n</svg>\n'}),de=new b({name:"ui-components:filter-list",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>\n </g>\n</svg>\n'}),he=new b({name:"ui-components:folder-favorite",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">\n <path d="M0 0h24v24H0V0z" fill="none"/><path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24.78 3.33z"/>\n</svg>\n'}),pe=new b({name:"ui-components:folder",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>\n</svg>\n'}),ue=new b({name:"ui-components:history",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n<g class="jp-icon3" fill="#616161"><path d="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3" /></g>\n</svg>\n'}),me=new b({name:"ui-components:home",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">\n <path d="M0 0h24v24H0z" fill="none"/><path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n</svg>\n'}),ge=new b({name:"ui-components:html5",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512">\n <path class="jp-icon0 jp-icon-selectable" fill="#000" d="M108.4 0h23v22.8h21.2V0h23v69h-23V46h-21v23h-23.2M206 23h-20.3V0h63.7v23H229v46h-23m53.5-69h24.1l14.8 24.3L313.2 0h24.1v69h-23V34.8l-16.1 24.8-16.1-24.8V69h-22.6m89.2-69h23v46.2h32.6V69h-55.6"/>\n <path class="jp-icon-selectable" fill="#e44d26" d="M107.6 471l-33-370.4h362.8l-33 370.2L255.7 512"/>\n <path class="jp-icon-selectable" fill="#f16529" d="M256 480.5V131h148.3L376 447"/>\n <path class="jp-icon-selectable-inverse" fill="#ebebeb" d="M142 176.3h114v45.4h-64.2l4.2 46.5h60v45.3H154.4m2 22.8H202l3.2 36.3 50.8 13.6v47.4l-93.2-26"/>\n <path class="jp-icon-selectable-inverse" fill="#fff" d="M369.6 176.3H255.8v45.4h109.6m-4.1 46.5H255.8v45.4h56l-5.3 59-50.7 13.6v47.2l93-25.8"/>\n</svg>\n'}),ve=new b({name:"ui-components:image",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <path class="jp-icon-brand4 jp-icon-selectable-inverse" fill="#FFF" d="M2.2 2.2h17.5v17.5H2.2z"/>\n <path class="jp-icon-brand0 jp-icon-selectable" fill="#3F51B5" d="M2.2 2.2v17.5h17.5l.1-17.5H2.2zm12.1 2.2c1.2 0 2.2 1 2.2 2.2s-1 2.2-2.2 2.2-2.2-1-2.2-2.2 1-2.2 2.2-2.2zM4.4 17.6l3.3-8.8 3.3 6.6 2.2-3.2 4.4 5.4H4.4z"/>\n</svg>\n'}),fe=new b({name:"ui-components:info",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 50.978 50.978">\n\t<g class="jp-icon3" fill="#616161">\n\t\t<path d="M43.52,7.458C38.711,2.648,32.307,0,25.489,0C18.67,0,12.266,2.648,7.458,7.458\n\t\t\tc-9.943,9.941-9.943,26.119,0,36.062c4.809,4.809,11.212,7.456,18.031,7.458c0,0,0.001,0,0.002,0\n\t\t\tc6.816,0,13.221-2.648,18.029-7.458c4.809-4.809,7.457-11.212,7.457-18.03C50.977,18.67,48.328,12.266,43.52,7.458z\n\t\t\t M42.106,42.105c-4.432,4.431-10.332,6.872-16.615,6.872h-0.002c-6.285-0.001-12.187-2.441-16.617-6.872\n\t\t\tc-9.162-9.163-9.162-24.071,0-33.233C13.303,4.44,19.204,2,25.489,2c6.284,0,12.186,2.44,16.617,6.872\n\t\t\tc4.431,4.431,6.871,10.332,6.871,16.617C48.977,31.772,46.536,37.675,42.106,42.105z"/>\n\t\t<path d="M23.578,32.218c-0.023-1.734,0.143-3.059,0.496-3.972c0.353-0.913,1.11-1.997,2.272-3.253\n\t\t\tc0.468-0.536,0.923-1.062,1.367-1.575c0.626-0.753,1.104-1.478,1.436-2.175c0.331-0.707,0.495-1.541,0.495-2.5\n\t\t\tc0-1.096-0.26-2.088-0.779-2.979c-0.565-0.879-1.501-1.336-2.806-1.369c-1.802,0.057-2.985,0.667-3.55,1.832\n\t\t\tc-0.301,0.535-0.503,1.141-0.607,1.814c-0.139,0.707-0.207,1.432-0.207,2.174h-2.937c-0.091-2.208,0.407-4.114,1.493-5.719\n\t\t\tc1.062-1.64,2.855-2.481,5.378-2.527c2.16,0.023,3.874,0.608,5.141,1.758c1.278,1.16,1.929,2.764,1.95,4.811\n\t\t\tc0,1.142-0.137,2.111-0.41,2.911c-0.309,0.845-0.731,1.593-1.268,2.243c-0.492,0.65-1.068,1.318-1.73,2.002\n\t\t\tc-0.65,0.697-1.313,1.479-1.987,2.346c-0.239,0.377-0.429,0.777-0.565,1.199c-0.16,0.959-0.217,1.951-0.171,2.979\n\t\t\tC26.589,32.218,23.578,32.218,23.578,32.218z M23.578,38.22v-3.484h3.076v3.484H23.578z"/>\n\t</g>\n</svg>\n'}),we=new b({name:"ui-components:inspector",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-inspector-icon-color jp-icon-selectable" fill="#616161" d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>\n</svg>\n'}),be=new b({name:"ui-components:json",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <g class="jp-json-icon-color jp-icon-selectable" fill="#F9A825">\n <path d="M20.2 11.8c-1.6 0-1.7.5-1.7 1 0 .4.1.9.1 1.3.1.5.1.9.1 1.3 0 1.7-1.4 2.3-3.5 2.3h-.9v-1.9h.5c1.1 0 1.4 0 1.4-.8 0-.3 0-.6-.1-1 0-.4-.1-.8-.1-1.2 0-1.3 0-1.8 1.3-2-1.3-.2-1.3-.7-1.3-2 0-.4.1-.8.1-1.2.1-.4.1-.7.1-1 0-.8-.4-.7-1.4-.8h-.5V4.1h.9c2.2 0 3.5.7 3.5 2.3 0 .4-.1.9-.1 1.3-.1.5-.1.9-.1 1.3 0 .5.2 1 1.7 1v1.8zM1.8 10.1c1.6 0 1.7-.5 1.7-1 0-.4-.1-.9-.1-1.3-.1-.5-.1-.9-.1-1.3 0-1.6 1.4-2.3 3.5-2.3h.9v1.9h-.5c-1 0-1.4 0-1.4.8 0 .3 0 .6.1 1 0 .2.1.6.1 1 0 1.3 0 1.8-1.3 2C6 11.2 6 11.7 6 13c0 .4-.1.8-.1 1.2-.1.3-.1.7-.1 1 0 .8.3.8 1.4.8h.5v1.9h-.9c-2.1 0-3.5-.6-3.5-2.3 0-.4.1-.9.1-1.3.1-.5.1-.9.1-1.3 0-.5-.2-1-1.7-1v-1.9z"/>\n <circle cx="11" cy="13.8" r="2.1"/>\n <circle cx="11" cy="8.2" r="2.1"/>\n </g>\n</svg>\n'}),ye=new b({name:"ui-components:julia",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 325 300">\n <g class="jp-brand0 jp-icon-selectable" fill="#cb3c33">\n <path d="M 150.898438 225 C 150.898438 266.421875 117.320312 300 75.898438 300 C 34.476562 300 0.898438 266.421875 0.898438 225 C 0.898438 183.578125 34.476562 150 75.898438 150 C 117.320312 150 150.898438 183.578125 150.898438 225"/>\n </g>\n <g class="jp-brand0 jp-icon-selectable" fill="#389826">\n <path d="M 237.5 75 C 237.5 116.421875 203.921875 150 162.5 150 C 121.078125 150 87.5 116.421875 87.5 75 C 87.5 33.578125 121.078125 0 162.5 0 C 203.921875 0 237.5 33.578125 237.5 75"/>\n </g>\n <g class="jp-brand0 jp-icon-selectable" fill="#9558b2">\n <path d="M 324.101562 225 C 324.101562 266.421875 290.523438 300 249.101562 300 C 207.679688 300 174.101562 266.421875 174.101562 225 C 174.101562 183.578125 207.679688 150 249.101562 150 C 290.523438 150 324.101562 183.578125 324.101562 225"/>\n </g>\n</svg>\n'}),xe=new b({name:"ui-components:jupyter-favicon",svgstr:'<svg width="152" height="165" viewBox="0 0 152 165" version="1.1" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-jupyter-icon-color" fill="#F37726">\n <path transform="translate(0.078947, 110.582927)" d="M75.9422842,29.5804561 C43.3023947,29.5804561 14.7967832,17.6534634 0,0 C5.51083211,15.8406829 15.7815389,29.5667732 29.3904947,39.2784171 C42.9997,48.9898537 59.2737,54.2067805 75.9605789,54.2067805 C92.6474579,54.2067805 108.921458,48.9898537 122.530663,39.2784171 C136.139453,29.5667732 146.410284,15.8406829 151.921158,0 C137.087868,17.6534634 108.582589,29.5804561 75.9422842,29.5804561 L75.9422842,29.5804561 Z" />\n <path transform="translate(0.037368, 0.704878)" d="M75.9784579,24.6264073 C108.618763,24.6264073 137.124458,36.5534415 151.921158,54.2067805 C146.410284,38.366222 136.139453,24.6401317 122.530663,14.9284878 C108.921458,5.2168439 92.6474579,0 75.9605789,0 C59.2737,0 42.9997,5.2168439 29.3904947,14.9284878 C15.7815389,24.6401317 5.51083211,38.366222 0,54.2067805 C14.8330816,36.5899293 43.3385684,24.6264073 75.9784579,24.6264073 L75.9784579,24.6264073 Z" />\n </g>\n</svg>\n'}),Ce=new b({name:"ui-components:jupyter",svgstr:'<svg width="39" height="51" viewBox="0 0 39 51" xmlns="http://www.w3.org/2000/svg">\n <g transform="translate(-1638 -2281)">\n <g class="jp-jupyter-icon-color" fill="#F37726">\n <path transform="translate(1639.74 2311.98)" d="M 18.2646 7.13411C 10.4145 7.13411 3.55872 4.2576 0 0C 1.32539 3.8204 3.79556 7.13081 7.0686 9.47303C 10.3417 11.8152 14.2557 13.0734 18.269 13.0734C 22.2823 13.0734 26.1963 11.8152 29.4694 9.47303C 32.7424 7.13081 35.2126 3.8204 36.538 0C 32.9705 4.2576 26.1148 7.13411 18.2646 7.13411Z"/>\n <path transform="translate(1639.73 2285.48)" d="M 18.2733 5.93931C 26.1235 5.93931 32.9793 8.81583 36.538 13.0734C 35.2126 9.25303 32.7424 5.94262 29.4694 3.6004C 26.1963 1.25818 22.2823 0 18.269 0C 14.2557 0 10.3417 1.25818 7.0686 3.6004C 3.79556 5.94262 1.32539 9.25303 0 13.0734C 3.56745 8.82463 10.4232 5.93931 18.2733 5.93931Z"/>\n </g>\n <g class="jp-icon3" fill="#616161">\n <path transform="translate(1669.3 2281.31)" d="M 5.89353 2.844C 5.91889 3.43165 5.77085 4.01367 5.46815 4.51645C 5.16545 5.01922 4.72168 5.42015 4.19299 5.66851C 3.6643 5.91688 3.07444 6.00151 2.49805 5.91171C 1.92166 5.8219 1.38463 5.5617 0.954898 5.16401C 0.52517 4.76633 0.222056 4.24903 0.0839037 3.67757C -0.0542483 3.10611 -0.02123 2.50617 0.178781 1.95364C 0.378793 1.4011 0.736809 0.920817 1.20754 0.573538C 1.67826 0.226259 2.24055 0.0275919 2.82326 0.00267229C 3.60389 -0.0307115 4.36573 0.249789 4.94142 0.782551C 5.51711 1.31531 5.85956 2.05676 5.89353 2.844Z"/>\n <path transform="translate(1639.8 2323.81)" d="M 7.42789 3.58338C 7.46008 4.3243 7.27355 5.05819 6.89193 5.69213C 6.51031 6.32607 5.95075 6.83156 5.28411 7.1446C 4.61747 7.45763 3.87371 7.56414 3.14702 7.45063C 2.42032 7.33712 1.74336 7.0087 1.20184 6.50695C 0.660328 6.0052 0.27861 5.35268 0.105017 4.63202C -0.0685757 3.91135 -0.0262361 3.15494 0.226675 2.45856C 0.479587 1.76217 0.931697 1.15713 1.52576 0.720033C 2.11983 0.282935 2.82914 0.0334395 3.56389 0.00313344C 4.54667 -0.0374033 5.50529 0.316706 6.22961 0.987835C 6.95393 1.65896 7.38484 2.59235 7.42789 3.58338L 7.42789 3.58338Z"/>\n <path transform="translate(1638.36 2286.06)" d="M 2.27471 4.39629C 1.84363 4.41508 1.41671 4.30445 1.04799 4.07843C 0.679268 3.8524 0.385328 3.52114 0.203371 3.12656C 0.0214136 2.73198 -0.0403798 2.29183 0.0258116 1.86181C 0.0920031 1.4318 0.283204 1.03126 0.575213 0.710883C 0.867222 0.39051 1.24691 0.164708 1.66622 0.0620592C 2.08553 -0.0405897 2.52561 -0.0154714 2.93076 0.134235C 3.33591 0.283941 3.68792 0.551505 3.94222 0.90306C 4.19652 1.25462 4.34169 1.67436 4.35935 2.10916C 4.38299 2.69107 4.17678 3.25869 3.78597 3.68746C 3.39516 4.11624 2.85166 4.37116 2.27471 4.39629L 2.27471 4.39629Z"/>\n </g>\n </g>>\n</svg>\n'}),_e=new b({name:"ui-components:jupyterlab-wordmark",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="200" viewBox="0 0 1860.8 475">\n <g class="jp-icon2" fill="#4E4E4E" transform="translate(480.136401, 64.271493)">\n <g transform="translate(0.000000, 58.875566)">\n <g transform="translate(0.087603, 0.140294)">\n <path d="M-426.9,169.8c0,48.7-3.7,64.7-13.6,76.4c-10.8,10-25,15.5-39.7,15.5l3.7,29 c22.8,0.3,44.8-7.9,61.9-23.1c17.8-18.5,24-44.1,24-83.3V0H-427v170.1L-426.9,169.8L-426.9,169.8z"/>\n </g>\n </g>\n <g transform="translate(155.045296, 56.837104)">\n <g transform="translate(1.562453, 1.799842)">\n <path d="M-312,148c0,21,0,39.5,1.7,55.4h-31.8l-2.1-33.3h-0.8c-6.7,11.6-16.4,21.3-28,27.9 c-11.6,6.6-24.8,10-38.2,9.8c-31.4,0-69-17.7-69-89V0h36.4v112.7c0,38.7,11.6,64.7,44.6,64.7c10.3-0.2,20.4-3.5,28.9-9.4 c8.5-5.9,15.1-14.3,18.9-23.9c2.2-6.1,3.3-12.5,3.3-18.9V0.2h36.4V148H-312L-312,148z"/>\n </g>\n </g>\n <g transform="translate(390.013322, 53.479638)">\n <g transform="translate(1.706458, 0.231425)">\n <path d="M-478.6,71.4c0-26-0.8-47-1.7-66.7h32.7l1.7,34.8h0.8c7.1-12.5,17.5-22.8,30.1-29.7 c12.5-7,26.7-10.3,41-9.8c48.3,0,84.7,41.7,84.7,103.3c0,73.1-43.7,109.2-91,109.2c-12.1,0.5-24.2-2.2-35-7.8 c-10.8-5.6-19.9-13.9-26.6-24.2h-0.8V291h-36v-220L-478.6,71.4L-478.6,71.4z M-442.6,125.6c0.1,5.1,0.6,10.1,1.7,15.1 c3,12.3,9.9,23.3,19.8,31.1c9.9,7.8,22.1,12.1,34.7,12.1c38.5,0,60.7-31.9,60.7-78.5c0-40.7-21.1-75.6-59.5-75.6 c-12.9,0.4-25.3,5.1-35.3,13.4c-9.9,8.3-16.9,19.7-19.6,32.4c-1.5,4.9-2.3,10-2.5,15.1V125.6L-442.6,125.6L-442.6,125.6z"/>\n </g>\n </g>\n <g transform="translate(606.740726, 56.837104)">\n <g transform="translate(0.751226, 1.989299)">\n <path d="M-440.8,0l43.7,120.1c4.5,13.4,9.5,29.4,12.8,41.7h0.8c3.7-12.2,7.9-27.7,12.8-42.4 l39.7-119.2h38.5L-346.9,145c-26,69.7-43.7,105.4-68.6,127.2c-12.5,11.7-27.9,20-44.6,23.9l-9.1-31.1 c11.7-3.9,22.5-10.1,31.8-18.1c13.2-11.1,23.7-25.2,30.6-41.2c1.5-2.8,2.5-5.7,2.9-8.8c-0.3-3.3-1.2-6.6-2.5-9.7L-480.2,0.1 h39.7L-440.8,0L-440.8,0z"/>\n </g>\n </g>\n <g transform="translate(822.748104, 0.000000)">\n <g transform="translate(1.464050, 0.378914)">\n <path d="M-413.7,0v58.3h52v28.2h-52V196c0,25,7,39.5,27.3,39.5c7.1,0.1,14.2-0.7,21.1-2.5 l1.7,27.7c-10.3,3.7-21.3,5.4-32.2,5c-7.3,0.4-14.6-0.7-21.3-3.4c-6.8-2.7-12.9-6.8-17.9-12.1c-10.3-10.9-14.1-29-14.1-52.9 V86.5h-31V58.3h31V9.6L-413.7,0L-413.7,0z"/>\n </g>\n </g>\n <g transform="translate(974.433286, 53.479638)">\n <g transform="translate(0.990034, 0.610339)">\n <path d="M-445.8,113c0.8,50,32.2,70.6,68.6,70.6c19,0.6,37.9-3,55.3-10.5l6.2,26.4 c-20.9,8.9-43.5,13.1-66.2,12.6c-61.5,0-98.3-41.2-98.3-102.5C-480.2,48.2-444.7,0-386.5,0c65.2,0,82.7,58.3,82.7,95.7 c-0.1,5.8-0.5,11.5-1.2,17.2h-140.6H-445.8L-445.8,113z M-339.2,86.6c0.4-23.5-9.5-60.1-50.4-60.1 c-36.8,0-52.8,34.4-55.7,60.1H-339.2L-339.2,86.6L-339.2,86.6z"/>\n </g>\n </g>\n <g transform="translate(1201.961058, 53.479638)">\n <g transform="translate(1.179640, 0.705068)">\n <path d="M-478.6,68c0-23.9-0.4-44.5-1.7-63.4h31.8l1.2,39.9h1.7c9.1-27.3,31-44.5,55.3-44.5 c3.5-0.1,7,0.4,10.3,1.2v34.8c-4.1-0.9-8.2-1.3-12.4-1.2c-25.6,0-43.7,19.7-48.7,47.4c-1,5.7-1.6,11.5-1.7,17.2v108.3h-36V68 L-478.6,68z"/>\n </g>\n </g>\n </g>\n\n <g class="jp-icon-warn0" fill="#F37726">\n <path d="M1352.3,326.2h37V28h-37V326.2z M1604.8,326.2c-2.5-13.9-3.4-31.1-3.4-48.7v-76 c0-40.7-15.1-83.1-77.3-83.1c-25.6,0-50,7.1-66.8,18.1l8.4,24.4c14.3-9.2,34-15.1,53-15.1c41.6,0,46.2,30.2,46.2,47v4.2 c-78.6-0.4-122.3,26.5-122.3,75.6c0,29.4,21,58.4,62.2,58.4c29,0,50.9-14.3,62.2-30.2h1.3l2.9,25.6H1604.8z M1565.7,257.7 c0,3.8-0.8,8-2.1,11.8c-5.9,17.2-22.7,34-49.2,34c-18.9,0-34.9-11.3-34.9-35.3c0-39.5,45.8-46.6,86.2-45.8V257.7z M1698.5,326.2 l1.7-33.6h1.3c15.1,26.9,38.7,38.2,68.1,38.2c45.4,0,91.2-36.1,91.2-108.8c0.4-61.7-35.3-103.7-85.7-103.7 c-32.8,0-56.3,14.7-69.3,37.4h-0.8V28h-36.6v245.7c0,18.1-0.8,38.6-1.7,52.5H1698.5z M1704.8,208.2c0-5.9,1.3-10.9,2.1-15.1 c7.6-28.1,31.1-45.4,56.3-45.4c39.5,0,60.5,34.9,60.5,75.6c0,46.6-23.1,78.1-61.8,78.1c-26.9,0-48.3-17.6-55.5-43.3 c-0.8-4.2-1.7-8.8-1.7-13.4V208.2z"/>\n </g>\n</svg>\n'}),Se=new b({name:"ui-components:kernel",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-icon2" fill="#616161" d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z"/>\n</svg>\n'}),je=new b({name:"ui-components:keyboard",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/>\n</svg>\n'}),ke=new b({name:"ui-components:launch",svgstr:'<svg viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3 jp-icon-selectable" fill="#616161">\n <path d="M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z"/>\n <polygon points="20 2 20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2"/>\n </g>\n</svg>\n'}),Ie=new b({name:"ui-components:launcher",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>\n</svg>\n'}),Me=new b({name:"ui-components:line-form",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path fill="white" d="M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z"/>\n</svg>\n'}),Le=new b({name:"ui-components:link",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>\n </g>\n</svg>\n'}),Ee=new b({name:"ui-components:list",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-icon2 jp-icon-selectable" fill="#616161" d="M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"/>\n</svg>\n'}),Te=new b({name:"ui-components:lock",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 23">\n <path class="jp-icon4" fill="#333333" d="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z" />\n</svg>\n'}),He=new b({name:"ui-components:markdown",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <path class="jp-icon-contrast0 jp-icon-selectable" fill="#7B1FA2" d="M5 14.9h12l-6.1 6zm9.4-6.8c0-1.3-.1-2.9-.1-4.5-.4 1.4-.9 2.9-1.3 4.3l-1.3 4.3h-2L8.5 7.9c-.4-1.3-.7-2.9-1-4.3-.1 1.6-.1 3.2-.2 4.6L7 12.4H4.8l.7-11h3.3L10 5c.4 1.2.7 2.7 1 3.9.3-1.2.7-2.6 1-3.9l1.2-3.7h3.3l.6 11h-2.4l-.3-4.2z"/>\n</svg>\n'}),Fe=new b({name:"ui-components:mermaid",svgstr:'<svg width="16" version="1.1" viewBox="0 0 491 675" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon-contrast2 jp-icon-selectable" fill="#ff3670">\n <path d="m85 92c-46 0-85 37-85 85v321c0 46 37 85 85 85h321c46 0 85-37 85-85v-321c0-46-37-85-85-85zm-2 111c72-3.1 139 41 162 109 25-67 91-112 162-109 2.4 57-25 111-72 144-24 16-39 44-39 74v51h-104v-51c0.08-29-15-57-39-74-47-32-75-86-72-144z"/>\n </g>\n</svg>\n'}),$e=new b({name:"ui-components:move-down",svgstr:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path class="jp-icon3" d="M12.471 7.52899C12.7632 7.23684 12.7632 6.76316 12.471 6.47101V6.47101C12.179 6.17905 11.7057 6.17884 11.4135 6.47054L7.75 10.1275V1.75C7.75 1.33579 7.41421 1 7 1V1C6.58579 1 6.25 1.33579 6.25 1.75V10.1275L2.59726 6.46822C2.30338 6.17381 1.82641 6.17359 1.53226 6.46774V6.46774C1.2383 6.7617 1.2383 7.2383 1.53226 7.53226L6.29289 12.2929C6.68342 12.6834 7.31658 12.6834 7.70711 12.2929L12.471 7.52899Z" fill="#616161"/>\n</svg>\n'}),Ae=new b({name:"ui-components:move-up",svgstr:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path class="jp-icon3" d="M1.52899 6.47101C1.23684 6.76316 1.23684 7.23684 1.52899 7.52899V7.52899C1.82095 7.82095 2.29426 7.82116 2.58649 7.52946L6.25 3.8725V12.25C6.25 12.6642 6.58579 13 7 13V13C7.41421 13 7.75 12.6642 7.75 12.25V3.8725L11.4027 7.53178C11.6966 7.82619 12.1736 7.82641 12.4677 7.53226V7.53226C12.7617 7.2383 12.7617 6.7617 12.4677 6.46774L7.70711 1.70711C7.31658 1.31658 6.68342 1.31658 6.29289 1.70711L1.52899 6.47101Z" fill="#616161"/>\n</svg>\n'}),ze=new b({name:"ui-components:new-folder",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/>\n </g>\n</svg>\n'}),Be=new b({name:"ui-components:not-trusted",svgstr:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 25 25">\n <path class="jp-icon2" stroke="#333333" stroke-width="2" transform="translate(3 3)" d="M1.86094 11.4409C0.826448 8.77027 0.863779 6.05764 1.24907 4.19932C2.48206 3.93347 4.08068 3.40347 5.60102 2.8449C7.23549 2.2444 8.85666 1.5815 9.9876 1.09539C11.0597 1.58341 12.6094 2.2444 14.218 2.84339C15.7503 3.41394 17.3995 3.95258 18.7539 4.21385C19.1364 6.07177 19.1709 8.77722 18.139 11.4409C17.0303 14.3032 14.6668 17.1844 9.99999 18.9354C5.33319 17.1844 2.96968 14.3032 1.86094 11.4409Z"/>\n <path class="jp-icon2" stroke="#333333" stroke-width="2" transform="translate(9.31592 9.32031)" d="M7.36842 0L0 7.36479"/>\n <path class="jp-icon2" stroke="#333333" stroke-width="2" transform="translate(9.31592 16.6836) scale(1 -1)" d="M7.36842 0L0 7.36479"/>\n</svg>\n'}),De=new b({name:"ui-components:notebook",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <g class="jp-notebook-icon-color jp-icon-selectable" fill="#EF6C00">\n <path d="M18.7 3.3v15.4H3.3V3.3h15.4m1.5-1.5H1.8v18.3h18.3l.1-18.3z"/>\n <path d="M16.5 16.5l-5.4-4.3-5.6 4.3v-11h11z"/>\n </g>\n</svg>\n'}),Oe=new b({name:"ui-components:numbering",svgstr:'<svg width="22" height="22" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">\n\t<g class="jp-icon3" fill="#616161">\n\t\t<path d="M4 19H6V19.5H5V20.5H6V21H4V22H7V18H4V19ZM5 10H6V6H4V7H5V10ZM4 13H5.8L4 15.1V16H7V15H5.2L7 12.9V12H4V13ZM9 7V9H23V7H9ZM9 21H23V19H9V21ZM9 15H23V13H9V15Z"/>\n\t</g>\n</svg>\n'}),Ne=new b({name:"ui-components:offline-bolt",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16">\n <g class="jp-icon3" fill="#616161">\n <path d="M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"/>\n </g>\n</svg>\n'}),Ve=new b({name:"ui-components:palette",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M18 13V20H4V6H9.02C9.07 5.29 9.24 4.62 9.5 4H4C2.9 4 2 4.9 2 6V20C2 21.1 2.9 22 4 22H18C19.1 22 20 21.1 20 20V15L18 13ZM19.3 8.89C19.74 8.19 20 7.38 20 6.5C20 4.01 17.99 2 15.5 2C13.01 2 11 4.01 11 6.5C11 8.99 13.01 11 15.49 11C16.37 11 17.19 10.74 17.88 10.3L21 13.42L22.42 12L19.3 8.89ZM15.5 9C14.12 9 13 7.88 13 6.5C13 5.12 14.12 4 15.5 4C16.88 4 18 5.12 18 6.5C18 7.88 16.88 9 15.5 9Z"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4 6H9.01894C9.00639 6.16502 9 6.33176 9 6.5C9 8.81577 10.211 10.8487 12.0343 12H9V14H16V12.9811C16.5703 12.9377 17.12 12.8207 17.6396 12.6396L18 13V20H4V6ZM8 8H6V10H8V8ZM6 12H8V14H6V12ZM8 16H6V18H8V16ZM9 16H16V18H9V16Z"/>\n </g>\n</svg>\n'}),Re=new b({name:"ui-components:paste",svgstr:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"/>\n </g>\n</svg>\n'}),Pe=new b({name:"ui-components:pdf",svgstr:'<svg\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" width="16">\n <path transform="rotate(45)" class="jp-icon-selectable" fill="#FF2A2A"\n d="m 22.344369,-3.0163642 h 5.638604 v 1.5792433 h -3.549227 v 1.50869299 h 3.337576 V 1.6508154 h -3.337576 v 3.4352613 h -2.089377 z m -7.136444,1.5792433 v 4.9439543 h 0.74892 q 1.280761,0 1.953703,-0.6349535 0.678369,-0.6349535 0.678369,-1.8451641 0,-1.20478355 -0.672942,-1.83431011 -0.672942,-0.62952659 -1.95913,-0.62952659 z m -2.089377,-1.5792433 h 2.203343 q 1.845164,0 2.746039,0.2659207 0.906301,0.2604937 1.552108,0.8900203 0.56983,0.5481223 0.846605,1.26448006 0.276774,0.71635781 0.276774,1.62265894 0,0.9171551 -0.276774,1.6389399 -0.276775,0.7163578 -0.846605,1.26448 -0.651234,0.6295266 -1.562962,0.8954473 -0.911728,0.2604937 -2.735185,0.2604937 h -2.203343 z m -8.1458565,0 h 3.467823 q 1.5466816,0 2.3715785,0.689223 0.830324,0.6837961 0.830324,1.95370314 0,1.27533397 -0.830324,1.96455706 Q 9.9871961,2.274915 8.4405145,2.274915 H 7.0620684 V 5.0860767 H 4.9726915 Z m 2.0893769,1.5141199 v 2.26303943 h 1.155941 q 0.6078188,0 0.9388629,-0.29305547 0.3310441,-0.29848241 0.3310441,-0.84117772 0,-0.54269531 -0.3310441,-0.83575074 -0.3310441,-0.2930555 -0.9388629,-0.2930555 z"\n/>\n</svg>\n'}),We=new b({name:"ui-components:python",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="-10 -10 131.16136169433594 132.38899993896484">\n <path class="jp-icon-selectable" fill="#306998" d="M 54.918785,9.1927421e-4 C 50.335132,0.02221727 45.957846,0.41313697 42.106285,1.0946693 30.760069,3.0991731 28.700036,7.2947714 28.700035,15.032169 v 10.21875 h 26.8125 v 3.40625 h -26.8125 -10.0625 c -7.792459,0 -14.6157588,4.683717 -16.7499998,13.59375 -2.46181998,10.212966 -2.57101508,16.586023 0,27.25 1.9059283,7.937852 6.4575432,13.593748 14.2499998,13.59375 h 9.21875 v -12.25 c 0,-8.849902 7.657144,-16.656248 16.75,-16.65625 h 26.78125 c 7.454951,0 13.406253,-6.138164 13.40625,-13.625 v -25.53125 c 0,-7.2663386 -6.12998,-12.7247771 -13.40625,-13.9374997 C 64.281548,0.32794397 59.502438,-0.02037903 54.918785,9.1927421e-4 Z m -14.5,8.21875012579 c 2.769547,0 5.03125,2.2986456 5.03125,5.1249996 -2e-6,2.816336 -2.261703,5.09375 -5.03125,5.09375 -2.779476,-1e-6 -5.03125,-2.277415 -5.03125,-5.09375 -10e-7,-2.826353 2.251774,-5.1249996 5.03125,-5.1249996 z"/>\n <path class="jp-icon-selectable" fill="#ffd43b" d="m 85.637535,28.657169 v 11.90625 c 0,9.230755 -7.825895,16.999999 -16.75,17 h -26.78125 c -7.335833,0 -13.406249,6.278483 -13.40625,13.625 v 25.531247 c 0,7.266344 6.318588,11.540324 13.40625,13.625004 8.487331,2.49561 16.626237,2.94663 26.78125,0 6.750155,-1.95439 13.406253,-5.88761 13.40625,-13.625004 V 86.500919 h -26.78125 v -3.40625 h 26.78125 13.406254 c 7.792461,0 10.696251,-5.435408 13.406241,-13.59375 2.79933,-8.398886 2.68022,-16.475776 0,-27.25 -1.92578,-7.757441 -5.60387,-13.59375 -13.406241,-13.59375 z m -15.0625,64.65625 c 2.779478,3e-6 5.03125,2.277417 5.03125,5.093747 -2e-6,2.826354 -2.251775,5.125004 -5.03125,5.125004 -2.76955,0 -5.03125,-2.29865 -5.03125,-5.125004 2e-6,-2.81633 2.261697,-5.093747 5.03125,-5.093747 z"/>\n</svg>\n'}),Ue=new b({name:"ui-components:r-kernel",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <path class="jp-icon-contrast3 jp-icon-selectable" fill="#2196F3" d="M4.4 2.5c1.2-.1 2.9-.3 4.9-.3 2.5 0 4.1.4 5.2 1.3 1 .7 1.5 1.9 1.5 3.5 0 2-1.4 3.5-2.9 4.1 1.2.4 1.7 1.6 2.2 3 .6 1.9 1 3.9 1.3 4.6h-3.8c-.3-.4-.8-1.7-1.2-3.7s-1.2-2.6-2.6-2.6h-.9v6.4H4.4V2.5zm3.7 6.9h1.4c1.9 0 2.9-.9 2.9-2.3s-1-2.3-2.8-2.3c-.7 0-1.3 0-1.6.2v4.5h.1v-.1z"/>\n</svg>\n'}),qe=new b({name:"ui-components:react",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="150 150 541.9 295.3">\n <g class="jp-icon-brand2 jp-icon-selectable" fill="#61DAFB">\n <path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/>\n <circle cx="420.9" cy="296.5" r="45.7"/>\n </g>\n</svg>\n'}),Ge=new b({name:"ui-components:redo",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="16">\n <g class="jp-icon3" fill="#616161">\n <path d="M0 0h24v24H0z" fill="none"/><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/>\n </g>\n</svg>\n'}),Ze=new b({name:"ui-components:refresh",svgstr:g}),Ke=new b({name:"ui-components:regex",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 20 20">\n <g class="jp-icon2" fill="#414141">\n <rect x="2" y="2" width="16" height="16"/>\n </g>\n\n <g class="jp-icon-accent2" fill="#FFF">\n <circle class="st2" cx="5.5" cy="14.5" r="1.5"/>\n <rect x="12" y="4" class="st2" width="1" height="8"/>\n <rect x="8.5" y="7.5" transform="matrix(0.866 -0.5 0.5 0.866 -2.3255 7.3219)" class="st2" width="8" height="1"/>\n <rect x="12" y="4" transform="matrix(0.5 -0.866 0.866 0.5 -0.6779 14.8252)" class="st2" width="1" height="8"/>\n </g>\n</svg>\n'}),Ye=new b({name:"ui-components:run",svgstr:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M8 5v14l11-7z"/>\n </g>\n</svg>\n'}),Je=new b({name:"ui-components:running",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512">\n <g class="jp-icon3" fill="#616161">\n <path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"/>\n </g>\n</svg>\n'}),Xe=new b({name:"ui-components:save",svgstr:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/>\n </g>\n</svg>\n'}),Qe=new b({name:"ui-components:search",svgstr:'<svg viewBox="0 0 18 18" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M12.1,10.9h-0.7l-0.2-0.2c0.8-0.9,1.3-2.2,1.3-3.5c0-3-2.4-5.4-5.4-5.4S1.8,4.2,1.8,7.1s2.4,5.4,5.4,5.4 c1.3,0,2.5-0.5,3.5-1.3l0.2,0.2v0.7l4.1,4.1l1.2-1.2L12.1,10.9z M7.1,10.9c-2.1,0-3.7-1.7-3.7-3.7s1.7-3.7,3.7-3.7s3.7,1.7,3.7,3.7 S9.2,10.9,7.1,10.9z"/>\n </g>\n</svg>\n'}),et=new b({name:"ui-components:settings",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-icon3 jp-icon-selectable" fill="#616161" d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0014 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/>\n</svg>\n'}),tt=new b({name:"ui-components:share",svgstr:'<svg width="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M 18 2 C 16.35499 2 15 3.3549904 15 5 C 15 5.1909529 15.021791 5.3771224 15.056641 5.5585938 L 7.921875 9.7207031 C 7.3985399 9.2778539 6.7320771 9 6 9 C 4.3549904 9 3 10.35499 3 12 C 3 13.64501 4.3549904 15 6 15 C 6.7320771 15 7.3985399 14.722146 7.921875 14.279297 L 15.056641 18.439453 C 15.021555 18.621514 15 18.808386 15 19 C 15 20.64501 16.35499 22 18 22 C 19.64501 22 21 20.64501 21 19 C 21 17.35499 19.64501 16 18 16 C 17.26748 16 16.601593 16.279328 16.078125 16.722656 L 8.9433594 12.558594 C 8.9782095 12.377122 9 12.190953 9 12 C 9 11.809047 8.9782095 11.622878 8.9433594 11.441406 L 16.078125 7.2792969 C 16.60146 7.7221461 17.267923 8 18 8 C 19.64501 8 21 6.6450096 21 5 C 21 3.3549904 19.64501 2 18 2 z M 18 4 C 18.564129 4 19 4.4358706 19 5 C 19 5.5641294 18.564129 6 18 6 C 17.435871 6 17 5.5641294 17 5 C 17 4.4358706 17.435871 4 18 4 z M 6 11 C 6.5641294 11 7 11.435871 7 12 C 7 12.564129 6.5641294 13 6 13 C 5.4358706 13 5 12.564129 5 12 C 5 11.435871 5.4358706 11 6 11 z M 18 18 C 18.564129 18 19 18.435871 19 19 C 19 19.564129 18.564129 20 18 20 C 17.435871 20 17 19.564129 17 19 C 17 18.435871 17.435871 18 18 18 z"/>\n </g>\n</svg>\n'}),nt=new b({name:"ui-components:spreadsheet",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <path class="jp-icon-contrast1 jp-icon-selectable" fill="#4CAF50" d="M2.2 2.2v17.6h17.6V2.2H2.2zm15.4 7.7h-5.5V4.4h5.5v5.5zM9.9 4.4v5.5H4.4V4.4h5.5zm-5.5 7.7h5.5v5.5H4.4v-5.5zm7.7 5.5v-5.5h5.5v5.5h-5.5z"/>\n</svg>\n'}),st=new b({name:"ui-components:stop",svgstr:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M6 6h12v12H6z"/>\n </g>\n</svg>\n'}),it=new b({name:"ui-components:tab",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <g class="jp-icon3" fill="#616161">\n <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/>\n </g>\n</svg>\n'}),rt=new b({name:"ui-components:table-rows",svgstr:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"/>\n </g>\n</svg>\n'}),ot=new b({name:"ui-components:tag",svgstr:'<svg width="28" height="28" viewBox="0 0 43 28" xmlns="http://www.w3.org/2000/svg">\n\t<g class="jp-icon3" fill="#616161">\n\t\t<path d="M28.8332 12.334L32.9998 16.5007L37.1665 12.334H28.8332Z"/>\n\t\t<path d="M16.2095 21.6104C15.6873 22.1299 14.8443 22.1299 14.3248 21.6104L6.9829 14.7245C6.5724 14.3394 6.08313 13.6098 6.04786 13.0482C5.95347 11.5288 6.02002 8.61944 6.06621 7.07695C6.08281 6.51477 6.55548 6.04347 7.11804 6.03055C9.08863 5.98473 13.2638 5.93579 13.6518 6.32425L21.7369 13.639C22.256 14.1585 21.7851 15.4724 21.262 15.9946L16.2095 21.6104ZM9.77585 8.265C9.33551 7.82566 8.62351 7.82566 8.1828 8.265C7.74346 8.70571 7.74346 9.41733 8.1828 9.85667C8.62382 10.2964 9.33582 10.2964 9.77585 9.85667C10.2156 9.41733 10.2156 8.70533 9.77585 8.265Z"/>\n\t</g>\n</svg>\n'}),at=new b({name:"ui-components:terminal",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24" >\n <rect class="jp-terminal-icon-background-color jp-icon-selectable" width="20" height="20" transform="translate(2 2)" fill="#333333"/>\n <path class="jp-terminal-icon-color jp-icon-selectable-inverse" d="M5.05664 8.76172C5.05664 8.59766 5.03125 8.45312 4.98047 8.32812C4.93359 8.19922 4.85547 8.08203 4.74609 7.97656C4.64062 7.87109 4.5 7.77539 4.32422 7.68945C4.15234 7.59961 3.94336 7.51172 3.69727 7.42578C3.30273 7.28516 2.94336 7.13672 2.61914 6.98047C2.29492 6.82422 2.01758 6.64258 1.78711 6.43555C1.56055 6.22852 1.38477 5.98828 1.25977 5.71484C1.13477 5.4375 1.07227 5.10938 1.07227 4.73047C1.07227 4.39844 1.12891 4.0957 1.24219 3.82227C1.35547 3.54492 1.51562 3.30469 1.72266 3.10156C1.92969 2.89844 2.17969 2.73437 2.47266 2.60938C2.76562 2.48438 3.0918 2.4043 3.45117 2.36914V1.10938H4.38867V2.38086C4.74023 2.42773 5.05664 2.52344 5.33789 2.66797C5.61914 2.8125 5.85742 3.00195 6.05273 3.23633C6.25195 3.4668 6.4043 3.74023 6.50977 4.05664C6.61914 4.36914 6.67383 4.7207 6.67383 5.11133H5.04492C5.04492 4.63867 4.9375 4.28125 4.72266 4.03906C4.50781 3.79297 4.2168 3.66992 3.84961 3.66992C3.65039 3.66992 3.47656 3.69727 3.32812 3.75195C3.18359 3.80273 3.06445 3.87695 2.9707 3.97461C2.87695 4.06836 2.80664 4.17969 2.75977 4.30859C2.7168 4.4375 2.69531 4.57812 2.69531 4.73047C2.69531 4.88281 2.7168 5.01953 2.75977 5.14062C2.80664 5.25781 2.88281 5.36719 2.98828 5.46875C3.09766 5.57031 3.24023 5.66797 3.41602 5.76172C3.5918 5.85156 3.81055 5.94336 4.07227 6.03711C4.4668 6.18555 4.82422 6.33984 5.14453 6.5C5.46484 6.65625 5.73828 6.83984 5.96484 7.05078C6.19531 7.25781 6.37109 7.5 6.49219 7.77734C6.61719 8.05078 6.67969 8.375 6.67969 8.75C6.67969 9.09375 6.62305 9.4043 6.50977 9.68164C6.39648 9.95508 6.23438 10.1914 6.02344 10.3906C5.8125 10.5898 5.55859 10.75 5.26172 10.8711C4.96484 10.9883 4.63281 11.0645 4.26562 11.0996V12.248H3.33398V11.0996C3.00195 11.0684 2.67969 10.9961 2.36719 10.8828C2.05469 10.7656 1.77734 10.5977 1.53516 10.3789C1.29688 10.1602 1.10547 9.88477 0.960938 9.55273C0.816406 9.2168 0.744141 8.81445 0.744141 8.3457H2.37891C2.37891 8.62695 2.41992 8.86328 2.50195 9.05469C2.58398 9.24219 2.68945 9.39258 2.81836 9.50586C2.95117 9.61523 3.10156 9.69336 3.26953 9.74023C3.4375 9.78711 3.60938 9.81055 3.78516 9.81055C4.20312 9.81055 4.51953 9.71289 4.73438 9.51758C4.94922 9.32227 5.05664 9.07031 5.05664 8.76172ZM13.418 12.2715H8.07422V11H13.418V12.2715Z" transform="translate(3.95264 6)" fill="white"/>\n</svg>\n'}),lt=new b({name:"ui-components:text-editor",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">\n <path class="jp-text-editor-icon-color jp-icon-selectable" fill="#616161" d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/>\n</svg>\n'}),ct=new b({name:"ui-components:toc",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g class="jp-icon3 jp-icon-selectable" fill="#616161">\n <path d="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z" />\n </g>\n</svg>\n'}),dt=new b({name:"ui-components:tree-view",svgstr:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"/>\n </g>\n</svg>\n'}),ht=new b({name:"ui-components:trusted",svgstr:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 25">\n <path class="jp-icon2" stroke="#333333" stroke-width="2" transform="translate(2 3)" d="M1.86094 11.4409C0.826448 8.77027 0.863779 6.05764 1.24907 4.19932C2.48206 3.93347 4.08068 3.40347 5.60102 2.8449C7.23549 2.2444 8.85666 1.5815 9.9876 1.09539C11.0597 1.58341 12.6094 2.2444 14.218 2.84339C15.7503 3.41394 17.3995 3.95258 18.7539 4.21385C19.1364 6.07177 19.1709 8.77722 18.139 11.4409C17.0303 14.3032 14.6668 17.1844 9.99999 18.9354C5.3332 17.1844 2.96968 14.3032 1.86094 11.4409Z"/>\n <path class="jp-icon2" fill="#333333" stroke="#333333" transform="translate(8 9.86719)" d="M2.86015 4.86535L0.726549 2.99959L0 3.63045L2.86015 6.13157L8 0.630872L7.27857 0L2.86015 4.86535Z"/>\n</svg>\n'}),pt=new b({name:"ui-components:undo",svgstr:'<svg viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>\n </g>\n</svg>\n'}),ut=new b({name:"ui-components:user",svgstr:'<svg width="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" fill="#616161">\n <path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>\n </g>\n</svg>\n'}),mt=new b({name:"ui-components:users",svgstr:'<svg width="24" height="24" version="1.1" viewBox="0 0 36 24" xmlns="http://www.w3.org/2000/svg">\n <g class="jp-icon3" transform="matrix(1.7327 0 0 1.7327 -3.6282 .099577)" fill="#616161">\n <path transform="matrix(1.5,0,0,1.5,0,-6)" d="m12.186 7.5098c-1.0535 0-1.9757 0.5665-2.4785 1.4102 0.75061 0.31277 1.3974 0.82648 1.873 1.4727h3.4863c0-1.592-1.2889-2.8828-2.8809-2.8828z"/>\n <path d="m20.465 2.3895a2.1885 2.1885 0 0 1-2.1884 2.1885 2.1885 2.1885 0 0 1-2.1885-2.1885 2.1885 2.1885 0 0 1 2.1885-2.1885 2.1885 2.1885 0 0 1 2.1884 2.1885z"/>\n <path transform="matrix(1.5,0,0,1.5,0,-6)" d="m3.5898 8.4219c-1.1126 0-2.0137 0.90111-2.0137 2.0137h2.8145c0.26797-0.37309 0.5907-0.70435 0.95898-0.97852-0.34433-0.61688-1.0031-1.0352-1.7598-1.0352z"/>\n <path d="m6.9154 4.623a1.5294 1.5294 0 0 1-1.5294 1.5294 1.5294 1.5294 0 0 1-1.5294-1.5294 1.5294 1.5294 0 0 1 1.5294-1.5294 1.5294 1.5294 0 0 1 1.5294 1.5294z"/>\n <path d="m6.135 13.535c0-3.2392 2.6259-5.865 5.865-5.865 3.2392 0 5.865 2.6259 5.865 5.865z"/>\n <circle cx="12" cy="3.7685" r="2.9685"/>\n </g>\n</svg>\n'}),gt=new b({name:"ui-components:vega",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <g class="jp-icon1 jp-icon-selectable" fill="#212121">\n <path d="M10.6 5.4l2.2-3.2H2.2v7.3l4-6.6z"/>\n <path d="M15.8 2.2l-4.4 6.6L7 6.3l-4.8 8v5.5h17.6V2.2h-4zm-7 15.4H5.5v-4.4h3.3v4.4zm4.4 0H9.8V9.8h3.4v7.8zm4.4 0h-3.4V6.5h3.4v11.1z"/>\n </g>\n</svg>\n'}),vt=new b({name:"ui-components:word",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 20 20">\n <g class="jp-icon2" fill="#414141">\n <rect x="2" y="2" width="16" height="16"/>\n </g>\n <g class="jp-icon-accent2" transform="translate(.43 .0401)" fill="#fff">\n <path d="m4.14 8.76q0.0682-1.89 2.42-1.89 1.16 0 1.68 0.42 0.567 0.41 0.567 1.16v3.47q0 0.462 0.514 0.462 0.103 0 0.2-0.0231v0.714q-0.399 0.103-0.651 0.103-0.452 0-0.693-0.22-0.231-0.2-0.284-0.662-0.956 0.872-2 0.872-0.903 0-1.47-0.472-0.525-0.472-0.525-1.26 0-0.262 0.0452-0.472 0.0567-0.22 0.116-0.378 0.0682-0.168 0.231-0.304 0.158-0.147 0.262-0.242 0.116-0.0914 0.368-0.168 0.262-0.0914 0.399-0.126 0.136-0.0452 0.472-0.103 0.336-0.0578 0.504-0.0798 0.158-0.0231 0.567-0.0798 0.556-0.0682 0.777-0.221 0.22-0.152 0.22-0.441v-0.252q0-0.43-0.357-0.662-0.336-0.231-0.976-0.231-0.662 0-0.998 0.262-0.336 0.252-0.399 0.798zm1.89 3.68q0.788 0 1.26-0.41 0.504-0.42 0.504-0.903v-1.05q-0.284 0.136-0.861 0.231-0.567 0.0914-0.987 0.158-0.42 0.0682-0.766 0.326-0.336 0.252-0.336 0.704t0.304 0.704 0.861 0.252z" stroke-width="1.05"/>\n <path d="m10 4.56h0.945v3.15q0.651-0.976 1.89-0.976 1.16 0 1.89 0.84 0.682 0.84 0.682 2.31 0 1.47-0.704 2.42-0.704 0.882-1.89 0.882-1.26 0-1.89-1.02v0.766h-0.85zm2.62 3.04q-0.746 0-1.16 0.64-0.452 0.63-0.452 1.68 0 1.05 0.452 1.68t1.16 0.63q0.777 0 1.26-0.63 0.494-0.64 0.494-1.68 0-1.05-0.472-1.68-0.462-0.64-1.26-0.64z" stroke-width="1.05"/>\n <path d="m2.73 15.8 13.6 0.0081c0.0069 0 0-2.6 0-2.6 0-0.0078-1.15 0-1.15 0-0.0069 0-0.0083 1.5-0.0083 1.5-2e-3 -0.0014-11.3-0.0014-11.3-0.0014l-0.00592-1.5c0-0.0078-1.17 0.0013-1.17 0.0013z" stroke-width=".975"/>\n </g>\n</svg>\n'}),ft=new b({name:"ui-components:yaml",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 22 22">\n <g class="jp-icon-contrast2 jp-icon-selectable" fill="#D81B60">\n <path d="M7.2 18.6v-5.4L3 5.6h3.3l1.4 3.1c.3.9.6 1.6 1 2.5.3-.8.6-1.6 1-2.5l1.4-3.1h3.4l-4.4 7.6v5.5l-2.9-.1z"/>\n <circle class="st0" cx="17.6" cy="16.5" r="2.1"/>\n <circle class="st0" cx="17.6" cy="11" r="2.1"/>\n </g>\n</svg>\n'}),wt="jp-Collapse-header-collapsed";class bt extends p.Widget{constructor(e){super(e),this._collapseChanged=new h.Signal(this);const{widget:t,collapsed:n=!0}=e;this.addClass("jp-Collapse"),this._header=new p.Widget,this._header.addClass("jp-Collapse-header"),n&&this._header.addClass(wt),this._header.node.appendChild(T.element({className:"jp-Collapser-icon"}));const s=document.createElement("span");s.classList.add("jp-Collapser-title"),s.textContent=t.title.label,this._header.node.appendChild(s),this._content=new p.Panel,this._content.addClass("jp-Collapse-contents");const i=new p.PanelLayout;this.layout=i,i.addWidget(this._header),i.addWidget(this._content),this.widget=t,this.collapsed=n}get widget(){return this._widget}set widget(e){const t=this._widget;t&&(t.title.changed.disconnect(this._onTitleChanged,this),t.parent=null),this._widget=e,e.title.changed.connect(this._onTitleChanged,this),this._onTitleChanged(e.title),this._content.addWidget(e)}get collapsed(){return this._collapsed}set collapsed(e){e!==this._collapsed&&(e?this._collapse():this._uncollapse())}get collapseChanged(){return this._collapseChanged}toggle(){this.collapsed=!this.collapsed}dispose(){this.isDisposed||(this._header=null,this._widget=null,this._content=null,super.dispose())}handleEvent(e){"click"===e.type&&this._evtClick(e)}onAfterAttach(e){this._header.node.addEventListener("click",this)}onBeforeDetach(e){this._header.node.removeEventListener("click",this)}_collapse(){this._collapsed=!0,this._content&&this._content.hide(),this._setHeader(),this._collapseChanged.emit(void 0)}_uncollapse(){this._collapsed=!1,this._content&&this._content.show(),this._setHeader(),this._collapseChanged.emit(void 0)}_evtClick(e){this.toggle()}_onTitleChanged(e){this._setHeader()}_setHeader(){this._collapsed?this._header.addClass(wt):this._header.removeClass(wt)}}var yt=n(12030),xt=n(24246),Ct=n(24885),_t=n(99729),St=n.n(_t),jt=n(90104),kt=n.n(jt),It=n(14648),Mt=n.n(It),Lt=n(40110),Et=n.n(Lt),Tt=n(30454),Ht=n.n(Tt),Ft=n(11611),$t=n.n(Ft),At=n(47215),zt=n.n(At);let Bt=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function Dt(){return Bt()}function Ot(e){return Array.isArray(e)?e.map((e=>({key:Dt(),item:e}))):[]}function Nt(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class Vt extends s.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:n}=t;let s=e.items;return(0,Ct.isFixedItems)(e)&&(0,Ct.allowAdditionalItems)(e)&&(s=e.additionalItems),n.getDefaultFormState(s)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let r;if(s){r={};for(const t in s){const n=parseInt(t);n<=e?zt()(r,[n],s[t]):n>e&&zt()(r,[n+1],s[t])}}const o={key:Dt(),item:Ht()(i[e].item)},a=[...i];void 0!==e?a.splice(e+1,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(()=>n(Nt(a),r)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let r;if(s){r={};for(const t in s){const n=parseInt(t);n<e?zt()(r,[n],s[t]):n>e&&zt()(r,[n-1],s[t])}}const o=i.filter(((t,n)=>n!==e));this.setState({keyedFormData:o,updatedKeyedFormData:!0},(()=>n(Nt(o),r)))},this.onReorderClick=(e,t)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:s,errorSchema:i}=this.props;let r;if(i){r={};for(const n in i){const s=parseInt(n);s==e?zt()(r,[t],i[e]):s==t?zt()(r,[e],i[t]):zt()(r,[n],i[s])}}const{keyedFormData:o}=this.state,a=function(){const n=o.slice();return n.splice(e,1),n.splice(t,0,o[e]),n}();this.setState({keyedFormData:a},(()=>s(Nt(a),r)))},this.onChangeForIndex=e=>(t,n,s)=>{const{formData:i,onChange:r,errorSchema:o}=this.props,a=(Array.isArray(i)?i:[]).map(((n,s)=>e===s?void 0===t?null:t:n));r(a,o&&o&&{...o,[e]:n},s)},this.onSelectChange=e=>{const{onChange:t,idSchema:n}=this.props;t(e,void 0,n&&n.$id)};const{formData:t=[]}=e,n=Ot(t);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(e.formData)?e.formData:[],s=t.keyedFormData||[];return{keyedFormData:n.length===s.length?s.map(((e,t)=>({key:e.key,item:n[t]}))):Ot(n)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:n}=t;return St()(e,[Ct.ITEMS_KEY,"title"],St()(e,[Ct.ITEMS_KEY,"description"],n(Ct.TranslatableString.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:n,registry:s}=this.props;let{addable:i}=(0,Ct.getUiOptions)(n,s.globalUiOptions);return!1!==i&&(i=void 0===t.maxItems||e.length<t.maxItems),i}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let r;if(s){r={};for(const e in s){const n=parseInt(e);void 0===t||n<t?zt()(r,[n],s[e]):n>=t&&zt()(r,[n+1],s[e])}}const o={key:Dt(),item:this._getNewFormDataRow()},a=[...i];void 0!==t?a.splice(t,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(()=>n(Nt(a),r)))}render(){const{schema:e,uiSchema:t,idSchema:n,registry:s}=this.props,{schemaUtils:i,translateString:r}=s;if(!(Ct.ITEMS_KEY in e)){const i=(0,Ct.getUiOptions)(t),o=(0,Ct.getTemplate)("UnsupportedFieldTemplate",s,i);return(0,xt.jsx)(o,{schema:e,idSchema:n,reason:r(Ct.TranslatableString.MissingItems),registry:s})}return i.isMultiSelect(e)?this.renderMultiSelect():(0,Ct.isCustomWidget)(t)?this.renderCustomWidget():(0,Ct.isFixedItems)(e)?this.renderFixedArray():i.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:n,idSchema:s,name:i,disabled:r=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,registry:c,onBlur:d,onFocus:h,idPrefix:p,idSeparator:u="_",rawErrors:m}=this.props,{keyedFormData:g}=this.state,v=void 0===e.title?i:e.title,{schemaUtils:f,formContext:w}=c,b=(0,Ct.getUiOptions)(t),y=$t()(e.items)?e.items:{},x=f.retrieveSchema(y),C=Nt(this.state.keyedFormData),_=this.canAddItem(C),S={canAdd:_,items:g.map(((e,r)=>{const{key:o,item:l}=e,c=l,v=f.retrieveSchema(y,c),w=n?n[r]:void 0,b=s.$id+u+r,x=f.toIdSchema(v,b,c,p,u);return this.renderArrayFieldItem({key:o,index:r,name:i&&`${i}-${r}`,canAdd:_,canMoveUp:r>0,canMoveDown:r<C.length-1,itemSchema:v,itemIdSchema:x,itemErrorSchema:w,itemData:c,itemUiSchema:t.items,autofocus:a&&0===r,onBlur:d,onFocus:h,rawErrors:m,totalItems:g.length})})),className:`field field-array field-array-of-${x.type}`,disabled:r,idSchema:s,uiSchema:t,onAddClick:this.onAddClick,readonly:o,required:l,schema:e,title:v,formContext:w,formData:C,rawErrors:m,registry:c},j=(0,Ct.getTemplate)("ArrayFieldTemplate",c,b);return(0,xt.jsx)(j,{...S})}renderCustomWidget(){var e;const{schema:t,idSchema:n,uiSchema:s,disabled:i=!1,readonly:r=!1,autofocus:o=!1,required:a=!1,hideError:l,placeholder:c,onBlur:d,onFocus:h,formData:p=[],registry:u,rawErrors:m,name:g}=this.props,{widgets:v,formContext:f,globalUiOptions:w,schemaUtils:b}=u,{widget:y,title:x,...C}=(0,Ct.getUiOptions)(s,w),_=(0,Ct.getWidget)(t,y,v),S=null!==(e=null!=x?x:t.title)&&void 0!==e?e:g,j=b.getDisplayLabel(t,s,w);return(0,xt.jsx)(_,{id:n.$id,name:g,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:h,options:C,schema:t,uiSchema:s,registry:u,value:p,disabled:i,readonly:r,hideError:l,required:a,label:S,hideLabel:!j,placeholder:c,formContext:f,autofocus:o,rawErrors:m})}renderMultiSelect(){var e;const{schema:t,idSchema:n,uiSchema:s,formData:i=[],disabled:r=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,placeholder:c,onBlur:d,onFocus:h,registry:p,rawErrors:u,name:m}=this.props,{widgets:g,schemaUtils:v,formContext:f,globalUiOptions:w}=p,b=v.retrieveSchema(t.items,i),y=(0,Ct.optionsList)(b),{widget:x="select",title:C,..._}=(0,Ct.getUiOptions)(s,w),S=(0,Ct.getWidget)(t,x,g),j=null!==(e=null!=C?C:t.title)&&void 0!==e?e:m,k=v.getDisplayLabel(t,s,w);return(0,xt.jsx)(S,{id:n.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:h,options:{..._,enumOptions:y},schema:t,uiSchema:s,registry:p,value:i,disabled:r,readonly:o,required:l,label:j,hideLabel:!k,placeholder:c,formContext:f,autofocus:a,rawErrors:u})}renderFiles(){var e;const{schema:t,uiSchema:n,idSchema:s,name:i,disabled:r=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,onBlur:c,onFocus:d,registry:h,formData:p=[],rawErrors:u}=this.props,{widgets:m,formContext:g,globalUiOptions:v,schemaUtils:f}=h,{widget:w="files",title:b,...y}=(0,Ct.getUiOptions)(n,v),x=(0,Ct.getWidget)(t,w,m),C=null!==(e=null!=b?b:t.title)&&void 0!==e?e:i,_=f.getDisplayLabel(t,n,v);return(0,xt.jsx)(x,{options:y,id:s.$id,name:i,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,schema:t,uiSchema:n,value:p,disabled:r,readonly:o,required:l,registry:h,formContext:g,autofocus:a,rawErrors:u,label:C,hideLabel:!_})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:n=[],errorSchema:s,idPrefix:i,idSeparator:r="_",idSchema:o,name:a,disabled:l=!1,readonly:c=!1,autofocus:d=!1,required:h=!1,registry:p,onBlur:u,onFocus:m,rawErrors:g}=this.props,{keyedFormData:v}=this.state;let{formData:f=[]}=this.props;const w=e.title||a,b=(0,Ct.getUiOptions)(t),{schemaUtils:y,formContext:x}=p,C=($t()(e.items)?e.items:[]).map(((e,t)=>y.retrieveSchema(e,n[t]))),_=$t()(e.additionalItems)?y.retrieveSchema(e.additionalItems,n):null;(!f||f.length<C.length)&&(f=f||[],f=f.concat(new Array(C.length-f.length)));const S=this.canAddItem(f)&&!!_,j={canAdd:S,className:"field field-array field-array-fixed-items",disabled:l,idSchema:o,formData:n,items:v.map(((n,l)=>{const{key:c,item:h}=n,p=h,w=l>=C.length,b=(w&&$t()(e.additionalItems)?y.retrieveSchema(e.additionalItems,p):C[l])||{},x=o.$id+r+l,_=y.toIdSchema(b,x,p,i,r),j=w?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},k=s?s[l]:void 0;return this.renderArrayFieldItem({key:c,index:l,name:a&&`${a}-${l}`,canAdd:S,canRemove:w,canMoveUp:l>=C.length+1,canMoveDown:w&&l<f.length-1,itemSchema:b,itemData:p,itemUiSchema:j,itemIdSchema:_,itemErrorSchema:k,autofocus:d&&0===l,onBlur:u,onFocus:m,rawErrors:g,totalItems:v.length})})),onAddClick:this.onAddClick,readonly:c,required:h,registry:p,schema:e,uiSchema:t,title:w,formContext:x,rawErrors:g},k=(0,Ct.getTemplate)("ArrayFieldTemplate",p,b);return(0,xt.jsx)(k,{...j})}renderArrayFieldItem(e){const{key:t,index:n,name:s,canAdd:i,canRemove:r=!0,canMoveUp:o,canMoveDown:a,itemSchema:l,itemData:c,itemUiSchema:d,itemIdSchema:h,itemErrorSchema:p,autofocus:u,onBlur:m,onFocus:g,rawErrors:v,totalItems:f}=e,{disabled:w,hideError:b,idPrefix:y,idSeparator:x,readonly:C,uiSchema:_,registry:S,formContext:j}=this.props,{fields:{ArraySchemaField:k,SchemaField:I},globalUiOptions:M}=S,L=k||I,{orderable:E=!0,removable:T=!0,copyable:H=!1}=(0,Ct.getUiOptions)(_,M),F={moveUp:E&&o,moveDown:E&&a,copy:H&&i,remove:T&&r,toolbar:!1};return F.toolbar=Object.keys(F).some((e=>F[e])),{children:(0,xt.jsx)(L,{name:s,index:n,schema:l,uiSchema:d,formData:c,formContext:j,errorSchema:p,idPrefix:y,idSeparator:x,idSchema:h,required:this.isItemRequired(l),onChange:this.onChangeForIndex(n),onBlur:m,onFocus:g,registry:S,disabled:w,readonly:C,hideError:b,autofocus:u,rawErrors:v}),className:"array-item",disabled:w,canAdd:i,hasCopy:F.copy,hasToolbar:F.toolbar,hasMoveUp:F.moveUp,hasMoveDown:F.moveDown,hasRemove:F.remove,index:n,totalItems:f,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:C,registry:S,schema:l,uiSchema:d}}}const Rt=Vt,Pt=function(e){var t,n;const{schema:s,name:i,uiSchema:r,idSchema:o,formData:a,registry:l,required:c,disabled:d,readonly:h,hideError:p,autofocus:u,onChange:m,onFocus:g,onBlur:v,rawErrors:f}=e,{title:w}=s,{widgets:b,formContext:y,translateString:x,globalUiOptions:C}=l,{widget:_="checkbox",title:S,label:j=!0,...k}=(0,Ct.getUiOptions)(r,C),I=(0,Ct.getWidget)(s,_,b),M=x(Ct.TranslatableString.YesLabel),L=x(Ct.TranslatableString.NoLabel);let E;const T=null!==(t=null!=S?S:w)&&void 0!==t?t:i;if(Array.isArray(s.oneOf))E=(0,Ct.optionsList)({oneOf:s.oneOf.map((e=>{if($t()(e))return{...e,title:e.title||(!0===e.const?M:L)}})).filter((e=>e))});else{const e=s,t=null!==(n=s.enum)&&void 0!==n?n:[!0,!1];E=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?M:L},{value:t[1],label:t[1]?M:L}]:(0,Ct.optionsList)({enum:t,enumNames:e.enumNames})}return(0,xt.jsx)(I,{options:{...k,enumOptions:E},schema:s,uiSchema:r,id:o.$id,name:i,onChange:m,onFocus:g,onBlur:v,label:T,hideLabel:!j,value:a,required:c,disabled:d,readonly:h,hideError:p,registry:l,formContext:y,autofocus:u,rawErrors:f})};var Wt=n(48159),Ut=n.n(Wt);class qt extends s.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:n}=this.state,{formData:s,onChange:i,registry:r}=this.props,{schemaUtils:o}=r,a=void 0!==e?parseInt(e,10):-1;if(a===t)return;const l=a>=0?n[a]:void 0,c=t>=0?n[t]:void 0;let d=o.sanitizeDataForNewSchema(l,c,s);d&&l&&(d=o.getDefaultFormState(l,d,"excludeObjectChildren")),i(d,void 0,this.getFieldId()),this.setState({selectedOption:a})};const{formData:t,options:n,registry:{schemaUtils:s}}=this.props,i=n.map((e=>s.retrieveSchema(e,t)));this.state={retrievedOptions:i,selectedOption:this.getMatchingOption(0,t,i)}}componentDidUpdate(e,t){const{formData:n,options:s,idSchema:i}=this.props,{selectedOption:r}=this.state;let o=this.state;if(!(0,Ct.deepEquals)(e.options,s)){const{registry:{schemaUtils:e}}=this.props;o={selectedOption:r,retrievedOptions:s.map((t=>e.retrieveSchema(t,n)))}}if(!(0,Ct.deepEquals)(n,e.formData)&&i.$id===e.idSchema.$id){const{retrievedOptions:e}=o,s=this.getMatchingOption(r,n,e);t&&s!==r&&(o={selectedOption:s,retrievedOptions:e})}o!==this.state&&this.setState(o)}getMatchingOption(e,t,n){const{schema:s,registry:{schemaUtils:i}}=this.props,r=(0,Ct.getDiscriminatorFieldFromSchema)(s);return i.getClosestMatchingOption(t,n,e,r)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:n={},formContext:s,onBlur:i,onFocus:r,registry:o,schema:a,uiSchema:l}=this.props,{widgets:c,fields:d,translateString:h,globalUiOptions:p,schemaUtils:u}=o,{SchemaField:m}=d,{selectedOption:g,retrievedOptions:v}=this.state,{widget:f="select",placeholder:w,autofocus:b,autocomplete:y,title:x=a.title,...C}=(0,Ct.getUiOptions)(l,p),_=(0,Ct.getWidget)({type:"number"},f,c),S=St()(n,Ct.ERRORS_KEY,[]),j=Ut()(n,[Ct.ERRORS_KEY]),k=u.getDisplayLabel(a,l,p),I=g>=0&&v[g]||null;let M;if(I){const{required:e}=a;M=e?(0,Ct.mergeSchemas)({required:e},I):I}const L=x?Ct.TranslatableString.TitleOptionPrefix:Ct.TranslatableString.OptionPrefix,E=x?[x]:[],T=v.map(((e,t)=>({label:e.title||h(L,E.concat(String(t+1))),value:t})));return(0,xt.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,xt.jsx)("div",{className:"form-group",children:(0,xt.jsx)(_,{id:this.getFieldId(),name:`${e}${a.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:i,onFocus:r,disabled:t||kt()(T),multiple:!1,rawErrors:S,errorSchema:j,value:g>=0?g:void 0,options:{enumOptions:T,...C},registry:o,formContext:s,placeholder:w,autocomplete:y,autofocus:b,label:null!=x?x:e,hideLabel:!k})}),null!==I&&(0,xt.jsx)(m,{...this.props,schema:M})]})}}const Gt=qt,Zt=/\.([0-9]*0)*$/,Kt=/[0.]0*$/,Yt=function(e){const{registry:t,onChange:n,formData:i,value:r}=e,[o,a]=(0,s.useState)(r),{StringField:l}=t.fields;let c=i;const d=(0,s.useCallback)((e=>{a(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const t="string"==typeof e&&e.match(Zt)?(0,Ct.asNumber)(e.replace(Kt,"")):(0,Ct.asNumber)(e);n(t)}),[n]);if("string"==typeof o&&"number"==typeof c){const e=new RegExp(`${c}`.replace(".","\\.")+"\\.?0*$");o.match(e)&&(c=o)}return(0,xt.jsx)(l,{...e,formData:c,onChange:d})};function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Jt.apply(this,arguments)}const Xt=["children","options"],Qt=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),en={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},tn=["style","script"],nn=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,sn=/mailto:/i,rn=/\n{2,}$/,on=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,an=/^ *> ?/gm,ln=/^ {2,}\n/,cn=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,dn=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,hn=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pn=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,un=/^(?:\n *)*\n/,mn=/\r\n?/g,gn=/^\[\^([^\]]+)](:.*)\n/,vn=/^\[\^([^\]]+)]/,fn=/\f/g,wn=/^\s*?\[(x|\s)\]/,bn=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yn=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,xn=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Cn=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,_n=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sn=/^<!--[\s\S]*?(?:-->)/,jn=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,kn=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,In=/^\{.*\}$/,Mn=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ln=/^<([^ >]+@[^ >]+)>/,En=/^<([^ >]+:\/[^ >]+)>/,Tn=/-([a-z])?/gi,Hn=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Fn=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,$n=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,An=/^\[([^\]]*)\] ?\[([^\]]*)\]/,zn=/(\[|\])/g,Bn=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Dn=/\t/g,On=/^ *\| */,Nn=/(^ *\||\| *$)/g,Vn=/ *$/,Rn=/^ *:-+: *$/,Pn=/^ *:-+ *$/,Wn=/^ *-+: *$/,Un=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,qn=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Gn=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,Zn=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Kn=/^\\([^0-9A-Za-z\s])/,Yn=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Jn=/^\n+/,Xn=/^([ \t]*)/,Qn=/\\([^\\])/g,es=/ *\n+$/,ts=/(?:^|\n)( *)$/,ns="(?:\\d+\\.)",ss="(?:[*+-])";function is(e){return"( *)("+(1===e?ns:ss)+") +"}const rs=is(1),os=is(2);function as(e){return new RegExp("^"+(1===e?rs:os))}const ls=as(1),cs=as(2);function ds(e){return new RegExp("^"+(1===e?rs:os)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ns:ss)+" )[^\\n]*)*(\\n|$)","gm")}const hs=ds(1),ps=ds(2);function us(e){const t=1===e?ns:ss;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ms=us(1),gs=us(2);function vs(e,t){const n=1===t,s=n?ms:gs,i=n?hs:ps,r=n?ls:cs;return{t(e,t,n){const i=ts.exec(n);return i&&(t.o||!t._&&!t.u)?s.exec(e=i[1]+e):null},i:Vs.HIGH,l(e,t,s){const o=n?+e[2]:void 0,a=e[0].replace(rn,"\n").match(i);let l=!1;return{p:a.map((function(e,n){const i=r.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),c=e.replace(o,"").replace(r,""),d=n===a.length-1,h=-1!==c.indexOf("\n\n")||d&&l;l=h;const p=s._,u=s.o;let m;s.o=!0,h?(s._=!1,m=c.replace(es,"\n\n")):(s._=!0,m=c.replace(es,""));const g=t(m,s);return s._=p,s.o=u,g})),m:n,g:o}},h:(t,n,s)=>e(t.m?"ol":"ul",{key:s.k,start:t.g},t.p.map((function(t,i){return e("li",{key:i},n(t,s))})))}}const fs=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ws=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bs=[on,dn,hn,bn,xn,yn,Sn,Hn,hs,ms,ps,gs],ys=[...bs,/^[^\n]+(?: \n|\n{2,})/,Cn,kn];function xs(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Cs(e){return Wn.test(e)?"right":Rn.test(e)?"center":Pn.test(e)?"left":null}function _s(e,t,n){const s=n.$;n.$=!0;const i=t(e.trim(),n);n.$=s;let r=[[]];return i.forEach((function(e,t){"tableSeparator"===e.type?0!==t&&t!==i.length-1&&r.push([]):("text"!==e.type||null!=i[t+1]&&"tableSeparator"!==i[t+1].type||(e.v=e.v.replace(Vn,"")),r[r.length-1].push(e))})),r}function Ss(e,t,n){n._=!0;const s=_s(e[1],t,n),i=e[2].replace(Nn,"").split("|").map(Cs),r=function(e,t,n){return e.trim().split("\n").map((function(e){return _s(e,t,n)}))}(e[3],t,n);return n._=!1,{S:i,A:r,L:s,type:"table"}}function js(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function ks(e){return function(t,n){return n._?e.exec(t):null}}function Is(e){return function(t,n){return n._||n.u?e.exec(t):null}}function Ms(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Ls(e){return function(t){return e.exec(t)}}function Es(e,t,n){if(t._||t.u)return null;if(n&&!n.endsWith("\n"))return null;let s="";e.split("\n").every((e=>!bs.some((t=>t.test(e)))&&(s+=e+"\n",e.trim())));const i=s.trimEnd();return""==i?null:[s,i]}function Ts(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function Hs(e){return e.replace(Qn,"$1")}function Fs(e,t,n){const s=n._||!1,i=n.u||!1;n._=!0,n.u=!0;const r=e(t,n);return n._=s,n.u=i,r}function $s(e,t,n){const s=n._||!1,i=n.u||!1;n._=!1,n.u=!0;const r=e(t,n);return n._=s,n.u=i,r}function As(e,t,n){return n._=!1,e(t,n)}const zs=(e,t,n)=>({v:Fs(t,e[1],n)});function Bs(){return{}}function Ds(){return null}function Os(...e){return e.filter(Boolean).join(" ")}function Ns(e,t,n){let s=e;const i=t.split(".");for(;i.length&&(s=s[i[0]],void 0!==s);)i.shift();return s||n}var Vs,Rs;function Ps(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||xs,t.namedCodesToUnicode=t.namedCodesToUnicode?Jt({},en,t.namedCodesToUnicode):en;const n=t.createElement||s.createElement;function i(e,s,...i){const r=Ns(t.overrides,`${e}.props`,{});return n(function(e,t){const n=Ns(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Ns(t,`${e}.component`,e):e}(e,t.overrides),Jt({},s,r,{className:Os(null==s?void 0:s.className,r.className)||void 0}),...i)}function r(e){let n=!1;t.forceInline?n=!0:t.forceBlock||(n=!1===Bn.test(e));const r=h(d(n?e:`${e.trimEnd().replace(Jn,"")}\n\n`,{_:n}));for(;"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===t.wrapper)return r;const o=t.wrapper||(n?"span":"div");let a;if(r.length>1||t.forceWrapper)a=r;else{if(1===r.length)return a=r[0],"string"==typeof a?i("span",{key:"outer"},a):a;a=null}return s.createElement(o,{key:"outer"},a)}function o(e){const t=e.match(nn);return t?t.reduce((function(e,t,n){const i=t.indexOf("=");if(-1!==i){const a=(o=t.slice(0,i),-1!==o.indexOf("-")&&null===o.match(jn)&&(o=o.replace(Tn,(function(e,t){return t.toUpperCase()}))),o).trim(),l=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(i+1).trim()),c=Qt[a]||a,d=e[c]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(n.length+1).trim(),e}),{}):"href"===e?Ts(t):(t.match(In)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(a,l);"string"==typeof d&&(Cn.test(d)||kn.test(d))&&(e[c]=s.cloneElement(r(d.trim()),{key:n}))}else"style"!==t&&(e[Qt[t]||t]=!0);var o;return e}),{}):null}const a=[],l={},c={blockQuote:{t:Ms(on),i:Vs.HIGH,l:(e,t,n)=>({v:t(e[0].replace(an,""),n)}),h:(e,t,n)=>i("blockquote",{key:n.k},t(e.v,n))},breakLine:{t:Ls(ln),i:Vs.HIGH,l:Bs,h:(e,t,n)=>i("br",{key:n.k})},breakThematic:{t:Ms(cn),i:Vs.HIGH,l:Bs,h:(e,t,n)=>i("hr",{key:n.k})},codeBlock:{t:Ms(hn),i:Vs.MAX,l:e=>({v:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,n)=>i("pre",{key:n.k},i("code",Jt({},e.O,{className:e.M?`lang-${e.M}`:""}),e.v))},codeFenced:{t:Ms(dn),i:Vs.MAX,l:e=>({O:o(e[3]||""),v:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:Is(pn),i:Vs.LOW,l:e=>({v:e[2]}),h:(e,t,n)=>i("code",{key:n.k},e.v)},footnote:{t:Ms(gn),i:Vs.MAX,l:e=>(a.push({I:e[2],j:e[1]}),{}),h:Ds},footnoteReference:{t:ks(vn),i:Vs.HIGH,l:e=>({v:e[1],B:`#${t.slugify(e[1])}`}),h:(e,t,n)=>i("a",{key:n.k,href:Ts(e.B)},i("sup",{key:n.k},e.v))},gfmTask:{t:ks(wn),i:Vs.HIGH,l:e=>({R:"x"===e[1].toLowerCase()}),h:(e,t,n)=>i("input",{checked:e.R,key:n.k,readOnly:!0,type:"checkbox"})},heading:{t:Ms(t.enforceAtxHeadings?yn:bn),i:Vs.HIGH,l:(e,n,s)=>({v:Fs(n,e[2],s),T:t.slugify(e[2]),C:e[1].length}),h:(e,t,n)=>i(`h${e.C}`,{id:e.T,key:n.k},t(e.v,n))},headingSetext:{t:Ms(xn),i:Vs.MAX,l:(e,t,n)=>({v:Fs(t,e[1],n),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:Ls(Sn),i:Vs.HIGH,l:()=>({}),h:Ds},image:{t:Is(ws),i:Vs.HIGH,l:e=>({D:e[1],B:Hs(e[2]),F:e[3]}),h:(e,t,n)=>i("img",{key:n.k,alt:e.D||void 0,title:e.F||void 0,src:Ts(e.B)})},link:{t:ks(fs),i:Vs.LOW,l:(e,t,n)=>({v:$s(t,e[1],n),B:Hs(e[2]),F:e[3]}),h:(e,t,n)=>i("a",{key:n.k,href:Ts(e.B),title:e.F},t(e.v,n))},linkAngleBraceStyleDetector:{t:ks(En),i:Vs.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.N?null:ks(Mn)(e,t),i:Vs.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],F:void 0,type:"link"})},linkMailtoDetector:{t:ks(Ln),i:Vs.MAX,l(e){let t=e[1],n=e[1];return sn.test(n)||(n="mailto:"+n),{v:[{v:t.replace("mailto:",""),type:"text"}],B:n,type:"link"}}},orderedList:vs(i,1),unorderedList:vs(i,2),newlineCoalescer:{t:Ms(un),i:Vs.LOW,l:Bs,h:()=>"\n"},paragraph:{t:Es,i:Vs.LOW,l:zs,h:(e,t,n)=>i("p",{key:n.k},t(e.v,n))},ref:{t:ks(Fn),i:Vs.MAX,l:e=>(l[e[1]]={B:e[2],F:e[4]},{}),h:Ds},refImage:{t:Is($n),i:Vs.MAX,l:e=>({D:e[1]||void 0,P:e[2]}),h:(e,t,n)=>i("img",{key:n.k,alt:e.D,src:Ts(l[e.P].B),title:l[e.P].F})},refLink:{t:ks(An),i:Vs.MAX,l:(e,t,n)=>({v:t(e[1],n),Z:t(e[0].replace(zn,"\\$1"),n),P:e[2]}),h:(e,t,n)=>l[e.P]?i("a",{key:n.k,href:Ts(l[e.P].B),title:l[e.P].F},t(e.v,n)):i("span",{key:n.k},t(e.Z,n))},table:{t:Ms(Hn),i:Vs.HIGH,l:Ss,h:(e,t,n)=>i("table",{key:n.k},i("thead",null,i("tr",null,e.L.map((function(s,r){return i("th",{key:r,style:js(e,r)},t(s,n))})))),i("tbody",null,e.A.map((function(s,r){return i("tr",{key:r},s.map((function(s,r){return i("td",{key:r,style:js(e,r)},t(s,n))})))}))))},tableSeparator:{t:function(e,t){return t.$?(t._=!0,On.exec(e)):null},i:Vs.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Ls(Yn),i:Vs.MIN,l:e=>({v:e[0].replace(_n,((e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e))}),h:e=>e.v},textBolded:{t:Is(Un),i:Vs.MED,l:(e,t,n)=>({v:t(e[2],n)}),h:(e,t,n)=>i("strong",{key:n.k},t(e.v,n))},textEmphasized:{t:Is(qn),i:Vs.LOW,l:(e,t,n)=>({v:t(e[2],n)}),h:(e,t,n)=>i("em",{key:n.k},t(e.v,n))},textEscaped:{t:Is(Kn),i:Vs.HIGH,l:e=>({v:e[1],type:"text"})},textMarked:{t:Is(Gn),i:Vs.LOW,l:zs,h:(e,t,n)=>i("mark",{key:n.k},t(e.v,n))},textStrikethroughed:{t:Is(Zn),i:Vs.LOW,l:zs,h:(e,t,n)=>i("del",{key:n.k},t(e.v,n))}};!0!==t.disableParsingRawHTML&&(c.htmlBlock={t:Ls(Cn),i:Vs.HIGH,l(e,t,n){const[,s]=e[3].match(Xn),i=new RegExp(`^${s}`,"gm"),r=e[3].replace(i,""),a=(l=r,ys.some((e=>e.test(l)))?As:Fs);var l;const c=e[1].toLowerCase(),d=-1!==tn.indexOf(c);n.N=n.N||"a"===c;const h=d?e[3]:a(t,r,n);return n.N=!1,{O:o(e[2]),v:h,G:d,H:d?c:e[1]}},h:(e,t,n)=>i(e.H,Jt({key:n.k},e.O),e.G?e.v:t(e.v,n))},c.htmlSelfClosing={t:Ls(kn),i:Vs.HIGH,l:e=>({O:o(e[2]||""),H:e[1]}),h:(e,t,n)=>i(e.H,Jt({},e.O,{key:n.k}))});const d=function(e){let t=Object.keys(e);function n(s,i){let r=[],o="";for(;s;){let a=0;for(;a<t.length;){const l=t[a],c=e[l],d=c.t(s,i,o);if(d){const e=d[0];s=s.substring(e.length);const t=c.l(d,n,i);null==t.type&&(t.type=l),r.push(t),o=e;break}a++}}return r}return t.sort((function(t,n){let s=e[t].i,i=e[n].i;return s!==i?s-i:t<n?-1:1})),function(e,t){return n(function(e){return e.replace(mn,"\n").replace(fn,"").replace(Dn," ")}(e),t)}}(c),h=(p=c,u=function(e,t,n){return p[e.type].h(e,t,n)},function e(t,n={}){if(Array.isArray(t)){const s=n.k,i=[];let r=!1;for(let s=0;s<t.length;s++){n.k=s;const o=e(t[s],n),a="string"==typeof o;a&&r?i[i.length-1]+=o:null!==o&&i.push(o),r=a}return n.k=s,i}return u(t,e,n)});var p,u;const m=r(e);return a.length?i("div",null,m,i("footer",{key:"footer"},a.map((function(e){return i("div",{id:t.slugify(e.j),key:e.j},e.j,h(d(e.I,{_:!0})))})))):m}(Rs=Vs||(Vs={}))[Rs.MAX=0]="MAX",Rs[Rs.HIGH=1]="HIGH",Rs[Rs.MED=2]="MED",Rs[Rs.LOW=3]="LOW",Rs[Rs.MIN=4]="MIN";const Ws=e=>{let{children:t,options:n}=e,i=function(e,t){if(null==e)return{};var n,s,i={},r=Object.keys(e);for(s=0;s<r.length;s++)t.indexOf(n=r[s])>=0||(i[n]=e[n]);return i}(e,Xt);return s.cloneElement(Ps(t,n),i)};var Us=n(73915),qs=n.n(Us),Gs=n(43551),Zs=n.n(Gs);class Ks extends s.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(n,s,i)=>{const{formData:r,onChange:o,errorSchema:a}=this.props;void 0===n&&t&&(n=""),o({...r,[e]:n},a&&a&&{...a,[e]:s},i)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:n,formData:s}=this.props,i={...s};Zs()(i,e),n(i)},this.getAvailableKey=(e,t)=>{const{uiSchema:n,registry:s}=this.props,{duplicateKeySuffixSeparator:i="-"}=(0,Ct.getUiOptions)(n,s.globalUiOptions);let r=0,o=e;for(;qs()(t,o);)o=`${e}${i}${++r}`;return o},this.onKeyChange=e=>(t,n)=>{if(e===t)return;const{formData:s,onChange:i,errorSchema:r}=this.props;t=this.getAvailableKey(t,s);const o={...s},a={[e]:t},l=Object.keys(o).map((e=>({[a[e]||e]:o[e]}))),c=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),i(c,r&&r&&{...r,[t]:n})},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:n,registry:s}=this.props,i={...t};let r;if($t()(e.additionalProperties)){r=e.additionalProperties.type;let n=e.additionalProperties;if(Ct.REF_KEY in n){const{schemaUtils:e}=s;n=e.retrieveSchema({$ref:n[Ct.REF_KEY]},t),r=n.type}r||!(Ct.ANY_OF_KEY in n)&&!(Ct.ONE_OF_KEY in n)||(r="object")}const o=this.getAvailableKey("newKey",i);zt()(i,o,this.getDefaultValue(r)),n(i)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(Ct.TranslatableString.NewStringDefault)}}render(){var e,t,n;const{schema:s,uiSchema:i={},formData:r,errorSchema:o,idSchema:a,name:l,required:c=!1,disabled:d=!1,readonly:h=!1,hideError:p,idPrefix:u,idSeparator:m,onBlur:g,onFocus:v,registry:f}=this.props,{fields:w,formContext:b,schemaUtils:y,translateString:x,globalUiOptions:C}=f,{SchemaField:_}=w,S=y.retrieveSchema(s,r),j=(0,Ct.getUiOptions)(i,C),{properties:k={}}=S,I=null!==(t=null!==(e=j.title)&&void 0!==e?e:S.title)&&void 0!==t?t:l,M=null!==(n=j.description)&&void 0!==n?n:S.description;let L;try{const e=Object.keys(k);L=(0,Ct.orderProperties)(e,j.order)}catch(e){return(0,xt.jsxs)("div",{children:[(0,xt.jsx)("p",{className:"config-error",style:{color:"red"},children:(0,xt.jsx)(Ws,{children:x(Ct.TranslatableString.InvalidObjectField,[l||"root",e.message])})}),(0,xt.jsx)("pre",{children:JSON.stringify(S)})]})}const E=(0,Ct.getTemplate)("ObjectFieldTemplate",f,j),T={title:!1===j.label?"":I,description:!1===j.label?void 0:M,properties:L.map((e=>{const t=qs()(S,[Ct.PROPERTIES_KEY,e,Ct.ADDITIONAL_PROPERTY_FLAG]),n=t?i.additionalProperties:i[e],s="hidden"===(0,Ct.getUiOptions)(n).widget,l=St()(a,[e],{});return{content:(0,xt.jsx)(_,{name:e,required:this.isRequired(e),schema:St()(S,[Ct.PROPERTIES_KEY,e],{}),uiSchema:n,errorSchema:St()(o,e),idSchema:l,idPrefix:u,idSeparator:m,formData:St()(r,e),formContext:b,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:g,onFocus:v,registry:f,disabled:d,readonly:h,hideError:p,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:h,disabled:d,required:c,hidden:s}})),readonly:h,disabled:d,required:c,idSchema:a,uiSchema:i,errorSchema:o,schema:S,formData:r,formContext:b,registry:f};return(0,xt.jsx)(E,{...T,onAddClick:this.handleAddClick})}}const Ys=Ks,Js={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Xs(e){const{schema:t,idSchema:n,uiSchema:i,formData:r,errorSchema:o,idPrefix:a,idSeparator:l,name:c,onChange:d,onKeyChange:h,onDropPropertyClick:p,required:u,registry:m,wasPropertyKeyModified:g=!1}=e,{formContext:v,schemaUtils:f,globalUiOptions:w}=m,b=(0,Ct.getUiOptions)(i,w),y=(0,Ct.getTemplate)("FieldTemplate",m,b),x=(0,Ct.getTemplate)("DescriptionFieldTemplate",m,b),C=(0,Ct.getTemplate)("FieldHelpTemplate",m,b),_=(0,Ct.getTemplate)("FieldErrorTemplate",m,b),S=f.retrieveSchema(t,r),j=n[Ct.ID_KEY],k=(0,Ct.mergeObjects)(f.toIdSchema(S,j,r,a,l),n),I=(0,s.useCallback)(((e,t,n)=>d(e,t,n||j)),[j,d]),M=function(e,t,n,s){const i=t.field,{fields:r,translateString:o}=s;if("function"==typeof i)return i;if("string"==typeof i&&i in r)return r[i];const a=(0,Ct.getSchemaType)(e),l=Array.isArray(a)?a[0]:a||"",c=e.$id;let d=Js[l];return c&&c in r&&(d=c),d||!e.anyOf&&!e.oneOf?d in r?r[d]:()=>{const i=(0,Ct.getTemplate)("UnsupportedFieldTemplate",s,t);return(0,xt.jsx)(i,{schema:e,idSchema:n,reason:o(Ct.TranslatableString.UnknownFieldType,[String(e.type)]),registry:s})}:()=>null}(S,b,k,m),L=Boolean(e.disabled||b.disabled),E=Boolean(e.readonly||b.readonly||e.schema.readOnly||S.readOnly),T=b.hideError,H=void 0===T?e.hideError:Boolean(T),F=Boolean(e.autofocus||b.autofocus);if(0===Object.keys(S).length)return null;const $=f.getDisplayLabel(S,i,w),{__errors:A,...z}=o||{},B=Ut()(i,["ui:classNames","classNames","ui:style"]);Ct.UI_OPTIONS_KEY in B&&(B[Ct.UI_OPTIONS_KEY]=Ut()(B[Ct.UI_OPTIONS_KEY],["classNames","style"]));const D=(0,xt.jsx)(M,{...e,onChange:I,idSchema:k,schema:S,uiSchema:B,disabled:L,readonly:E,hideError:H,autofocus:F,errorSchema:z,formContext:v,rawErrors:A}),O=k[Ct.ID_KEY];let N;N=g||Ct.ADDITIONAL_PROPERTY_FLAG in S?c:b.title||e.schema.title||S.title||c;const V=b.description||e.schema.description||S.description||"",R=b.enableMarkdownInDescription?(0,xt.jsx)(Ws,{children:V}):V,P=b.help,W="hidden"===b.widget,U=["form-group","field",`field-${(0,Ct.getSchemaType)(S)}`];!H&&A&&A.length>0&&U.push("field-error has-error has-danger"),(null==i?void 0:i.classNames)&&U.push(i.classNames),b.classNames&&U.push(b.classNames);const q=(0,xt.jsx)(C,{help:P,idSchema:k,schema:S,uiSchema:i,hasErrors:!H&&A&&A.length>0,registry:m}),G=H||(S.anyOf||S.oneOf)&&!f.isSelect(S)?void 0:(0,xt.jsx)(_,{errors:A,errorSchema:o,idSchema:k,schema:S,uiSchema:i,registry:m}),Z={description:(0,xt.jsx)(x,{id:(0,Ct.descriptionId)(O),description:R,schema:S,uiSchema:i,registry:m}),rawDescription:V,help:q,rawHelp:"string"==typeof P?P:void 0,errors:G,rawErrors:H?void 0:A,id:O,label:N,hidden:W,onChange:d,onKeyChange:h,onDropPropertyClick:p,required:u,disabled:L,readonly:E,hideError:H,displayLabel:$,classNames:U.join(" ").trim(),style:b.style,formContext:v,formData:r,schema:S,uiSchema:i,registry:m},K=m.fields.AnyOfField,Y=m.fields.OneOfField,J=(null==i?void 0:i["ui:field"])&&!0===(null==i?void 0:i["ui:fieldReplacesAnyOrOneOf"]);return(0,xt.jsx)(y,{...Z,children:(0,xt.jsxs)(xt.Fragment,{children:[D,S.anyOf&&!J&&!f.isSelect(S)&&(0,xt.jsx)(K,{name:c,disabled:L,readonly:E,hideError:H,errorSchema:o,formData:r,formContext:v,idPrefix:a,idSchema:k,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:S.anyOf.map((e=>f.retrieveSchema($t()(e)?e:{},r))),registry:m,schema:S,uiSchema:i}),S.oneOf&&!J&&!f.isSelect(S)&&(0,xt.jsx)(Y,{name:c,disabled:L,readonly:E,hideError:H,errorSchema:o,formData:r,formContext:v,idPrefix:a,idSchema:k,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:S.oneOf.map((e=>f.retrieveSchema($t()(e)?e:{},r))),registry:m,schema:S,uiSchema:i})]})})}class Qs extends s.Component{shouldComponentUpdate(e){return!(0,Ct.deepEquals)(this.props,e)}render(){return(0,xt.jsx)(Xs,{...this.props})}}const ei=Qs,ti=function(e){var t;const{schema:n,name:s,uiSchema:i,idSchema:r,formData:o,required:a,disabled:l=!1,readonly:c=!1,autofocus:d=!1,onChange:h,onBlur:p,onFocus:u,registry:m,rawErrors:g,hideError:v}=e,{title:f,format:w}=n,{widgets:b,formContext:y,schemaUtils:x,globalUiOptions:C}=m,_=x.isSelect(n)?(0,Ct.optionsList)(n):void 0;let S=_?"select":"text";w&&(0,Ct.hasWidget)(n,w,b)&&(S=w);const{widget:j=S,placeholder:k="",title:I,...M}=(0,Ct.getUiOptions)(i),L=x.getDisplayLabel(n,i,C),E=null!==(t=null!=I?I:f)&&void 0!==t?t:s,T=(0,Ct.getWidget)(n,j,b);return(0,xt.jsx)(T,{options:{...M,enumOptions:_},schema:n,uiSchema:i,id:r.$id,name:s,label:E,hideLabel:!L,hideError:v,value:o,onChange:h,onBlur:p,onFocus:u,required:a,disabled:l,readonly:c,formContext:y,autofocus:d,registry:m,placeholder:k,rawErrors:g})},ni=function(e){const{formData:t,onChange:n}=e;return(0,s.useEffect)((()=>{void 0===t&&n(null)}),[t,n]),null};function si(e){const{idSchema:t,description:n,registry:s,schema:i,uiSchema:r}=e,o=(0,Ct.getUiOptions)(r,s.globalUiOptions),{label:a=!0}=o;if(!n||!a)return null;const l=(0,Ct.getTemplate)("DescriptionFieldTemplate",s,o);return(0,xt.jsx)(l,{id:(0,Ct.descriptionId)(t),description:n,schema:i,uiSchema:r,registry:s})}function ii(e){const{children:t,className:n,disabled:s,hasToolbar:i,hasMoveDown:r,hasMoveUp:o,hasRemove:a,hasCopy:l,index:c,onCopyIndexClick:d,onDropIndexClick:h,onReorderClick:p,readonly:u,registry:m,uiSchema:g}=e,{CopyButton:v,MoveDownButton:f,MoveUpButton:w,RemoveButton:b}=m.templates.ButtonTemplates,y={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return(0,xt.jsxs)("div",{className:n,children:[(0,xt.jsx)("div",{className:i?"col-xs-9":"col-xs-12",children:t}),i&&(0,xt.jsx)("div",{className:"col-xs-3 array-item-toolbox",children:(0,xt.jsxs)("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||r)&&(0,xt.jsx)(w,{style:y,disabled:s||u||!o,onClick:p(c,c-1),uiSchema:g,registry:m}),(o||r)&&(0,xt.jsx)(f,{style:y,disabled:s||u||!r,onClick:p(c,c+1),uiSchema:g,registry:m}),l&&(0,xt.jsx)(v,{style:y,disabled:s||u,onClick:d(c),uiSchema:g,registry:m}),a&&(0,xt.jsx)(b,{style:y,disabled:s||u,onClick:h(c),uiSchema:g,registry:m})]})})]})}function ri(e){const{canAdd:t,className:n,disabled:s,idSchema:i,uiSchema:r,items:o,onAddClick:a,readonly:l,registry:c,required:d,schema:h,title:p}=e,u=(0,Ct.getUiOptions)(r),m=(0,Ct.getTemplate)("ArrayFieldDescriptionTemplate",c,u),g=(0,Ct.getTemplate)("ArrayFieldItemTemplate",c,u),v=(0,Ct.getTemplate)("ArrayFieldTitleTemplate",c,u),{ButtonTemplates:{AddButton:f}}=c.templates;return(0,xt.jsxs)("fieldset",{className:n,id:i.$id,children:[(0,xt.jsx)(v,{idSchema:i,title:u.title||p,required:d,schema:h,uiSchema:r,registry:c}),(0,xt.jsx)(m,{idSchema:i,description:u.description||h.description,schema:h,uiSchema:r,registry:c}),(0,xt.jsx)("div",{className:"row array-item-list",children:o&&o.map((({key:e,...t})=>(0,xt.jsx)(g,{...t},e)))}),t&&(0,xt.jsx)(f,{className:"array-item-add",onClick:a,disabled:s||l,uiSchema:r,registry:c})]})}function oi(e){const{idSchema:t,title:n,schema:s,uiSchema:i,required:r,registry:o}=e,a=(0,Ct.getUiOptions)(i,o.globalUiOptions),{label:l=!0}=a;if(!n||!l)return null;const c=(0,Ct.getTemplate)("TitleFieldTemplate",o,a);return(0,xt.jsx)(c,{id:(0,Ct.titleId)(t),title:n,required:r,schema:s,uiSchema:i,registry:o})}function ai(e){const{id:t,name:n,value:i,readonly:r,disabled:o,autofocus:a,onBlur:l,onFocus:c,onChange:d,onChangeOverride:h,options:p,schema:u,uiSchema:m,formContext:g,registry:v,rawErrors:f,type:w,hideLabel:b,hideError:y,...x}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const C={...x,...(0,Ct.getInputProps)(u,w,p)};let _;_="number"===C.type||"integer"===C.type?i||0===i?i:"":null==i?"":i;const S=(0,s.useCallback)((({target:{value:e}})=>d(""===e?p.emptyValue:e)),[d,p]),j=(0,s.useCallback)((({target:{value:e}})=>l(t,e)),[l,t]),k=(0,s.useCallback)((({target:{value:e}})=>c(t,e)),[c,t]);return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsx)("input",{id:t,name:t,className:"form-control",readOnly:r,disabled:o,autoFocus:a,value:_,...C,list:u.examples?(0,Ct.examplesId)(t):void 0,onChange:h||S,onBlur:j,onFocus:k,"aria-describedby":(0,Ct.ariaDescribedByIds)(t,!!u.examples)}),Array.isArray(u.examples)&&(0,xt.jsx)("datalist",{id:(0,Ct.examplesId)(t),children:u.examples.concat(u.default&&!u.examples.includes(u.default)?[u.default]:[]).map((e=>(0,xt.jsx)("option",{value:e},e)))},`datalist_${t}`)]})}function li({uiSchema:e}){const{submitText:t,norender:n,props:s={}}=(0,Ct.getSubmitButtonOptions)(e);return n?null:(0,xt.jsx)("div",{children:(0,xt.jsx)("button",{type:"submit",...s,className:`btn btn-info ${s.className||""}`,children:t})})}function ci(e){const{iconType:t="default",icon:n,className:s,uiSchema:i,registry:r,...o}=e;return(0,xt.jsx)("button",{type:"button",className:`btn btn-${t} ${s}`,...o,children:(0,xt.jsx)("i",{className:`glyphicon glyphicon-${n}`})})}function di(e){const{registry:{translateString:t}}=e;return(0,xt.jsx)(ci,{title:t(Ct.TranslatableString.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function hi(e){const{registry:{translateString:t}}=e;return(0,xt.jsx)(ci,{title:t(Ct.TranslatableString.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function pi(e){const{registry:{translateString:t}}=e;return(0,xt.jsx)(ci,{title:t(Ct.TranslatableString.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function ui(e){const{registry:{translateString:t}}=e;return(0,xt.jsx)(ci,{title:t(Ct.TranslatableString.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function mi({className:e,onClick:t,disabled:n,registry:s}){const{translateString:i}=s;return(0,xt.jsx)("div",{className:"row",children:(0,xt.jsx)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:(0,xt.jsx)(ci,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:i(Ct.TranslatableString.AddButton),onClick:t,disabled:n,registry:s})})})}function gi(e){const{id:t,description:n}=e;return n?"string"==typeof n?(0,xt.jsx)("p",{id:t,className:"field-description",children:n}):(0,xt.jsx)("div",{id:t,className:"field-description",children:n}):null}function vi({errors:e,registry:t}){const{translateString:n}=t;return(0,xt.jsxs)("div",{className:"panel panel-danger errors",children:[(0,xt.jsx)("div",{className:"panel-heading",children:(0,xt.jsx)("h3",{className:"panel-title",children:n(Ct.TranslatableString.ErrorsLabel)})}),(0,xt.jsx)("ul",{className:"list-group",children:e.map(((e,t)=>(0,xt.jsx)("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const fi="*";function wi(e){const{label:t,required:n,id:s}=e;return t?(0,xt.jsxs)("label",{className:"control-label",htmlFor:s,children:[t,n&&(0,xt.jsx)("span",{className:"required",children:fi})]}):null}const bi=function(e){const{id:t,label:n,children:s,errors:i,help:r,description:o,hidden:a,required:l,displayLabel:c,registry:d,uiSchema:h}=e,p=(0,Ct.getUiOptions)(h),u=(0,Ct.getTemplate)("WrapIfAdditionalTemplate",d,p);return a?(0,xt.jsx)("div",{className:"hidden",children:s}):(0,xt.jsxs)(u,{...e,children:[c&&(0,xt.jsx)(wi,{label:n,required:l,id:t}),c&&o?o:null,s,i,r]})};function yi(e){const{errors:t=[],idSchema:n}=e;if(0===t.length)return null;const s=(0,Ct.errorId)(n);return(0,xt.jsx)("div",{children:(0,xt.jsx)("ul",{id:s,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>(0,xt.jsx)("li",{className:"text-danger",children:e},t)))})})}function xi(e){const{idSchema:t,help:n}=e;if(!n)return null;const s=(0,Ct.helpId)(t);return"string"==typeof n?(0,xt.jsx)("p",{id:s,className:"help-block",children:n}):(0,xt.jsx)("div",{id:s,className:"help-block",children:n})}function Ci(e){const{description:t,disabled:n,formData:s,idSchema:i,onAddClick:r,properties:o,readonly:a,registry:l,required:c,schema:d,title:h,uiSchema:p}=e,u=(0,Ct.getUiOptions)(p),m=(0,Ct.getTemplate)("TitleFieldTemplate",l,u),g=(0,Ct.getTemplate)("DescriptionFieldTemplate",l,u),{ButtonTemplates:{AddButton:v}}=l.templates;return(0,xt.jsxs)("fieldset",{id:i.$id,children:[h&&(0,xt.jsx)(m,{id:(0,Ct.titleId)(i),title:h,required:c,schema:d,uiSchema:p,registry:l}),t&&(0,xt.jsx)(g,{id:(0,Ct.descriptionId)(i),description:t,schema:d,uiSchema:p,registry:l}),o.map((e=>e.content)),(0,Ct.canExpand)(d,p,s)&&(0,xt.jsx)(v,{className:"object-property-expand",onClick:r(d),disabled:n||a,uiSchema:p,registry:l})]})}function _i(e){const{id:t,title:n,required:s}=e;return(0,xt.jsxs)("legend",{id:t,children:[n,s&&(0,xt.jsx)("span",{className:"required",children:"*"})]})}const Si=function(e){const{schema:t,idSchema:n,reason:s,registry:i}=e,{translateString:r}=i;let o=Ct.TranslatableString.UnsupportedField;const a=[];return n&&n.$id&&(o=Ct.TranslatableString.UnsupportedFieldWithId,a.push(n.$id)),s&&(o=o===Ct.TranslatableString.UnsupportedField?Ct.TranslatableString.UnsupportedFieldWithReason:Ct.TranslatableString.UnsupportedFieldWithIdAndReason,a.push(s)),(0,xt.jsxs)("div",{className:"unsupported-field",children:[(0,xt.jsx)("p",{children:(0,xt.jsx)(Ws,{children:r(o,a)})}),t&&(0,xt.jsx)("pre",{children:JSON.stringify(t,null,2)})]})};function ji(e){const{id:t,classNames:n,style:s,disabled:i,label:r,onKeyChange:o,onDropPropertyClick:a,readonly:l,required:c,schema:d,children:h,uiSchema:p,registry:u}=e,{templates:m,translateString:g}=u,{RemoveButton:v}=m.ButtonTemplates,f=g(Ct.TranslatableString.KeyLabel,[r]);return Ct.ADDITIONAL_PROPERTY_FLAG in d?(0,xt.jsx)("div",{className:n,style:s,children:(0,xt.jsxs)("div",{className:"row",children:[(0,xt.jsx)("div",{className:"col-xs-5 form-additional",children:(0,xt.jsxs)("div",{className:"form-group",children:[(0,xt.jsx)(wi,{label:f,required:c,id:`${t}-key`}),(0,xt.jsx)("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>o(e.target.value),defaultValue:r})]})}),(0,xt.jsx)("div",{className:"form-additional form-group col-xs-5",children:h}),(0,xt.jsx)("div",{className:"col-xs-2",children:(0,xt.jsx)(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:i||l,onClick:a(r),uiSchema:p,registry:u})})]})}):(0,xt.jsx)("div",{className:n,style:s,children:h})}function ki(e,t){const n=[];for(let s=e;s<=t;s++)n.push({value:s,label:(0,Ct.pad)(s,2)});return n}function Ii(e,t,n=[1900,(new Date).getFullYear()+2]){const{year:s,month:i,day:r,hour:o,minute:a,second:l}=e,c=[{type:"year",range:n,value:s},{type:"month",range:[1,12],value:i},{type:"day",range:[1,31],value:r}];return t&&c.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:a},{type:"second",range:[0,59],value:l}),c}function Mi({type:e,range:t,value:n,select:s,rootId:i,name:r,disabled:o,readonly:a,autofocus:l,registry:c,onBlur:d,onFocus:h}){const p=i+"_"+e,{SelectWidget:u}=c.widgets;return(0,xt.jsx)(u,{schema:{type:"integer"},id:p,name:r,className:"form-control",options:{enumOptions:ki(t[0],t[1])},placeholder:e,value:n,disabled:o,readonly:a,autofocus:l,onChange:t=>s(e,t),onBlur:d,onFocus:h,registry:c,label:"","aria-describedby":(0,Ct.ariaDescribedByIds)(i)})}const Li=function({time:e=!1,disabled:t=!1,readonly:n=!1,autofocus:i=!1,options:r,id:o,name:a,registry:l,onBlur:c,onFocus:d,onChange:h,value:p}){const{translateString:u}=l,[m,g]=(0,s.useState)(p),[v,f]=(0,s.useReducer)(((e,t)=>({...e,...t})),(0,Ct.parseDateString)(p,e));(0,s.useEffect)((()=>{const t=(0,Ct.toDateString)(v,e);!function(e){return Object.values(e).every((e=>-1!==e))}(v)||t===p?m!==p&&(g(p),f((0,Ct.parseDateString)(p,e))):h(t)}),[e,p,h,v,m]);const w=(0,s.useCallback)(((e,t)=>{f({[e]:t})}),[]),b=(0,s.useCallback)((s=>{if(s.preventDefault(),t||n)return;const i=(0,Ct.parseDateString)((new Date).toJSON(),e);h((0,Ct.toDateString)(i,e))}),[t,n,e]),y=(0,s.useCallback)((e=>{e.preventDefault(),t||n||h(void 0)}),[t,n,h]);return(0,xt.jsxs)("ul",{className:"list-inline",children:[Ii(v,e,r.yearsRange).map(((e,s)=>(0,xt.jsx)("li",{className:"list-inline-item",children:(0,xt.jsx)(Mi,{rootId:o,name:a,select:w,...e,disabled:t,readonly:n,registry:l,onBlur:c,onFocus:d,autofocus:i&&0===s})},s))),("undefined"===r.hideNowButton||!r.hideNowButton)&&(0,xt.jsx)("li",{className:"list-inline-item",children:(0,xt.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:b,children:u(Ct.TranslatableString.NowLabel)})}),("undefined"===r.hideClearButton||!r.hideClearButton)&&(0,xt.jsx)("li",{className:"list-inline-item",children:(0,xt.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:y,children:u(Ct.TranslatableString.ClearLabel)})})]})},Ei=function({time:e=!0,...t}){const{AltDateWidget:n}=t.registry.widgets;return(0,xt.jsx)(n,{time:e,...t})},Ti=function({schema:e,uiSchema:t,options:n,id:i,value:r,disabled:o,readonly:a,label:l,hideLabel:c,autofocus:d=!1,onBlur:h,onFocus:p,onChange:u,registry:m}){var g;const v=(0,Ct.getTemplate)("DescriptionFieldTemplate",m,n),f=(0,Ct.schemaRequiresTrueValue)(e),w=(0,s.useCallback)((e=>u(e.target.checked)),[u]),b=(0,s.useCallback)((e=>h(i,e.target.checked)),[h,i]),y=(0,s.useCallback)((e=>p(i,e.target.checked)),[p,i]),x=null!==(g=n.description)&&void 0!==g?g:e.description;return(0,xt.jsxs)("div",{className:"checkbox "+(o||a?"disabled":""),children:[!c&&!!x&&(0,xt.jsx)(v,{id:(0,Ct.descriptionId)(i),description:x,schema:e,uiSchema:t,registry:m}),(0,xt.jsxs)("label",{children:[(0,xt.jsx)("input",{type:"checkbox",id:i,name:i,checked:void 0!==r&&r,required:f,disabled:o||a,autoFocus:d,onChange:w,onBlur:b,onFocus:y,"aria-describedby":(0,Ct.ariaDescribedByIds)(i)}),(0,Ct.labelValue)((0,xt.jsx)("span",{children:l}),c)]})]})},Hi=function({id:e,disabled:t,options:{inline:n=!1,enumOptions:i,enumDisabled:r,emptyValue:o},value:a,autofocus:l=!1,readonly:c,onChange:d,onBlur:h,onFocus:p}){const u=Array.isArray(a)?a:[a],m=(0,s.useCallback)((({target:{value:t}})=>h(e,(0,Ct.enumOptionsValueForIndex)(t,i,o))),[h,e]),g=(0,s.useCallback)((({target:{value:t}})=>p(e,(0,Ct.enumOptionsValueForIndex)(t,i,o))),[p,e]);return(0,xt.jsx)("div",{className:"checkboxes",id:e,children:Array.isArray(i)&&i.map(((s,o)=>{const a=(0,Ct.enumOptionsIsSelected)(s.value,u),h=Array.isArray(r)&&-1!==r.indexOf(s.value),p=t||h||c?"disabled":"",v=(0,xt.jsxs)("span",{children:[(0,xt.jsx)("input",{type:"checkbox",id:(0,Ct.optionId)(e,o),name:e,checked:a,value:String(o),disabled:t||h||c,autoFocus:l&&0===o,onChange:e=>{e.target.checked?d((0,Ct.enumOptionsSelectValue)(o,u,i)):d((0,Ct.enumOptionsDeselectValue)(o,u,i))},onBlur:m,onFocus:g,"aria-describedby":(0,Ct.ariaDescribedByIds)(e)}),(0,xt.jsx)("span",{children:s.label})]});return n?(0,xt.jsx)("label",{className:`checkbox-inline ${p}`,children:v},o):(0,xt.jsx)("div",{className:`checkbox ${p}`,children:(0,xt.jsx)("label",{children:v})},o)}))})};function Fi(e){const{disabled:t,readonly:n,options:s,registry:i}=e,r=(0,Ct.getTemplate)("BaseInputTemplate",i,s);return(0,xt.jsx)(r,{type:"color",...e,disabled:t||n})}function $i(e){const{onChange:t,options:n,registry:i}=e,r=(0,Ct.getTemplate)("BaseInputTemplate",i,n),o=(0,s.useCallback)((e=>t(e||void 0)),[t]);return(0,xt.jsx)(r,{type:"date",...e,onChange:o})}function Ai(e){const{onChange:t,value:n,options:s,registry:i}=e,r=(0,Ct.getTemplate)("BaseInputTemplate",i,s);return(0,xt.jsx)(r,{type:"datetime-local",...e,value:(0,Ct.utcToLocal)(n),onChange:e=>t((0,Ct.localToUTC)(e))})}function zi(e){const{options:t,registry:n}=e,s=(0,Ct.getTemplate)("BaseInputTemplate",n,t);return(0,xt.jsx)(s,{type:"email",...e})}function Bi(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Di(e){const{name:t,size:n,type:s}=e;return new Promise(((i,r)=>{const o=new window.FileReader;o.onerror=r,o.onload=e=>{var r;"string"==typeof(null===(r=e.target)||void 0===r?void 0:r.result)?i({dataURL:Bi(e.target.result,t),name:t,size:n,type:s}):i({dataURL:null,name:t,size:n,type:s})},o.readAsDataURL(e)}))}function Oi({fileInfo:e,registry:t}){const{translateString:n}=t,{dataURL:s,type:i,name:r}=e;return s?-1!==i.indexOf("image")?(0,xt.jsx)("img",{src:s,style:{maxWidth:"100%"},className:"file-preview"}):(0,xt.jsxs)(xt.Fragment,{children:[" ",(0,xt.jsx)("a",{download:`preview-${r}`,href:s,className:"file-download",children:n(Ct.TranslatableString.PreviewLabel)})]}):null}function Ni({filesInfo:e,registry:t,preview:n}){if(0===e.length)return null;const{translateString:s}=t;return(0,xt.jsx)("ul",{className:"file-info",children:e.map(((e,i)=>{const{name:r,size:o,type:a}=e;return(0,xt.jsxs)("li",{children:[(0,xt.jsx)(Ws,{children:s(Ct.TranslatableString.FilesInfo,[r,a,String(o)])}),n&&(0,xt.jsx)(Oi,{fileInfo:e,registry:t})]},i)}))})}function Vi(e){return e.filter((e=>e)).map((e=>{const{blob:t,name:n}=(0,Ct.dataURItoBlob)(e);return{dataURL:e,name:n,size:t.size,type:t.type}}))}const Ri=function(e){const{disabled:t,readonly:n,required:i,multiple:r,onChange:o,value:a,options:l,registry:c}=e,d=(0,Ct.getTemplate)("BaseInputTemplate",c,l),[h,p]=(0,s.useState)(Array.isArray(a)?Vi(a):Vi([a])),u=(0,s.useCallback)((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(Di))).then((e=>{const t=e.map((e=>e.dataURL));r?(p(h.concat(e[0])),o(a.concat(t[0]))):(p(e),o(t[0]))}))}),[r,a,h,o]);return(0,xt.jsxs)("div",{children:[(0,xt.jsx)(d,{...e,disabled:t||n,type:"file",required:!a&&i,onChangeOverride:u,value:"",accept:l.accept?String(l.accept):void 0}),(0,xt.jsx)(Ni,{filesInfo:h,registry:c,preview:l.filePreview})]})},Pi=function({id:e,value:t}){return(0,xt.jsx)("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})};function Wi(e){const{options:t,registry:n}=e,s=(0,Ct.getTemplate)("BaseInputTemplate",n,t);return(0,xt.jsx)(s,{type:"password",...e})}const Ui=function({options:e,value:t,required:n,disabled:i,readonly:r,autofocus:o=!1,onBlur:a,onFocus:l,onChange:c,id:d}){const{enumOptions:h,enumDisabled:p,inline:u,emptyValue:m}=e,g=(0,s.useCallback)((({target:{value:e}})=>a(d,(0,Ct.enumOptionsValueForIndex)(e,h,m))),[a,d]),v=(0,s.useCallback)((({target:{value:e}})=>l(d,(0,Ct.enumOptionsValueForIndex)(e,h,m))),[l,d]);return(0,xt.jsx)("div",{className:"field-radio-group",id:d,children:Array.isArray(h)&&h.map(((e,s)=>{const a=(0,Ct.enumOptionsIsSelected)(e.value,t),l=Array.isArray(p)&&-1!==p.indexOf(e.value),h=i||l||r?"disabled":"",m=(0,xt.jsxs)("span",{children:[(0,xt.jsx)("input",{type:"radio",id:(0,Ct.optionId)(d,s),checked:a,name:d,required:n,value:String(s),disabled:i||l||r,autoFocus:o&&0===s,onChange:()=>c(e.value),onBlur:g,onFocus:v,"aria-describedby":(0,Ct.ariaDescribedByIds)(d)}),(0,xt.jsx)("span",{children:e.label})]});return u?(0,xt.jsx)("label",{className:`radio-inline ${h}`,children:m},s):(0,xt.jsx)("div",{className:`radio ${h}`,children:(0,xt.jsx)("label",{children:m})},s)}))})};function qi(e){const{value:t,registry:{templates:{BaseInputTemplate:n}}}=e;return(0,xt.jsxs)("div",{className:"field-range-wrapper",children:[(0,xt.jsx)(n,{type:"range",...e}),(0,xt.jsx)("span",{className:"range-view",children:t})]})}function Gi(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}const Zi=function({schema:e,id:t,options:n,value:i,required:r,disabled:o,readonly:a,multiple:l=!1,autofocus:c=!1,onChange:d,onBlur:h,onFocus:p,placeholder:u}){const{enumOptions:m,enumDisabled:g,emptyValue:v}=n,f=l?[]:"",w=(0,s.useCallback)((e=>{const n=Gi(e,l);return p(t,(0,Ct.enumOptionsValueForIndex)(n,m,v))}),[p,t,e,l,n]),b=(0,s.useCallback)((e=>{const n=Gi(e,l);return h(t,(0,Ct.enumOptionsValueForIndex)(n,m,v))}),[h,t,e,l,n]),y=(0,s.useCallback)((e=>{const t=Gi(e,l);return d((0,Ct.enumOptionsValueForIndex)(t,m,v))}),[d,e,l,n]),x=(0,Ct.enumOptionsIndexForValue)(i,m,l);return(0,xt.jsxs)("select",{id:t,name:t,multiple:l,className:"form-control",value:void 0===x?f:x,required:r,disabled:o||a,autoFocus:c,onBlur:b,onFocus:w,onChange:y,"aria-describedby":(0,Ct.ariaDescribedByIds)(t),children:[!l&&void 0===e.default&&(0,xt.jsx)("option",{value:"",children:u}),Array.isArray(m)&&m.map((({value:e,label:t},n)=>{const s=g&&-1!==g.indexOf(e);return(0,xt.jsx)("option",{value:String(n),disabled:s,children:t},n)}))]})};function Ki({id:e,options:t={},placeholder:n,value:i,required:r,disabled:o,readonly:a,autofocus:l=!1,onChange:c,onBlur:d,onFocus:h}){const p=(0,s.useCallback)((({target:{value:e}})=>c(""===e?t.emptyValue:e)),[c,t.emptyValue]),u=(0,s.useCallback)((({target:{value:t}})=>d(e,t)),[d,e]),m=(0,s.useCallback)((({target:{value:t}})=>h(e,t)),[e,h]);return(0,xt.jsx)("textarea",{id:e,name:e,className:"form-control",value:i||"",placeholder:n,required:r,disabled:o,readOnly:a,autoFocus:l,rows:t.rows,onBlur:u,onFocus:m,onChange:p,"aria-describedby":(0,Ct.ariaDescribedByIds)(e)})}Ki.defaultProps={autofocus:!1,options:{}};const Yi=Ki;function Ji(e){const{options:t,registry:n}=e,s=(0,Ct.getTemplate)("BaseInputTemplate",n,t);return(0,xt.jsx)(s,{...e})}function Xi(e){const{onChange:t,options:n,registry:i}=e,r=(0,Ct.getTemplate)("BaseInputTemplate",i,n),o=(0,s.useCallback)((e=>t(e?`${e}:00`:void 0)),[t]);return(0,xt.jsx)(r,{type:"time",...e,onChange:o})}function Qi(e){const{options:t,registry:n}=e,s=(0,Ct.getTemplate)("BaseInputTemplate",n,t);return(0,xt.jsx)(s,{type:"url",...e})}function er(e){const{options:t,registry:n}=e,s=(0,Ct.getTemplate)("BaseInputTemplate",n,t);return(0,xt.jsx)(s,{type:"number",...e})}class tr extends s.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const n=Mt()(e,t);return Array.isArray(e)?Object.keys(n).map((e=>n[e])):n},this.getFieldNames=(e,t)=>{const n=(e,s=[],i=[[]])=>(Object.keys(e).forEach((r=>{if("object"==typeof e[r]){const t=i.map((e=>[...e,r]));e[r][Ct.RJSF_ADDITONAL_PROPERTIES_FLAG]&&""!==e[r][Ct.NAME_KEY]?s.push(e[r][Ct.NAME_KEY]):n(e[r],s,t)}else r===Ct.NAME_KEY&&""!==e[r]&&i.forEach((e=>{const n=St()(t,e);("object"!=typeof n||kt()(n)||Array.isArray(n)&&n.every((e=>"object"!=typeof e)))&&s.push(e)}))})),s);return n(e)},this.onChange=(e,t,n)=>{const{extraErrors:s,omitExtraData:i,liveOmit:r,noValidate:o,liveValidate:a,onChange:l}=this.props,{schemaUtils:c,schema:d,retrievedSchema:h}=this.state;((0,Ct.isObject)(e)||Array.isArray(e))&&(e=this.getStateFromProps(this.props,e,h).formData);const p=!o&&a;let u,m={formData:e,schema:d},g=e;if(!0===i&&!0===r){u=c.retrieveSchema(d,e);const t=c.toPathSchema(u,"",e),n=this.getFieldNames(t,e);g=this.getUsedFormData(e,n),m={formData:g}}if(p){const e=this.validate(g,d,c,h);let t=e.errors,n=e.errorSchema;const i=t,r=n;if(s){const i=(0,Ct.validationDataMerge)(e,s);n=i.errorSchema,t=i.errors}m={formData:g,errors:t,errorSchema:n,schemaValidationErrors:i,schemaValidationErrorSchema:r}}else if(!o&&t){const e=s?(0,Ct.mergeObjects)(t,s,"preventDuplicates"):t;m={formData:g,errorSchema:e,errors:(0,Ct.toErrorList)(e)}}u&&(m.retrievedSchema=u),this.setState(m,(()=>l&&l({...this.state,...m},n)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e({...this.state,...t})))},this.onBlur=(e,t)=>{const{onBlur:n}=this.props;n&&n(e,t)},this.onFocus=(e,t)=>{const{onFocus:n}=this.props;n&&n(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:n,noValidate:s,onSubmit:i}=this.props;let{formData:r}=this.state;const{schema:o,schemaUtils:a}=this.state;if(!0===t){const e=a.retrieveSchema(o,r),t=a.toPathSchema(e,"",r),n=this.getFieldNames(t,r);r=this.getUsedFormData(r,n)}if(s||this.validateForm()){const t=n||{},s=n?(0,Ct.toErrorList)(n):[];this.setState({formData:r,errors:s,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{i&&i({...this.state,formData:r,status:"submitted"},e)}))}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!(0,Ct.deepEquals)(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=(0,s.createRef)()}getSnapshotBeforeUpdate(e,t){if(!(0,Ct.deepEquals)(this.props,e)){const n=this.getStateFromProps(this.props,this.props.formData,e.schema!==this.props.schema?void 0:this.state.retrievedSchema);return{nextState:n,shouldUpdate:!(0,Ct.deepEquals)(n,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,n){if(n.shouldUpdate){const{nextState:e}=n;(0,Ct.deepEquals)(e.formData,this.props.formData)||(0,Ct.deepEquals)(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,n){const s=this.state||{},i="schema"in e?e.schema:this.props.schema,r=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},o=void 0!==t,a="liveValidate"in e?e.liveValidate:this.props.liveValidate,l=o&&!e.noValidate&&a,c=i,d="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let h=s.schemaUtils;h&&!h.doesSchemaUtilsDiffer(e.validator,c,d)||(h=(0,Ct.createSchemaUtils)(e.validator,c,d));const p=h.getDefaultFormState(i,t),u=null!=n?n:h.retrieveSchema(i,p);let m,g,v=s.schemaValidationErrors,f=s.schemaValidationErrorSchema;if(l){const e=this.validate(p,i,h,u);m=e.errors,g=e.errorSchema,v=m,f=g}else{const t=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:s.errors||[],errorSchema:s.errorSchema||{}}:{errors:s.schemaValidationErrors||[],errorSchema:s.schemaValidationErrorSchema||{}};m=t.errors,g=t.errorSchema}if(e.extraErrors){const t=(0,Ct.validationDataMerge)({errorSchema:g,errors:m},e.extraErrors);g=t.errorSchema,m=t.errors}const w=h.toIdSchema(u,r["ui:rootFieldId"],p,e.idPrefix,e.idSeparator);return{schemaUtils:h,schema:i,uiSchema:r,idSchema:w,formData:p,edit:o,errors:m,errorSchema:g,schemaValidationErrors:v,schemaValidationErrorSchema:f,retrievedSchema:u}}shouldComponentUpdate(e,t){return(0,Ct.shouldRender)(this,e,t)}validate(e,t=this.props.schema,n,s){const i=n||this.state.schemaUtils,{customValidate:r,transformErrors:o,uiSchema:a}=this.props,l=null!=s?s:i.retrieveSchema(t,e);return i.getValidator().validateFormData(e,l,r,o,a)}renderErrors(e){const{errors:t,errorSchema:n,schema:s,uiSchema:i}=this.state,{formContext:r}=this.props,o=(0,Ct.getUiOptions)(i),a=(0,Ct.getTemplate)("ErrorListTemplate",e,o);return t&&t.length?(0,xt.jsx)(a,{errors:t,errorSchema:n||{},schema:s,uiSchema:i,formContext:r,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:n={}}=this.props,{schemaUtils:s}=this.state,{fields:i,templates:r,widgets:o,formContext:a,translateString:l}={fields:{AnyOfField:Gt,ArrayField:Rt,BooleanField:Pt,NumberField:Yt,ObjectField:Ys,OneOfField:Gt,SchemaField:ei,StringField:ti,NullField:ni},templates:{ArrayFieldDescriptionTemplate:si,ArrayFieldItemTemplate:ii,ArrayFieldTemplate:ri,ArrayFieldTitleTemplate:oi,ButtonTemplates:{SubmitButton:li,AddButton:mi,CopyButton:di,MoveDownButton:hi,MoveUpButton:pi,RemoveButton:ui},BaseInputTemplate:ai,DescriptionFieldTemplate:gi,ErrorListTemplate:vi,FieldTemplate:bi,FieldErrorTemplate:yi,FieldHelpTemplate:xi,ObjectFieldTemplate:Ci,TitleFieldTemplate:_i,UnsupportedFieldTemplate:Si,WrapIfAdditionalTemplate:ji},widgets:{AltDateWidget:Li,AltDateTimeWidget:Ei,CheckboxWidget:Ti,CheckboxesWidget:Hi,ColorWidget:Fi,DateWidget:$i,DateTimeWidget:Ai,EmailWidget:zi,FileWidget:Ri,HiddenWidget:Pi,PasswordWidget:Wi,RadioWidget:Ui,RangeWidget:qi,SelectWidget:Zi,TextWidget:Ji,TextareaWidget:Yi,TimeWidget:Xi,UpDownWidget:er,URLWidget:Qi},rootSchema:{},formContext:{},translateString:Ct.englishStringTranslator};return{fields:{...i,...this.props.fields},templates:{...r,...this.props.templates,ButtonTemplates:{...r.ButtonTemplates,...null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates}},widgets:{...o,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||a,schemaUtils:s,translateString:t||l,globalUiOptions:n[Ct.UI_GLOBAL_OPTIONS_KEY]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(e){const{idPrefix:t="root",idSeparator:n="_"}=this.props,{property:s}=e,i=Et()(s);""===i[0]?i[0]=t:i.unshift(t);const r=i.join(n);let o=this.formElement.current.elements[r];o||(o=this.formElement.current.querySelector(`input[id^=${r}`)),o&&o.length&&(o=o[0]),o&&o.focus()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:n,onError:s}=this.props,{formData:i,errors:r}=this.state,o=this.validate(i);let a=o.errors,l=o.errorSchema;const c=a,d=l,h=a.length>0||e&&t;if(h){if(e){const t=(0,Ct.validationDataMerge)(o,e);l=t.errorSchema,a=t.errors}n&&("function"==typeof n?n(a[0]):this.focusOnError(a[0])),this.setState({errors:a,errorSchema:l,schemaValidationErrors:c,schemaValidationErrorSchema:d},(()=>{s?s(a):console.error("Form validation failed",a)}))}else r.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!h}render(){const{children:e,id:t,idPrefix:n,idSeparator:s,className:i="",tagName:r,name:o,method:a,target:l,action:c,autoComplete:d,enctype:h,acceptcharset:p,noHtml5Validate:u=!1,disabled:m=!1,readonly:g=!1,formContext:v,showErrorList:f="top",_internalFormWrapper:w}=this.props,{schema:b,uiSchema:y,formData:x,errorSchema:C,idSchema:_}=this.state,S=this.getRegistry(),{SchemaField:j}=S.fields,{SubmitButton:k}=S.templates.ButtonTemplates,I=w?r:void 0,M=w||r||"form";let{[Ct.SUBMIT_BTN_OPTIONS_KEY]:L={}}=(0,Ct.getUiOptions)(y);m&&(L={...L,props:{...L.props,disabled:!0}});const E={[Ct.UI_OPTIONS_KEY]:{[Ct.SUBMIT_BTN_OPTIONS_KEY]:L}};return(0,xt.jsxs)(M,{className:i||"rjsf",id:t,name:o,method:a,target:l,action:c,autoComplete:d,encType:h,acceptCharset:p,noValidate:u,onSubmit:this.onSubmit,as:I,ref:this.formElement,children:["top"===f&&this.renderErrors(S),(0,xt.jsx)(j,{name:"",schema:b,uiSchema:y,errorSchema:C,idSchema:_,idPrefix:n,idSeparator:s,formContext:v,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:m,readonly:g}),e||(0,xt.jsx)(k,{uiSchema:E,registry:S}),"bottom"===f&&this.renderErrors(S)]})}}const nr=tr,sr={submitButtonOptions:{norender:!0}},ir=e=>{var t;const n=(null!==(t=e.translator)&&void 0!==t?t:yt.nullTranslator).load("jupyterlab");let s;if("icons"===e.buttonStyle){const t={tag:"span",elementSize:"xlarge",elementPosition:"center"};s="up"===e.direction?i().createElement(A.react,{...t}):i().createElement(T.react,{...t})}else s="up"===e.direction?n.__("Move up"):n.__("Move down");const r="up"===e.direction?e.item.index-1:e.item.index+1;return i().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.item.onReorderClick(e.item.index,r),disabled:"up"===e.direction?!e.item.hasMoveUp:!e.item.hasMoveDown},s)},rr=e=>{var t;const n=(null!==(t=e.translator)&&void 0!==t?t:yt.nullTranslator).load("jupyterlab");let s;return s="icons"===e.buttonStyle?i().createElement(V.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"}):n.__("Remove"),i().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-ArrayOperationsButton",onClick:e.item.onDropIndexClick(e.item.index)},s)},or=e=>{var t;const n=(null!==(t=e.translator)&&void 0!==t?t:yt.nullTranslator).load("jupyterlab");let s;return s="icons"===e.buttonStyle?i().createElement(S.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"}):n.__("Add"),i().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.onAddClick},s)};function ar(e){const{component:t,name:n,buttonStyle:s,compact:i,showModifiedFromDefault:r,translator:o}=e,a=null!=i&&i,l=null!=s?s:a?"icons":"text",c=e=>t({...e,buttonStyle:l,compact:a,showModifiedFromDefault:null==r||r,translator:null!=o?o:yt.nullTranslator});return n&&(c.displayName=n),c}function lr(e,t){return{TitleField:(0,Ct.getTemplate)("TitleFieldTemplate",e,t),DescriptionField:(0,Ct.getTemplate)("DescriptionFieldTemplate",e,t)}}const cr=e=>ar({...e,name:"JupyterLabArrayTemplate",component:e=>{var t;const{schema:n,registry:s,uiSchema:r,required:o}=e,a={schema:n,registry:s,uiSchema:r,required:o},{TitleField:l,DescriptionField:c}=lr(s,r);return i().createElement("div",{className:e.className},e.compact?i().createElement("div",{className:"jp-FormGroup-compactTitle"},i().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),i().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}-description`},e.schema.description||"")):i().createElement(i().Fragment,null,e.title&&i().createElement(l,{...a,title:e.title,id:`${e.idSchema.$id}-title`}),i().createElement(c,{...a,id:`${e.idSchema.$id}-description`,description:null!==(t=e.schema.description)&&void 0!==t?t:""})),e.items.map((t=>i().createElement("div",{key:t.key,className:t.className},t.children,i().createElement("div",{className:"jp-ArrayOperations"},i().createElement(ir,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"up"}),i().createElement(ir,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"down"}),i().createElement(rr,{buttonStyle:e.buttonStyle,translator:e.translator,item:t}))))),e.canAdd&&i().createElement(or,{onAddClick:e.onAddClick,buttonStyle:e.buttonStyle,translator:e.translator}))}}),dr=e=>ar({...e,name:"JupyterLabObjectTemplate",component:e=>{var t;const{schema:n,registry:s,uiSchema:r,required:o}=e,a={schema:n,registry:s,uiSchema:r,required:o},{TitleField:l,DescriptionField:c}=lr(s,r);return i().createElement("fieldset",{id:e.idSchema.$id},e.compact?i().createElement("div",{className:"jp-FormGroup-compactTitle"},i().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),i().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}__description`},e.schema.description||"")):i().createElement(i().Fragment,null,(e.title||(e.uiSchema||u.JSONExt.emptyObject)["ui:title"])&&i().createElement(l,{...a,id:`${e.idSchema.$id}__title`,title:e.title||`${(e.uiSchema||u.JSONExt.emptyObject)["ui:title"]}`||""}),i().createElement(c,{...a,id:`${e.idSchema.$id}__description`,description:null!==(t=e.schema.description)&&void 0!==t?t:""})),e.properties.map((e=>e.content)),(0,Ct.canExpand)(e.schema,e.uiSchema,e.formData)&&i().createElement(or,{onAddClick:e.onAddClick(e.schema),buttonStyle:e.buttonStyle,translator:e.translator}))}}),hr=e=>ar({...e,name:"JupyterLabFieldTemplate",component:e=>{var t;const n=(null!==(t=e.translator)&&void 0!==t?t:yt.nullTranslator).load("jupyterlab");let s,r=!1;const{formData:o,schema:a,label:l,displayLabel:c,id:d,formContext:h,errors:p,rawErrors:m,children:g,onKeyChange:v,onDropPropertyClick:f}=e,{defaultFormData:w}=h,b=d.split("_");b.shift();const y=b.join("."),x=""===y,C=y===(e.uiSchema||u.JSONExt.emptyObject)["ui:field"];e.showModifiedFromDefault&&(s=b.reduce(((e,t)=>null==e?void 0:e[t]),w),r=!x&&void 0!==o&&void 0!==s&&!a.properties&&"array"!==a.type&&!u.JSONExt.deepEqual(o,s));const _=!x&&"object"!=a.type&&"jp-SettingsEditor-@jupyterlab/shortcuts-extension:shortcuts_shortcuts"!=d,S=a.hasOwnProperty(Ct.ADDITIONAL_PROPERTY_FLAG),j=!("object"===a.type||"array"===a.type);return i().createElement("div",{className:"form-group "+(c||"boolean"===a.type?"small-field":"")},!C&&((null==m?void 0:m.length)?i().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}):r&&i().createElement("div",{className:"jp-modifiedIndicator"})),i().createElement("div",{className:"jp-FormGroup-content "+(e.compact?"jp-FormGroup-contentCompact":"jp-FormGroup-contentNormal")},j&&c&&!x&&l&&!S?e.compact?i().createElement("div",{className:"jp-FormGroup-compactTitle"},i().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l),j&&a.description&&_&&i().createElement("div",{className:"jp-FormGroup-description"},a.description)):i().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l):i().createElement(i().Fragment,null),S&&i().createElement("input",{className:"jp-FormGroup-contentItem jp-mod-styled",type:"text",onBlur:e=>v(e.target.value),defaultValue:l}),i().createElement("div",{className:x?"jp-root":"object"===a.type?"jp-objectFieldWrapper":"array"===a.type?"jp-arrayFieldWrapper":"jp-inputFieldWrapper jp-FormGroup-contentItem"},g),S&&i().createElement("button",{className:"jp-FormGroup-contentItem jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:f(l)},n.__("Remove")),!e.compact&&a.description&&_&&i().createElement("div",{className:"jp-FormGroup-description"},a.description),r&&void 0!==s&&"object"!==a.type&&i().createElement("div",{className:"jp-FormGroup-default"},n.__("Default: %1",null!==s?s.toLocaleString():"null")),i().createElement("div",{className:"validationErrors"},p)))}});function pr(e){const{buttonStyle:t,compact:n,showModifiedFromDefault:s,translator:r,formContext:o,...a}=e,l={...a.uiSchema||u.JSONExt.emptyObject};l["ui:options"]={...sr,...l["ui:options"]},a.uiSchema=l;const{FieldTemplate:c,ArrayFieldTemplate:d,ObjectFieldTemplate:h}=e.templates||u.JSONExt.emptyObject,p={buttonStyle:t,compact:n,showModifiedFromDefault:s,translator:r},m={FieldTemplate:i().useMemo((()=>null!=c?c:hr(p)),[c,t,n,s,r]),ArrayFieldTemplate:i().useMemo((()=>null!=d?d:cr(p)),[d,t,n,s,r]),ObjectFieldTemplate:i().useMemo((()=>null!=h?h:dr(p)),[h,t,n,s,r])};return i().createElement(nr,{templates:m,formContext:o,...a})}const ur="jp-DefaultStyle",mr="jp-HTMLSelect";class gr extends s.Component{render(){const{className:e,defaultStyle:t=!0,disabled:n,elementRef:i,iconProps:r,icon:o=L,options:l=[],...c}=this.props,d=a(mr,{[ur]:t},e),h=l.map((e=>{const t="object"==typeof e?e:{value:e};return s.createElement("option",{...t,key:t.value},t.label||t.value)}));return s.createElement("div",{className:d},s.createElement("select",{onFocus:e=>{e.stopPropagation()},disabled:n,ref:i,...c,multiple:!1},h,c.children),s.createElement(o.react,{tag:"span",stylesheet:"select",right:"7px",top:"5px",...r}))}}class vr extends p.Widget{constructor(e={}){super({node:fr.createNode()}),this._sandbox=[],this.addClass("jp-IFrame"),this.sandbox=e.sandbox||[],this.referrerPolicy=e.referrerPolicy||"no-referrer"}get referrerPolicy(){return this._referrerPolicy}set referrerPolicy(e){this._referrerPolicy!==e&&(this._referrerPolicy=e,this.node.querySelector("iframe").setAttribute("referrerpolicy",e))}get sandbox(){return this._sandbox.slice()}set sandbox(e){this._sandbox=e.slice();const t=this.node.querySelector("iframe"),n=e.length?e.join(" "):"";t.setAttribute("sandbox",n)}get url(){return this.node.querySelector("iframe").getAttribute("src")||""}set url(e){this.node.querySelector("iframe").setAttribute("src",e)}}var fr;function wr(e){const{className:t,inputRef:n,rightIcon:s,...r}=e;return i().createElement("div",{className:a("jp-InputGroup",t)},i().createElement("input",{ref:n,...r}),s&&i().createElement("span",{className:"jp-InputGroupAction"},"string"==typeof s?i().createElement(b.resolveReact,{icon:s,elementPosition:"center",tag:"span"}):i().createElement(s.react,{elementPosition:"center",tag:"span"})))}!function(e){e.createNode=function(){const e=document.createElement("div"),t=document.createElement("iframe");return t.setAttribute("sandbox",""),t.style.height="100%",t.style.width="100%",e.appendChild(t),e}}(fr||(fr={}));var br,yr=n(33625),xr=n(2549);!function(e){e.DEFAULT_RANK=100}(br||(br={}));class Cr extends p.Menu{constructor(e){var t;super(e),this._ranks=[],this._rank=e.rank,this._includeSeparators=null===(t=e.includeSeparators)||void 0===t||t}get rank(){return this._rank}addGroup(e,t){if(0===e.length)return new xr.DisposableDelegate((()=>{}));const n=null!=t?t:br.DEFAULT_RANK,s=e.map((e=>{var t;return{...e,rank:null!==(t=e.rank)&&void 0!==t?t:n}})).sort(((e,t)=>e.rank-t.rank));let i=this._ranks.findIndex((e=>s[0].rank<e));i<0&&(i=this._ranks.length);const r=[];return this._includeSeparators&&r.push(this.insertItem(i++,{type:"separator",rank:n})),r.push(...s.map((e=>this.insertItem(i++,e)))),this._includeSeparators&&r.push(this.insertItem(i++,{type:"separator",rank:n})),new xr.DisposableDelegate((()=>{r.forEach((e=>e.dispose()))}))}addItem(e){let t=-1;return e.rank&&(t=this._ranks.findIndex((t=>e.rank<t))),t<0&&(t=this._ranks.length),this.insertItem(t,e)}clearItems(){this._ranks.length=0,super.clearItems()}dispose(){this._ranks.length=0,super.dispose()}getRankAt(e){return this._ranks[e]}insertItem(e,t){var n,s;const i=Math.max(0,Math.min(e,this._ranks.length));yr.ArrayExt.insert(this._ranks,i,null!==(n=t.rank)&&void 0!==n?n:Math.max(br.DEFAULT_RANK,null!==(s=this._ranks[this._ranks.length-1])&&void 0!==s?s:br.DEFAULT_RANK));const r=super.insertItem(i,t);return new _r(r,this)}removeItemAt(e){yr.ArrayExt.removeAt(this._ranks,e),super.removeItemAt(e)}}class _r{constructor(e,t){this._item=new WeakRef(e),this._menu=t;const n=e=>{e.disposed.disconnect(n,this),this.dispose()};this._menu.disposed.connect(n,this)}get isDisposed(){return this._isDisposed}get type(){return this._item.deref().type}get command(){return this._item.deref().command}get args(){return this._item.deref().args}get submenu(){return this._item.deref().submenu}get label(){return this._item.deref().label}get mnemonic(){return this._item.deref().mnemonic}get icon(){return this._item.deref().icon}get iconClass(){return this._item.deref().iconClass}get iconLabel(){return this._item.deref().iconLabel}get caption(){return this._item.deref().caption}get className(){return this._item.deref().className}get dataset(){return this._item.deref().dataset}get isEnabled(){return this._item.deref().isEnabled}get isToggled(){return this._item.deref().isToggled}get isVisible(){return this._item.deref().isVisible}get keyBinding(){return this._item.deref().keyBinding}dispose(){if(this._isDisposed)return;this._isDisposed=!0;const e=this._item.deref();e&&!this._menu.isDisposed&&this._menu.removeItem(e),h.Signal.clearData(this)}}var Sr=n(82616),jr=n(98332),kr=n(95185),Ir=n(92221),Mr=n(14869),Lr=n(52865),Er=n(89155),Tr=n(940),Hr=n(50755);class Fr extends Hr.I{}class $r extends((0,Tr.Um)(Fr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ar extends $r{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}(0,kr.gn)([(0,jr.Lj)({mode:"boolean"})],Ar.prototype,"autofocus",void 0),(0,kr.gn)([(0,jr.Lj)({attribute:"form"})],Ar.prototype,"formId",void 0),(0,kr.gn)([jr.Lj],Ar.prototype,"formaction",void 0),(0,kr.gn)([jr.Lj],Ar.prototype,"formenctype",void 0),(0,kr.gn)([jr.Lj],Ar.prototype,"formmethod",void 0),(0,kr.gn)([(0,jr.Lj)({mode:"boolean"})],Ar.prototype,"formnovalidate",void 0),(0,kr.gn)([jr.Lj],Ar.prototype,"formtarget",void 0),(0,kr.gn)([jr.Lj],Ar.prototype,"type",void 0),(0,kr.gn)([Ir.LO],Ar.prototype,"defaultSlottedContent",void 0);class zr{}(0,kr.gn)([(0,jr.Lj)({attribute:"aria-expanded"})],zr.prototype,"ariaExpanded",void 0),(0,kr.gn)([(0,jr.Lj)({attribute:"aria-pressed"})],zr.prototype,"ariaPressed",void 0),(0,Er.e)(zr,Mr.v),(0,Er.e)(Ar,Lr.hW,zr);var Br=n(25269),Dr=n(62564),Or=n(17832),Nr=n(12634),Vr=n(61424),Rr=n(98242),Pr=n(30550),Wr=n(87206),Ur=n(78885),qr=n(53405),Gr=n(13370);const Zr=Nr.i`
${(0,Ur.j)("inline-flex")} :host {
font-family: ${Wr.SV};
outline: none;
font-size: ${Wr.cS};
line-height: ${Wr.RU};
height: calc(${Gr.i} * 1px);
min-width: calc(${Gr.i} * 1px);
background-color: ${Wr.wF};
color: ${Wr.hY};
border-radius: calc(${Wr.UW} * 1px);
fill: currentcolor;
cursor: pointer;
margin: calc((${Wr.vx} + 2) * 1px);
}
.control {
background: transparent;
height: inherit;
flex-grow: 1;
box-sizing: border-box;
display: inline-flex;
justify-content: center;
align-items: center;
padding: 0 calc((10 + (${Wr._5} * 2 * ${Wr.hV})) * 1px);
white-space: nowrap;
outline: none;
text-decoration: none;
border: calc(${Wr.H} * 1px) solid transparent;
color: inherit;
border-radius: inherit;
fill: inherit;
cursor: inherit;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
:host(:hover) {
background-color: ${Wr.Xi};
}
:host(:active) {
background-color: ${Wr.Gy};
}
:host([aria-pressed='true']) {
box-shadow: inset 0px 0px 2px 2px ${Wr.hP};
}
:host([minimal]) {
--density: -4;
}
:host([minimal]) .control {
padding: 1px;
}
/* prettier-ignore */
.control:${qr.b} {
outline: calc(${Wr.vx} * 1px) solid ${Wr.Nz};
outline-offset: 2px;
-moz-outline-radius: 0px;
}
.control::-moz-focus-inner {
border: 0;
}
.start,
.end {
display: flex;
}
.control.icon-only {
padding: 0;
line-height: 0;
}
::slotted(svg) {
${""} width: 16px;
height: 16px;
pointer-events: none;
}
.start {
margin-inline-end: 11px;
}
.end {
margin-inline-start: 11px;
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host .control {
background-color: ${Pr.H.ButtonFace};
border-color: ${Pr.H.ButtonText};
color: ${Pr.H.ButtonText};
fill: currentColor;
}
:host(:hover) .control {
forced-color-adjust: none;
background-color: ${Pr.H.Highlight};
color: ${Pr.H.HighlightText};
}
/* prettier-ignore */
.control:${qr.b} {
forced-color-adjust: none;
background-color: ${Pr.H.Highlight};
outline-color: ${Pr.H.ButtonText};
color: ${Pr.H.HighlightText};
}
.control:hover,
:host([appearance='outline']) .control:hover {
border-color: ${Pr.H.ButtonText};
}
:host([href]) .control {
border-color: ${Pr.H.LinkText};
color: ${Pr.H.LinkText};
}
:host([href]) .control:hover,
:host([href]) .control:${qr.b} {
forced-color-adjust: none;
background: ${Pr.H.ButtonFace};
outline-color: ${Pr.H.LinkText};
color: ${Pr.H.LinkText};
fill: currentColor;
}
`)),Kr=Nr.i`
:host([appearance='accent']) {
background: ${Wr.Av};
color: ${Wr.w4};
}
:host([appearance='accent']:hover) {
background: ${Wr.OC};
color: ${Wr.lJ};
}
:host([appearance='accent'][aria-pressed='true']) {
box-shadow: inset 0px 0px 2px 2px ${Wr.VN};
}
:host([appearance='accent']:active) .control:active {
background: ${Wr.UE};
color: ${Wr.Pp};
}
:host([appearance="accent"]) .control:${qr.b} {
outline-color: ${Wr.D8};
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='accent']) .control {
forced-color-adjust: none;
background: ${Pr.H.Highlight};
color: ${Pr.H.HighlightText};
}
:host([appearance='accent']) .control:hover,
:host([appearance='accent']:active) .control:active {
background: ${Pr.H.HighlightText};
border-color: ${Pr.H.Highlight};
color: ${Pr.H.Highlight};
}
:host([appearance="accent"]) .control:${qr.b} {
outline-color: ${Pr.H.Highlight};
}
:host([appearance='accent'][href]) .control {
background: ${Pr.H.LinkText};
color: ${Pr.H.HighlightText};
}
:host([appearance='accent'][href]) .control:hover {
background: ${Pr.H.ButtonFace};
border-color: ${Pr.H.LinkText};
box-shadow: none;
color: ${Pr.H.LinkText};
fill: currentColor;
}
:host([appearance="accent"][href]) .control:${qr.b} {
outline-color: ${Pr.H.HighlightText};
}
`)),Yr=Nr.i`
:host([appearance='error']) {
background: ${Wr.a6};
color: ${Wr.w4};
}
:host([appearance='error']:hover) {
background: ${Wr.ek};
color: ${Wr.lJ};
}
:host([appearance='error'][aria-pressed='true']) {
box-shadow: inset 0px 0px 2px 2px ${Wr.DV};
}
:host([appearance='error']:active) .control:active {
background: ${Wr.GB};
color: ${Wr.Pp};
}
:host([appearance="error"]) .control:${qr.b} {
outline-color: ${Wr.mH};
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='error']) .control {
forced-color-adjust: none;
background: ${Pr.H.Highlight};
color: ${Pr.H.HighlightText};
}
:host([appearance='error']) .control:hover,
:host([appearance='error']:active) .control:active {
background: ${Pr.H.HighlightText};
border-color: ${Pr.H.Highlight};
color: ${Pr.H.Highlight};
}
:host([appearance="error"]) .control:${qr.b} {
outline-color: ${Pr.H.Highlight};
}
:host([appearance='error'][href]) .control {
background: ${Pr.H.LinkText};
color: ${Pr.H.HighlightText};
}
:host([appearance='error'][href]) .control:hover {
background: ${Pr.H.ButtonFace};
border-color: ${Pr.H.LinkText};
box-shadow: none;
color: ${Pr.H.LinkText};
fill: currentColor;
}
:host([appearance="error"][href]) .control:${qr.b} {
outline-color: ${Pr.H.HighlightText};
}
`)),Jr=(Nr.i`
:host([appearance='hypertext']) {
font-size: inherit;
line-height: inherit;
height: auto;
min-width: 0;
background: transparent;
}
:host([appearance='hypertext']) .control {
display: inline;
padding: 0;
border: none;
box-shadow: none;
border-radius: 0;
line-height: 1;
}
:host a.control:not(:link) {
background-color: transparent;
cursor: default;
}
:host([appearance='hypertext']) .control:link,
:host([appearance='hypertext']) .control:visited {
background: transparent;
color: ${Wr.go};
border-bottom: calc(${Wr.H} * 1px) solid ${Wr.go};
}
:host([appearance='hypertext']:hover),
:host([appearance='hypertext']) .control:hover {
background: transparent;
border-bottom-color: ${Wr.D9};
}
:host([appearance='hypertext']:active),
:host([appearance='hypertext']) .control:active {
background: transparent;
border-bottom-color: ${Wr.VN};
}
:host([appearance="hypertext"]) .control:${qr.b} {
outline-color: transparent;
border-bottom: calc(${Wr.vx} * 1px) solid ${Wr.yG};
margin-bottom: calc(calc(${Wr.H} - ${Wr.vx}) * 1px);
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='hypertext']:hover) {
background-color: ${Pr.H.ButtonFace};
color: ${Pr.H.ButtonText};
}
:host([appearance="hypertext"][href]) .control:hover,
:host([appearance="hypertext"][href]) .control:active,
:host([appearance="hypertext"][href]) .control:${qr.b} {
color: ${Pr.H.LinkText};
border-bottom-color: ${Pr.H.LinkText};
box-shadow: none;
}
`)),Nr.i`
:host([appearance='lightweight']) {
background: transparent;
color: ${Wr.go};
}
:host([appearance='lightweight']) .control {
padding: 0;
height: initial;
border: none;
box-shadow: none;
border-radius: 0;
}
:host([appearance='lightweight']:hover) {
background: transparent;
color: ${Wr.D9};
}
:host([appearance='lightweight']:active) {
background: transparent;
color: ${Wr.VN};
}
:host([appearance='lightweight']) .content {
position: relative;
}
:host([appearance='lightweight']) .content::before {
content: '';
display: block;
height: calc(${Wr.H} * 1px);
position: absolute;
top: calc(1em + 4px);
width: 100%;
}
:host([appearance='lightweight']:hover) .content::before {
background: ${Wr.D9};
}
:host([appearance='lightweight']:active) .content::before {
background: ${Wr.VN};
}
:host([appearance="lightweight"]) .control:${qr.b} {
outline-color: transparent;
}
:host([appearance="lightweight"]) .control:${qr.b} .content::before {
background: ${Wr.hY};
height: calc(${Wr.vx} * 1px);
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance="lightweight"]) .control:hover,
:host([appearance="lightweight"]) .control:${qr.b} {
forced-color-adjust: none;
background: ${Pr.H.ButtonFace};
color: ${Pr.H.Highlight};
}
:host([appearance="lightweight"]) .control:hover .content::before,
:host([appearance="lightweight"]) .control:${qr.b} .content::before {
background: ${Pr.H.Highlight};
}
:host([appearance="lightweight"][href]) .control:hover,
:host([appearance="lightweight"][href]) .control:${qr.b} {
background: ${Pr.H.ButtonFace};
box-shadow: none;
color: ${Pr.H.LinkText};
}
:host([appearance="lightweight"][href]) .control:hover .content::before,
:host([appearance="lightweight"][href]) .control:${qr.b} .content::before {
background: ${Pr.H.LinkText};
}
`))),Xr=Nr.i`
:host([appearance='outline']) {
background: transparent;
border-color: ${Wr.Av};
}
:host([appearance='outline']:hover) {
border-color: ${Wr.OC};
}
:host([appearance='outline']:active) {
border-color: ${Wr.UE};
}
:host([appearance='outline']) .control {
border-color: inherit;
}
:host([appearance="outline"]) .control:${qr.b} {
outline-color: ${Wr.D8};
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='outline']) .control {
border-color: ${Pr.H.ButtonText};
}
:host([appearance="outline"]) .control:${qr.b} {
forced-color-adjust: none;
background-color: ${Pr.H.Highlight};
outline-color: ${Pr.H.ButtonText};
color: ${Pr.H.HighlightText};
fill: currentColor;
}
:host([appearance='outline'][href]) .control {
background: ${Pr.H.ButtonFace};
border-color: ${Pr.H.LinkText};
color: ${Pr.H.LinkText};
fill: currentColor;
}
:host([appearance="outline"][href]) .control:hover,
:host([appearance="outline"][href]) .control:${qr.b} {
forced-color-adjust: none;
outline-color: ${Pr.H.LinkText};
}
`)),Qr=Nr.i`
:host([appearance='stealth']) {
background: transparent;
}
:host([appearance='stealth']:hover) {
background: ${Wr.Qp};
}
:host([appearance='stealth']:active) {
background: ${Wr.sG};
}
:host([appearance='stealth']) .control:${qr.b} {
outline-color: ${Wr.D8};
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='stealth']),
:host([appearance='stealth']) .control {
forced-color-adjust: none;
background: ${Pr.H.ButtonFace};
border-color: transparent;
color: ${Pr.H.ButtonText};
fill: currentColor;
}
:host([appearance='stealth']:hover) .control {
background: ${Pr.H.Highlight};
border-color: ${Pr.H.Highlight};
color: ${Pr.H.HighlightText};
fill: currentColor;
}
:host([appearance="stealth"]:${qr.b}) .control {
outline-color: ${Pr.H.Highlight};
color: ${Pr.H.HighlightText};
fill: currentColor;
}
:host([appearance='stealth'][href]) .control {
color: ${Pr.H.LinkText};
}
:host([appearance="stealth"][href]:hover) .control,
:host([appearance="stealth"][href]:${qr.b}) .control {
background: ${Pr.H.LinkText};
border-color: ${Pr.H.LinkText};
color: ${Pr.H.HighlightText};
fill: currentColor;
}
:host([appearance="stealth"][href]:${qr.b}) .control {
forced-color-adjust: none;
box-shadow: 0 0 0 1px ${Pr.H.LinkText};
}
`));class eo{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(e){Ir.y$.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){Ir.y$.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}function to(e,t){return new eo("appearance",e,t)}class no extends Ar{constructor(){super(...arguments),this.appearance="neutral"}defaultSlottedContentChanged(e,t){const n=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));1===n.length&&(n[0]instanceof SVGElement||n[0].classList.contains("fa")||n[0].classList.contains("fas"))?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}(0,Sr.gn)([jr.Lj],no.prototype,"appearance",void 0),(0,Sr.gn)([(0,jr.Lj)({attribute:"minimal",mode:"boolean"})],no.prototype,"minimal",void 0);const so=no.compose({baseName:"button",baseClass:Ar,template:(e,t)=>Br.d`
<button
class="control"
part="control"
?autofocus="${e=>e.autofocus}"
?disabled="${e=>e.disabled}"
form="${e=>e.formId}"
formaction="${e=>e.formaction}"
formenctype="${e=>e.formenctype}"
formmethod="${e=>e.formmethod}"
formnovalidate="${e=>e.formnovalidate}"
formtarget="${e=>e.formtarget}"
name="${e=>e.name}"
type="${e=>e.type}"
value="${e=>e.value}"
aria-atomic="${e=>e.ariaAtomic}"
aria-busy="${e=>e.ariaBusy}"
aria-controls="${e=>e.ariaControls}"
aria-current="${e=>e.ariaCurrent}"
aria-describedby="${e=>e.ariaDescribedby}"
aria-details="${e=>e.ariaDetails}"
aria-disabled="${e=>e.ariaDisabled}"
aria-errormessage="${e=>e.ariaErrormessage}"
aria-expanded="${e=>e.ariaExpanded}"
aria-flowto="${e=>e.ariaFlowto}"
aria-haspopup="${e=>e.ariaHaspopup}"
aria-hidden="${e=>e.ariaHidden}"
aria-invalid="${e=>e.ariaInvalid}"
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
aria-label="${e=>e.ariaLabel}"
aria-labelledby="${e=>e.ariaLabelledby}"
aria-live="${e=>e.ariaLive}"
aria-owns="${e=>e.ariaOwns}"
aria-pressed="${e=>e.ariaPressed}"
aria-relevant="${e=>e.ariaRelevant}"
aria-roledescription="${e=>e.ariaRoledescription}"
${(0,Dr.i)("control")}
>
${(0,Lr.m9)(e,t)}
<span class="content" part="content">
<slot ${(0,Or.Q)("defaultSlottedContent")}></slot>
</span>
${(0,Lr.LC)(e,t)}
</button>
`,styles:(e,t)=>Nr.i`
:host([disabled]),
:host([disabled]:hover),
:host([disabled]:active) {
opacity: ${Wr.VF};
background-color: ${Wr.wF};
cursor: ${Vr.H};
}
${Zr}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([disabled]),
:host([disabled]) .control,
:host([disabled]:hover),
:host([disabled]:active) {
forced-color-adjust: none;
background-color: ${Pr.H.ButtonFace};
outline-color: ${Pr.H.GrayText};
color: ${Pr.H.GrayText};
cursor: ${Vr.H};
opacity: 1;
}
`),to("accent",Nr.i`
:host([appearance='accent'][disabled]),
:host([appearance='accent'][disabled]:hover),
:host([appearance='accent'][disabled]:active) {
background: ${Wr.Av};
}
${Kr}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='accent'][disabled]) .control,
:host([appearance='accent'][disabled]) .control:hover {
background: ${Pr.H.ButtonFace};
border-color: ${Pr.H.GrayText};
color: ${Pr.H.GrayText};
}
`))),to("error",Nr.i`
:host([appearance='error'][disabled]),
:host([appearance='error'][disabled]:hover),
:host([appearance='error'][disabled]:active) {
background: ${Wr.a6};
}
${Yr}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='error'][disabled]) .control,
:host([appearance='error'][disabled]) .control:hover {
background: ${Pr.H.ButtonFace};
border-color: ${Pr.H.GrayText};
color: ${Pr.H.GrayText};
}
`))),to("lightweight",Nr.i`
:host([appearance='lightweight'][disabled]:hover),
:host([appearance='lightweight'][disabled]:active) {
background-color: transparent;
color: ${Wr.go};
}
:host([appearance='lightweight'][disabled]) .content::before,
:host([appearance='lightweight'][disabled]:hover) .content::before,
:host([appearance='lightweight'][disabled]:active) .content::before {
background: transparent;
}
${Jr}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='lightweight'].disabled) .control {
forced-color-adjust: none;
color: ${Pr.H.GrayText};
}
:host([appearance='lightweight'].disabled)
.control:hover
.content::before {
background: none;
}
`))),to("outline",Nr.i`
:host([appearance='outline'][disabled]),
:host([appearance='outline'][disabled]:hover),
:host([appearance='outline'][disabled]:active) {
background: transparent;
border-color: ${Wr.Av};
}
${Xr}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='outline'][disabled]) .control {
border-color: ${Pr.H.GrayText};
}
`))),to("stealth",Nr.i`
${Qr}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host([appearance='stealth'][disabled]) {
background: ${Pr.H.ButtonFace};
}
:host([appearance='stealth'][disabled]) .control {
background: ${Pr.H.ButtonFace};
border-color: transparent;
color: ${Pr.H.GrayText};
}
`)))),shadowOptions:{delegatesFocus:!0}}),io=(0,n(50450).r)(so());io.displayName="Jupyter.Button";var ro=n(68866),oo=n(6618),ao=n(75494),lo=n(82683),co=n(41681);class ho extends co.x{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}var po=n(27081);const uo="horizontal",mo="vertical";var go="undefined"==typeof Element,vo=go?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,fo=!go&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},wo=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return 0===n&&0===s},bo=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"].concat("iframe").join(","),yo=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==vo.call(e,bo)&&function(e,t){return!(t.disabled||function(e){return function(e){return"INPUT"===e.tagName}(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=vo.call(e,"details>summary:first-of-type")?e.parentElement:e;if(vo.call(i,"details:not([open]) *"))return!0;var r=fo(e).host,o=(null==r?void 0:r.ownerDocument.contains(r))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return wo(e)}else{if("function"==typeof s){for(var a=e;e;){var l=e.parentElement,c=fo(e);if(l&&!l.shadowRoot&&!0===s(l))return wo(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=a}if(o)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||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 s=t.children.item(n);if("LEGEND"===s.tagName)return!!vo.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))}(t,e)};const xo=Object.freeze({[po.uf.ArrowUp]:{[mo]:-1},[po.uf.ArrowDown]:{[mo]:1},[po.uf.ArrowLeft]:{[uo]:{[oo.N.ltr]:-1,[oo.N.rtl]:1}},[po.uf.ArrowRight]:{[uo]:{[oo.N.ltr]:1,[oo.N.rtl]:-1}}});class Co extends Hr.I{constructor(){super(...arguments),this._activeIndex=0,this.direction=oo.N.ltr,this.orientation=uo}get activeIndex(){return Ir.y$.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=function(e,t,n){return Math.min(Math.max(n,0),t)}(0,this.focusableElements.length-1,e),Ir.y$.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;const n=null===(t=this.focusableElements)||void 0===t?void 0:t.findIndex((t=>t.contains(e.target)));return n>-1&&this.activeIndex!==n&&this.setFocusedElement(n),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=(e=>{const t=this.closest("[dir]");return null!==t&&"rtl"===t.dir?oo.N.rtl:oo.N.ltr})()}focusinHandler(e){const t=e.relatedTarget;t&&!this.contains(t)&&this.setFocusedElement()}getDirectionalIncrementer(e){var t,n,s,i,r;return null!==(r=null!==(s=null===(n=null===(t=xo[e])||void 0===t?void 0:t[this.orientation])||void 0===n?void 0:n[this.direction])&&void 0!==s?s:null===(i=xo[e])||void 0===i?void 0:i[this.orientation])&&void 0!==r?r:0}keydownHandler(e){const t=e.key;if(!(t in po.uf)||e.defaultPrevented||e.shiftKey)return!0;const n=this.getDirectionalIncrementer(t);if(!n)return!e.target.closest("[role=radiogroup]");const s=this.activeIndex+n;return this.focusableElements[s]&&e.preventDefault(),this.setFocusedElement(s),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=null===(e=this.focusableElements)||void 0===e?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(So.reduceFocusableItems,[]);const n=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,n),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(document.activeElement)&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(e,t){var n,s,i,r;const o="radio"===t.getAttribute("role"),a=null===(s=null===(n=t.$fastController)||void 0===n?void 0:n.definition.shadowOptions)||void 0===s?void 0:s.delegatesFocus,l=Array.from(null!==(r=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelectorAll("*"))&&void 0!==r?r:[]).some((e=>yo(e)));return t.hasAttribute("disabled")||t.hasAttribute("hidden")||!(yo(t)||o||a||l)?t.childElementCount?e.concat(Array.from(t.children).reduce(So.reduceFocusableItems,[])):e:(e.push(t),e)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}(0,Sr.gn)([Ir.LO],Co.prototype,"direction",void 0),(0,Sr.gn)([jr.Lj],Co.prototype,"orientation",void 0),(0,Sr.gn)([Ir.LO],Co.prototype,"slottedItems",void 0),(0,Sr.gn)([Ir.LO],Co.prototype,"slottedLabel",void 0),(0,Sr.gn)([Ir.LO],Co.prototype,"childItems",void 0);class _o{}(0,Sr.gn)([(0,jr.Lj)({attribute:"aria-labelledby"})],_o.prototype,"ariaLabelledby",void 0),(0,Sr.gn)([(0,jr.Lj)({attribute:"aria-label"})],_o.prototype,"ariaLabel",void 0),(0,Er.e)(_o,Mr.v),(0,Er.e)(Co,Lr.hW,_o);class So extends Co{connectedCallback(){super.connectedCallback();const e=(0,ao.T)(this);e&&Wr.If.setValueFor(this,(t=>Wr.ab.getValueFor(t).evaluate(t,Wr.If.getValueFor(e))))}}const jo=So.compose({baseName:"toolbar",baseClass:Co,template:(e,t)=>{return Br.d`
<template
aria-label="${e=>e.ariaLabel}"
aria-labelledby="${e=>e.ariaLabelledby}"
aria-orientation="${e=>e.orientation}"
orientation="${e=>e.orientation}"
role="toolbar"
@mousedown="${(e,t)=>e.mouseDownHandler(t.event)}"
@focusin="${(e,t)=>e.focusinHandler(t.event)}"
@keydown="${(e,t)=>e.keydownHandler(t.event)}"
${n={property:"childItems",attributeFilter:["disabled","hidden"],filter:(0,co.R)(),subtree:!0},"string"==typeof n&&(n={property:n}),new lo.ON("fast-children",ho,n)}
>
<slot name="label"></slot>
<div class="positioning-region" part="positioning-region">
${(0,Lr.m9)(e,t)}
<slot
${(0,Or.Q)({filter:(0,co.R)(),property:"slottedItems"})}
></slot>
${(0,Lr.LC)(e,t)}
</div>
</template>
`;var n},styles:(e,t)=>Nr.i`
${(0,Ur.j)("inline-flex")} :host {
--toolbar-item-gap: calc(
(var(--design-unit) + calc(var(--density) + 2)) * 1px
);
background-color: ${Wr.If};
border-radius: calc(${Wr.UW} * 1px);
fill: currentcolor;
padding: var(--toolbar-item-gap);
}
:host(${qr.b}) {
outline: calc(${Wr.H} * 1px) solid ${Wr.D8};
}
.positioning-region {
align-items: flex-start;
display: inline-flex;
flex-flow: row wrap;
justify-content: flex-start;
width: 100%;
height: 100%;
}
:host([orientation='vertical']) .positioning-region {
flex-direction: column;
}
::slotted(:not([slot])) {
flex: 0 0 auto;
margin: 0 var(--toolbar-item-gap);
}
:host([orientation='vertical']) ::slotted(:not([slot])) {
margin: var(--toolbar-item-gap) 0;
}
.start,
.end {
display: flex;
margin: auto;
margin-inline: 0;
}
::slotted(svg) {
/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
width: 16px;
height: 16px;
}
`.withBehaviors((0,Rr.vF)(Nr.i`
:host(:${qr.b}) {
box-shadow: 0 0 0 calc(${Wr.vx} * 1px)
${Pr.H.Highlight};
color: ${Pr.H.ButtonText};
forced-color-adjust: none;
}
`)),shadowOptions:{delegatesFocus:!0}});var ko=n(93484),Io=n(76962),Mo=n(77727),Lo=n(83571),Eo=n(79892),To=n(90859);const Ho="--jp-layout-color1";let Fo=!1;const $o=e=>{const t=parseInt(e,10);return isNaN(t)?null:t},Ao={"--jp-border-width":{converter:$o,token:Wr.H},"--jp-border-radius":{converter:$o,token:Wr.UW},[Ho]:{converter:(e,t)=>{const n=(0,ko.lu)(e);if(n){const e=(0,Io.lw)(n),t=Mo.H.fromObject({h:e.h,s:e.s,l:.5}),s=(0,Io.hP)(t);return Lo.w.create(s.r,s.g,s.b)}return null},token:Wr.z4},"--jp-brand-color1":{converter:(e,t)=>{const n=(0,ko.lu)(e);if(n){const e=(0,Io.lw)(n),s=t?1:-1,i=Mo.H.fromObject({h:e.h,s:e.s,l:e.l+s*Wr.B2.getValueFor(document.body)/94}),r=(0,Io.hP)(i);return Lo.w.create(r.r,r.g,r.b)}return null},token:Wr.z},"--jp-error-color1":{converter:(e,t)=>{const n=(0,ko.lu)(e);if(n){const e=(0,Io.lw)(n),s=t?1:-1,i=Mo.H.fromObject({h:e.h,s:e.s,l:e.l+s*Wr.B2.getValueFor(document.body)/94}),r=(0,Io.hP)(i);return Lo.w.create(r.r,r.g,r.b)}return null},token:Wr.S_},"--jp-ui-font-family":{token:Wr.SV},"--jp-ui-font-size1":{token:Wr.cS}};function zo(){var e;const t=getComputedStyle(document.body),n=document.body.getAttribute("data-jp-theme-light");let s=!1;if(n)s="false"===n;else{const e=t.getPropertyValue(Ho).toString();if(e){const t=(0,ko.lu)(e);t&&(s=(0,To._)(Lo.w.create(t.r,t.g,t.b)),console.debug(`Theme is ${s?"dark":"light"} based on '${Ho}' value: ${e}.`))}}Wr.q2.setValueFor(document.body,s?Eo.h.DarkMode:Eo.h.LightMode);for(const n in Ao){const i=Ao[n],r=t.getPropertyValue(n).toString();if(document.body&&""!==r){const t=(null!==(e=i.converter)&&void 0!==e?e:e=>e)(r.trim(),s);null!==t?i.token.setValueFor(document.body,t):console.error(`Fail to parse value '${r}' for '${n}' as FAST design token.`)}}}var Bo=n(16934),Do=n(49503),Oo=n(14421),No=n(97934);class Vo extends p.Widget{constructor(){super(),this._rootDOM=null}static create(e){return new class extends Vo{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){Do.MessageLoop.sendMessage(this,p.Widget.Msg.UpdateRequest)}onBeforeDetach(e){null!==this._rootDOM&&(this._rootDOM.unmount(),this._rootDOM=null)}renderDOM(){return new Promise((e=>{const t=this.render();null===this._rootDOM&&(this._rootDOM=(0,m.s)(this.node)),Array.isArray(t)||t?(this._rootDOM.render(t),requestIdleCallback((()=>e()))):(this._rootDOM.unmount(),this._rootDOM=null,requestIdleCallback((()=>e())))}))}}class Ro extends Vo{constructor(e){super(),this._modelChanged=new h.Signal(this),this.model=null!=e?e:null}get modelChanged(){return this._modelChanged}set model(e){this._model!==e&&(this._model&&this._model.stateChanged.disconnect(this.update,this),this._model=e,e&&e.stateChanged.connect(this.update,this),this.update(),this._modelChanged.emit(void 0))}get model(){return this._model}dispose(){this.isDisposed||(this._model=null,super.dispose())}}class Po extends s.Component{constructor(e){super(e),this.slot=(e,t)=>{this.props.shouldUpdate&&!this.props.shouldUpdate(e,t)||this.setState({value:[e,t]})},this.state={value:[this.props.initialSender,this.props.initialArgs]}}componentDidMount(){this.props.signal.connect(this.slot)}componentWillUnmount(){this.props.signal.disconnect(this.slot)}render(){return this.props.children(...this.state.value)}}class Wo{constructor(){this.stateChanged=new h.Signal(this),this._isDisposed=!1}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,h.Signal.clearData(this))}}(0,ro.W)().register([so(),jo()]),Fo||(Fo=!0,function(){const e=()=>{new MutationObserver((()=>{zo()})).observe(document.body,{attributes:!0,attributeFilter:["data-jp-theme-name"],childList:!1,characterData:!1}),zo()};"complete"===document.readyState?e():window.addEventListener("load",e)}());const Uo="toolbar-popup-opener",qo="jp-Toolbar-spacer";class Go extends p.PanelLayout{constructor(){super(...arguments),this._dirty=!1}onFitRequest(e){super.onFitRequest(e),this.parent.isAttached&&((0,yr.some)(this.widgets,(e=>!e.isHidden))?(this.parent.node.style.minHeight="var(--jp-private-toolbar-height)",this.parent.removeClass("jp-Toolbar-micro")):(this.parent.node.style.minHeight="",this.parent.addClass("jp-Toolbar-micro"))),this._dirty=!0,this.parent.parent&&Do.MessageLoop.sendMessage(this.parent.parent,p.Widget.Msg.FitRequest),this._dirty&&Do.MessageLoop.sendMessage(this.parent,p.Widget.Msg.UpdateRequest)}onUpdateRequest(e){super.onUpdateRequest(e),this.parent.isVisible&&(this._dirty=!1)}onChildShown(e){super.onChildShown(e),this.parent.fit()}onChildHidden(e){super.onChildHidden(e),this.parent.fit()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}attachWidget(e,t){super.attachWidget(e,t),this.parent.fit()}detachWidget(e,t){super.detachWidget(e,t),this.parent.fit()}}class Zo extends p.Widget{constructor(e={}){var t;super({node:document.createElement("jp-toolbar")}),this.addClass("jp-Toolbar"),this.layout=null!==(t=e.layout)&&void 0!==t?t:new Go}names(){const e=this.layout;return(0,yr.map)(e.widgets,(e=>ia.nameProperty.get(e)))}addItem(e,t){const n=this.layout;return this.insertItem(n.widgets.length,e,t)}insertItem(e,t,n){if((0,yr.find)(this.names(),(e=>e===t)))return!1;n.addClass("jp-Toolbar-item");const s=this.layout,i=Math.max(0,Math.min(e,s.widgets.length));return s.insertWidget(i,n),ia.nameProperty.set(n,t),n.node.dataset.jpItemName=t,!0}insertAfter(e,t,n){return this.insertRelative(e,1,t,n)}insertBefore(e,t,n){return this.insertRelative(e,0,t,n)}insertRelative(e,t,n,s){const i=(0,yr.map)(this.names(),((e,t)=>({name:e,index:t}))),r=(0,yr.find)(i,(t=>t.name===e));return!!r&&this.insertItem(r.index+t,n,s)}handleEvent(e){"click"===e.type&&this.handleClick(e)}handleClick(e){if(e.stopPropagation(),e.target instanceof HTMLLabelElement){const t=e.target.getAttribute("for");if(t&&this.node.querySelector(`#${t}`))return}this.node.contains(document.activeElement)||this.parent&&this.parent.activate()}onAfterAttach(e){this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this)}}class Ko extends Zo{constructor(){super(),this.popupOpener=new sa,this._widgetWidths=new Map,this._widgetPositions=new Map,this._zoomChanged=!0,this.insertItem(0,Uo,this.popupOpener),this.popupOpener.hide(),this._resizer=new No.Throttler((async(e=!1)=>{await this._onResize(e)}),500)}dispose(){this.isDisposed||(this._resizer&&this._resizer.dispose(),super.dispose())}insertAfter(e,t,n){return e!==Uo&&super.insertAfter(e,t,n)}insertRelative(e,t,n,s){const i=this._widgetPositions.get(e),r=(null!=i?i:0)+t;return this.insertItem(r,n,s)}insertItem(e,t,n){var s;let i;if(n instanceof sa)i=super.insertItem(e,t,n);else{const s=Math.max(0,Math.min(e,this.layout.widgets.length-1));i=super.insertItem(s,t,n),s!==e&&(e=Math.max(0,Math.min(e,this._widgetPositions.size)))}if(t!==Uo&&this._widgetPositions.get(t)!==e){const n=null!==(s=this._widgetPositions.get(t))&&void 0!==s?s:this._widgetPositions.size;this._widgetPositions.forEach(((t,s)=>{s!==Uo&&(t>=e&&t<n?this._widgetPositions.set(s,t+1):t<=e&&t>n&&this._widgetPositions.set(s,t-1))})),this._widgetPositions.set(t,e),this.isVisible&&this._resizer.invoke()}return i}onAfterShow(e){this._resizer.invoke(!0)}onBeforeHide(e){this.popupOpener.hidePopup(),super.onBeforeHide(e)}onResize(e){super.onResize(e);const t=Math.round(window.outerWidth/window.innerWidth*100);t!==this._zoom&&(this._zoomChanged=!0,this._zoom=t),e.width>0&&this._resizer&&this._resizer.invoke()}async _onResize(e=!1){if(!this.parent||!this.parent.isAttached)return;const t=this.node.clientWidth,n=this.popupOpener;let s=n.isHidden?7:39;this._getWidgetsToRemove(s,t,32).then((s=>{var i,r;let{width:o,widgetsToRemove:a}=s;for(;a.length>0;){const e=a.pop(),t=ia.nameProperty.get(e);o-=this._widgetWidths.get(t)||0;const s=null!==(i=this._widgetPositions.get(t))&&void 0!==i?i:0;let l=this._widgetPositions.size;const c=n.widgetAt(0);if(c){const e=ia.nameProperty.get(c);l=null!==(r=this._widgetPositions.get(e))&&void 0!==r?r:l}const d=s-l;n.insertWidget(d,e)}if(n.widgetCount()>0){const e=[];let s=0;const i=n.widgetCount();for(;s<i;){let r=n.widgetAt(s);if(!r)break;if(o+=this._getWidgetWidth(r),i-e.length==1&&(o-=32),!(o<t))break;e.push(r),s++}for(;e.length>0;){const t=e.shift(),n=ia.nameProperty.get(t);this._widgetPositions.has(n)?this.insertItem(this._widgetPositions.get(n),n,t):this.addItem(n,t)}}n.widgetCount()>0?(n.updatePopup(),n.show()):n.hide(),e&&this._onResize()})).catch((e=>{console.error("Error while computing the ReactiveToolbar",e)}))}async _getWidgetsToRemove(e,t,n){var s;const i=this.popupOpener,r=this.layout,o=r.widgets.length-1,a=[];let l=0;for(;l<o;){const o=r.widgets[l],c=ia.nameProperty.get(o);let d;d=this._zoomChanged?await this._saveWidgetWidth(c,o):this._getWidgetWidth(o)||await this._saveWidgetWidth(c,o),e+=d,0===a.length&&i.isHidden&&e+n>t&&(e+=n),(e>t||(null!==(s=this._widgetPositions.get(c))&&void 0!==s?s:0)>l)&&a.push(o),l++}return this._zoomChanged=!1,{width:e,widgetsToRemove:a}}async _saveWidgetWidth(e,t){t instanceof Vo&&await t.renderPromise;const n=t.hasClass(qo)?2:t.node.clientWidth;return this._widgetWidths.set(e,n),n}_getWidgetWidth(e){const t=ia.nameProperty.get(e);return this._widgetWidths.get(t)||0}}function Yo(e){var t,n;const i=null!==(t=e.actualOnClick)&&void 0!==t&&t,r=i?void 0:t=>{var n;0===t.button&&(t.preventDefault(),null===(n=e.onClick)||void 0===n||n.call(e))},o=i?t=>{var n;0===t.button&&(null===(n=e.onClick)||void 0===n||n.call(e))}:void 0,l=!1===e.enabled&&e.disabledTooltip?e.disabledTooltip:e.pressed&&e.pressedTooltip?e.pressedTooltip:e.tooltip||e.iconLabel,c=!1===e.enabled;return s.createElement(io,{appearance:"stealth",className:e.className?e.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-disabled":c,"aria-label":e.label||l,"aria-pressed":e.pressed,...e.dataset,disabled:c,onClick:o,onMouseDown:r,onKeyDown:t=>{var n;const{key:s}=t;"Enter"!==s&&" "!==s||null===(n=e.onClick)||void 0===n||n.call(e)},title:l,minimal:!0},(e.icon||e.iconClass)&&s.createElement(b.resolveReact,{icon:e.pressed&&null!==(n=e.pressedIcon)&&void 0!==n?n:e.icon,iconClass:a(e.iconClass,"jp-Icon"),tag:null}),e.label&&s.createElement("span",{className:"jp-ToolbarButtonComponent-label"},e.label))}function Jo(e){return e.addClass("jp-ToolbarButton"),e}!function(e){e.createSpacerItem=function(){return new ia.Spacer}}(Zo||(Zo={}));class Xo extends Vo{constructor(e={}){var t,n;super(),this.props=e,Jo(this),this._enabled=null===(t=e.enabled)||void 0===t||t,this._pressed=this._enabled&&null!==(n=e.pressed)&&void 0!==n&&n,this._onClick=e.onClick}set pressed(e){this.enabled&&e!==this._pressed&&(this._pressed=e,this.update())}get pressed(){return this._pressed}set enabled(e){e!=this._enabled&&(this._enabled=e,this._enabled||(this._pressed=!1),this.update())}get enabled(){return this._enabled}set onClick(e){e!==this._onClick&&(this._onClick=e,this.update())}get onClick(){return this._onClick}render(){return s.createElement(Yo,{...this.props,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}}function Qo(e){return s.createElement(Po,{signal:e.commands.commandChanged,shouldUpdate:(t,n)=>n.id===e.id&&"changed"===n.type||"many-changed"===n.type},(()=>e.commands.listCommands().includes(e.id)?s.createElement(Yo,{...ia.propsFromCommand(e)}):null))}function ea(e){return e.addClass("jp-CommandToolbarButton"),e}class ta extends Vo{constructor(e){super(),this.props=e;const{commands:t,id:n,args:s}=e;ea(this),this.setCommandAttributes(t,n,s),t.commandChanged.connect(((i,r)=>{r.id===e.id&&this.setCommandAttributes(t,n,s)}),this)}setCommandAttributes(e,t,n){e.isToggled(t,n)?this.addClass("lm-mod-toggled"):this.removeClass("lm-mod-toggled"),e.isVisible(t,n)?this.removeClass("lm-mod-hidden"):this.addClass("lm-mod-hidden"),e.isEnabled(t,n)?"disabled"in this.node&&(this.node.disabled=!1):"disabled"in this.node&&(this.node.disabled=!0)}render(){return s.createElement(Qo,{...this.props})}}class na extends p.Widget{constructor(){super({node:document.createElement("jp-toolbar")}),this.width=0,this.addClass("jp-Toolbar"),this.addClass("jp-Toolbar-responsive-popup"),this.layout=new p.PanelLayout,p.Widget.attach(this,document.body),this.hide()}updateWidth(e){e>0&&(this.width=e,this.node.style.width=`${e}px`)}alignTo(e){const{height:t,width:n,x:s,y:i}=e.node.getBoundingClientRect(),r=this.width;this.node.style.left=s+n-r+1+"px",this.node.style.top=`${i+t+1}px`}insertWidget(e,t){this.layout.insertWidget(e,t)}widgetCount(){return this.layout.widgets.length}widgetAt(e){return this.layout.widgets[e]}}class sa extends Xo{constructor(e={}){const t=(e.translator||yt.nullTranslator).load("jupyterlab");super({icon:ee,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")}),this.addClass("jp-Toolbar-responsive-opener"),this.popup=new na}addWidget(e){this.popup.insertWidget(0,e)}insertWidget(e,t){this.popup.insertWidget(e,t)}dispose(){this.isDisposed||(this.popup.dispose(),super.dispose())}hide(){super.hide(),this.hidePopup()}hidePopup(){this.popup.hide()}updatePopup(){this.popup.updateWidth(this.parent.node.clientWidth),this.popup.alignTo(this.parent)}widgetAt(e){return this.popup.widgetAt(e)}widgetCount(){return this.popup.widgetCount()}handleClick(){this.updatePopup(),this.popup.setHidden(!this.popup.isHidden)}}var ia;!function(e){e.propsFromCommand=function(e){var t,n;const{commands:s,id:i,args:r}=e,o=s.iconClass(i,r),a=s.iconLabel(i,r),l=null!==(t=e.icon)&&void 0!==t?t:s.icon(i,r),c=s.label(i,r);let d,h=s.className(i,r);s.isToggleable(i,r)&&(d=s.isToggled(i,r),d&&(h+=" lm-mod-toggled")),s.isVisible(i,r)||(h+=" lm-mod-hidden");const p="function"==typeof e.label?e.label(null!=r?r:{}):e.label;let u=s.caption(i,r)||p||c||a;const m=s.keyBindings.find((e=>e.command===i));m&&(u=`${u} (${m.keys.map(Bo.CommandRegistry.formatKeystroke).join(", ")})`);const g=s.isEnabled(i,r);return{className:h,dataset:{"data-command":e.id},icon:l,iconClass:o,tooltip:null!==(n=e.caption)&&void 0!==n?n:u,onClick:()=>{s.execute(i,r)},enabled:g,label:null!=p?p:c,pressed:d}},e.nameProperty=new Oo.AttachedProperty({name:"name",create:()=>""});class t extends p.Widget{constructor(){super(),this.addClass(qo)}}e.Spacer=t}(ia||(ia={}));class ra extends p.Panel{constructor(e={}){super(e),this._toolbar=new Zo}get toolbar(){return this._toolbar}}var oa=n(31884);function aa(e,t){let n=1/0,s=null;const i=/[\p{L}\p{N}\p{M}]+/gu;for(;;){let r=i.exec(e);if(!r)break;let o=yr.StringExt.matchSumOfDeltas(e,t,r.index);if(!o)break;o&&o.score<=n&&(n=o.score,s=o.indices)}return s&&n!==1/0?{score:n,indices:s}:null}const la=(e,t,n)=>s=>t?aa(s,e.toLowerCase()):(n||(s=s.toLocaleLowerCase(),e=e.toLocaleLowerCase()),-1===s.indexOf(e)?null:{indices:[...Array(s.length).keys()].map((e=>e+1))}),ca=e=>{var t;const[n,r]=(0,s.useState)(null!==(t=e.initialQuery)&&void 0!==t?t:"");e.forceRefresh&&(0,s.useEffect)((()=>{e.updateFilter((e=>({})))}),[]),(0,s.useEffect)((()=>{void 0!==e.initialQuery&&e.updateFilter(la(e.initialQuery,e.useFuzzyFilter,e.caseSensitive),e.initialQuery)}),[]);const o=t=>{const n=t.target;r(n.value),e.updateFilter(la(n.value,e.useFuzzyFilter,e.caseSensitive),n.value)};return i().createElement(oa.o,{className:"jp-FilterBox",ref:e.inputRef,value:n,onChange:o,onInput:o,placeholder:e.placeholder,disabled:e.disabled},i().createElement(Qe.react,{slot:"end",tag:null}))},da=e=>Vo.create(i().createElement(ca,{updateFilter:e.updateFilter,useFuzzyFilter:e.useFuzzyFilter,placeholder:e.placeholder,forceRefresh:e.forceRefresh,caseSensitive:e.caseSensitive}));class ha extends p.AccordionLayout{constructor(){super(...arguments),this._toolbars=new WeakMap}insertWidget(e,t){t.toolbar&&(this._toolbars.set(t,t.toolbar),t.toolbar.addClass("jp-AccordionPanel-toolbar")),super.insertWidget(e,t)}removeWidgetAt(e){const t=this.widgets[e];super.removeWidgetAt(e),t&&this._toolbars.has(t)&&this._toolbars.delete(t)}attachWidget(e,t){super.attachWidget(e,t);const n=this._toolbars.get(t);n&&(this.parent.isAttached&&Do.MessageLoop.sendMessage(n,p.Widget.Msg.BeforeAttach),this.titles[e].appendChild(n.node),this.parent.isAttached&&Do.MessageLoop.sendMessage(n,p.Widget.Msg.AfterAttach))}detachWidget(e,t){const n=this._toolbars.get(t);n&&(this.parent.isAttached&&Do.MessageLoop.sendMessage(n,p.Widget.Msg.BeforeDetach),this.titles[e].removeChild(n.node),this.parent.isAttached&&Do.MessageLoop.sendMessage(n,p.Widget.Msg.AfterDetach)),super.detachWidget(e,t)}onBeforeAttach(e){this.notifyToolbars(e),super.onBeforeAttach(e)}onAfterAttach(e){super.onAfterAttach(e),this.notifyToolbars(e)}onBeforeDetach(e){this.notifyToolbars(e),super.onBeforeDetach(e)}onAfterDetach(e){super.onAfterDetach(e),this.notifyToolbars(e)}notifyToolbars(e){this.widgets.forEach((t=>{const n=this._toolbars.get(t);n&&n.processMessage(e)}))}}var pa,ua,ma;!function(e){class t extends p.AccordionPanel.Renderer{createCollapseIcon(e){const t=document.createElement("div");return T.element({container:t}),t}createSectionTitle(e){const t=super.createSectionTitle(e);return t.classList.add("jp-AccordionPanel-title"),t}}e.Renderer=t,e.defaultRenderer=new t,e.createLayout=function(t){var n;return t.layout||new ha({renderer:t.renderer||e.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:null!==(n=t.titleSpace)&&void 0!==n?n:32})}}(pa||(pa={}));class ga extends p.Widget{constructor(e={}){var t;super();const n=this.layout=new p.PanelLayout;this.addClass("jp-SidePanel");const s=this._trans=(e.translator||yt.nullTranslator).load("jupyterlab");e.header&&this.addHeader(e.header);const i=this._content=null!==(t=e.content)&&void 0!==t?t:new p.AccordionPanel({...e,layout:pa.createLayout(e)});i.node.setAttribute("role","region"),i.node.setAttribute("aria-label",s.__("side panel content")),i.addClass("jp-SidePanel-content"),n.addWidget(i),e.toolbar&&this.addToolbar(e.toolbar)}get content(){return this._content}get header(){return this._header||this.addHeader(),this._header}get toolbar(){return this._toolbar||this.addToolbar(),this._toolbar}get widgets(){return this.content.widgets}addWidget(e){this.content.addWidget(e)}insertWidget(e,t){this.content.insertWidget(e,t)}addHeader(e){const t=this._header=e||new p.Panel;t.addClass("jp-SidePanel-header"),this.layout.insertWidget(0,t)}addToolbar(e){const t=this._toolbar=null!=e?e:new Zo;t.addClass("jp-SidePanel-toolbar"),t.node.setAttribute("aria-label",this._trans.__("side panel actions")),this.layout.insertWidget(this.layout.widgets.length-1,t)}}class va extends p.Widget{constructor(){super(),this.addClass("jp-Spinner"),this.node.tabIndex=-1;const e=document.createElement("div");e.className="jp-SpinnerContent",this.node.appendChild(e)}onActivateRequest(e){this.node.focus()}}!function(e){function t(e,t,s=""){if(e.localName===t&&e.classList.add("jp-mod-styled"),"select"===e.localName){const t=e.hasAttribute("multiple");n(e,t)}const i=e.getElementsByTagName(t);for(let e=0;e<i.length;e++){const r=i[e];if(r.classList.add("jp-mod-styled"),s&&r.classList.add(s),"select"===t){const e=r.hasAttribute("multiple");n(r,e)}}}function n(e,t){const n=document.createElement("div");return n.classList.add("jp-select-wrapper"),e.addEventListener("focus",ma.onFocus),e.addEventListener("blur",ma.onFocus),e.classList.add("jp-mod-styled"),e.parentElement&&e.parentElement.replaceChild(n,e),n.appendChild(e),t?n.classList.add("multiple"):n.appendChild(L.element({tag:"span",stylesheet:"select",right:"8px",top:"5px",width:"18px"})),n}e.styleNode=function(e,n=""){t(e,"select",n),t(e,"textarea",n),t(e,"input",n),t(e,"button",n)},e.styleNodeByTag=t,e.wrapSelect=n}(ua||(ua={})),function(e){e.onFocus=function(e){const t=e.target.parentElement;t&&("focus"===e.type?t.classList.add("jp-mod-focused"):t.classList.remove("jp-mod-focused"))}}(ma||(ma={}));class fa extends p.Widget{constructor(){super(),this._button=document.createElement("button"),this._label=document.createElement("label"),this._valueChanged=new h.Signal(this),this._button.className="jp-switch",this._button.setAttribute("role","switch"),this._label.className="jp-switch-label";const e=document.createElement("div");e.className="jp-switch-track",e.setAttribute("aria-hidden","true"),this._button.appendChild(this._label),this._button.appendChild(e),this.node.appendChild(this._button)}get value(){return this._value}set value(e){const t=this._value;t!==e&&(this._button.setAttribute("aria-checked",e.toString()),this._value=e,this._valueChanged.emit({name:"value",oldValue:t,newValue:e}))}get valueChanged(){return this._valueChanged}get label(){var e;return null!==(e=this._label.textContent)&&void 0!==e?e:""}set label(e){this._label.textContent=e}get caption(){return this._button.title}set caption(e){this._button.title=e,this._label.title=e}handleEvent(e){"click"===e.type&&(this.value=!this.value)}onAfterAttach(){this._button.addEventListener("click",this)}onBeforeDetach(){this._button.removeEventListener("click",this)}}const wa="jp-sortable-table";function ba(e){const[t,n]=(0,s.useState)({sortKey:e.sortKey,sortDirection:e.sortDirection||1});let r=e.rows;const o=e.columns.filter((e=>e.id===t.sortKey))[0];if(o){const n=o.sort.bind(o);r=e.rows.sort(((e,s)=>n(e.data,s.data)*t.sortDirection))}const a=e.columns.filter((e=>(!e.isAvailable||e.isAvailable())&&!e.isHidden)),l=r.map((t=>{const n=a.map((e=>i().createElement("td",{key:e.id+"-"+t.key},e.renderCell(t.data))));return i().createElement("tr",{key:t.key,"data-key":t.key,onClick:e.onRowClick,className:"jp-sortable-table-tr"},n)})),c=a.map((e=>i().createElement(ya,{label:e.label,id:e.id,state:t,key:e.id,onSort:()=>{var s;(s=e.id)===t.sortKey?n({sortKey:s,sortDirection:-1*t.sortDirection}):n({sortKey:s,sortDirection:1})}})));return i().createElement("table",{className:wa},i().createElement("thead",null,i().createElement("tr",{className:"jp-sortable-table-tr"},c)),i().createElement("tbody",null,l))}function ya(e){const t=e.id===e.state.sortKey,n=t&&1!==e.state.sortDirection?T:A;return i().createElement("th",{key:e.id,onClick:()=>e.onSort(),className:t?"jp-sorted-header":void 0,"data-id":e.id},i().createElement("div",{className:"jp-sortable-table-th-wrapper"},i().createElement("label",null,e.label),i().createElement(n.react,{tag:"span",className:"jp-sort-icon"})))}let xa=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){xa={passive:!0}}}))}catch(e){}class Ca{constructor(e={}){var t,n,s,i,r,o;this.scrollDownThreshold=1,this.scrollUpThreshold=0,this.paddingTop=0,this._estimatedWidgetSize=_a.DEFAULT_WIDGET_SIZE,this._stateChanged=new h.Signal(this),this._currentWindow=[-1,-1,-1,-1],this._height=0,this._isDisposed=!1,this._itemsList=null,this._lastMeasuredIndex=-1,this._overscanCount=1,this._scrollOffset=0,this._widgetCount=0,this._widgetSizers=[],this._windowingActive=!0,this._widgetCount=null!==(s=null!==(n=null===(t=e.itemsList)||void 0===t?void 0:t.length)&&void 0!==n?n:e.count)&&void 0!==s?s:0,this._overscanCount=null!==(i=e.overscanCount)&&void 0!==i?i:1,this._windowingActive=null===(r=e.windowingActive)||void 0===r||r,this.itemsList=null!==(o=e.itemsList)&&void 0!==o?o:null}get height(){return this._height}set height(e){this._height=e}get isDisposed(){return this._isDisposed}get itemsList(){return this._itemsList}set itemsList(e){var t,n,s;if(this._itemsList!==e){this._itemsList&&this._itemsList.changed.disconnect(this.onListChanged,this);const i=this._itemsList;this._itemsList=e,this._itemsList?this._itemsList.changed.connect(this.onListChanged,this):this._widgetCount=0,this._stateChanged.emit({name:"list",newValue:this._itemsList,oldValue:i}),this._stateChanged.emit({name:"count",newValue:null!==(n=null===(t=this._itemsList)||void 0===t?void 0:t.length)&&void 0!==n?n:0,oldValue:null!==(s=null==i?void 0:i.length)&&void 0!==s?s:0})}}get overscanCount(){return this._overscanCount}set overscanCount(e){if(e>=1){if(this._overscanCount!==e){const t=this._overscanCount;this._overscanCount=e,this._stateChanged.emit({name:"overscanCount",newValue:e,oldValue:t})}}else console.error(`Forbidden non-positive overscan count: got ${e}`)}get scrollOffset(){return this._scrollOffset}set scrollOffset(e){this._scrollOffset=e}get widgetCount(){return this._itemsList?this._itemsList.length:this._widgetCount}set widgetCount(e){if(this.itemsList)console.error("It is not allow to change the widgets count of a windowed list if a items list is used.");else if(e>=0){if(this._widgetCount!==e){const t=this._widgetCount;this._widgetCount=e,this._stateChanged.emit({name:"count",newValue:e,oldValue:t})}}else console.error(`Forbidden negative widget count: got ${e}`)}get windowingActive(){return this._windowingActive}set windowingActive(e){if(e!==this._windowingActive){const t=this._windowingActive;this._windowingActive=e,this._currentWindow=[-1,-1,-1,-1],this._lastMeasuredIndex=-1,this._widgetSizers=[],this._stateChanged.emit({name:"windowingActive",newValue:e,oldValue:t})}}get stateChanged(){return this._stateChanged}dispose(){this.isDisposed||(this._isDisposed=!0,h.Signal.clearData(this))}getEstimatedTotalSize(){let e=0;if(this._lastMeasuredIndex>=this.widgetCount&&(this._lastMeasuredIndex=this.widgetCount-1),this._lastMeasuredIndex>=0){const t=this._widgetSizers[this._lastMeasuredIndex];e=t.offset+t.size}let t=0;for(let e=this._lastMeasuredIndex+1;e<this.widgetCount;e++)t+=this.estimateWidgetSize(e);return e+t}getOffsetForIndexAndAlignment(e,t="auto",n=0,s,i){const r=Math.min(Math.max(0,n),1),o=this._height,a=s?s.itemMetadata:this._getItemMetadata(e),l=this.scrollDownThreshold<=1?a.size*this.scrollDownThreshold:this.scrollDownThreshold,c=this.scrollUpThreshold<=1?a.size*this.scrollUpThreshold:this.scrollUpThreshold,d=s?s.totalSize:this.getEstimatedTotalSize(),h=Math.max(0,Math.min(d-o,a.offset)),p=Math.max(0,a.offset-o+a.size),u=s?s.currentOffset:this._scrollOffset,m=this._windowingActive?this.paddingTop:0,g=a.offset,v=a.offset+a.size,f=u-m+o,w=u-m,b=f>g&&f<v,y=f>v&&w<g;if("smart"===t){if(y||b&&f-g>=l||w>g&&w<v&&w-g<c)return u;t=u>=p-o&&u<=h+o?"auto":a.size>o?"top-center":"center"}if("auto"===t){if(y)return u;t=void 0!==i?i:b||f<=v?"end":"start"}switch(t){case"start":return Math.max(0,h-r*o)+m;case"end":return p+r*o+m;case"center":return p+(h-p)/2;case"top-center":return h-o/2}}getRangeToRender(){let e=[0,Math.max(this.widgetCount-1,-1),0,Math.max(this.widgetCount-1,-1)];const t=this._lastMeasuredIndex;this.windowingActive&&(e=this._getRangeToRender());const[n,s]=e;return t<=s||this._currentWindow[0]!==n||this._currentWindow[1]!==s?(this._currentWindow=e,e):null}getSpan(e,t){const n=this._getItemMetadata(e),s=n.offset,i=this._getItemMetadata(t);return[s,i.offset-n.offset+i.size]}resetAfterIndex(e){const t=this._lastMeasuredIndex;this._lastMeasuredIndex=Math.min(e,this._lastMeasuredIndex),this._lastMeasuredIndex!==t&&this._stateChanged.emit({name:"index",newValue:e,oldValue:t})}setWidgetSize(e){if(this._currentWindow[0]>=0){let t=1/0;for(const n of e){const e=n.index,s=n.size;this._widgetSizers[e].size!=s&&(this._widgetSizers[e].size=s,t=Math.min(t,e)),this._widgetSizers[e].measured=!0}if(t!=1/0)return this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,t),!0}return!1}onListChanged(e,t){switch(t.type){case"add":this._widgetSizers.splice(t.newIndex,0,...new Array(t.newValues.length).map(((e,t)=>({offset:0,size:this.estimateWidgetSize(t)})))),this.resetAfterIndex(t.newIndex-1);break;case"move":yr.ArrayExt.move(this._widgetSizers,t.oldIndex,t.newIndex),this.resetAfterIndex(Math.min(t.newIndex,t.oldIndex)-1);break;case"remove":this._widgetSizers.splice(t.oldIndex,t.oldValues.length),this.resetAfterIndex(t.oldIndex-1);break;case"set":this.resetAfterIndex(t.newIndex-1)}}_getItemMetadata(e){var t,n;if(e>this._lastMeasuredIndex){let s=0;if(this._lastMeasuredIndex>=0){const e=this._widgetSizers[this._lastMeasuredIndex];s=e.offset+e.size}for(let i=this._lastMeasuredIndex+1;i<=e;i++){let e=(null===(t=this._widgetSizers[i])||void 0===t?void 0:t.measured)?this._widgetSizers[i].size:this.estimateWidgetSize(i);this._widgetSizers[i]={offset:s,size:e,measured:null===(n=this._widgetSizers[i])||void 0===n?void 0:n.measured},s+=e}this._lastMeasuredIndex=e}for(let e=0;e<=this._lastMeasuredIndex;e++){const t=this._widgetSizers[e];if(0===e){if(0!==t.offset)throw new Error("First offset is not null")}else{const n=this._widgetSizers[e-1];if(t.offset!==n.offset+n.size)throw new Error(`Sizer ${e} has incorrect offset.`)}}return this._widgetSizers[e]}_findNearestItem(e){return(this._lastMeasuredIndex>0?this._widgetSizers[this._lastMeasuredIndex].offset:0)>=e?this._findNearestItemBinarySearch(this._lastMeasuredIndex,0,e):this._findNearestItemExponentialSearch(Math.max(0,this._lastMeasuredIndex),e)}_findNearestItemBinarySearch(e,t,n){for(;t<=e;){const s=t+Math.floor((e-t)/2),i=this._getItemMetadata(s).offset;if(i===n)return s;i<n?t=s+1:i>n&&(e=s-1)}return t>0?t-1:0}_findNearestItemExponentialSearch(e,t){let n=1;for(;e<this.widgetCount&&this._getItemMetadata(e).offset<t;)e+=n,n*=2;return this._findNearestItemBinarySearch(Math.min(e,this.widgetCount-1),Math.floor(e/2),t)}_getRangeToRender(){const e=this.widgetCount;if(0===e)return[-1,-1,-1,-1];const t=this._getStartIndexForOffset(this._scrollOffset),n=this._getStopIndexForStartIndex(t,this._scrollOffset),s=Math.max(1,this.overscanCount),i=Math.max(1,this.overscanCount);return[Math.max(0,t-s),Math.max(0,Math.min(e-1,n+i)),t,n]}_getStartIndexForOffset(e){return this._findNearestItem(e)}_getStopIndexForStartIndex(e,t){const n=this._height,s=this._getItemMetadata(e),i=t+n;let r=s.offset+s.size,o=e;for(;o<this.widgetCount-1&&r<i;)o++,r+=this._getItemMetadata(o).size;return o}}class _a extends p.Widget{constructor(e){var t,n;const s=null!==(t=e.renderer)&&void 0!==t?t:_a.defaultRenderer,i=document.createElement("div");i.className="jp-WindowedPanel";const r=i.appendChild(document.createElement("div"));r.classList.add("jp-WindowedPanel-scrollbar"),r.appendChild(s.createScrollbar()).classList.add("jp-WindowedPanel-scrollbar-content");const o=i.appendChild(s.createOuter());o.classList.add("jp-WindowedPanel-outer");const a=o.appendChild(document.createElement("div"));a.className="jp-WindowedPanel-inner";const l=a.appendChild(s.createViewport());l.classList.add("jp-WindowedPanel-viewport"),super({node:i}),this.jumped=new h.Signal(this),this._needsUpdate=!1,super.layout=null!==(n=e.layout)&&void 0!==n?n:new Sa,this.renderer=s,this._innerElement=a,this._isScrolling=null,this._outerElement=o,this._itemsResizeObserver=null,this._scrollbarElement=r,this._scrollToItem=null,this._scrollRepaint=null,this._scrollUpdateWasRequested=!1,this._updater=new No.Throttler((()=>this.update()),50),this._viewModel=e.model,this._viewport=l,e.scrollbar&&i.classList.add("jp-mod-virtual-scrollbar"),this.viewModel.stateChanged.connect(this.onStateChanged,this)}get isParentHidden(){return this._isParentHidden}set isParentHidden(e){this._isParentHidden=e}get layout(){return super.layout}get outerNode(){return this._outerElement}get viewportNode(){return this._viewport}get scrollbar(){return this.node.classList.contains("jp-mod-virtual-scrollbar")}set scrollbar(e){e?this.node.classList.add("jp-mod-virtual-scrollbar"):this.node.classList.remove("jp-mod-virtual-scrollbar"),this._adjustDimensionsForScrollbar(),this.update()}get viewModel(){return this._viewModel}dispose(){this._updater.dispose(),super.dispose()}handleEvent(e){switch(e.type){case"pointerdown":e.preventDefault(),e.stopPropagation(),this._evtPointerDown(e);break;case"scroll":this.onScroll(e)}}scrollTo(e){this.viewModel.windowingActive?(e=Math.max(0,e))!==this.viewModel.scrollOffset&&(this.viewModel.scrollOffset=e,this._scrollUpdateWasRequested=!0,this.update()):this._outerElement.scrollTo({top:e})}scrollToItem(e,t="auto",n=.25,s){let i;if(this._isScrolling&&null!==this._scrollToItem&&this._scrollToItem[0]===e&&this._scrollToItem[1]===t||(this._isScrolling&&this._isScrolling.reject("Scrolling to a new item is requested."),this._isScrolling=new u.PromiseDelegate,this._isScrolling.promise.catch(console.debug)),this._scrollToItem=[e,t,n,s],this._resetScrollToItem(),!this.viewModel.windowingActive){const t=this._innerElement.querySelector(`[data-windowed-list-index="${e}"]`);if(!(t&&t instanceof HTMLElement))return console.debug(`Element with index ${e} not found`),Promise.resolve();i={totalSize:this._outerElement.scrollHeight,itemMetadata:{offset:t.offsetTop,size:t.clientHeight},currentOffset:this._outerElement.scrollTop}}return this.scrollTo(this.viewModel.getOffsetForIndexAndAlignment(Math.max(0,Math.min(e,this.viewModel.widgetCount-1)),t,n,i,s)),this._isScrolling.promise}onAfterAttach(e){super.onAfterAttach(e),this.viewModel.windowingActive?this._applyWindowingStyles():this._applyNoWindowingStyles(),this._addListeners(),this.viewModel.height=this.node.getBoundingClientRect().height;const t=window.getComputedStyle(this._viewport);this.viewModel.paddingTop=parseFloat(t.paddingTop),this._scrollbarElement.addEventListener("pointerdown",this)}onBeforeDetach(e){this._removeListeners(),this._scrollbarElement.removeEventListener("pointerdown",this),super.onBeforeDetach(e)}onScroll(e){const{clientHeight:t,scrollHeight:n,scrollTop:s}=e.currentTarget;if(!this._scrollUpdateWasRequested&&Math.abs(this.viewModel.scrollOffset-s)>1){const e=Math.max(0,Math.min(s,n-t));this.viewModel.scrollOffset=e,this._scrollUpdateWasRequested=!1,this.update()}}onResize(e){const t=this.viewModel.height;this.viewModel.height=e.height>=0?e.height:this.node.getBoundingClientRect().height,this.viewModel.height!==t&&this._updater.invoke(),super.onResize(e),this._updater.invoke()}onStateChanged(e,t){switch(t.name){case"windowingActive":if(this._removeListeners(),this.viewModel.windowingActive)return this._applyWindowingStyles(),this.onScroll({currentTarget:this.node}),void this._addListeners();this._applyNoWindowingStyles(),this._addListeners();break;case"estimatedWidgetSize":return void this._updateTotalSize()}this.update()}onUpdateRequest(e){this.scrollbar&&this._renderScrollbar(),this.viewModel.windowingActive?null===this._scrollRepaint?(this._needsUpdate=!1,this._scrollRepaint=window.requestAnimationFrame((()=>{this._scrollRepaint=null,this._update(),this._needsUpdate&&this.update()}))):this._needsUpdate=!0:this._update()}_adjustDimensionsForScrollbar(){const e=this._outerElement,t=this._scrollbarElement;if(this.scrollbar){let n=e.offsetWidth-e.clientWidth;0==n?(n=1e3,e.style.paddingRight=`${n}px`,e.style.boxSizing="border-box"):e.style.paddingRight="0",e.style.width=`calc(100% + ${n}px)`,this._innerElement.style.marginRight=`${t.offsetWidth}px`}else e.style.width="100%",this._innerElement.style.marginRight="0",e.style.paddingRight="0",e.style.boxSizing=""}_addListeners(){if(this.viewModel.windowingActive){this._itemsResizeObserver||(this._itemsResizeObserver=new ResizeObserver(this._onItemResize.bind(this)));for(const e of this.layout.widgets)this._itemsResizeObserver.observe(e.node),e.disposed.connect((()=>{var t;return null===(t=this._itemsResizeObserver)||void 0===t?void 0:t.unobserve(e.node)}));this._outerElement.addEventListener("scroll",this,xa),this._scrollbarResizeObserver=new ResizeObserver(this._adjustDimensionsForScrollbar.bind(this)),this._scrollbarResizeObserver.observe(this._outerElement),this._scrollbarResizeObserver.observe(this._scrollbarElement)}else this._areaResizeObserver||(this._areaResizeObserver=new ResizeObserver(this._onAreaResize.bind(this)),this._areaResizeObserver.observe(this._innerElement))}_applyNoWindowingStyles(){this._viewport.style.position="relative",this._viewport.style.top="0px"}_applyWindowingStyles(){this._viewport.style.position="absolute"}_removeListeners(){var e,t,n;this._outerElement.removeEventListener("scroll",this),null===(e=this._areaResizeObserver)||void 0===e||e.disconnect(),this._areaResizeObserver=null,null===(t=this._itemsResizeObserver)||void 0===t||t.disconnect(),this._itemsResizeObserver=null,null===(n=this._scrollbarResizeObserver)||void 0===n||n.disconnect(),this._scrollbarResizeObserver=null}_update(){var e;if(this.isDisposed||!this.layout)return;const t=this.viewModel.getRangeToRender();if(null!==t){const[n,s]=t,i=[];if(s>=0)for(let e=n;e<=s;e++){const t=this.viewModel.widgetRenderer(e);t.dataset.windowedListIndex=`${e}`,i.push(t)}for(let t=this.layout.widgets.length-1;t>=0;t--)i.includes(this.layout.widgets[t])||(null===(e=this._itemsResizeObserver)||void 0===e||e.unobserve(this.layout.widgets[t].node),this.layout.removeWidget(this.layout.widgets[t]));for(let e=0;e<i.length;e++){const t=i[e];this._itemsResizeObserver&&!this.layout.widgets.includes(t)&&(this._itemsResizeObserver.observe(t.node),t.disposed.connect((()=>{var e;return null===(e=this._itemsResizeObserver)||void 0===e?void 0:e.unobserve(t.node)}))),this.layout.insertWidget(e,t)}if(this.viewModel.windowingActive){if(s>=0){this._updateTotalSize();const[e,t]=this.viewModel.getSpan(n,s);this._viewport.style.top=`${e}px`,this._viewport.style.minHeight=`${t}px`}else this._innerElement.style.height="0px",this._viewport.style.top="0px",this._viewport.style.minHeight="0px";this._scrollUpdateWasRequested&&(this._outerElement.scrollTop=this.viewModel.scrollOffset,this._scrollUpdateWasRequested=!1)}}let n=-1;for(const e of this._viewport.children){const t=parseInt(e.dataset.windowedListIndex,10);if(t<n)throw new Error("Inconsistent dataset index");n=t}}_onAreaResize(e){this._scrollBackToItemOnResize()}_onItemResize(e){if(this._resetScrollToItem(),this.isHidden||this.isParentHidden)return;const t=[];for(let n of e)n.target.isConnected&&t.push({index:parseInt(n.target.dataset.windowedListIndex,10),size:n.borderBoxSize[0].blockSize});this.viewModel.setWidgetSize(t)&&(this._scrollBackToItemOnResize(),this.update())}_scrollBackToItemOnResize(){this._scrollToItem&&this.scrollToItem(...this._scrollToItem).catch((e=>{console.log(e)}))}_resetScrollToItem(){this._resetScrollToItemTimeout&&clearTimeout(this._resetScrollToItemTimeout),this._scrollToItem&&(this._resetScrollToItemTimeout=window.setTimeout((()=>{this._scrollToItem=null,this._isScrolling&&(this._isScrolling.resolve(),this._isScrolling=null)}),100))}_renderScrollbar(){var e,t;const{node:n,renderer:s,viewModel:i}=this,r=n.querySelector(".jp-WindowedPanel-scrollbar-content");for(;r.firstChild;)r.removeChild(r.firstChild);const o=i.itemsList,a=null!==(e=null==o?void 0:o.length)&&void 0!==e?e:i.widgetCount;for(let e=0;e<a;e+=1){const n=null===(t=null==o?void 0:o.get)||void 0===t?void 0:t.call(o,e),i=s.createScrollbarItem(this,e,n);i.classList.add("jp-WindowedPanel-scrollbar-item"),i.dataset.index=`${e}`,r.appendChild(i)}}_evtPointerDown(e){let t=e.target;for(;t&&t.parentElement;){if(t.hasAttribute("data-index")){const e=parseInt(t.getAttribute("data-index"),10);return void(async()=>{await this.scrollToItem(e),this.jumped.emit(e)})()}t=t.parentElement}}_updateTotalSize(){if(this.viewModel.windowingActive){const e=this.viewModel.getEstimatedTotalSize();this._innerElement.style.height=`${e}px`}}}_a.DEFAULT_WIDGET_SIZE=50;class Sa extends p.PanelLayout{constructor(){super({fitPolicy:"set-no-constraint"})}get parent(){return super.parent}set parent(e){super.parent=e}attachWidget(e,t){let n=this.parent.viewportNode.children[e];this.parent.isAttached&&Do.MessageLoop.sendMessage(t,p.Widget.Msg.BeforeAttach),this.parent.viewportNode.insertBefore(t.node,n),this.parent.isAttached&&Do.MessageLoop.sendMessage(t,p.Widget.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&Do.MessageLoop.sendMessage(t,p.Widget.Msg.BeforeDetach),this.parent.viewportNode.removeChild(t.node),this.parent.isAttached&&Do.MessageLoop.sendMessage(t,p.Widget.Msg.AfterDetach)}moveWidget(e,t,n){let s=this.parent.viewportNode.children[t];e<t?s.insertAdjacentElement("afterend",n.node):s.insertAdjacentElement("beforebegin",n.node)}onUpdateRequest(e){}}!function(e){class t{createOuter(){return document.createElement("div")}createScrollbar(){return document.createElement("ol")}createScrollbarItem(e,t){const n=document.createElement("li");return n.appendChild(document.createTextNode(`${t}`)),n}createViewport(){return document.createElement("div")}}e.Renderer=t,e.defaultRenderer=new t}(_a||(_a={}));var ja=n(24475);const ka=de.bindprops({stylesheet:"commandPaletteHeader",className:"jp-icon-hoverShow-content"});var Ia;!function(e){class t extends p.CommandPalette.Renderer{renderHeader(e){const t=this.formatHeader(e);return ja.h.li({className:a("lm-CommandPalette-header","jp-icon-hoverShow")},t,ja.h.span(ka))}renderItemIcon(e){const t=this.createIconClass(e);return e.item.isToggled?ja.h.div({className:t},B,e.item.iconLabel):ja.h.div({className:t},e.item.icon,e.item.iconLabel)}createIconClass(e){return a(v.styleClass({stylesheet:"commandPaletteItem"}),e.item.iconClass,"lm-CommandPalette-itemIcon")}}e.Renderer=t,e.defaultRenderer=new t}(Ia||(Ia={}));const Ma=F.bindprops({stylesheet:"menuItem"});class La extends p.ContextMenu{constructor(e){super(e),this._isDisposed=!1,this._opened=new h.Signal(this),this.menu=new Ea(e)}get isDisposed(){return this._isDisposed}get opened(){return this._opened}dispose(){this._isDisposed||(this._isDisposed=!0,this.menu.dispose(),h.Signal.disconnectSender(this))}open(e){if(this._isDisposed)return!1;const t=super.open(e);return t&&this._opened.emit(),t}}class Ea extends p.Menu{constructor(e){e.renderer=e.renderer||Ea.defaultRenderer,super(e)}insertItem(e,t){return t.submenu&&Ea.overrideDefaultRenderer(t.submenu),super.insertItem(e,t)}}!function(e){e.overrideDefaultRenderer=function t(n){n.renderer===p.Menu.defaultRenderer&&(n.renderer=e.defaultRenderer);const s=n.insertItem.bind(n);n.insertItem=(t,n)=>(n.submenu&&e.overrideDefaultRenderer(n.submenu),s(t,n));for(const e of n._items)e.submenu&&t(e.submenu)};class t extends p.Menu.Renderer{renderIcon(e){const t=this.createIconClass(e);return e.item.isToggled?ja.h.div({className:t},B,e.item.iconLabel):ja.h.div({className:t},e.item.icon,e.item.iconLabel)}createIconClass(e){let t="lm-Menu-itemIcon";return"separator"===e.item.type?a(e.item.iconClass,t):a(v.styleClass({stylesheet:"menuItem"}),e.item.iconClass,t)}renderSubmenu(e){const t="lm-Menu-itemSubmenuIcon";return"submenu"===e.item.type?ja.h.div({className:t},Ma):ja.h.div({className:t})}}e.Renderer=t,e.defaultRenderer=new t}(Ea||(Ea={}));class Ta extends p.TabBar{constructor(e={}){var t;super({renderer:Ta.defaultRenderer,...e});const n=(null!==(t=Ta.translator)&&void 0!==t?t:yt.nullTranslator).load("jupyterlab");S.element({container:this.addButtonNode,title:n.__("New Launcher")})}}Ta.translator=null,function(e){class t extends p.TabBar.Renderer{renderCloseIcon(t){var n;const s=(null!==(n=e.translator)&&void 0!==n?n:yt.nullTranslator).load("jupyterlab"),i=t.title.label?s.__("Close %1",t.title.label):s.__("Close tab"),r=a("jp-icon-hover lm-TabBar-tabCloseIcon",v.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return(0,ja.hpass)("div",{className:r,title:i},V)}}e.Renderer=t,e.defaultRenderer=new t}(Ta||(Ta={}));class Ha extends p.DockPanel{constructor(e={}){super({renderer:Ha.defaultRenderer,...e})}}!function(e){class t extends p.DockPanel.Renderer{createTabBar(){const e=new Ta;return e.addClass("lm-DockPanel-tabBar"),e}}e.Renderer=t,e.defaultRenderer=new t}(Ha||(Ha={}));class Fa extends p.TabPanel{constructor(e={}){e.renderer=e.renderer||Ta.defaultRenderer,super(e)}}const $a="jp-HoverBox",Aa="-1000";var za;!function(e){e.setGeometry=function(e){const{anchor:t,host:n,node:s,privilege:i,outOfViewDisplay:r}=e,o=n.getBoundingClientRect();s.classList.contains($a)||s.classList.add($a),s.style.visibility&&(s.style.visibility=""),""===s.style.zIndex&&(s.style.zIndex=""),s.style.maxHeight="",s.style.marginTop="";const a=e.style||window.getComputedStyle(s),l=t.top-o.top,c=o.bottom-t.bottom,d=parseInt(a.marginTop,10)||0,h=parseInt(a.marginLeft,10)||0,p=parseInt(a.minHeight,10)||e.minHeight;let u=parseInt(a.maxHeight,10)||e.maxHeight;const m="forceAbove"!==i&&("forceBelow"===i||("above"===i?l<u&&l<c:c>=u||c>=l));if(m?u=Math.min(c-d,u):(u=Math.min(l,u),s.style.marginTop="0px"),s.style.maxHeight=`${u}px`,!(u>=p&&(c>=p||l>=p)))return s.style.zIndex=Aa,void(s.style.visibility="hidden");e.size?(s.style.width=`${e.size.width}px`,s.style.height=`${e.size.height}px`,s.style.contain="strict"):(s.style.contain="",s.style.width="auto",s.style.height="");const g=e.size?e.size.height:s.getBoundingClientRect().height,v=e.offset&&e.offset.vertical&&e.offset.vertical.above||0,f=e.offset&&e.offset.vertical&&e.offset.vertical.below||0;let w=m?o.bottom-c+f:o.top+l-g+v;s.style.top=`${Math.floor(w)}px`;const b=e.offset&&e.offset.horizontal||0;let y=t.left+b;s.style.left=`${Math.ceil(y)}px`;let x=s.getBoundingClientRect(),C=x.right;C>window.innerWidth&&(y-=C-window.innerWidth,C=window.innerWidth,s.style.left=`${Math.ceil(y)}px`),y<b-h&&(y=b-h,s.style.left=`${Math.ceil(y)}px`),s.style.zIndex="-1000";const _=x.bottom,S=n.contains(document.elementFromPoint(y,w)),j=n.contains(document.elementFromPoint(C,w)),k=n.contains(document.elementFromPoint(C,_)),I=n.contains(document.elementFromPoint(y,_));s.style.zIndex="";const M=S||j,L=I||k,E=S||I,T=k||j,H=_-w,F=C-y,$=w<o.top,A=_>o.bottom,z=y+h<o.left,B=C>o.right;let D=!1,O=!1,N=!1;if($)switch((null==r?void 0:r.top)||"hidden-inside"){case"hidden-inside":M||(D=!0);break;case"hidden-outside":L||(D=!0);break;case"stick-inside":o.top>w&&(w=o.top,N=!0);break;case"stick-outside":o.top>_&&(w=o.top-H,N=!0)}if(A)switch((null==r?void 0:r.bottom)||"hidden-outside"){case"hidden-inside":L||(D=!0);break;case"hidden-outside":M||(D=!0);break;case"stick-inside":o.bottom<_&&(w=o.bottom-H,N=!0);break;case"stick-outside":o.bottom<w&&(w=o.bottom,N=!0)}if(z)switch((null==r?void 0:r.left)||"hidden-inside"){case"hidden-inside":E||(D=!0);break;case"hidden-outside":T||(D=!0);break;case"stick-inside":o.left>y+h&&(y=o.left-h,O=!0);break;case"stick-outside":o.left>C&&(y=o.left-h-F,O=!0)}if(B)switch((null==r?void 0:r.right)||"hidden-outside"){case"hidden-inside":T||(D=!0);break;case"hidden-outside":E||(D=!0);break;case"stick-inside":o.right<C&&(y=o.right-F,O=!0);break;case"stick-outside":o.right<y&&(y=o.right,O=!0)}D&&(s.style.zIndex=Aa,s.style.visibility="hidden"),O&&(s.style.left=`${Math.ceil(y)}px`),N&&(s.style.top=`${Math.ceil(w)}px`)}}(za||(za={}));const Ba=new u.Token("@jupyterlab/ui-components:IFormRendererRegistry","A service for settings form renderer registration."),Da=new u.Token("@jupyterlab/ui-components:ILabIconManager","A service to register and request icons.");class Oa{constructor(){this._renderers={}}addRenderer(e,t){if(this._renderers[e])throw new Error(`A renderer with id '${e}' is already registered.`);if(!t.fieldRenderer&&!t.widgetRenderer)throw new Error(`The component for '${e}' cannot be registered as it does not define 'fieldRenderer' nor 'widgetRenderer'.`);const n=e.lastIndexOf("."),s=e.substring(0,n),i=e.substring(n+1);if(0==s.length||0==i.length)throw new Error(`Form renderer id must follows the structure '<ISettingRegistry.IPlugin.id>.<propertyName>'; got ${e}.`);this._renderers[e]=t}get renderers(){return this._renderers}getRenderer(e){return this._renderers[e]}}},8843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cache:()=>m,FreeStyle:()=>b,Rule:()=>f,Selector:()=>g,Style:()=>v,create:()=>y});let s=0;const i=Object.create(null),r=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(const e of r)for(const t of["-webkit-","-ms-","-moz-","-o-",""])i[t+e]=!0;function o(e,t){return t&&"number"==typeof t&&!i[e]?`${e}:${t}px`:`${e}:${t}`}function a(e){return e.sort(((e,t)=>e[0]>t[0]?1:-1))}function l(e){return e.map((([e,t])=>Array.isArray(t)?t.map((t=>o(e,t))).join(";"):o(e,t))).join(";")}function c(e,t){return-1===e.indexOf("&")?`${t} ${e}`:e.replace(/&/g,t)}function d(e,t,n,s,i){const{style:r,nested:o,isUnique:h}=function(e,t){const n=[],s=[];for(const t of Object.keys(e)){const r=t.trim(),o=e[t];36!==r.charCodeAt(0)&&null!=o&&("object"!=typeof o||Array.isArray(o)?n.push([(i=r,i.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace(/^ms-/,"-ms-")),o]):s.push([r,o]))}var i;return{style:l(a(n)),nested:t?s:a(s),isUnique:!!e.$unique}}(t,""!==e);let p=r;if(64===e.charCodeAt(0)){const t={selector:e,styles:[],rules:[],style:i?"":r};n.push(t),r&&i&&t.styles.push({selector:i,style:r,isUnique:h});for(const[e,n]of o)p+=e+d(e,n,t.rules,t.styles,i)}else{const t=i?c(e,i):e;r&&s.push({selector:t,style:r,isUnique:h});for(const[e,i]of o)p+=e+d(e,i,n,s,t)}return p}function h(e,t,n,i,r,o){for(const{selector:n,style:a,isUnique:l}of i){const i=o?c(n,r):n,d=l?`u\0${(++s).toString(36)}`:`s\0${t}\0${a}`,h=new v(a,d);h.add(new g(i,`k\0${t}\0${i}`)),e.add(h)}for(const{selector:s,style:i,rules:a,styles:l}of n){const n=new f(s,i,`r\0${t}\0${s}\0${i}`);h(n,t,a,l,r,o),e.add(n)}}function p(e){let t="";for(let n=0;n<e.length;n++)t+=e[n];return t}const u={add:()=>{},change:()=>{},remove:()=>{}};class m{constructor(e=u){this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(e){const t=this._counters[e.id]||0,n=this._children[e.id]||e.clone();if(this._counters[e.id]=t+1,0===t)this._children[n.id]=n,this._keys.push(n.id),this.sheet.push(n.getStyles()),this.changeId++,this.changes.add(n,this._keys.length-1);else if(n instanceof m&&e instanceof m){const t=this._keys.indexOf(e.id),s=n.changeId;n.merge(e),n.changeId!==s&&(this.sheet.splice(t,1,n.getStyles()),this.changeId++,this.changes.change(n,t,t))}}remove(e){const t=this._counters[e.id];if(t){this._counters[e.id]=t-1;const n=this._children[e.id],s=this._keys.indexOf(n.id);if(1===t)delete this._counters[e.id],delete this._children[e.id],this._keys.splice(s,1),this.sheet.splice(s,1),this.changeId++,this.changes.remove(n,s);else if(n instanceof m&&e instanceof m){const t=n.changeId;n.unmerge(e),n.changeId!==t&&(this.sheet.splice(s,1,n.getStyles()),this.changeId++,this.changes.change(n,s,s))}}}values(){return this._keys.map((e=>this._children[e]))}merge(e){for(const t of e.values())this.add(t);return this}unmerge(e){for(const t of e.values())this.remove(t);return this}clone(){return(new m).merge(this)}}class g{constructor(e,t){this.selector=e,this.id=t}getStyles(){return this.selector}clone(){return this}}class v extends m{constructor(e,t){super(),this.style=e,this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new v(this.style,this.id).merge(this)}}class f extends m{constructor(e,t,n){super(),this.rule=e,this.style=t,this.id=n}getStyles(){return`${this.rule}{${this.style}${p(this.sheet)}}`}clone(){return new f(this.rule,this.style,this.id).merge(this)}}function w(e,t){return`f${function(e){let t=5381,n=e.length;for(;n--;)t=33*t^e.charCodeAt(n);return(t>>>0).toString(36)}(e)}`}class b extends m{constructor(e,t){super(t),this.id=e}registerStyle(e){const t=[],n=[],s=d("&",e,t,n),i=w(s);return h(this,s,t,n,`.${i}`,!0),i}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){const n=[],s=[],i=d("",t,n,s),r=w(i),o=new f(`${e} ${r}`,"",`h\0${i}\0${e}`);return h(o,i,n,s,"",!1),this.add(o),r}registerRule(e,t){const n=[],s=[];h(this,d(e,t,n,s),n,s,"",!1)}registerCss(e){return this.registerRule("",e)}getStyles(){return p(this.sheet)}clone(){return new b(this.id,this.changes).merge(this)}}function y(e){return new b(`f${(++s).toString(36)}`,e)}},63005:(e,t,n)=>{var s=n(10228),i=n(79749);e.exports=function(e,t){return s(e,t,(function(t,n){return i(e,n)}))}},10228:(e,t,n)=>{var s=n(79867),i=n(78859),r=n(76747);e.exports=function(e,t,n){for(var o=-1,a=t.length,l={};++o<a;){var c=t[o],d=s(e,c);n(d,c)&&i(l,r(c,e),d)}return l}},14648:(e,t,n)=>{var s=n(63005),i=n(24288)((function(e,t){return null==e?{}:s(e,t)}));e.exports=i},43551:(e,t,n)=>{var s=n(70830);e.exports=function(e,t){return null==e||s(e,t)}},37634:(e,t,n)=>{"use strict";var s=n(38005);t.s=s.createRoot,s.hydrateRoot},73062:(e,t,n)=>{"use strict";var s=n(53861);s.TypeStyle,n(66720);var i=n(51833);i.extend,i.classes,i.media;var r=new s.TypeStyle({autoGenerateTag:!0});r.setStylesTarget,r.cssRaw,r.cssRule,r.forceRenderStyles,r.fontFace,r.getStyles,r.keyframes,r.reinit,t.oB=r.style,r.stylesheet},62034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToStyles=function e(t){var n={};for(var s in t){var i=t[s];if("$nest"===s){var r=i;for(var o in r){var a=r[o];n[o]=e(a)}}else"$debugName"===s?n.$displayName=i:n[s]=i}return n},t.convertToKeyframes=function(e){var t={};for(var n in e)"$debugName"!==n&&(t[n]=e[n]);return e.$debugName&&(t.$displayName=e.$debugName),t}},53861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(8843),i=n(62034),r=n(51833),o=function(){return s.create()},a=function(){function e(e){var t=this,n=e.autoGenerateTag;this.cssRaw=function(e){e&&(t._raw+=e||"",t._pendingRawChange=!0,t._styleUpdated())},this.cssRule=function(e){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var o=i.convertToStyles(r.extend.apply(void 0,n));t._freeStyle.registerRule(e,o),t._styleUpdated()},this.forceRenderStyles=function(){var e=t._getTag();e&&(e.textContent=t.getStyles())},this.fontFace=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var s=t._freeStyle,i=0,r=e;i<r.length;i++){var o=r[i];s.registerRule("@font-face",o)}t._styleUpdated()},this.getStyles=function(){return(t._raw||"")+t._freeStyle.getStyles()},this.keyframes=function(e){var n=i.convertToKeyframes(e),s=t._freeStyle.registerKeyframes(n);return t._styleUpdated(),s},this.reinit=function(){var e=o();t._freeStyle=e,t._lastFreeStyleChangeId=e.changeId,t._raw="",t._pendingRawChange=!1;var n=t._getTag();n&&(n.textContent="")},this.setStylesTarget=function(e){t._tag&&(t._tag.textContent=""),t._tag=e,t.forceRenderStyles()},this.stylesheet=function(e){for(var n={},s=0,i=Object.getOwnPropertyNames(e);s<i.length;s++){var r=i[s],o=e[r];o&&(o.$debugName=r,n[r]=t.style(o))}return n};var s=o();this._autoGenerateTag=n,this._freeStyle=s,this._lastFreeStyleChangeId=s.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0,this.style=this.style.bind(this)}return e.prototype._afterAllSync=function(e){var t=this;this._pending++;var n=this._pending;r.raf((function(){n===t._pending&&e()}))},e.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var e="undefined"==typeof window?{textContent:""}:document.createElement("style");return"undefined"!=typeof document&&document.head.appendChild(e),this._tag=e,e}},e.prototype._styleUpdated=function(){var e=this,t=this._freeStyle.changeId,n=this._lastFreeStyleChangeId;(this._pendingRawChange||t!==n)&&(this._lastFreeStyleChangeId=t,this._pendingRawChange=!1,this._afterAllSync((function(){return e.forceRenderStyles()})))},e.prototype.style=function(){var e=this._freeStyle.registerStyle(i.convertToStyles(r.extend.apply(void 0,arguments)));return this._styleUpdated(),e},e}();t.TypeStyle=a},51833:(e,t)=>{"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var s={},i=0,r=e;i<r.length;i++){var o=r[i];if(null!=o&&!1!==o)for(var a in o){var l=o[a];(l||0===l)&&("$nest"===a&&l?s[a]=s.$nest?n(s.$nest,l):l:-1!==a.indexOf("&")||0===a.indexOf("@media")?s[a]=s[a]?n(s[a],l):l:s[a]=l)}}return s}Object.defineProperty(t,"__esModule",{value:!0}),t.raf="undefined"==typeof requestAnimationFrame?function(e){return setTimeout(e)}:"undefined"==typeof window?requestAnimationFrame:requestAnimationFrame.bind(window),t.classes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.map((function(e){return e&&"object"==typeof e?Object.keys(e).map((function(t){return!!e[t]&&t})):[e]})).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return!!e})).join(" ")},t.extend=n,t.media=function(e){for(var t,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=[];return e.type&&o.push(e.type),e.orientation&&o.push("(orientation: "+e.orientation+")"),e.minWidth&&o.push("(min-width: "+s(e.minWidth)+")"),e.maxWidth&&o.push("(max-width: "+s(e.maxWidth)+")"),e.minHeight&&o.push("(min-height: "+s(e.minHeight)+")"),e.maxHeight&&o.push("(max-height: "+s(e.maxHeight)+")"),e.prefersColorScheme&&o.push("(prefers-color-scheme: "+e.prefersColorScheme+")"),{$nest:(t={},t["@media "+o.join(" and ")]=n.apply(void 0,i),t)}};var s=function(e){return"string"==typeof e?e:e+"px"}},66720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}}]);