From 7582c06cf54e7899346a1faefbdbe88db78bbaad Mon Sep 17 00:00:00 2001 From: bfritscher Date: Mon, 22 Jan 2024 21:14:55 +0000 Subject: [PATCH] deploy: 3e331622c0ef56154d4f107091056997feb08d5b --- css/0.15feb0bd.css | 1 + css/{793.954a317a.css => 122.954a317a.css} | 0 css/164.b2fb100c.css | 1 - css/{829.954a317a.css => 69.954a317a.css} | 0 css/928.954a317a.css | 1 + index.html | 2 +- js/0.319a2708.js | 1 + js/122.ce98347b.js | 1 + js/164.874317c4.js | 1 - js/{165.9a5577fc.js => 165.f124c158.js} | 2 +- js/69.a9ab1067.js | 1 + js/793.60f8b723.js | 1 - js/829.d6edac39.js | 1 - js/92.14a66b0d.js | 1 - js/925.1170cc3b.js | 1 + js/928.2d865d85.js | 1 + js/app.3078a445.js | 1 - js/app.3f540e45.js | 1 + js/{chunk-common.f3cfb900.js => chunk-common.b8854d7a.js} | 2 +- js/{vendor.51d4a617.js => vendor.4274b22f.js} | 2 +- 20 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 css/0.15feb0bd.css rename css/{793.954a317a.css => 122.954a317a.css} (100%) delete mode 100644 css/164.b2fb100c.css rename css/{829.954a317a.css => 69.954a317a.css} (100%) create mode 100644 css/928.954a317a.css create mode 100644 js/0.319a2708.js create mode 100644 js/122.ce98347b.js delete mode 100644 js/164.874317c4.js rename js/{165.9a5577fc.js => 165.f124c158.js} (97%) create mode 100644 js/69.a9ab1067.js delete mode 100644 js/793.60f8b723.js delete mode 100644 js/829.d6edac39.js delete mode 100644 js/92.14a66b0d.js create mode 100644 js/925.1170cc3b.js create mode 100644 js/928.2d865d85.js delete mode 100644 js/app.3078a445.js create mode 100644 js/app.3f540e45.js rename js/{chunk-common.f3cfb900.js => chunk-common.b8854d7a.js} (83%) rename js/{vendor.51d4a617.js => vendor.4274b22f.js} (99%) diff --git a/css/0.15feb0bd.css b/css/0.15feb0bd.css new file mode 100644 index 0000000..2a67ef0 --- /dev/null +++ b/css/0.15feb0bd.css @@ -0,0 +1 @@ +.q-item--active[data-v-bc215e44],.q-item.q-router-link--active[data-v-bc215e44]{background-color:#fff}.body--dark .q-item--active[data-v-bc215e44],.body--dark .q-item.q-router-link--active[data-v-bc215e44]{background-color:#111827;color:#fff} \ No newline at end of file diff --git a/css/793.954a317a.css b/css/122.954a317a.css similarity index 100% rename from css/793.954a317a.css rename to css/122.954a317a.css diff --git a/css/164.b2fb100c.css b/css/164.b2fb100c.css deleted file mode 100644 index 6355808..0000000 --- a/css/164.b2fb100c.css +++ /dev/null @@ -1 +0,0 @@ -.q-item--active[data-v-d40fda3e],.q-item.q-router-link--active[data-v-d40fda3e]{background-color:#fff}.body--dark .q-item--active[data-v-d40fda3e],.body--dark .q-item.q-router-link--active[data-v-d40fda3e]{background-color:#111827;color:#fff} \ No newline at end of file diff --git a/css/829.954a317a.css b/css/69.954a317a.css similarity index 100% rename from css/829.954a317a.css rename to css/69.954a317a.css diff --git a/css/928.954a317a.css b/css/928.954a317a.css new file mode 100644 index 0000000..5394b4a --- /dev/null +++ b/css/928.954a317a.css @@ -0,0 +1 @@ +.editorWrapper[data-v-46f34a38]{background-color:#1e1e1e} \ No newline at end of file diff --git a/index.html b/index.html index 620b296..25de1d6 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Typesense-Dashboard
\ No newline at end of file +Typesense-Dashboard
\ No newline at end of file diff --git a/js/0.319a2708.js b/js/0.319a2708.js new file mode 100644 index 0000000..4562bb7 --- /dev/null +++ b/js/0.319a2708.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[0],{21e3:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var l=a(59835),o=a(86970);function n(e,t,a,n,r,s){const i=(0,l.up)("q-btn"),u=(0,l.up)("q-toolbar-title"),d=(0,l.up)("q-icon"),c=(0,l.up)("server-history"),m=(0,l.up)("q-menu"),w=(0,l.up)("q-separator"),_=(0,l.up)("q-toolbar"),p=(0,l.up)("q-header"),f=(0,l.up)("nav-menu"),W=(0,l.up)("q-drawer"),y=(0,l.up)("q-banner"),b=(0,l.up)("router-view"),h=(0,l.up)("q-page-container"),k=(0,l.up)("q-layout");return(0,l.wg)(),(0,l.j4)(k,{view:"hHh Lpr lFf"},{default:(0,l.w5)((()=>[(0,l.Wm)(p,{bordered:""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,{flat:"",dense:"",round:"",icon:e.leftDrawerOpen?"sym_s_menu_open":"sym_s_menu","aria-label":"Menu",onClick:e.toggleLeftDrawer},null,8,["icon","onClick"]),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Typesense Dashboard ")])),_:1}),(0,l.Wm)(i,{padding:"xs md",flat:"",dense:"","no-caps":""},{default:(0,l.w5)((()=>{var t;return[(0,l.Uk)((0,o.zw)(null===(t=e.$store.state.node.loginData)||void 0===t?void 0:t.node.host)+" ",1),(0,l.Wm)(d,{right:"",name:"sym_s_switch_account"}),(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c,{"show-logout":!0})])),_:1})]})),_:1}),(0,l.Wm)(w,{dark:"",vertical:"",spaced:"",inset:""}),(0,l.Wm)(i,{onClick:t[0]||(t[0]=t=>e.$q.dark.toggle()),flat:"",dense:"",icon:e.$q.dark.isActive?"sym_s_light_mode":"sym_s_dark_mode",title:"Toggle Dark Mode"},null,8,["icon"])])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:e.leftDrawerOpen,"onUpdate:modelValue":t[1]||(t[1]=t=>e.leftDrawerOpen=t),"show-if-above":"",side:"left",width:250,class:"bg-primary text-white"},{default:(0,l.w5)((()=>[(0,l.Wm)(f)])),_:1},8,["modelValue"]),(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[e.$store.state.node.error?((0,l.wg)(),(0,l.j4)(y,{key:0,"inline-actions":"",class:"text-white bg-red fixed-top z-max"},{action:(0,l.w5)((()=>[(0,l.Wm)(i,{flat:"",color:"white",label:"Dismiss",onClick:t[2]||(t[2]=t=>e.dismiss())})])),default:(0,l.w5)((()=>[(0,l.Uk)((0,o.zw)(e.$store.state.node.error)+" ",1)])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(b)])),_:1})])),_:1})}function r(e,t,a,o,n,r){const s=(0,l.up)("q-icon"),i=(0,l.up)("q-item-section"),u=(0,l.up)("q-item"),d=(0,l.up)("q-item-label"),c=(0,l.up)("q-separator"),m=(0,l.up)("q-select"),w=(0,l.up)("q-list"),_=(0,l.Q2)("ripple");return(0,l.wg)(),(0,l.j4)(w,null,{default:(0,l.w5)((()=>{var a,o,n,r,w;return[(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_dns"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Server Status ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/collections",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_grid_view"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Uk)("Collections")])),_:1})])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/aliases",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_call_split"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Aliases ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/apikeys",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_key"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" API Keys ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/analyticsrules",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_query_stats"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Analytics Rules ")])),_:1})])),_:1})),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:"/searchpresets",exact:""},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_manage_search"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Search Presets ")])),_:1})])),_:1})),[[_]]),(0,l.Wm)(c,{spaced:""}),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m,{borderless:"",modelValue:e.currentCollection,"onUpdate:modelValue":t[0]||(t[0]=t=>e.currentCollection=t),options:e.$store.state.node.data.collections,label:"Collection","option-label":"name",color:"white","label-color":"white",dark:""},null,8,["modelValue","options"])])),_:1})])),_:1}),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(a=e.currentCollection)||void 0===a?void 0:a.name}/search`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_search"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Search ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(o=e.currentCollection)||void 0===o?void 0:o.name}/synonyms`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_dataset_linked"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Synonyms ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(n=e.currentCollection)||void 0===n?void 0:n.name}/curations`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_low_priority"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Curations ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(r=e.currentCollection)||void 0===r?void 0:r.name}/schema`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_data_object"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Schema ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,l.wy)(((0,l.wg)(),(0,l.j4)(u,{clickable:"",to:`/collection/${null===(w=e.currentCollection)||void 0===w?void 0:w.name}/document`,exact:"",disable:!e.currentCollection},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{avatar:""},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{name:"sym_s_library_add"})])),_:1}),(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[(0,l.Uk)(" Add Document ")])),_:1})])),_:1},8,["to","disable"])),[[_]])]})),_:1})}const s=(0,l.aZ)({name:"NavMenu",data(){return{model:"",options:["abc","def"]}},computed:{currentCollection:{get(){return this.$store.state.node.currentCollection},set(e){this.$store.dispatch("node/loadCurrentCollection",e)}}}});var i=a(11639),u=a(13246),d=a(490),c=a(76749),m=a(22857),w=a(33115),_=a(50926),p=a(67887),f=a(51136),W=a(69984),y=a.n(W);const b=(0,i.Z)(s,[["render",r],["__scopeId","data-v-bc215e44"]]),h=b;y()(s,"components",{QList:u.Z,QItem:d.Z,QItemSection:c.Z,QIcon:m.Z,QItemLabel:w.Z,QSeparator:_.Z,QSelect:p.Z}),y()(s,"directives",{Ripple:f.Z});var k=a(46115);const v=(0,l.aZ)({name:"MainLayout",components:{NavMenu:h,ServerHistory:k.Z},data(){return{leftDrawerOpen:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{toggleLeftDrawer(){this.leftDrawerOpen=!this.leftDrawerOpen},logout(){this.$store.dispatch("node/logout")},dismiss(){this.$store.commit("node/setError",null)},loginWithHistory(e){this.$store.dispatch("node/login",e)}}});var g=a(20249),C=a(16602),Z=a(51663),q=a(24455),Q=a(81973),$=a(47447),x=a(10906),U=a(12133),j=a(47128);const D=(0,i.Z)(v,[["render",n]]),S=D;y()(v,"components",{QLayout:g.Z,QHeader:C.Z,QToolbar:Z.Z,QBtn:q.Z,QToolbarTitle:Q.Z,QIcon:m.Z,QMenu:$.Z,QSeparator:_.Z,QDrawer:x.Z,QPageContainer:U.Z,QBanner:j.Z})}}]); \ No newline at end of file diff --git a/js/122.ce98347b.js b/js/122.ce98347b.js new file mode 100644 index 0000000..8987f78 --- /dev/null +++ b/js/122.ce98347b.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[122],{24496:(e,t,a)=>{a.r(t),a.d(t,{default:()=>q});var s=a(59835),r=a(86970);const n={class:"text-h6"};function l(e,t,a,l,o,d){const i=(0,s.up)("q-input"),c=(0,s.up)("q-btn"),u=(0,s.up)("q-card-section"),m=(0,s.up)("monaco-editor"),p=(0,s.up)("q-banner"),h=(0,s.up)("q-card-actions"),f=(0,s.up)("q-card"),_=(0,s.up)("q-expansion-item"),g=(0,s.up)("q-icon"),y=(0,s.up)("q-td"),b=(0,s.up)("q-table"),w=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(w,{padding:""},{default:(0,s.w5)((()=>[(0,s.Wm)(_,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Search Preset","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":t[3]||(t[3]=t=>e.expanded=t)},{default:(0,s.w5)((()=>[(0,s.Wm)(f,{style:{height:"60vh"},class:"bg-surface column"},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{class:"q-col-gutter-md row"},{default:(0,s.w5)((()=>[(0,s.Wm)(i,{class:"col-12 col-sm-6",modelValue:e.preset.name,"onUpdate:modelValue":t[0]||(t[0]=t=>e.preset.name=t),label:"Name",filled:"",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","rules"]),(0,s.Wm)(c,{type:"a",icon:"sym_s_help","no-caps":"",color:"info",flat:"",dense:"",href:`https://typesense.org/docs/${e.$store.state.node.data.debug.version}/api/search.html#presets`,target:"_blank"},{default:(0,s.w5)((()=>[(0,s.Uk)("Documentation")])),_:1},8,["href"])])),_:1}),(0,s.Wm)(m,{modelValue:e.keyJson,"onUpdate:modelValue":t[1]||(t[1]=t=>e.keyJson=t)},null,8,["modelValue"]),e.jsonError?((0,s.wg)(),(0,s.j4)(p,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,s.w5)((()=>[(0,s.Uk)(" Invalid Format: "+(0,r.zw)(e.jsonError),1)])),_:1})):(0,s.kq)("",!0),(0,s.Wm)(h,{align:"right",class:"bg-primary"},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!!e.jsonError,onClick:t[2]||(t[2]=t=>e.createSearchPreset())},{default:(0,s.w5)((()=>[(0,s.Uk)((0,r.zw)(e.isUpdate?"Update":"Add")+" Preset",1)])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,s.Wm)(b,{class:"q-mt-md",title:"Search Presets",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.searchPresets,columns:e.columns,"row-key":"id"},{"top-left":(0,s.w5)((()=>[(0,s._)("div",n,[(0,s.Wm)(g,{size:"md",name:"sym_s_manage_search"}),(0,s.Uk)(" Search Presets")])])),"top-right":(0,s.w5)((()=>[(0,s.Wm)(i,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":t[4]||(t[4]=t=>e.filter=t),placeholder:"Search"},{append:(0,s.w5)((()=>[(0,s.Wm)(g,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions_op":(0,s.w5)((t=>[(0,s.Wm)(y,{class:"text-right"},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{flat:"",color:"primary",onClick:a=>e.editSearchPreset(t.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,s.Wm)(c,{flat:"",color:"negative",onClick:a=>e.deleteSearchPreset(t.row.name),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var o=a(66531),d=function(e,t,a,s){function r(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function l(e){try{d(s.next(e))}catch(t){n(t)}}function o(e){try{d(s["throw"](e))}catch(t){n(t)}}function d(e){e.done?a(e.value):r(e.value).then(l,o)}d((s=s.apply(e,t||[])).next())}))};const i=(0,s.aZ)({name:"SearchPresets",components:{MonacoEditor:o.Z},data(){return{jsonError:null,preset:{name:"",value:{collection:"products",q:"*",sort_by:"popularity"}},expanded:0===this.$store.state.node.data.searchPresets.length,filter:"",columns:[{label:"Name",name:"name",field:"name",sortable:!0,align:"left"},{label:"Search Parameters",name:"value",field:e=>JSON.stringify(e.value),sortable:!0,align:"left"},{label:"Actions",name:"actions_op",align:"right"}]}},computed:{keyJson:{get(){return JSON.stringify(this.preset.value,null,2)},set(e){try{this.preset.value=JSON.parse(e),this.jsonError=null}catch(t){this.jsonError=t.message}}},isUpdate(){return this.$store.state.node.data.searchPresets.map((e=>e.name)).includes(this.preset.name)}},mounted(){this.$store.dispatch("node/getSearchPresets")},methods:{createSearchPreset(){return d(this,void 0,void 0,(function*(){yield this.$store.dispatch("node/upsertSearchPreset",JSON.parse(JSON.stringify(this.preset)))}))},editSearchPreset(e){this.preset=JSON.parse(JSON.stringify(e)),this.expanded=!0},deleteSearchPreset(e){this.$q.dialog({title:"Confirm",message:`Delete preset ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteSearchPreset",e)}))}}});var c=a(11639),u=a(69885),m=a(61123),p=a(44458),h=a(63190),f=a(66611),_=a(24455),g=a(47128),y=a(11821),b=a(86008),w=a(22857),S=a(67220),k=a(69984),P=a.n(k);const v=(0,c.Z)(i,[["render",l]]),q=v;P()(i,"components",{QPage:u.Z,QExpansionItem:m.Z,QCard:p.Z,QCardSection:h.Z,QInput:f.Z,QBtn:_.Z,QBanner:g.Z,QCardActions:y.Z,QTable:b.Z,QIcon:w.Z,QTd:S.Z})}}]); \ No newline at end of file diff --git a/js/164.874317c4.js b/js/164.874317c4.js deleted file mode 100644 index 55119c0..0000000 --- a/js/164.874317c4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[164],{78164:(e,t,l)=>{l.r(t),l.d(t,{default:()=>S});var a=l(59835),o=l(86970);function n(e,t,l,n,r,s){const i=(0,a.up)("q-btn"),u=(0,a.up)("q-toolbar-title"),d=(0,a.up)("q-icon"),c=(0,a.up)("server-history"),m=(0,a.up)("q-menu"),w=(0,a.up)("q-separator"),_=(0,a.up)("q-toolbar"),p=(0,a.up)("q-header"),f=(0,a.up)("nav-menu"),W=(0,a.up)("q-drawer"),y=(0,a.up)("q-banner"),b=(0,a.up)("router-view"),h=(0,a.up)("q-page-container"),k=(0,a.up)("q-layout");return(0,a.wg)(),(0,a.j4)(k,{view:"hHh Lpr lFf"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(_,null,{default:(0,a.w5)((()=>[(0,a.Wm)(i,{flat:"",dense:"",round:"",icon:e.leftDrawerOpen?"sym_s_menu_open":"sym_s_menu","aria-label":"Menu",onClick:e.toggleLeftDrawer},null,8,["icon","onClick"]),(0,a.Wm)(u,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Typesense Dashboard ")])),_:1}),(0,a.Wm)(i,{padding:"xs md",flat:"",dense:"","no-caps":""},{default:(0,a.w5)((()=>{var t;return[(0,a.Uk)((0,o.zw)(null===(t=e.$store.state.node.loginData)||void 0===t?void 0:t.node.host)+" ",1),(0,a.Wm)(d,{right:"",name:"sym_s_switch_account"}),(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Wm)(c,{"show-logout":!0})])),_:1})]})),_:1}),(0,a.Wm)(w,{dark:"",vertical:"",spaced:"",inset:""}),(0,a.Wm)(i,{onClick:t[0]||(t[0]=t=>e.$q.dark.toggle()),flat:"",dense:"",icon:e.$q.dark.isActive?"sym_s_light_mode":"sym_s_dark_mode",title:"Toggle Dark Mode"},null,8,["icon"])])),_:1})])),_:1}),(0,a.Wm)(W,{modelValue:e.leftDrawerOpen,"onUpdate:modelValue":t[1]||(t[1]=t=>e.leftDrawerOpen=t),"show-if-above":"",side:"left",width:250,class:"bg-primary text-white"},{default:(0,a.w5)((()=>[(0,a.Wm)(f)])),_:1},8,["modelValue"]),(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[e.$store.state.node.error?((0,a.wg)(),(0,a.j4)(y,{key:0,"inline-actions":"",class:"text-white bg-red fixed-top z-max"},{action:(0,a.w5)((()=>[(0,a.Wm)(i,{flat:"",color:"white",label:"Dismiss",onClick:t[2]||(t[2]=t=>e.dismiss())})])),default:(0,a.w5)((()=>[(0,a.Uk)((0,o.zw)(e.$store.state.node.error)+" ",1)])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(b)])),_:1})])),_:1})}function r(e,t,l,o,n,r){const s=(0,a.up)("q-icon"),i=(0,a.up)("q-item-section"),u=(0,a.up)("q-item"),d=(0,a.up)("q-item-label"),c=(0,a.up)("q-separator"),m=(0,a.up)("q-select"),w=(0,a.up)("q-list"),_=(0,a.Q2)("ripple");return(0,a.wg)(),(0,a.j4)(w,null,{default:(0,a.w5)((()=>{var l,o,n,r,w;return[(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:"/",exact:""},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_dns"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Server Status ")])),_:1})])),_:1})),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:"/collections",exact:""},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_grid_view"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Wm)(d,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Collections")])),_:1})])),_:1})])),_:1})),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:"/aliases",exact:""},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_call_split"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Aliases ")])),_:1})])),_:1})),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:"/apikeys",exact:""},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_key"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" API Keys ")])),_:1})])),_:1})),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:"/analyticsrules",exact:""},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_query_stats"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Analytics Rules ")])),_:1})])),_:1})),[[_]]),(0,a.Wm)(c,{spaced:""}),(0,a.Wm)(u,null,{default:(0,a.w5)((()=>[(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m,{borderless:"",modelValue:e.currentCollection,"onUpdate:modelValue":t[0]||(t[0]=t=>e.currentCollection=t),options:e.$store.state.node.data.collections,label:"Collection","option-label":"name",color:"white","label-color":"white",dark:""},null,8,["modelValue","options"])])),_:1})])),_:1}),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:`/collection/${null===(l=e.currentCollection)||void 0===l?void 0:l.name}/search`,exact:"",disable:!e.currentCollection},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_search"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Search ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:`/collection/${null===(o=e.currentCollection)||void 0===o?void 0:o.name}/synonyms`,exact:"",disable:!e.currentCollection},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_dataset_linked"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Synonyms ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:`/collection/${null===(n=e.currentCollection)||void 0===n?void 0:n.name}/curations`,exact:"",disable:!e.currentCollection},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_low_priority"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Curations ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:`/collection/${null===(r=e.currentCollection)||void 0===r?void 0:r.name}/schema`,exact:"",disable:!e.currentCollection},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_data_object"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Schema ")])),_:1})])),_:1},8,["to","disable"])),[[_]]),(0,a.wy)(((0,a.wg)(),(0,a.j4)(u,{clickable:"",to:`/collection/${null===(w=e.currentCollection)||void 0===w?void 0:w.name}/document`,exact:"",disable:!e.currentCollection},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{name:"sym_s_library_add"})])),_:1}),(0,a.Wm)(i,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Add Document ")])),_:1})])),_:1},8,["to","disable"])),[[_]])]})),_:1})}const s=(0,a.aZ)({name:"NavMenu",data(){return{model:"",options:["abc","def"]}},computed:{currentCollection:{get(){return this.$store.state.node.currentCollection},set(e){this.$store.dispatch("node/loadCurrentCollection",e)}}}});var i=l(11639),u=l(13246),d=l(490),c=l(76749),m=l(22857),w=l(33115),_=l(50926),p=l(67887),f=l(51136),W=l(69984),y=l.n(W);const b=(0,i.Z)(s,[["render",r],["__scopeId","data-v-d40fda3e"]]),h=b;y()(s,"components",{QList:u.Z,QItem:d.Z,QItemSection:c.Z,QIcon:m.Z,QItemLabel:w.Z,QSeparator:_.Z,QSelect:p.Z}),y()(s,"directives",{Ripple:f.Z});var k=l(46115);const v=(0,a.aZ)({name:"MainLayout",components:{NavMenu:h,ServerHistory:k.Z},data(){return{leftDrawerOpen:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{toggleLeftDrawer(){this.leftDrawerOpen=!this.leftDrawerOpen},logout(){this.$store.dispatch("node/logout")},dismiss(){this.$store.commit("node/setError",null)},loginWithHistory(e){this.$store.dispatch("node/login",e)}}});var g=l(20249),C=l(16602),Z=l(51663),q=l(24455),Q=l(81973),$=l(47447),x=l(10906),U=l(12133),j=l(47128);const D=(0,i.Z)(v,[["render",n]]),S=D;y()(v,"components",{QLayout:g.Z,QHeader:C.Z,QToolbar:Z.Z,QBtn:q.Z,QToolbarTitle:Q.Z,QIcon:m.Z,QMenu:$.Z,QSeparator:_.Z,QDrawer:x.Z,QPageContainer:U.Z,QBanner:j.Z})}}]); \ No newline at end of file diff --git a/js/165.9a5577fc.js b/js/165.f124c158.js similarity index 97% rename from js/165.9a5577fc.js rename to js/165.f124c158.js index 7ef89f1..b437cc4 100644 --- a/js/165.9a5577fc.js +++ b/js/165.f124c158.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[165],{58067:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(59835),s=n(86970);const o={class:"row justify-between q-mb-md"},i={class:"text-h5"};function l(e,t,n,l,c,d){const r=(0,a.up)("q-icon"),m=(0,a.up)("q-btn"),u=(0,a.up)("collection-ui"),h=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(h,{padding:"",class:"column"},{default:(0,a.w5)((()=>{var n;return[(0,a._)("div",o,[(0,a._)("div",i,[(0,a.Wm)(r,{size:"md",name:"sym_s_data_object"}),(0,a.Uk)(" Schema for "+(0,s.zw)(null===(n=e.$store.state.node.currentCollection)||void 0===n?void 0:n.name),1)]),(0,a.Wm)(m,{unelevated:"",color:"negative",onClick:t[0]||(t[0]=t=>{var n;return e.drop((null===(n=e.$store.state.node.currentCollection)||void 0===n?void 0:n.name)||"")})},{default:(0,a.w5)((()=>[(0,a.Uk)("Drop Collection")])),_:1})]),(0,a.Wm)(u,{"initial-schema":e.schema,"primary-action-label":"Update Schema",onSubmit:e.update},null,8,["initial-schema","onSubmit"])]})),_:1})}var c=n(31996);const d=(0,a.aZ)({name:"Schema",components:{CollectionUi:c.Z},computed:{schema(){const e=this.$store.state.node.currentCollection;if(e){const t={name:e.name,fields:e.fields.map((e=>{const t=["name","type","facet","optional","index","sort","infix","locale"],n=Object.keys(e).filter((e=>!t.includes(e)));return t.concat(n).reduce(((t,n)=>(t[n]=e[n],t)),{})})),default_sorting_field:e.default_sorting_field},n=Object.keys(e).filter((e=>!["name","fields","default_sorting_field","created_at","num_documents"].includes(e)));return n.forEach((n=>{t[n]=e[n]})),t}return{name:"",fields:[],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1}}},methods:{drop(e){this.$q.dialog({title:"Confirm",message:`Drop ${e} and all documents?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/dropCollection",e)}))},update(e){if(!this.schema||!this.schema.name||!this.schema.fields)return;const t={fields:this.schema.fields.map((e=>({name:e.name,drop:!0}))).concat(e.fields)};this.$store.dispatch("node/updateCollection",{collectionName:this.schema.name,schema:t})}}});var r=n(11639),m=n(69885),u=n(22857),h=n(24455),p=n(69984),f=n.n(p);const _=(0,r.Z)(d,[["render",l]]),b=_;f()(d,"components",{QPage:m.Z,QIcon:u.Z,QBtn:h.Z})}}]); \ No newline at end of file +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[165],{58067:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(59835),s=n(86970);const o={class:"row justify-between q-mb-md"},i={class:"text-h5"};function l(e,t,n,l,c,d){const r=(0,a.up)("q-icon"),m=(0,a.up)("q-btn"),u=(0,a.up)("collection-ui"),h=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(h,{padding:"",class:"column"},{default:(0,a.w5)((()=>{var n;return[(0,a._)("div",o,[(0,a._)("div",i,[(0,a.Wm)(r,{size:"md",name:"sym_s_data_object"}),(0,a.Uk)(" Schema for "+(0,s.zw)(null===(n=e.$store.state.node.currentCollection)||void 0===n?void 0:n.name),1)]),(0,a.Wm)(m,{unelevated:"",color:"negative",onClick:t[0]||(t[0]=t=>{var n;return e.drop((null===(n=e.$store.state.node.currentCollection)||void 0===n?void 0:n.name)||"")})},{default:(0,a.w5)((()=>[(0,a.Uk)("Drop Collection")])),_:1})]),(0,a.Wm)(u,{"initial-schema":e.schema,"primary-action-label":"Update Schema",onSubmit:e.update},null,8,["initial-schema","onSubmit"])]})),_:1})}var c=n(75794);const d=(0,a.aZ)({name:"Schema",components:{CollectionUi:c.Z},computed:{schema(){const e=this.$store.state.node.currentCollection;if(e){const t={name:e.name,fields:e.fields.map((e=>{const t=["name","type","facet","optional","index","sort","infix","locale"],n=Object.keys(e).filter((e=>!t.includes(e)));return t.concat(n).reduce(((t,n)=>(t[n]=e[n],t)),{})})),default_sorting_field:e.default_sorting_field},n=Object.keys(e).filter((e=>!["name","fields","default_sorting_field","created_at","num_documents"].includes(e)));return n.forEach((n=>{t[n]=e[n]})),t}return{name:"",fields:[],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1}}},methods:{drop(e){this.$q.dialog({title:"Confirm",message:`Drop ${e} and all documents?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/dropCollection",e)}))},update(e){if(!this.schema||!this.schema.name||!this.schema.fields)return;const t={fields:this.schema.fields.map((e=>({name:e.name,drop:!0}))).concat(e.fields)};this.$store.dispatch("node/updateCollection",{collectionName:this.schema.name,schema:t})}}});var r=n(11639),m=n(69885),u=n(22857),h=n(24455),p=n(69984),f=n.n(p);const _=(0,r.Z)(d,[["render",l]]),b=_;f()(d,"components",{QPage:m.Z,QIcon:u.Z,QBtn:h.Z})}}]); \ No newline at end of file diff --git a/js/69.a9ab1067.js b/js/69.a9ab1067.js new file mode 100644 index 0000000..d912ea6 --- /dev/null +++ b/js/69.a9ab1067.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[69],{33057:(e,t,o)=>{o.r(t),o.d(t,{default:()=>S});var n=o(59835),a=o(86970);function l(e,t,o,l,s,i){const r=(0,n.up)("collection-create"),c=(0,n.up)("q-btn"),d=(0,n.up)("q-td"),m=(0,n.up)("q-item-section"),u=(0,n.up)("q-avatar"),p=(0,n.up)("q-item"),_=(0,n.up)("q-menu"),f=(0,n.up)("q-icon"),w=(0,n.up)("q-tr"),h=(0,n.up)("q-input"),b=(0,n.up)("q-table"),y=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(y,{padding:""},{default:(0,n.w5)((()=>[(0,n.Wm)(r),(0,n.Wm)(b,{filter:e.filter,columns:e.columns,rows:e.$store.state.node.data.collections,"row-key":"name",pagination:{rowsPerPage:0,sortBy:"name"}},{body:(0,n.w5)((t=>[(0,n.Wm)(w,{props:t},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{key:"name",props:t},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"no-caps":"",flat:"",to:`/collection/${t.row.name}/search`,size:"1.2em",class:"text-bold"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,a.zw)(t.row.name),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,n.Wm)(d,{key:"actions",props:t},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{flat:"",round:"",icon:"sym_s_more_vert"},{default:(0,n.w5)((()=>[(0,n.Wm)(_,null,{default:(0,n.w5)((()=>[(0,n.Wm)(p,{dense:"",clickable:"",to:`/collection/${t.row.name}/document`},{default:(0,n.w5)((()=>[(0,n.Wm)(m,null,{default:(0,n.w5)((()=>[(0,n.Uk)("Import")])),_:1}),(0,n.Wm)(m,{avatar:""},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{icon:"sym_s_file_upload"})])),_:1})])),_:2},1032,["to"]),(0,n.Wm)(p,{dense:"",clickable:"",onClick:o=>e.exportCollection(t.row.name)},{default:(0,n.w5)((()=>[(0,n.Wm)(m,null,{default:(0,n.w5)((()=>[(0,n.Uk)("Export")])),_:1}),(0,n.Wm)(m,{avatar:""},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{icon:"sym_s_file_download"})])),_:1})])),_:2},1032,["onClick"]),(0,n.Wm)(p,{dense:"",clickable:"",to:`/collection/${t.row.name}/schema`},{default:(0,n.w5)((()=>[(0,n.Wm)(m,null,{default:(0,n.w5)((()=>[(0,n.Uk)("Edit")])),_:1}),(0,n.Wm)(m,{avatar:""},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{icon:"sym_s_data_object"})])),_:1})])),_:2},1032,["to"]),(0,n.Wm)(p,{dense:"",clickable:"",onClick:o=>e.cloneCollection(t.row.name)},{default:(0,n.w5)((()=>[(0,n.Wm)(m,null,{default:(0,n.w5)((()=>[(0,n.Uk)("Clone Schema")])),_:1}),(0,n.Wm)(m,{avatar:""},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{icon:"sym_s_content_copy"})])),_:1})])),_:2},1032,["onClick"]),(0,n.Wm)(p,{dense:"",clickable:"",flat:"",style:{color:"#de3b39"},onClick:o=>e.drop(t.row.name)},{default:(0,n.w5)((()=>[(0,n.Wm)(m,null,{default:(0,n.w5)((()=>[(0,n.Uk)("Delete")])),_:1}),(0,n.Wm)(m,{avatar:""},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{icon:"sym_s_delete"})])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"]),(0,n.Wm)(d,{key:"num_documents",props:t},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"no-caps":"",flat:"",to:`/collection/${t.row.name}/search`},{default:(0,n.w5)((()=>[(0,n.Uk)((0,a.zw)(t.row.num_documents)+" ",1),(0,n.Wm)(f,{name:"sym_s_search",size:"1em",right:""})])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,n.Wm)(d,{key:"schema_fields",props:t},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"no-caps":"",flat:"",to:`/collection/${t.row.name}/schema`},{default:(0,n.w5)((()=>[(0,n.Uk)((0,a.zw)(t.row.fields.length||0)+" ",1),(0,n.Wm)(f,{name:"sym_s_data_object",size:"1em",right:""})])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,n.Wm)(d,{key:"created_at",props:t},{default:(0,n.w5)((()=>[(0,n.Uk)((0,a.zw)(new Date(1e3*t.row.created_at).toLocaleString()),1)])),_:2},1032,["props"])])),_:2},1032,["props"])])),"top-right":(0,n.w5)((()=>[(0,n.Wm)(h,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filter=t),placeholder:"Search"},{append:(0,n.w5)((()=>[(0,n.Wm)(f,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),_:1},8,["filter","columns","rows"])])),_:1})}function s(e,t,o,a,l,s){const i=(0,n.up)("collection-ui"),r=(0,n.up)("q-expansion-item"),c=(0,n.up)("q-list");return(0,n.wg)(),(0,n.j4)(c,{bordered:"",class:"rounded-borders"},{default:(0,n.w5)((()=>[(0,n.Wm)(r,{"expand-separator":"",icon:"sym_s_library_add","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:"Add Collection","header-class":"bg-primary text-white"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{"primary-action-label":"Create Collection","create-mode":"",onSubmit:e.createCollection},null,8,["onSubmit"])])),_:1})])),_:1})}var i=o(75794);const r=(0,n.aZ)({components:{CollectionUi:i.Z},name:"CollectionCreate",methods:{createCollection(e){const t=JSON.parse(JSON.stringify(e));for(const o of t.fields)"float[]"===o.type&&o.num_dim||delete o.num_dim,o.type.startsWith("object")&&(t.enable_nested_fields=!0);this.$store.dispatch("node/createCollection",t)}}});var c=o(11639),d=o(13246),m=o(61123),u=o(69984),p=o.n(u);const _=(0,c.Z)(r,[["render",s]]),f=_;p()(r,"components",{QList:d.Z,QExpansionItem:m.Z});var w=function(e,t,o,n){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,l){function s(e){try{r(n.next(e))}catch(t){l(t)}}function i(e){try{r(n["throw"](e))}catch(t){l(t)}}function r(e){e.done?o(e.value):a(e.value).then(s,i)}r((n=n.apply(e,t||[])).next())}))};const h=(0,n.aZ)({components:{CollectionCreate:f},name:"Collections",data(){return{filter:"",columns:[{name:"name",required:!0,label:"Name",field:"name",sortable:!0},{name:"actions",required:!1,label:"Actions",field:"actions",sortable:!1},{name:"num_documents",required:!0,label:"Nb documents",field:"num_documents",sortable:!0},{name:"schema_fields",required:!0,label:"Schema fields",field:"fields",sortable:!0},{name:"created_at",required:!0,label:"Created at",field:"created_at",sortable:!0}]}},mounted(){this.$store.dispatch("node/getCollections")},methods:{exportCollection(e){return w(this,void 0,void 0,(function*(){this.$q.loading.show({message:"Downloading. Please wait...",boxClass:"bg-grey-2 text-grey-9",spinnerColor:"primary"}),yield this.$store.dispatch("node/exportDocuments",e).then((()=>this.$q.loading.hide())).catch((()=>{this.$q.loading.hide(),this.$q.dialog({title:"Export failed",message:"Try desktop version of the app."})}))}))},drop(e){this.$q.dialog({title:"Confirm",message:`Drop ${e} and all documents?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/dropCollection",e)}))},cloneCollection(e){this.$q.dialog({title:"Clone Schema",message:"Provide name for new collection? (documents are not copied!, only schema, currations and synonyms)",prompt:{model:"",type:"text"},cancel:!0,persistent:!0}).onOk((t=>{this.$store.dispatch("node/cloneCollectionSchema",{collectionName:e,destinationName:t})}))}}});var b=o(69885),y=o(86008),W=o(31233),k=o(67220),C=o(24455),g=o(47447),q=o(490),v=o(76749),Z=o(61357),$=o(22857),x=o(66611);const Q=(0,c.Z)(h,[["render",l]]),S=Q;p()(h,"components",{QPage:b.Z,QTable:y.Z,QTr:W.Z,QTd:k.Z,QBtn:C.Z,QMenu:g.Z,QItem:q.Z,QItemSection:v.Z,QAvatar:Z.Z,QIcon:$.Z,QInput:x.Z})}}]); \ No newline at end of file diff --git a/js/793.60f8b723.js b/js/793.60f8b723.js deleted file mode 100644 index 1a422c0..0000000 --- a/js/793.60f8b723.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[793],{47646:(e,t,o)=>{o.r(t),o.d(t,{default:()=>U});var a=o(59835),n=o(86970);function l(e,t,o,l,s,r){const i=(0,a.up)("collection-create"),d=(0,a.up)("q-btn"),c=(0,a.up)("q-td"),m=(0,a.up)("q-item-section"),u=(0,a.up)("q-avatar"),p=(0,a.up)("q-item"),_=(0,a.up)("q-menu"),f=(0,a.up)("q-icon"),w=(0,a.up)("q-tr"),h=(0,a.up)("q-input"),b=(0,a.up)("q-table"),y=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(y,{padding:""},{default:(0,a.w5)((()=>[(0,a.Wm)(i),(0,a.Wm)(b,{filter:e.filter,columns:e.columns,rows:e.$store.state.node.data.collections,"row-key":"name",pagination:{rowsPerPage:0,sortBy:"name"}},{body:(0,a.w5)((t=>[(0,a.Wm)(w,{props:t},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{key:"name",props:t},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{"no-caps":"",flat:"",to:`/collection/${t.row.name}/search`,size:"1.2em",class:"text-bold"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(t.row.name),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,a.Wm)(c,{key:"actions",props:t},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{flat:"",round:"",icon:"sym_s_more_vert"},{default:(0,a.w5)((()=>[(0,a.Wm)(_,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p,{dense:"",clickable:"",to:`/collection/${t.row.name}/document`},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Import")])),_:1}),(0,a.Wm)(m,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{icon:"sym_s_file_upload"})])),_:1})])),_:2},1032,["to"]),(0,a.Wm)(p,{dense:"",clickable:"",onClick:o=>e.exportCollection(t.row.name)},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Export")])),_:1}),(0,a.Wm)(m,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{icon:"sym_s_file_download"})])),_:1})])),_:2},1032,["onClick"]),(0,a.Wm)(p,{dense:"",clickable:"",to:`/collection/${t.row.name}/schema`},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Edit")])),_:1}),(0,a.Wm)(m,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{icon:"sym_s_data_object"})])),_:1})])),_:2},1032,["to"]),(0,a.Wm)(p,{dense:"",clickable:"",flat:"",style:{color:"#DE3B39"},onClick:o=>e.drop(t.row.name)},{default:(0,a.w5)((()=>[(0,a.Wm)(m,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Delete")])),_:1}),(0,a.Wm)(m,{avatar:""},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{icon:"sym_s_delete"})])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"]),(0,a.Wm)(c,{key:"num_documents",props:t},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{"no-caps":"",flat:"",to:`/collection/${t.row.name}/search`},{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(t.row.num_documents)+" ",1),(0,a.Wm)(f,{name:"sym_s_search",size:"1em",right:""})])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,a.Wm)(c,{key:"schema_fields",props:t},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{"no-caps":"",flat:"",to:`/collection/${t.row.name}/schema`},{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(t.row.fields.length||0)+" ",1),(0,a.Wm)(f,{name:"sym_s_data_object",size:"1em",right:""})])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,a.Wm)(c,{key:"created_at",props:t},{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(new Date(1e3*t.row.created_at).toLocaleString()),1)])),_:2},1032,["props"])])),_:2},1032,["props"])])),"top-right":(0,a.w5)((()=>[(0,a.Wm)(h,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filter=t),placeholder:"Search"},{append:(0,a.w5)((()=>[(0,a.Wm)(f,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),_:1},8,["filter","columns","rows"])])),_:1})}function s(e,t,o,n,l,s){const r=(0,a.up)("collection-ui"),i=(0,a.up)("q-expansion-item"),d=(0,a.up)("q-list");return(0,a.wg)(),(0,a.j4)(d,{bordered:"",class:"rounded-borders"},{default:(0,a.w5)((()=>[(0,a.Wm)(i,{"expand-separator":"",icon:"sym_s_library_add","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:"Add Collection","header-class":"bg-primary text-white"},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{"primary-action-label":"Create Collection","create-mode":"",onSubmit:e.createCollection},null,8,["onSubmit"])])),_:1})])),_:1})}var r=o(31996);const i=(0,a.aZ)({components:{CollectionUi:r.Z},name:"CollectionCreate",methods:{createCollection(e){const t=JSON.parse(JSON.stringify(e));for(const o of t.fields)"float[]"===o.type&&o.num_dim||delete o.num_dim,o.type.startsWith("object")&&(t.enable_nested_fields=!0);this.$store.dispatch("node/createCollection",t)}}});var d=o(11639),c=o(13246),m=o(61123),u=o(69984),p=o.n(u);const _=(0,d.Z)(i,[["render",s]]),f=_;p()(i,"components",{QList:c.Z,QExpansionItem:m.Z});var w=function(e,t,o,a){function n(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,l){function s(e){try{i(a.next(e))}catch(t){l(t)}}function r(e){try{i(a["throw"](e))}catch(t){l(t)}}function i(e){e.done?o(e.value):n(e.value).then(s,r)}i((a=a.apply(e,t||[])).next())}))};const h=(0,a.aZ)({components:{CollectionCreate:f},name:"Collections",data(){return{filter:"",columns:[{name:"name",required:!0,label:"Name",field:"name",sortable:!0},{name:"actions",required:!1,label:"Actions",field:"actions",sortable:!1},{name:"num_documents",required:!0,label:"Nb documents",field:"num_documents",sortable:!0},{name:"schema_fields",required:!0,label:"Schema fields",field:"fields",sortable:!0},{name:"created_at",required:!0,label:"Created at",field:"created_at",sortable:!0}]}},mounted(){this.$store.dispatch("node/getCollections")},methods:{exportCollection(e){return w(this,void 0,void 0,(function*(){this.$q.loading.show({message:"Downloading. Please wait...",boxClass:"bg-grey-2 text-grey-9",spinnerColor:"primary"}),yield this.$store.dispatch("node/exportDocuments",e).then((()=>this.$q.loading.hide())).catch((()=>{this.$q.loading.hide(),this.$q.dialog({title:"Export failed",message:"Try desktop version of the app."})}))}))},drop(e){this.$q.dialog({title:"Confirm",message:`Drop ${e} and all documents?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/dropCollection",e)}))}}});var b=o(69885),y=o(86008),W=o(31233),g=o(67220),k=o(24455),C=o(47447),q=o(490),Z=o(76749),v=o(61357),x=o(22857),$=o(66611);const Q=(0,d.Z)(h,[["render",l]]),U=Q;p()(h,"components",{QPage:b.Z,QTable:y.Z,QTr:W.Z,QTd:g.Z,QBtn:k.Z,QMenu:C.Z,QItem:q.Z,QItemSection:Z.Z,QAvatar:v.Z,QIcon:x.Z,QInput:$.Z})}}]); \ No newline at end of file diff --git a/js/829.d6edac39.js b/js/829.d6edac39.js deleted file mode 100644 index 38602b1..0000000 --- a/js/829.d6edac39.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[829],{85139:(e,t,a)=>{a.r(t),a.d(t,{default:()=>q});var n=a(59835),i=a(86970);const s={class:"text-h6"};function l(e,t,a,l,o,r){const d=(0,n.up)("q-btn"),c=(0,n.up)("q-card-section"),p=(0,n.up)("monaco-editor"),u=(0,n.up)("q-banner"),m=(0,n.up)("q-card-actions"),y=(0,n.up)("q-card"),f=(0,n.up)("q-expansion-item"),h=(0,n.up)("q-icon"),_=(0,n.up)("q-input"),g=(0,n.up)("q-td"),k=(0,n.up)("q-table"),b=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(b,{padding:""},{default:(0,n.w5)((()=>[(0,n.Wm)(f,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:"Create API Key","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":t[4]||(t[4]=t=>e.expanded=t)},{default:(0,n.w5)((()=>[(0,n.Wm)(y,{style:{height:"60vh"},class:"bg-surface column"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{class:"q-gutter-md"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{flat:"",onClick:t[0]||(t[0]=t=>e.loadAdminKey())},{default:(0,n.w5)((()=>[(0,n.Uk)("Admin Key Example")])),_:1}),(0,n.Wm)(d,{flat:"",onClick:t[1]||(t[1]=t=>e.loadSearchKey())},{default:(0,n.w5)((()=>[(0,n.Uk)("Search Key Example")])),_:1}),(0,n.Wm)(d,{type:"a",icon:"sym_s_help","no-caps":"",color:"info",flat:"",dense:"",href:"https://typesense.org/docs/0.23.1/api/api-keys.html#create-an-api-key",target:"_blank"},{default:(0,n.w5)((()=>[(0,n.Uk)("Documentation")])),_:1})])),_:1}),(0,n.Wm)(p,{modelValue:e.keyJson,"onUpdate:modelValue":t[2]||(t[2]=t=>e.keyJson=t)},null,8,["modelValue"]),e.jsonError?((0,n.wg)(),(0,n.j4)(u,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Invalid Format: "+(0,i.zw)(e.jsonError),1)])),_:1})):(0,n.kq)("",!0),(0,n.Wm)(m,{align:"right",class:"bg-primary"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!!e.jsonError,onClick:t[3]||(t[3]=t=>e.createApiKey())},{default:(0,n.w5)((()=>[(0,n.Uk)("Create API Key")])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"]),(0,n.Wm)(k,{class:"q-mt-md",title:"API Keys",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.apiKeys,columns:e.columns,"row-key":"id","visible-columns":["id","value_prefix","description","actions","collections","expires_at","actions_op"]},{"top-left":(0,n.w5)((()=>[(0,n._)("div",s,[(0,n.Wm)(h,{size:"md",name:"sym_s_key"}),(0,n.Uk)(" API Keys")])])),"top-right":(0,n.w5)((()=>[(0,n.Wm)(_,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":t[5]||(t[5]=t=>e.filter=t),placeholder:"Search"},{append:(0,n.w5)((()=>[(0,n.Wm)(h,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions_op":(0,n.w5)((t=>[(0,n.Wm)(g,{class:"text-right"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{flat:"",color:"negative",onClick:a=>e.deleteApiKey(t.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var o=a(66531),r=function(e,t,a,n){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function l(e){try{r(n.next(e))}catch(t){s(t)}}function o(e){try{r(n["throw"](e))}catch(t){s(t)}}function r(e){e.done?a(e.value):i(e.value).then(l,o)}r((n=n.apply(e,t||[])).next())}))};const d={description:"Admin key.",actions:["*"],collections:["*"]},c={description:"Search-only companies key.",actions:["documents:search"],collections:["companies"]},p=(0,n.aZ)({name:"ApiKeys",components:{MonacoEditor:o.Z},data(){return{jsonError:null,key:JSON.parse(JSON.stringify(d)),expanded:0===this.$store.state.node.data.apiKeys.length,filter:"",columns:[{label:"ID",name:"id",field:"id",sortable:!0},{label:"Key prefix",name:"value_prefix",field:"value_prefix"},{label:"Description",name:"description",field:"description",sortable:!0,align:"left"},{label:"Key Actions",name:"actions",field:e=>JSON.stringify(e.actions),sortable:!0,align:"left"},{label:"Collections",name:"collections",field:e=>JSON.stringify(e.collections),sortable:!0,align:"left"},{label:"Expires at",name:"expires_at",field:e=>e.expires_at?64723363199===e.expires_at?"never":new Date(1e3*e.expires_at).toLocaleString():""},{label:"Actions",name:"actions_op",align:"right"}]}},computed:{keyJson:{get(){return JSON.stringify(this.key,null,2)},set(e){try{this.key=JSON.parse(e),this.jsonError=null}catch(t){this.jsonError=t.message}}}},methods:{loadAdminKey(){this.key=JSON.parse(JSON.stringify(d))},loadSearchKey(){this.key=JSON.parse(JSON.stringify(c))},createApiKey(){return r(this,void 0,void 0,(function*(){const e=yield this.$store.dispatch("node/createApiKey",JSON.parse(JSON.stringify(this.key)));this.$q.dialog({title:"Your API key",message:`This is your API key copy it! It will not be displayed again!\n\n${e.value||""}`,cancel:!1,persistent:!0})}))},deleteApiKey(e){this.$q.dialog({title:"Confirm",message:`Delete key with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteApiKey",e)}))}}});var u=a(11639),m=a(69885),y=a(61123),f=a(44458),h=a(63190),_=a(24455),g=a(47128),k=a(11821),b=a(86008),w=a(22857),x=a(66611),K=a(67220),A=a(69984),v=a.n(A);const S=(0,u.Z)(p,[["render",l]]),q=S;v()(p,"components",{QPage:m.Z,QExpansionItem:y.Z,QCard:f.Z,QCardSection:h.Z,QBtn:_.Z,QBanner:g.Z,QCardActions:k.Z,QTable:b.Z,QIcon:w.Z,QInput:x.Z,QTd:K.Z})}}]); \ No newline at end of file diff --git a/js/92.14a66b0d.js b/js/92.14a66b0d.js deleted file mode 100644 index 873b440..0000000 --- a/js/92.14a66b0d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[92],{34092:(e,n,t)=>{t.r(n),t.d(n,{default:()=>U});var o=t(59835),l=t(86970);const s={class:"text-h6"};function a(e,n,t,a,i,d){const y=(0,o.up)("q-input"),m=(0,o.up)("q-option-group"),r=(0,o.up)("q-select"),u=(0,o.up)("q-card-section"),p=(0,o.up)("q-btn"),c=(0,o.up)("q-card-actions"),h=(0,o.up)("q-card"),f=(0,o.up)("q-expansion-item"),_=(0,o.up)("q-icon"),b=(0,o.up)("q-td"),g=(0,o.up)("q-table"),w=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(w,{padding:""},{default:(0,o.w5)((()=>[(0,o.Wm)(f,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Synonym","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":n[5]||(n[5]=n=>e.expanded=n)},{default:(0,o.w5)((()=>[(0,o.Wm)(h,{class:"bg-surface column"},{default:(0,o.w5)((()=>[(0,o.Wm)(u,null,{default:(0,o.w5)((()=>[(0,o.Wm)(y,{label:"ID",modelValue:e.id,"onUpdate:modelValue":n[0]||(n[0]=n=>e.id=n),filled:"",class:"q-mb-md"},null,8,["modelValue"]),(0,o.Wm)(m,{filled:"",modelValue:e.type,"onUpdate:modelValue":n[1]||(n[1]=n=>e.type=n),options:e.typeOptions,color:"primary",inline:"",class:"q-mb-md"},null,8,["modelValue","options"]),e.type===e.types.ONE_WAY?((0,o.wg)(),(0,o.j4)(y,{key:0,filled:"","stack-label":"",label:"Root",modelValue:e.synonym.root,"onUpdate:modelValue":n[2]||(n[2]=n=>e.synonym.root=n),class:"q-mb-md"},null,8,["modelValue"])):(0,o.kq)("",!0),(0,o.Wm)(r,{filled:"",modelValue:e.synonym.synonyms,"onUpdate:modelValue":n[3]||(n[3]=n=>e.synonym.synonyms=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Synonyms"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(c,{align:"right",class:"bg-primary"},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!e.isValid,onClick:n[4]||(n[4]=n=>e.createSynonym())},{default:(0,o.w5)((()=>[(0,o.Uk)((0,l.zw)(e.isUpdate?"Update":"Add")+" Synonym",1)])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,o.Wm)(g,{class:"q-mt-md",title:"Synonyms",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.synonyms,columns:e.columns,"row-key":"id","visible-columns":["id","type","root","synonyms","actions"],pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,o.w5)((()=>[(0,o._)("div",s,[(0,o.Wm)(_,{size:"md",name:"sym_s_dataset_linked"}),(0,o.Uk)(" Synonyms")])])),"top-right":(0,o.w5)((()=>[(0,o.Wm)(y,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":n[6]||(n[6]=n=>e.filter=n),placeholder:"Search"},{append:(0,o.w5)((()=>[(0,o.Wm)(_,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,o.w5)((n=>[(0,o.Wm)(b,{class:"text-right"},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{flat:"",color:"primary",onClick:t=>e.editSynonym(n.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,o.Wm)(p,{flat:"",color:"negative",onClick:t=>e.deleteSynonym(n.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var i,d=t(32275),y=function(e,n,t,o){function l(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,s){function a(e){try{d(o.next(e))}catch(n){s(n)}}function i(e){try{d(o["throw"](e))}catch(n){s(n)}}function d(e){e.done?t(e.value):l(e.value).then(a,i)}d((o=o.apply(e,n||[])).next())}))};(function(e){e["ONE_WAY"]="one-way",e["MULTI_WAY"]="multi-way"})(i||(i={}));const m=(0,o.aZ)({name:"Synonyms",data(){return{expanded:0===this.$store.state.node.data.synonyms.length,filter:"",type:i.MULTI_WAY,types:i,typeOptions:[{label:"Multi-way synonyms",value:i.MULTI_WAY},{label:"One-way synonym",value:i.ONE_WAY}],synonym:{root:"",synonyms:[]},id:(0,d.x0)(),columns:[{label:"ID",name:"id",field:"id",align:"left"},{label:"Type",name:"type",align:"left",field:e=>e.root?i.ONE_WAY:i.MULTI_WAY,sortable:!0},{label:"Root",name:"root",field:"root",align:"left",sortable:!0},{label:"Synonyms",name:"synonyms",field:e=>JSON.stringify(e.synonyms),align:"left",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},computed:{isValid(){return this.synonym.synonyms.length>0&&this.id.length>0},isUpdate(){return this.$store.state.node.data.synonyms.map((e=>e.id)).includes(this.id)}},methods:{createSynonym(){return y(this,void 0,void 0,(function*(){const e={synonyms:JSON.parse(JSON.stringify(this.synonym.synonyms))};this.type===this.types.ONE_WAY&&(e.root=this.synonym.root),yield this.$store.dispatch("node/createSynonym",{id:this.id,synonym:e}),this.id=(0,d.x0)(),this.synonym={root:"",synonyms:[]},this.expanded=!1}))},editSynonym(e){this.id=e.id||(0,d.x0)(),this.synonym=JSON.parse(JSON.stringify(e)),this.type=this.synonym.root?i.ONE_WAY:i.MULTI_WAY,this.expanded=!0},deleteSynonym(e){this.$q.dialog({title:"Confirm",message:`Delete synonym with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteSynonym",e)}))}}});var r=t(11639),u=t(69885),p=t(61123),c=t(44458),h=t(63190),f=t(66611),_=t(8830),b=t(67887),g=t(11821),w=t(24455),W=t(86008),S=t(22857),V=t(67220),k=t(69984),q=t.n(k);const x=(0,r.Z)(m,[["render",a]]),U=x;q()(m,"components",{QPage:u.Z,QExpansionItem:p.Z,QCard:c.Z,QCardSection:h.Z,QInput:f.Z,QOptionGroup:_.Z,QSelect:b.Z,QCardActions:g.Z,QBtn:w.Z,QTable:W.Z,QIcon:S.Z,QTd:V.Z})}}]); \ No newline at end of file diff --git a/js/925.1170cc3b.js b/js/925.1170cc3b.js new file mode 100644 index 0000000..b0fead2 --- /dev/null +++ b/js/925.1170cc3b.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[925],{51925:(e,n,l)=>{l.r(n),l.d(n,{default:()=>O});var o=l(59835),t=l(86970);const s=(0,o._)("div",{class:"text-overline"},"Optional",-1),a={class:"text-h6"};function i(e,n,l,i,d,m){const y=(0,o.up)("q-input"),r=(0,o.up)("q-option-group"),u=(0,o.up)("q-select"),c=(0,o.up)("q-card-section"),p=(0,o.up)("q-separator"),_=(0,o.up)("q-btn"),h=(0,o.up)("q-card-actions"),b=(0,o.up)("q-card"),f=(0,o.up)("q-expansion-item"),g=(0,o.up)("q-icon"),w=(0,o.up)("q-td"),x=(0,o.up)("q-table"),W=(0,o.up)("q-page");return(0,o.wg)(),(0,o.j4)(W,{padding:""},{default:(0,o.w5)((()=>[(0,o.Wm)(f,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:(e.isUpdate?"Update":"Add")+" Synonym","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":n[7]||(n[7]=n=>e.expanded=n)},{default:(0,o.w5)((()=>[(0,o.Wm)(b,{class:"bg-surface column"},{default:(0,o.w5)((()=>[(0,o.Wm)(c,null,{default:(0,o.w5)((()=>[(0,o.Wm)(y,{label:"ID",modelValue:e.id,"onUpdate:modelValue":n[0]||(n[0]=n=>e.id=n),filled:"",class:"q-mb-md"},null,8,["modelValue"]),(0,o.Wm)(r,{filled:"",modelValue:e.type,"onUpdate:modelValue":n[1]||(n[1]=n=>e.type=n),options:e.typeOptions,color:"primary",inline:"",class:"q-mb-md"},null,8,["modelValue","options"]),e.type===e.types.ONE_WAY?((0,o.wg)(),(0,o.j4)(y,{key:0,filled:"","stack-label":"",label:"Root",modelValue:e.synonym.root,"onUpdate:modelValue":n[2]||(n[2]=n=>e.synonym.root=n),class:"q-mb-md"},null,8,["modelValue"])):(0,o.kq)("",!0),(0,o.Wm)(u,{filled:"",modelValue:e.synonym.synonyms,"onUpdate:modelValue":n[3]||(n[3]=n=>e.synonym.synonyms=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Synonyms",hint:"Enter a synonym and press enter"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(p),(0,o.Wm)(c,null,{default:(0,o.w5)((()=>[s,(0,o.Wm)(u,{filled:"",modelValue:e.synonym.symbols_to_index,"onUpdate:modelValue":n[4]||(n[4]=n=>e.synonym.symbols_to_index=n),multiple:"","use-chips":"","use-input":"","new-value-mode":"add","stack-label":"","hide-dropdown-icon":"",label:"Symbols to Index",hint:"Enter a symbol (eg: +, - ) and press enter"},null,8,["modelValue"]),(0,o.Wm)(y,{filled:"","stack-label":"",label:"Locale",modelValue:e.synonym.locale,"onUpdate:modelValue":n[5]||(n[5]=n=>e.synonym.locale=n),class:"q-mb-md",hint:"Leave blank to auto-detect"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(h,{align:"right",class:"bg-primary"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!e.isValid,onClick:n[6]||(n[6]=n=>e.createSynonym())},{default:(0,o.w5)((()=>[(0,o.Uk)((0,t.zw)(e.isUpdate?"Update":"Add")+" Synonym",1)])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["label","modelValue"]),(0,o.Wm)(x,{class:"q-mt-md",title:"Synonyms",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.synonyms,columns:e.columns,"row-key":"id",pagination:{rowsPerPage:50,sortBy:"name"}},{"top-left":(0,o.w5)((()=>[(0,o._)("div",a,[(0,o.Wm)(g,{size:"md",name:"sym_s_dataset_linked"}),(0,o.Uk)(" Synonyms")])])),"top-right":(0,o.w5)((()=>[(0,o.Wm)(y,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":n[8]||(n[8]=n=>e.filter=n),placeholder:"Search"},{append:(0,o.w5)((()=>[(0,o.Wm)(g,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions":(0,o.w5)((n=>[(0,o.Wm)(w,{class:"text-right"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{flat:"",color:"primary",onClick:l=>e.editSynonym(n.row),icon:"sym_s_edit",title:"Edit"},null,8,["onClick"]),(0,o.Wm)(_,{flat:"",color:"negative",onClick:l=>e.deleteSynonym(n.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var d,m=l(32275),y=function(e,n,l,o){function t(e){return e instanceof l?e:new l((function(n){n(e)}))}return new(l||(l=Promise))((function(l,s){function a(e){try{d(o.next(e))}catch(n){s(n)}}function i(e){try{d(o["throw"](e))}catch(n){s(n)}}function d(e){e.done?l(e.value):t(e.value).then(a,i)}d((o=o.apply(e,n||[])).next())}))};(function(e){e["ONE_WAY"]="one-way",e["MULTI_WAY"]="multi-way"})(d||(d={}));const r=(0,o.aZ)({name:"Synonyms",data(){return{expanded:0===this.$store.state.node.data.synonyms.length,filter:"",type:d.MULTI_WAY,types:d,typeOptions:[{label:"Multi-way synonyms",value:d.MULTI_WAY},{label:"One-way synonym",value:d.ONE_WAY}],synonym:{root:"",synonyms:[],locale:"",symbols_to_index:[]},id:(0,m.x0)(),columns:[{label:"ID",name:"id",field:"id",align:"left"},{label:"Type",name:"type",align:"left",field:e=>e.root?d.ONE_WAY:d.MULTI_WAY,sortable:!0},{label:"Root",name:"root",field:"root",align:"left",sortable:!0},{label:"Synonyms",name:"synonyms",field:e=>e.synonyms.join(", "),align:"left",sortable:!0},{label:"Symbols to Index",name:"symbols_to_index",field:e=>{var n;return null===(n=e.symbols_to_index)||void 0===n?void 0:n.join(", ")},align:"left",sortable:!0},{label:"Locale",name:"locale",field:"locale",align:"left",sortable:!0},{label:"Actions",name:"actions",align:"right"}]}},computed:{isValid(){return this.synonym.synonyms.length>0&&this.id.length>0},isUpdate(){return this.$store.state.node.data.synonyms.map((e=>e.id)).includes(this.id)}},methods:{createSynonym(){return y(this,void 0,void 0,(function*(){const e={synonyms:JSON.parse(JSON.stringify(this.synonym.synonyms))};this.type===this.types.ONE_WAY&&(e.root=this.synonym.root),this.synonym.locale&&(e.locale=this.synonym.locale),this.synonym.symbols_to_index&&this.synonym.symbols_to_index.length>0&&(e.symbols_to_index=this.synonym.symbols_to_index),yield this.$store.dispatch("node/createSynonym",{id:this.id,synonym:e}),this.id=(0,m.x0)(),this.synonym={root:"",synonyms:[],locale:"",symbols_to_index:[]},this.expanded=!1}))},editSynonym(e){this.id=e.id||(0,m.x0)(),this.synonym=JSON.parse(JSON.stringify(e)),this.type=this.synonym.root?d.ONE_WAY:d.MULTI_WAY,this.synonym.locale=this.synonym.locale||"",this.synonym.symbols_to_index=this.synonym.symbols_to_index||[],this.expanded=!0},deleteSynonym(e){this.$q.dialog({title:"Confirm",message:`Delete synonym with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteSynonym",e)}))}}});var u=l(11639),c=l(69885),p=l(61123),_=l(44458),h=l(63190),b=l(66611),f=l(8830),g=l(67887),w=l(50926),x=l(11821),W=l(24455),V=l(86008),S=l(22857),k=l(67220),v=l(69984),q=l.n(v);const U=(0,u.Z)(r,[["render",i]]),O=U;q()(r,"components",{QPage:c.Z,QExpansionItem:p.Z,QCard:_.Z,QCardSection:h.Z,QInput:b.Z,QOptionGroup:f.Z,QSelect:g.Z,QSeparator:w.Z,QCardActions:x.Z,QBtn:W.Z,QTable:V.Z,QIcon:S.Z,QTd:k.Z})}}]); \ No newline at end of file diff --git a/js/928.2d865d85.js b/js/928.2d865d85.js new file mode 100644 index 0000000..928bb7b --- /dev/null +++ b/js/928.2d865d85.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[928],{39002:(e,t,a)=>{a.r(t),a.d(t,{default:()=>q});var n=a(59835),i=a(86970);const s={class:"text-h6"};function o(e,t,a,o,l,r){const d=(0,n.up)("q-btn"),c=(0,n.up)("q-card-section"),p=(0,n.up)("monaco-editor"),u=(0,n.up)("q-banner"),m=(0,n.up)("q-card-actions"),y=(0,n.up)("q-card"),f=(0,n.up)("q-expansion-item"),h=(0,n.up)("q-icon"),_=(0,n.up)("q-input"),g=(0,n.up)("q-td"),k=(0,n.up)("q-table"),b=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(b,{padding:""},{default:(0,n.w5)((()=>[(0,n.Wm)(f,{"expand-separator":"",icon:"sym_s_add_circle","expand-icon":"sym_s_unfold_more","expanded-icon":"sym_s_unfold_less",label:"Create API Key","header-class":"bg-primary text-white",modelValue:e.expanded,"onUpdate:modelValue":t[4]||(t[4]=t=>e.expanded=t)},{default:(0,n.w5)((()=>[(0,n.Wm)(y,{style:{height:"60vh"},class:"bg-surface column"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{class:"q-gutter-md"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{flat:"",onClick:t[0]||(t[0]=t=>e.loadAdminKey())},{default:(0,n.w5)((()=>[(0,n.Uk)("Admin Key Example")])),_:1}),(0,n.Wm)(d,{flat:"",onClick:t[1]||(t[1]=t=>e.loadSearchKey())},{default:(0,n.w5)((()=>[(0,n.Uk)("Search Key Example")])),_:1}),(0,n.Wm)(d,{type:"a",icon:"sym_s_help","no-caps":"",color:"info",flat:"",dense:"",href:`https://typesense.org/docs/${e.$store.state.node.data.debug.version}/api/api-keys.html#create-an-api-key`,target:"_blank"},{default:(0,n.w5)((()=>[(0,n.Uk)("Documentation")])),_:1},8,["href"])])),_:1}),(0,n.Wm)(p,{modelValue:e.keyJson,"onUpdate:modelValue":t[2]||(t[2]=t=>e.keyJson=t)},null,8,["modelValue"]),e.jsonError?((0,n.wg)(),(0,n.j4)(u,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Invalid Format: "+(0,i.zw)(e.jsonError),1)])),_:1})):(0,n.kq)("",!0),(0,n.Wm)(m,{align:"right",class:"bg-primary"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{size:"md",padding:"sm lg",unelevated:"",color:"primary",disable:!!e.jsonError,onClick:t[3]||(t[3]=t=>e.createApiKey())},{default:(0,n.w5)((()=>[(0,n.Uk)("Create API Key")])),_:1},8,["disable"])])),_:1})])),_:1})])),_:1},8,["modelValue"]),(0,n.Wm)(k,{class:"q-mt-md",title:"API Keys",flat:"",bordered:"",filter:e.filter,rows:e.$store.state.node.data.apiKeys,columns:e.columns,"row-key":"id","visible-columns":["id","value_prefix","description","actions","collections","expires_at","actions_op"]},{"top-left":(0,n.w5)((()=>[(0,n._)("div",s,[(0,n.Wm)(h,{size:"md",name:"sym_s_key"}),(0,n.Uk)(" API Keys")])])),"top-right":(0,n.w5)((()=>[(0,n.Wm)(_,{borderless:"",dense:"",debounce:"300",modelValue:e.filter,"onUpdate:modelValue":t[5]||(t[5]=t=>e.filter=t),placeholder:"Search"},{append:(0,n.w5)((()=>[(0,n.Wm)(h,{name:"sym_s_search"})])),_:1},8,["modelValue"])])),"body-cell-actions_op":(0,n.w5)((t=>[(0,n.Wm)(g,{class:"text-right"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{flat:"",color:"negative",onClick:a=>e.deleteApiKey(t.row.id),icon:"sym_s_delete_forever",title:"Delete"},null,8,["onClick"])])),_:2},1024)])),_:1},8,["filter","rows","columns"])])),_:1})}var l=a(66531),r=function(e,t,a,n){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function o(e){try{r(n.next(e))}catch(t){s(t)}}function l(e){try{r(n["throw"](e))}catch(t){s(t)}}function r(e){e.done?a(e.value):i(e.value).then(o,l)}r((n=n.apply(e,t||[])).next())}))};const d={description:"Admin key.",actions:["*"],collections:["*"]},c={description:"Search-only companies key.",actions:["documents:search"],collections:["companies"]},p=(0,n.aZ)({name:"ApiKeys",components:{MonacoEditor:l.Z},data(){return{jsonError:null,key:JSON.parse(JSON.stringify(d)),expanded:0===this.$store.state.node.data.apiKeys.length,filter:"",columns:[{label:"ID",name:"id",field:"id",sortable:!0},{label:"Key prefix",name:"value_prefix",field:"value_prefix"},{label:"Description",name:"description",field:"description",sortable:!0,align:"left"},{label:"Key Actions",name:"actions",field:e=>JSON.stringify(e.actions),sortable:!0,align:"left"},{label:"Collections",name:"collections",field:e=>JSON.stringify(e.collections),sortable:!0,align:"left"},{label:"Expires at",name:"expires_at",field:e=>e.expires_at?64723363199===e.expires_at?"never":new Date(1e3*e.expires_at).toLocaleString():""},{label:"Actions",name:"actions_op",align:"right"}]}},computed:{keyJson:{get(){return JSON.stringify(this.key,null,2)},set(e){try{this.key=JSON.parse(e),this.jsonError=null}catch(t){this.jsonError=t.message}}}},methods:{loadAdminKey(){this.key=JSON.parse(JSON.stringify(d))},loadSearchKey(){this.key=JSON.parse(JSON.stringify(c))},createApiKey(){return r(this,void 0,void 0,(function*(){const e=yield this.$store.dispatch("node/createApiKey",JSON.parse(JSON.stringify(this.key)));this.$q.dialog({title:"Your API key",message:`This is your API key copy it! It will not be displayed again!\n\n${e.value||""}`,cancel:!1,persistent:!0})}))},deleteApiKey(e){this.$q.dialog({title:"Confirm",message:`Delete key with id: ${e}?`,cancel:!0,persistent:!0}).onOk((()=>{this.$store.dispatch("node/deleteApiKey",e)}))}}});var u=a(11639),m=a(69885),y=a(61123),f=a(44458),h=a(63190),_=a(24455),g=a(47128),k=a(11821),b=a(86008),w=a(22857),x=a(66611),K=a(67220),v=a(69984),A=a.n(v);const S=(0,u.Z)(p,[["render",o]]),q=S;A()(p,"components",{QPage:m.Z,QExpansionItem:y.Z,QCard:f.Z,QCardSection:h.Z,QBtn:_.Z,QBanner:g.Z,QCardActions:k.Z,QTable:b.Z,QIcon:w.Z,QInput:x.Z,QTd:K.Z})}}]); \ No newline at end of file diff --git a/js/app.3078a445.js b/js/app.3078a445.js deleted file mode 100644 index ac0984e..0000000 --- a/js/app.3078a445.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={34658:(e,t,o)=>{"use strict";var n=o(61957),i=o(71947),r=o(60499),s=o(59835);function a(e,t,o,n,i,r){const a=(0,s.up)("router-view");return(0,s.wg)(),(0,s.j4)(a)}const l=(0,s.aZ)({name:"App"});var c=o(11639);const d=(0,c.Z)(l,[["render",a]]),u=d;var p=o(62465),v=o(23340),m=o(28339);const h=[{path:"/",component:()=>Promise.all([o.e(736),o.e(64),o.e(164)]).then(o.bind(o,78164)),children:[{path:"",component:()=>Promise.all([o.e(736),o.e(399)]).then(o.bind(o,30399))},{path:"aliases",component:()=>Promise.all([o.e(736),o.e(417)]).then(o.bind(o,39417))},{path:"apikeys",component:()=>Promise.all([o.e(736),o.e(64),o.e(829)]).then(o.bind(o,85139))},{path:"analyticsrules",component:()=>Promise.all([o.e(736),o.e(942)]).then(o.bind(o,1942))},{path:"collections",component:()=>Promise.all([o.e(736),o.e(64),o.e(793)]).then(o.bind(o,47646))},{path:"collection/:name/document",component:()=>Promise.all([o.e(736),o.e(64),o.e(631)]).then(o.bind(o,70648))},{path:"collection/:name/search",component:()=>Promise.all([o.e(736),o.e(64),o.e(543)]).then(o.bind(o,40758))},{path:"collection/:name/schema",component:()=>Promise.all([o.e(736),o.e(64),o.e(165)]).then(o.bind(o,58067))},{path:"collection/:name/synonyms",component:()=>Promise.all([o.e(736),o.e(92)]).then(o.bind(o,34092))},{path:"collection/:name/curations",component:()=>Promise.all([o.e(736),o.e(64),o.e(370)]).then(o.bind(o,16074))}]},{path:"/login",name:"Login",component:()=>Promise.all([o.e(736),o.e(64),o.e(931)]).then(o.bind(o,25931))},{path:"/:catchAll(.*)*",component:()=>Promise.all([o.e(736),o.e(983)]).then(o.bind(o,48983))}],y=h;var g=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const f=(0,v.BC)((function({store:e}){const t=m.r5,o=(0,m.p7)({scrollBehavior:()=>({left:0,top:0}),routes:y,history:t("/typesense-dashboard/")});return e.dispatch("node/connectionCheck"),o.beforeEach(((t,o,n)=>g(this,void 0,void 0,(function*(){"Login"===t.name||e.state.node.isConnected?t.params.name?(e.state.node.currentCollection&&e.state.node.currentCollection.name===t.params.name||(yield e.dispatch("node/loadCurrentCollectionByName",t.params.name)),n()):n():(e.commit("node/setPreviousRoute",t),n({name:"Login"}))})))),o}));async function C(e,t){const n=e(u);n.use(i.Z,t);const s="function"===typeof p.Z?await(0,p.Z)({}):p.Z,{storeKey:a}=await Promise.resolve().then(o.bind(o,62465)),l=(0,r.Xl)("function"===typeof f?await f({store:s}):f);return s.$router=l,{app:n,store:s,storeKey:a,router:l}}var b=o(63703),A=o(14462),w=o(26950),D=o(6827);const P={config:{dark:"auto"},plugins:{LocalStorage:b.Z,Dialog:A.Z,Loading:w.Z,Notify:D.Z}},O="/typesense-dashboard/",k=/\/\//,S=e=>(O+e).replace(k,"/");async function E({app:e,router:t,store:o,storeKey:n},i){let r=!1;const s=e=>{try{return S(t.resolve(e).href)}catch(o){}return Object(e)===e?null:e},a=e=>{if(r=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=s(e);null!==t&&(window.location.href=t,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let d=0;!1===r&&d{const[t,n]=void 0!==Promise.allSettled?["allSettled",e=>e.map((e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)}))]:["all",e=>e.map((e=>e.default))];return Promise[t]([Promise.resolve().then(o.bind(o,34136)),Promise.resolve().then(o.bind(o,14703)),Promise.resolve().then(o.bind(o,65692)),Promise.resolve().then(o.bind(o,85409))]).then((t=>{const o=n(t).filter((e=>"function"===typeof e));E(e,o)}))}))},34136:(e,t,o)=>{"use strict";o.r(t),o.d(t,{api:()=>r,default:()=>s});var n=o(23340),i=o(76081);const r=i.Z.create({baseURL:"https://api.example.com"}),s=(0,n.xr)((({app:e})=>{e.config.globalProperties.$axios=i.Z,e.config.globalProperties.$api=r}))},85409:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(23340),i=o(76081),r=o(47506);const s=(0,n.xr)((({store:e})=>{r.ZP.is.electron||i.Z.get("config.json").then((t=>{e.dispatch("node/login",t.data)}))}))},65692:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>l});var n=o(23340),i=o(63703),r=o(9114),s=o(59835);const a="typesense-dark-mode",l=(0,n.xr)((()=>{const e=i.Z.getItem(a);null!==e&&r.Z.set(e),(0,s.YP)((()=>r.Z.isActive),(e=>{i.Z.set(a,e)}))}))},14703:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>r});var n=o(23340),i=o(67276);const r=(0,n.xr)((({app:e})=>{e.use(i.ZP)}))},62465:(e,t,o)=>{"use strict";o.d(t,{Z:()=>S,storeKey:()=>k});var n=o(23340),i=o(33100),r=o(63703);const s="typesense-logindata",a="typesense-loginhistory";function l(){return{loginData:r.Z.getItem(s),loginHistory:r.Z.getItem(a)||[],forceHomeRedirect:!1,isConnected:!1,previousRoute:null,error:null,currentCollection:null,documentsToEdit:[],data:{debug:{},metrics:{},stats:{},collections:[],aliases:[],apiKeys:[],analyticsRules:[],overrides:[],synonyms:[]}}}const c=l;var d=o(42049),u=o.n(d),p=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const v={connectionCheck(e){e.state.loginData?e.getters.api.get("/metrics.json").then((t=>p(this,void 0,void 0,(function*(){e.commit("setData",{metrics:t.data}),yield Promise.all([e.dispatch("getCollections"),e.dispatch("getAliases"),e.dispatch("getApiKeys"),e.dispatch("getDebug")]),e.commit("setIsConnected",!0),e.commit("saveHistory"),e.commit("setError",null)})))).catch((t=>{e.commit("setIsConnected",!1),e.commit("setError",t.message)})):e.commit("setIsConnected",!1)},refreshServerStatus(e){e.getters.api.get("/metrics.json").then((t=>{e.commit("setData",{metrics:t.data})})).catch((()=>{e.dispatch("connectionCheck")})),e.getters.api.get("/stats.json").then((t=>{e.commit("setData",{stats:t.data})})).catch((()=>{e.dispatch("connectionCheck")}))},getDebug(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getDebug().then((t=>{e.commit("setData",{debug:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getCollections(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getCollections().then((t=>{e.commit("setData",{collections:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAliases(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getAliases().then((t=>{e.commit("setData",{aliases:t.aliases})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getApiKeys(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getApiKeys().then((t=>{e.commit("setData",{apiKeys:t.keys})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAnalyticsRules(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getAnalyticsRules().then((t=>{e.commit("setData",{analyticsRules:t.rules})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteAnalyticsRule(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteAnalyticsRule(t),e.dispatch("getAnalyticsRules")}))},createAnalyticsRule(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAnalyticsRule(t.name,t),e.dispatch("getAnalyticsRules")}catch(o){e.commit("setError",o.message)}}))},getSynonyms(e,t){e.getters.api.getSynonyms(t).then((t=>{e.commit("setData",{synonyms:t.synonyms})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},getOverrides(e,t){e.getters.api.getOverrides(t).then((t=>{e.commit("setData",{overrides:t.overrides})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},login(e,t){const{apiKey:o,node:n,forceHomeRedirect:i=!1}=t;e.commit("setForceRedirect",i),e.commit("setNodeData",{apiKey:o,node:n}),e.dispatch("connectionCheck")},logout(e){r.Z.remove(s),e.commit("setIsConnected",!1)},loadCurrentCollection(e,t){e.commit("setCurrentCollection",t),e.dispatch("getSynonyms",t.name),e.dispatch("getOverrides",t.name)},loadCurrentCollectionByName(e,t){return e.dispatch("loadCurrentCollection",e.state.data.collections.find((e=>e.name===t)))},dropCollection(e,t){return p(this,void 0,void 0,(function*(){e.commit("setCurrentCollection",null),yield e.getters.api.dropCollection(t),e.dispatch("getCollections")}))},createCollection(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createCollection(JSON.parse(JSON.stringify(t)));e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${o.name}/schema`)}catch(o){e.commit("setError",o.message)}}))},updateCollection(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.updateCollection(t.collectionName,t.schema);const o=yield e.getters.api.getCollection(t.collectionName);e.commit("setData",{collections:e.state.data.collections.map((e=>e.name===t.collectionName?o:e))}),e.commit("setCurrentCollection",o)}catch(o){e.commit("setError",o.message)}}))},deleteAlias(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteAlias(t),e.dispatch("getAliases")}))},createAlias(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAlias(t),e.dispatch("getAliases")}catch(o){e.commit("setError",o.message)}}))},createApiKey(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createApiKey(t);return e.dispatch("getApiKeys"),o}catch(o){throw e.commit("setError",o.message),o}}))},deleteApiKey(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteApiKey(t),e.dispatch("getApiKeys")}))},createSynonym(e,t){var o,n;return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.synonym),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteSynonym(e,t){var o,n;return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},createOverride(e,t){var o,n;return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.override),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteOverride(e,t){var o,n;return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},deleteDocumentById(e,t){var o;return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteDocumentById(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t)}))},search(e,t){var o;return e.getters.api.search((null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||"",JSON.parse(JSON.stringify(t)))},importDocuments(e,t){var o;return e.getters.api.importDocuments(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.documents,t.action)},exportDocuments(e,t){return p(this,void 0,void 0,(function*(){return e.getters.api.exportDocuments(t).then((e=>{const o=new Blob([e],{type:"text/plain;charset=utf-8"});u().saveAs(o,`${t}.ljson`)}))}))},editDocuments(e,t){var o;e.commit("setDocumentsToEdit",t),this.$router.push(`/collection/${(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||""}/document`)},exportToJson(e,t){const o=new Blob([JSON.stringify(t,null,2)],{type:"application/json;charset=utf-8"});u().saveAs(o,"export.json")}},m=v;var h=o(76081),y=o(86953),g=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class f{init({node:e,apiKey:t}){this.axiosClient=h.Z.create({baseURL:`${e.protocol}://${e.host}:${e.port}${e.path||""}`,headers:{"x-typesense-api-key":t}}),this.typesenseClient=new y.Client({nodes:[Object.assign({},e)],apiKey:t})}getDebug(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.debug.retrieve()}getCollections(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.collections().retrieve()}createCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections().create(e)}getCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).retrieve()}dropCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).delete()}updateCollection(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).update(t)}getAliases(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.aliases().retrieve()}upsertAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases().upsert(e.name,{collection_name:e.collection_name})}deleteAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases(e).delete()}getApiKeys(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.keys().retrieve()}createApiKey(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.keys().create(e)}deleteApiKey(e){return g(this,void 0,void 0,(function*(){this.typesenseClient&&(yield this.typesenseClient.keys(parseInt(e,10)).delete())}))}getAnalyticsRules(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.analytics.rules().retrieve()}upsertAnalyticsRule(e,t){var o;return(null===(o=this.typesenseClient)||void 0===o?void 0:o.analytics.rules()).upsert(e,t)}deleteAnalyticsRule(e){var t;return(null===(t=this.typesenseClient)||void 0===t?void 0:t.analytics.rules(e)).delete()}getSynonyms(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).synonyms().retrieve()}upsertSynonym(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).synonyms().upsert(t,o)}deleteSynonym(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).synonyms(t).delete()}getOverrides(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).overrides().retrieve()}upsertOverride(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).overrides().upsert(t,o)}deleteOverride(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).overrides(t).delete()}deleteDocumentById(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents(t).delete()}importDocuments(e,t,o){var n;if(this.typesenseClient)return(null===(n=this.typesenseClient.collections(e))||void 0===n?void 0:n.documents()).import(t,{action:o}).catch((e=>e.importResults))}exportDocuments(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).documents().export()}search(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents().search(t)}get(e){var t;return null===(t=this.axiosClient)||void 0===t?void 0:t.get(e).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}}const C={api(e){if(e.loginData){const t=window.electron;let o=new f;return t&&(o=t,t.rejectTLS(Number(e.loginData.node.tls))),o.init({node:Object.assign({},e.loginData.node),apiKey:e.loginData.apiKey}),o}}},b=C;var A=o(6827);const w={setNodeData(e,t){e.loginData=t,r.Z.set(s,t)},setIsConnected(e,t){var o,n,i,r,s;const a=null===(o=this.$router)||void 0===o?void 0:o.currentRoute.value;t&&!e.isConnected&&(e.previousRoute?(null===(n=this.$router)||void 0===n||n.push(e.previousRoute),e.previousRoute=null):null===(i=this.$router)||void 0===i||i.push("/")),t||"Login"===(null===a||void 0===a?void 0:a.name)||null===(r=this.$router)||void 0===r||r.push("/login"),t&&e.forceHomeRedirect&&(null===(s=this.$router)||void 0===s||s.push("/"),A.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Server changed"}),e.forceHomeRedirect=!1,e.currentCollection=null),e.isConnected=t},saveHistory(e){const t=JSON.stringify(e.loginData),o=e.loginHistory.indexOf(t);0!==o&&(o>0&&e.loginHistory.splice(o,1),e.loginHistory.unshift(t),r.Z.set(a,e.loginHistory))},clearHistory(e){e.loginHistory=[],r.Z.set(a,[])},setForceRedirect(e,t){e.forceHomeRedirect=t},setPreviousRoute(e,t){e.previousRoute=t},setData(e,t){for(const o in t)e.data[o]=t[o]},setError(e,t){e.error=t},setCurrentCollection(e,t){var o;e.currentCollection=t,t||null===(o=this.$router)||void 0===o||o.push("/collections")},setDocumentsToEdit(e,t){e.documentsToEdit=t}},D=w,P={namespaced:!0,actions:m,getters:b,mutations:D,state:c},O=P,k=Symbol("vuex-key"),S=(0,n.h)((function(){const e=(0,i.MT)({modules:{node:O},strict:!1});return e}))},99964:()=>{}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.m=e,(()=>{o.amdO={}})(),(()=>{var e=[];o.O=(t,n,i,r)=>{if(!n){var s=1/0;for(d=0;d=r)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,i,r]}})(),(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[]))})(),(()=>{o.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{64:"f3cfb900",92:"14a66b0d",164:"874317c4",165:"9a5577fc",370:"164ad0ff",399:"7fb092f8",417:"05956a2a",543:"0f0e31a3",631:"5309aa3b",793:"60f8b723",829:"d6edac39",931:"78714a7d",942:"b627c76e",983:"7d8c3e9a"}[e]+".js"})(),(()=>{o.miniCssF=e=>"css/"+e+"."+{164:"b2fb100c",165:"954a317a",370:"954a317a",543:"1a5aed88",631:"954a317a",793:"954a317a",829:"954a317a"}[e]+".css"})(),(()=>{o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="typesense-dashboard:";o.l=(n,i,r,s)=>{if(e[n])e[n].push(i);else{var a,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(v);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(o))),t)return t(o)},v=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),(()=>{o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{o.p="/typesense-dashboard/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,o,n,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var s=o=>{if(r.onerror=r.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),i(l)}};return r.onerror=r.onload=s,r.href=t,o?o.parentNode.insertBefore(r,o.nextSibling):document.head.appendChild(r),r},t=(e,t)=>{for(var o=document.getElementsByTagName("link"),n=0;nnew Promise(((i,r)=>{var s=o.miniCssF(n),a=o.p+s;if(t(s,a))return i();e(n,a,null,i,r)})),i={143:0};o.f.miniCss=(e,t)=>{var o={164:1,165:1,370:1,543:1,631:1,793:1,829:1};i[e]?t.push(i[e]):0!==i[e]&&o[e]&&t.push(i[e]=n(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))}}})(),(()=>{var e={143:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((o,n)=>i=e[t]=[o,n]));n.push(i[2]=r);var s=o.p+o.u(t),a=new Error,l=n=>{if(o.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,i[1](a)}};o.l(s,l,"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(l)var d=l(o)}for(t&&t(n);co(34658)));n=o.O(n)})(); \ No newline at end of file diff --git a/js/app.3f540e45.js b/js/app.3f540e45.js new file mode 100644 index 0000000..9f033cd --- /dev/null +++ b/js/app.3f540e45.js @@ -0,0 +1 @@ +(()=>{var e={34658:(e,t,o)=>{"use strict";var n=o(61957),i=o(71947),r=o(60499),s=o(59835);function a(e,t,o,n,i,r){const a=(0,s.up)("router-view");return(0,s.wg)(),(0,s.j4)(a)}const l=(0,s.aZ)({name:"App"});var c=o(11639);const d=(0,c.Z)(l,[["render",a]]),u=d;var p=o(62465),m=o(23340),v=o(28339);const h=[{path:"/",component:()=>Promise.all([o.e(736),o.e(64),o.e(0)]).then(o.bind(o,21e3)),children:[{path:"",component:()=>Promise.all([o.e(736),o.e(399)]).then(o.bind(o,30399))},{path:"aliases",component:()=>Promise.all([o.e(736),o.e(417)]).then(o.bind(o,39417))},{path:"apikeys",component:()=>Promise.all([o.e(736),o.e(64),o.e(928)]).then(o.bind(o,39002))},{path:"analyticsrules",component:()=>Promise.all([o.e(736),o.e(942)]).then(o.bind(o,1942))},{path:"searchpresets",component:()=>Promise.all([o.e(736),o.e(64),o.e(122)]).then(o.bind(o,24496))},{path:"collections",component:()=>Promise.all([o.e(736),o.e(64),o.e(69)]).then(o.bind(o,33057))},{path:"collection/:name/document",component:()=>Promise.all([o.e(736),o.e(64),o.e(631)]).then(o.bind(o,70648))},{path:"collection/:name/search",component:()=>Promise.all([o.e(736),o.e(64),o.e(543)]).then(o.bind(o,40758))},{path:"collection/:name/schema",component:()=>Promise.all([o.e(736),o.e(64),o.e(165)]).then(o.bind(o,58067))},{path:"collection/:name/synonyms",component:()=>Promise.all([o.e(736),o.e(925)]).then(o.bind(o,51925))},{path:"collection/:name/curations",component:()=>Promise.all([o.e(736),o.e(64),o.e(370)]).then(o.bind(o,16074))}]},{path:"/login",name:"Login",component:()=>Promise.all([o.e(736),o.e(64),o.e(931)]).then(o.bind(o,25931))},{path:"/:catchAll(.*)*",component:()=>Promise.all([o.e(736),o.e(983)]).then(o.bind(o,48983))}],y=h;var g=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const f=(0,m.BC)((function({store:e}){const t=v.r5,o=(0,v.p7)({scrollBehavior:()=>({left:0,top:0}),routes:y,history:t("/typesense-dashboard/")});return e.dispatch("node/connectionCheck"),o.beforeEach(((t,o,n)=>g(this,void 0,void 0,(function*(){"Login"===t.name||e.state.node.isConnected?t.params.name?(e.state.node.currentCollection&&e.state.node.currentCollection.name===t.params.name||(yield e.dispatch("node/loadCurrentCollectionByName",t.params.name)),n()):n():(e.commit("node/setPreviousRoute",t),n({name:"Login"}))})))),o}));async function C(e,t){const n=e(u);n.use(i.Z,t);const s="function"===typeof p.Z?await(0,p.Z)({}):p.Z,{storeKey:a}=await Promise.resolve().then(o.bind(o,62465)),l=(0,r.Xl)("function"===typeof f?await f({store:s}):f);return s.$router=l,{app:n,store:s,storeKey:a,router:l}}var b=o(63703),P=o(14462),w=o(26950),A=o(6827);const S={config:{dark:"auto"},plugins:{LocalStorage:b.Z,Dialog:P.Z,Loading:w.Z,Notify:A.Z}},D="/typesense-dashboard/",O=/\/\//,E=e=>(D+e).replace(O,"/");async function k({app:e,router:t,store:o,storeKey:n},i){let r=!1;const s=e=>{try{return E(t.resolve(e).href)}catch(o){}return Object(e)===e?null:e},a=e=>{if(r=!0,"string"===typeof e&&/^https?:\/\//.test(e))return void(window.location.href=e);const t=s(e);null!==t&&(window.location.href=t,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let d=0;!1===r&&d{const[t,n]=void 0!==Promise.allSettled?["allSettled",e=>e.map((e=>{if("rejected"!==e.status)return e.value.default;console.error("[Quasar] boot error:",e.reason)}))]:["all",e=>e.map((e=>e.default))];return Promise[t]([Promise.resolve().then(o.bind(o,34136)),Promise.resolve().then(o.bind(o,14703)),Promise.resolve().then(o.bind(o,65692)),Promise.resolve().then(o.bind(o,85409))]).then((t=>{const o=n(t).filter((e=>"function"===typeof e));k(e,o)}))}))},34136:(e,t,o)=>{"use strict";o.r(t),o.d(t,{api:()=>r,default:()=>s});var n=o(23340),i=o(76081);const r=i.Z.create({baseURL:"https://api.example.com"}),s=(0,n.xr)((({app:e})=>{e.config.globalProperties.$axios=i.Z,e.config.globalProperties.$api=r}))},85409:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(23340),i=o(76081),r=o(47506);const s=(0,n.xr)((({store:e})=>{r.ZP.is.electron||i.Z.get("config.json").then((t=>{e.dispatch("node/login",t.data)}))}))},65692:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>l});var n=o(23340),i=o(63703),r=o(9114),s=o(59835);const a="typesense-dark-mode",l=(0,n.xr)((()=>{const e=i.Z.getItem(a);null!==e&&r.Z.set(e),(0,s.YP)((()=>r.Z.isActive),(e=>{i.Z.set(a,e)}))}))},14703:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>r});var n=o(23340),i=o(67276);const r=(0,n.xr)((({app:e})=>{e.use(i.ZP)}))},62465:(e,t,o)=>{"use strict";o.d(t,{Z:()=>E,storeKey:()=>O});var n=o(23340),i=o(33100),r=o(63703);const s="typesense-logindata",a="typesense-loginhistory";function l(){return{loginData:r.Z.getItem(s),loginHistory:r.Z.getItem(a)||[],forceHomeRedirect:!1,isConnected:!1,previousRoute:null,error:null,currentCollection:null,documentsToEdit:[],data:{debug:{},metrics:{},stats:{},collections:[],aliases:[],apiKeys:[],analyticsRules:[],searchPresets:[],overrides:[],synonyms:[]}}}const c=l;var d=o(42049),u=o.n(d),p=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const m={connectionCheck(e){e.state.loginData?e.getters.api.get("/metrics.json").then((t=>p(this,void 0,void 0,(function*(){e.commit("setData",{metrics:t.data}),yield Promise.all([e.dispatch("getCollections"),e.dispatch("getAliases"),e.dispatch("getApiKeys"),e.dispatch("getDebug")]),e.commit("setIsConnected",!0),e.commit("saveHistory"),e.commit("setError",null)})))).catch((t=>{e.commit("setIsConnected",!1),e.commit("setError",t.message)})):e.commit("setIsConnected",!1)},refreshServerStatus(e){e.getters.api.get("/metrics.json").then((t=>{e.commit("setData",{metrics:t.data})})).catch((()=>{e.dispatch("connectionCheck")})),e.getters.api.get("/stats.json").then((t=>{e.commit("setData",{stats:t.data})})).catch((()=>{e.dispatch("connectionCheck")}))},getDebug(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getDebug().then((t=>{e.commit("setData",{debug:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getCollections(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getCollections().then((t=>{e.commit("setData",{collections:t})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAliases(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getAliases().then((t=>{e.commit("setData",{aliases:t.aliases})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getApiKeys(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getApiKeys().then((t=>{e.commit("setData",{apiKeys:t.keys})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},getAnalyticsRules(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getAnalyticsRules().then((t=>{e.commit("setData",{analyticsRules:t.rules})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteAnalyticsRule(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteAnalyticsRule(t),e.dispatch("getAnalyticsRules")}))},createAnalyticsRule(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAnalyticsRule(t.name,t),e.dispatch("getAnalyticsRules")}catch(o){e.commit("setError",o.message)}}))},getSearchPresets(e){return p(this,void 0,void 0,(function*(){yield e.getters.api.getSearchPresets().then((t=>{e.commit("setData",{searchPresets:t.presets})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))}))},deleteSearchPreset(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteSearchPreset(t),e.dispatch("getSearchPresets")}))},upsertSearchPreset(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSearchPreset(t.name,t),e.dispatch("getSearchPresets")}catch(o){e.commit("setError",o.message)}}))},getSynonyms(e,t){e.getters.api.getSynonyms(t).then((t=>{e.commit("setData",{synonyms:t.synonyms})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},getOverrides(e,t){e.getters.api.getOverrides(t).then((t=>{e.commit("setData",{overrides:t.overrides})})).catch((t=>{console.log(t),e.dispatch("connectionCheck")}))},login(e,t){const{apiKey:o,node:n,forceHomeRedirect:i=!1}=t;e.commit("setForceRedirect",i),e.commit("setNodeData",{apiKey:o,node:n}),e.dispatch("connectionCheck")},logout(e){r.Z.remove(s),e.commit("setIsConnected",!1)},loadCurrentCollection(e,t){var o;if(e.commit("setCurrentCollection",t),e.dispatch("getSynonyms",t.name),e.dispatch("getOverrides",t.name),null===(o=this.$router.currentRoute.value.params)||void 0===o?void 0:o.name){const e=Object.assign(Object.assign({},this.$router.currentRoute.value.params),{name:t.name});this.$router.push({name:this.$router.currentRoute.value.name,params:e})}},loadCurrentCollectionByName(e,t){return e.dispatch("loadCurrentCollection",e.state.data.collections.find((e=>e.name===t)))},dropCollection(e,t){return p(this,void 0,void 0,(function*(){e.commit("setCurrentCollection",null),yield e.getters.api.dropCollection(t),e.dispatch("getCollections")}))},createCollection(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createCollection(JSON.parse(JSON.stringify(t)));e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${o.name}/schema`)}catch(o){e.commit("setError",o.message)}}))},updateCollection(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.updateCollection(t.collectionName,t.schema);const o=yield e.getters.api.getCollection(t.collectionName);e.commit("setData",{collections:e.state.data.collections.map((e=>e.name===t.collectionName?o:e))}),e.commit("setCurrentCollection",o)}catch(o){e.commit("setError",o.message)}}))},cloneCollectionSchema(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.post(`/collections?src_name=${t.collectionName}`,{name:t.destinationName});const o=yield e.getters.api.getCollection(t.destinationName);e.commit("setData",{collections:e.state.data.collections.concat([o])}),e.commit("setCurrentCollection",o),this.$router.push(`/collection/${t.destinationName}/schema`)}catch(o){e.commit("setError",o.message)}}))},deleteAlias(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteAlias(t),e.dispatch("getAliases")}))},createAlias(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertAlias(t),e.dispatch("getAliases")}catch(o){e.commit("setError",o.message)}}))},createApiKey(e,t){return p(this,void 0,void 0,(function*(){try{e.commit("setError",null);const o=yield e.getters.api.createApiKey(t);return e.dispatch("getApiKeys"),o}catch(o){throw e.commit("setError",o.message),o}}))},deleteApiKey(e,t){return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteApiKey(t),e.dispatch("getApiKeys")}))},createSynonym(e,t){var o,n;return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.synonym),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteSynonym(e,t){var o,n;return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteSynonym(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getSynonyms",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},createOverride(e,t){var o,n;return p(this,void 0,void 0,(function*(){try{e.commit("setError",null),yield e.getters.api.upsertOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.id,t.override),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}catch(i){e.commit("setError",i.message)}}))},deleteOverride(e,t){var o,n;return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteOverride(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t),e.dispatch("getOverrides",null===(n=e.state.currentCollection)||void 0===n?void 0:n.name)}))},deleteDocumentById(e,t){var o;return p(this,void 0,void 0,(function*(){yield e.getters.api.deleteDocumentById(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t)}))},search(e,t){var o;return e.getters.api.search((null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||"",JSON.parse(JSON.stringify(t)))},importDocuments(e,t){var o;return e.getters.api.importDocuments(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name,t.documents,t.action)},exportDocuments(e,t){return p(this,void 0,void 0,(function*(){return e.getters.api.exportDocuments(t).then((e=>{const o=new Blob([e],{type:"text/plain;charset=utf-8"});u().saveAs(o,`${t}.ljson`)}))}))},editDocuments(e,t){var o;e.commit("setDocumentsToEdit",t),this.$router.push(`/collection/${(null===(o=e.state.currentCollection)||void 0===o?void 0:o.name)||""}/document`)},exportToJson(e,t){const o=new Blob([JSON.stringify(t,null,2)],{type:"application/json;charset=utf-8"});u().saveAs(o,"export.json")}},v=m;var h=o(76081),y=o(86953),g=function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class f{init({node:e,apiKey:t}){this.axiosClient=h.Z.create({baseURL:`${e.protocol}://${e.host}:${e.port}${e.path||""}`,headers:{"x-typesense-api-key":t}}),this.typesenseClient=new y.Client({nodes:[Object.assign({},e)],apiKey:t})}getDebug(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.debug.retrieve()}getCollections(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.collections().retrieve()}createCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections().create(e)}getCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).retrieve()}dropCollection(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).delete()}updateCollection(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).update(t)}getAliases(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.aliases().retrieve()}upsertAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases().upsert(e.name,{collection_name:e.collection_name})}deleteAlias(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.aliases(e).delete()}getApiKeys(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.keys().retrieve()}createApiKey(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.keys().create(e)}deleteApiKey(e){return g(this,void 0,void 0,(function*(){this.typesenseClient&&(yield this.typesenseClient.keys(parseInt(e,10)).delete())}))}getAnalyticsRules(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.analytics.rules().retrieve()}upsertAnalyticsRule(e,t){var o;return(null===(o=this.typesenseClient)||void 0===o?void 0:o.analytics.rules()).upsert(e,t)}deleteAnalyticsRule(e){var t;return(null===(t=this.typesenseClient)||void 0===t?void 0:t.analytics.rules(e)).delete()}getSearchPresets(){var e;return null===(e=this.typesenseClient)||void 0===e?void 0:e.presets().retrieve()}upsertSearchPreset(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.presets().upsert(e,t)}deleteSearchPreset(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.presets(e).delete()}getSynonyms(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).synonyms().retrieve()}upsertSynonym(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).synonyms().upsert(t,o)}deleteSynonym(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).synonyms(t).delete()}getOverrides(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).overrides().retrieve()}upsertOverride(e,t,o){var n;return null===(n=this.typesenseClient)||void 0===n?void 0:n.collections(e).overrides().upsert(t,o)}deleteOverride(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).overrides(t).delete()}deleteDocumentById(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents(t).delete()}importDocuments(e,t,o){var n;if(this.typesenseClient)return(null===(n=this.typesenseClient.collections(e))||void 0===n?void 0:n.documents()).import(t,{action:o}).catch((e=>e.importResults))}exportDocuments(e){var t;return null===(t=this.typesenseClient)||void 0===t?void 0:t.collections(e).documents().export()}search(e,t){var o;return null===(o=this.typesenseClient)||void 0===o?void 0:o.collections(e).documents().search(t)}get(e){var t;return null===(t=this.axiosClient)||void 0===t?void 0:t.get(e).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}post(e,t){var o;return null===(o=this.axiosClient)||void 0===o?void 0:o.post(e,t).then((e=>({data:e.data}))).catch((e=>{var t,o;throw Error((null===(o=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===o?void 0:o.message)||e.message)}))}}const C={api(e){if(e.loginData){const t=window.electron;let o=new f;return t&&(o=t,t.rejectTLS(Number(e.loginData.node.tls))),o.init({node:Object.assign({},e.loginData.node),apiKey:e.loginData.apiKey}),o}}},b=C;var P=o(6827);const w={setNodeData(e,t){e.loginData=t,r.Z.set(s,t)},setIsConnected(e,t){var o,n,i,r,s;const a=null===(o=this.$router)||void 0===o?void 0:o.currentRoute.value;t&&!e.isConnected&&(e.previousRoute?(null===(n=this.$router)||void 0===n||n.push(e.previousRoute),e.previousRoute=null):null===(i=this.$router)||void 0===i||i.push("/")),t||"Login"===(null===a||void 0===a?void 0:a.name)||null===(r=this.$router)||void 0===r||r.push("/login"),t&&e.forceHomeRedirect&&(null===(s=this.$router)||void 0===s||s.push("/"),P.Z.create({position:"top",progress:!0,group:!1,timeout:1e3,color:"positive",message:"Server changed"}),e.forceHomeRedirect=!1,e.currentCollection=null),e.isConnected=t},saveHistory(e){const t=JSON.stringify(e.loginData),o=e.loginHistory.indexOf(t);0!==o&&(o>0&&e.loginHistory.splice(o,1),e.loginHistory.unshift(t),r.Z.set(a,e.loginHistory))},clearHistory(e){e.loginHistory=[],r.Z.set(a,[])},setForceRedirect(e,t){e.forceHomeRedirect=t},setPreviousRoute(e,t){e.previousRoute=t},setData(e,t){for(const o in t)e.data[o]=t[o]},setError(e,t){e.error=t},setCurrentCollection(e,t){var o;e.currentCollection=t,t||null===(o=this.$router)||void 0===o||o.push("/collections")},setDocumentsToEdit(e,t){e.documentsToEdit=t}},A=w,S={namespaced:!0,actions:v,getters:b,mutations:A,state:c},D=S,O=Symbol("vuex-key"),E=(0,n.h)((function(){const e=(0,i.MT)({modules:{node:D},strict:!1});return e}))},99964:()=>{}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.m=e,(()=>{o.amdO={}})(),(()=>{var e=[];o.O=(t,n,i,r)=>{if(!n){var s=1/0;for(d=0;d=r)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,i,r]}})(),(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[]))})(),(()=>{o.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{0:"319a2708",64:"b8854d7a",69:"a9ab1067",122:"ce98347b",165:"f124c158",370:"164ad0ff",399:"7fb092f8",417:"05956a2a",543:"0f0e31a3",631:"5309aa3b",925:"1170cc3b",928:"2d865d85",931:"78714a7d",942:"b627c76e",983:"7d8c3e9a"}[e]+".js"})(),(()=>{o.miniCssF=e=>"css/"+e+"."+{0:"15feb0bd",69:"954a317a",122:"954a317a",165:"954a317a",370:"954a317a",543:"1a5aed88",631:"954a317a",928:"954a317a"}[e]+".css"})(),(()=>{o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="typesense-dashboard:";o.l=(n,i,r,s)=>{if(e[n])e[n].push(i);else{var a,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(m);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(o))),t)return t(o)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),(()=>{o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{o.p="/typesense-dashboard/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,o,n,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var s=o=>{if(r.onerror=r.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),i(l)}};return r.onerror=r.onload=s,r.href=t,o?o.parentNode.insertBefore(r,o.nextSibling):document.head.appendChild(r),r},t=(e,t)=>{for(var o=document.getElementsByTagName("link"),n=0;nnew Promise(((i,r)=>{var s=o.miniCssF(n),a=o.p+s;if(t(s,a))return i();e(n,a,null,i,r)})),i={143:0};o.f.miniCss=(e,t)=>{var o={0:1,69:1,122:1,165:1,370:1,543:1,631:1,928:1};i[e]?t.push(i[e]):0!==i[e]&&o[e]&&t.push(i[e]=n(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))}}})(),(()=>{var e={143:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((o,n)=>i=e[t]=[o,n]));n.push(i[2]=r);var s=o.p+o.u(t),a=new Error,l=n=>{if(o.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,i[1](a)}};o.l(s,l,"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(l)var d=l(o)}for(t&&t(n);co(34658)));n=o.O(n)})(); \ No newline at end of file diff --git a/js/chunk-common.f3cfb900.js b/js/chunk-common.b8854d7a.js similarity index 83% rename from js/chunk-common.f3cfb900.js rename to js/chunk-common.b8854d7a.js index 7220183..6a004e0 100644 --- a/js/chunk-common.f3cfb900.js +++ b/js/chunk-common.b8854d7a.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[64],{66531:(e,l,o)=>{o.d(l,{Z:()=>h});var t=o(59835);const a={ref:"editorWrapper",class:"col relative-position overflow-hidden editorWrapper"},n={ref:"editorElement",class:"absolute-top-left"};function d(e,l,o,d,i,s){const r=(0,t.up)("q-resize-observer");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.Wm)(r,{onResize:e.onResize},null,8,["onResize"]),(0,t._)("div",n,null,512)],512)}var i=o(82584),s=o(60499);const r=(0,t.aZ)({name:"MonacoEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:l}){const o=(0,s.iH)(null),a=(0,s.iH)(null);let n;return(0,t.bv)((()=>{n=i.j6.create(o.value,Object.assign({value:e.modelValue,language:"json",theme:"vs-dark",minimap:{enabled:!1}},e.options)),n.onDidChangeModelContent((()=>{l("update:modelValue",null===n||void 0===n?void 0:n.getValue())}))})),(0,t.Ah)((()=>{null===n||void 0===n||n.dispose()})),(0,t.YP)((()=>e.modelValue),(()=>{var l;e.modelValue!==(null===n||void 0===n?void 0:n.getValue())&&(null===(l=null===n||void 0===n?void 0:n.getModel())||void 0===l||l.setValue(e.modelValue),null===n||void 0===n||n.setScrollPosition({scrollTop:0}))})),{editorElement:o,editorWrapper:a,onResize(){null===n||void 0===n||n.layout({height:0,width:0}),window.setTimeout((()=>{null===n||void 0===n||n.layout({height:a.value.offsetHeight,width:a.value.offsetWidth})}))}}}});var u=o(11639),m=o(60883),c=o(69984),p=o.n(c);const f=(0,u.Z)(r,[["render",d],["__scopeId","data-v-46f34a38"]]),h=f;p()(r,"components",{QResizeObserver:m.Z})},46115:(e,l,o)=>{o.d(l,{Z:()=>w});var t=o(59835),a=o(86970);function n(e,l,o,n,d,i){const s=(0,t.up)("q-item-section"),r=(0,t.up)("q-icon"),u=(0,t.up)("q-item"),m=(0,t.up)("q-separator"),c=(0,t.up)("q-item-label"),p=(0,t.up)("q-list"),f=(0,t.Q2)("close-popup");return(0,t.wg)(),(0,t.j4)(p,{style:{"min-width":"100px"}},{default:(0,t.w5)((()=>[e.$props.showLogout?(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{key:0,clickable:"",onClick:e.logout},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Logout")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_logout"})])),_:1})])),_:1},8,["onClick"])),[[f]]):(0,t.kq)("",!0),e.$props.showLogout?((0,t.wg)(),(0,t.j4)(m,{key:1})):(0,t.kq)("",!0),(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",onClick:l[0]||(l[0]=l=>e.$store.commit("node/clearHistory"))},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Clear history")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_delete"})])),_:1})])),_:1})),[[f]]),(0,t.Wm)(m),0===e.loginHistory.length?((0,t.wg)(),(0,t.j4)(c,{key:2,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("No History")])),_:1})):(0,t.kq)("",!0),e.loginHistory.length>0?((0,t.wg)(),(0,t.j4)(c,{key:3,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("Server History")])),_:1})):(0,t.kq)("",!0),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.loginHistory,((l,o)=>(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",key:o,onClick:o=>e.loginWithHistory(l)},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(l.node.protocol)+"://"+(0,a.zw)(l.node.host)+":"+(0,a.zw)(l.node.port),1)])),_:2},1024)])),_:2},1032,["onClick"])),[[f]]))),128))])),_:1})}const d=(0,t.aZ)({name:"ServerHistory",props:{showLogout:{default:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{logout(){this.$store.dispatch("node/logout")},loginWithHistory(e){const l=this.$props.showLogout;this.$store.dispatch("node/login",Object.assign(Object.assign({},e),{forceHomeRedirect:l}))}}});var i=o(11639),s=o(13246),r=o(490),u=o(76749),m=o(22857),c=o(50926),p=o(33115),f=o(62146),h=o(69984),g=o.n(h);const b=(0,i.Z)(d,[["render",n]]),w=b;g()(d,"components",{QList:s.Z,QItem:r.Z,QItemSection:u.Z,QIcon:m.Z,QSeparator:c.Z,QItemLabel:p.Z}),g()(d,"directives",{ClosePopup:f.Z})},31996:(e,l,o)=>{o.d(l,{Z:()=>Z});var t=o(59835),a=o(86970);const n={class:"row q-gutter-md"},d=(0,t._)("div",{class:"text-subtitle1 q-pt-md"},"Fields",-1);function i(e,l,o,i,s,r){const u=(0,t.up)("q-tab"),m=(0,t.up)("q-tabs"),c=(0,t.up)("q-separator"),p=(0,t.up)("q-input"),f=(0,t.up)("q-select"),h=(0,t.up)("q-card-section"),g=(0,t.up)("q-checkbox"),b=(0,t.up)("q-btn"),w=(0,t.up)("q-card-actions"),y=(0,t.up)("q-card"),V=(0,t.up)("q-tab-panel"),_=(0,t.up)("monaco-editor"),v=(0,t.up)("q-banner"),k=(0,t.up)("q-tab-panels");return(0,t.wg)(),(0,t.j4)(y,null,{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:e.tab,"onUpdate:modelValue":l[0]||(l[0]=l=>e.tab=l),dense:"",class:"text-grey","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{name:"form",label:"Form Mode"}),(0,t.Wm)(u,{name:"json",label:"JSON Mode"})])),_:1},8,["modelValue"]),(0,t.Wm)(c),(0,t.Wm)(k,{modelValue:e.tab,"onUpdate:modelValue":l[4]||(l[4]=l=>e.tab=l),animated:"",style:(0,a.j5)(e.createMode?"height: 60vh":""),class:"bg-surface"},{default:(0,t.w5)((()=>[(0,t.Wm)(V,{name:"form"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,null,{default:(0,t.w5)((()=>[(0,t._)("div",n,[(0,t.Wm)(p,{class:"col",filled:"",dense:"",modelValue:e.schema.name,"onUpdate:modelValue":l[1]||(l[1]=l=>e.schema.name=l),label:"Collection Name",placeholder:"books",disable:!e.createMode,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","disable","rules"]),(0,t.Wm)(f,{filled:"",class:"col",dense:"",modelValue:e.schema.default_sorting_field,"onUpdate:modelValue":l[2]||(l[2]=l=>e.schema.default_sorting_field=l),options:e.availableSortFields,label:"Default sort field optional, but must be int32 or float"},null,8,["modelValue","options"])]),d,((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.schema.fields,((l,o)=>((0,t.wg)(),(0,t.j4)(y,{flat:"",bordered:"",key:o,class:"q-mb-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{class:"row q-col-gutter-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{class:"col-12 col-sm-6",dense:"",outlined:"",modelValue:l.name,"onUpdate:modelValue":e=>l.name=e,label:"Field Name",placeholder:"title",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","rules"]),(0,t.Wm)(f,{class:"col-12 col-sm-4",dense:"",outlined:"",modelValue:l.type,"onUpdate:modelValue":e=>l.type=e,label:"type",options:e.types,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","options","rules"]),"float[]"===l.type?((0,t.wg)(),(0,t.j4)(p,{key:0,class:"col-12 col-sm-2",dense:"",outlined:"",type:"number",modelValue:l.num_dim,"onUpdate:modelValue":e=>l.num_dim=e,modelModifiers:{number:!0},label:"num_dim",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0),l.type.startsWith("string")?((0,t.wg)(),(0,t.j4)(p,{key:1,class:"col-12 col-sm-2",dense:"",outlined:"",modelValue:l.locale,"onUpdate:modelValue":e=>l.locale=e,label:"locale",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0)])),_:2},1024),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between"},{default:(0,t.w5)((()=>[(0,t._)("div",null,[(0,t.Wm)(g,{modelValue:l.optional,"onUpdate:modelValue":e=>l.optional=e,label:"optional"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.facet,"onUpdate:modelValue":e=>l.facet=e,label:"facet"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.index,"onUpdate:modelValue":e=>l.index=e,label:"index"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.sort,"onUpdate:modelValue":e=>l.sort=e,label:"sort"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.infix,"onUpdate:modelValue":e=>l.infix=e,label:"infix"},null,8,["modelValue","onUpdate:modelValue"])]),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",onClick:o=>e.removeField(l)},{default:(0,t.w5)((()=>[(0,t.Uk)("Remove Field")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),(0,t.Wm)(V,{name:"json",class:"q-pa-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_,{modelValue:e.schemaJson,"onUpdate:modelValue":l[3]||(l[3]=l=>e.schemaJson=l),style:{height:"60vh"}},null,8,["modelValue"]),e.jsonError?((0,t.wg)(),(0,t.j4)(v,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,t.w5)((()=>[(0,t.Uk)(" Invalid Format: "+(0,a.zw)(e.jsonError),1)])),_:1})):(0,t.kq)("",!0)])),_:1})])),_:1},8,["modelValue","style"]),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between",class:"bg-primary"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[5]||(l[5]=l=>e.addField())},{default:(0,t.w5)((()=>[(0,t.Uk)("Add field")])),_:1}),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[6]||(l[6]=l=>e.$emit("submit",e.schema))},{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(e.primaryActionLabel),1)])),_:1})])),_:1})])),_:1})}var s=o(66531);const r=(0,t.aZ)({components:{MonacoEditor:s.Z},name:"CollectionUi",emits:["submit"],props:{initialSchema:{type:Object,required:!0,default:()=>({name:"",fields:[{name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0}],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1})},primaryActionLabel:{type:String,required:!0},createMode:{type:Boolean,default:!1}},data(){return{tab:"form",schema:{name:"",fields:[],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1},types:["string","string[]","int32","int32[]","int64","int64[]","float","float[]","bool","bool[]","geopoint","geopoint[]","object","object[]","string*","auto"],jsonError:null}},computed:{availableSortFields(){const e=(this.schema.fields||[]).filter((e=>["int32","float"].includes(e.type)||"string"===e.type&&e.sort));return[""].concat(e.map((e=>e.name)))},schemaJson:{get(){return JSON.stringify(this.schema,null,2)},set(e){try{this.schema=JSON.parse(e),this.jsonError=null}catch(l){this.jsonError=l.message}}}},watch:{initialSchema:{immediate:!0,handler(e){this.schema=JSON.parse(JSON.stringify(e))}}},methods:{addField(){this.schema.fields&&this.schema.fields.push({name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0})},removeField(e){if(this.schema.fields){const l=this.schema.fields.indexOf(e);l>-1&&this.schema.fields.splice(l,1)}}}});var u=o(11639),m=o(44458),c=o(47817),p=o(70900),f=o(50926),h=o(89800),g=o(84106),b=o(63190),w=o(66611),y=o(67887),V=o(11821),_=o(11221),v=o(24455),k=o(47128),W=o(69984),q=o.n(W);const U=(0,u.Z)(r,[["render",i]]),Z=U;q()(r,"components",{QCard:m.Z,QTabs:c.Z,QTab:p.Z,QSeparator:f.Z,QTabPanels:h.Z,QTabPanel:g.Z,QCardSection:b.Z,QInput:w.Z,QSelect:y.Z,QCardActions:V.Z,QCheckbox:_.Z,QBtn:v.Z,QBanner:k.Z})}}]); \ No newline at end of file +"use strict";(globalThis["webpackChunktypesense_dashboard"]=globalThis["webpackChunktypesense_dashboard"]||[]).push([[64],{66531:(e,l,o)=>{o.d(l,{Z:()=>h});var t=o(59835);const a={ref:"editorWrapper",class:"col relative-position overflow-hidden editorWrapper"},n={ref:"editorElement",class:"absolute-top-left"};function d(e,l,o,d,i,s){const r=(0,t.up)("q-resize-observer");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.Wm)(r,{onResize:e.onResize},null,8,["onResize"]),(0,t._)("div",n,null,512)],512)}var i=o(82584),s=o(60499);const r=(0,t.aZ)({name:"MonacoEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:l}){const o=(0,s.iH)(null),a=(0,s.iH)(null);let n;return(0,t.bv)((()=>{n=i.j6.create(o.value,Object.assign({value:e.modelValue,language:"json",theme:"vs-dark",minimap:{enabled:!1}},e.options)),n.onDidChangeModelContent((()=>{l("update:modelValue",null===n||void 0===n?void 0:n.getValue())}))})),(0,t.Ah)((()=>{null===n||void 0===n||n.dispose()})),(0,t.YP)((()=>e.modelValue),(()=>{var l;e.modelValue!==(null===n||void 0===n?void 0:n.getValue())&&(null===(l=null===n||void 0===n?void 0:n.getModel())||void 0===l||l.setValue(e.modelValue),null===n||void 0===n||n.setScrollPosition({scrollTop:0}))})),{editorElement:o,editorWrapper:a,onResize(){null===n||void 0===n||n.layout({height:0,width:0}),window.setTimeout((()=>{null===n||void 0===n||n.layout({height:a.value.offsetHeight,width:a.value.offsetWidth})}))}}}});var u=o(11639),m=o(60883),c=o(69984),p=o.n(c);const f=(0,u.Z)(r,[["render",d],["__scopeId","data-v-46f34a38"]]),h=f;p()(r,"components",{QResizeObserver:m.Z})},46115:(e,l,o)=>{o.d(l,{Z:()=>w});var t=o(59835),a=o(86970);function n(e,l,o,n,d,i){const s=(0,t.up)("q-item-section"),r=(0,t.up)("q-icon"),u=(0,t.up)("q-item"),m=(0,t.up)("q-separator"),c=(0,t.up)("q-item-label"),p=(0,t.up)("q-list"),f=(0,t.Q2)("close-popup");return(0,t.wg)(),(0,t.j4)(p,{style:{"min-width":"100px"}},{default:(0,t.w5)((()=>[e.$props.showLogout?(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{key:0,clickable:"",onClick:e.logout},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Logout")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_logout"})])),_:1})])),_:1},8,["onClick"])),[[f]]):(0,t.kq)("",!0),e.$props.showLogout?((0,t.wg)(),(0,t.j4)(m,{key:1})):(0,t.kq)("",!0),(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",onClick:l[0]||(l[0]=l=>e.$store.commit("node/clearHistory"))},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)("Clear history")])),_:1}),(0,t.Wm)(s,{avatar:""},{default:(0,t.w5)((()=>[(0,t.Wm)(r,{name:"sym_s_delete"})])),_:1})])),_:1})),[[f]]),(0,t.Wm)(m),0===e.loginHistory.length?((0,t.wg)(),(0,t.j4)(c,{key:2,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("No History")])),_:1})):(0,t.kq)("",!0),e.loginHistory.length>0?((0,t.wg)(),(0,t.j4)(c,{key:3,header:""},{default:(0,t.w5)((()=>[(0,t.Uk)("Server History")])),_:1})):(0,t.kq)("",!0),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.loginHistory,((l,o)=>(0,t.wy)(((0,t.wg)(),(0,t.j4)(u,{clickable:"",key:o,onClick:o=>e.loginWithHistory(l)},{default:(0,t.w5)((()=>[(0,t.Wm)(s,null,{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(l.node.protocol)+"://"+(0,a.zw)(l.node.host)+":"+(0,a.zw)(l.node.port),1)])),_:2},1024)])),_:2},1032,["onClick"])),[[f]]))),128))])),_:1})}const d=(0,t.aZ)({name:"ServerHistory",props:{showLogout:{default:!1}},computed:{loginHistory(){return this.$store.state.node.loginHistory.map((e=>JSON.parse(e)))},error(){return this.$store.state.node.error}},methods:{logout(){this.$store.dispatch("node/logout")},loginWithHistory(e){const l=this.$props.showLogout;this.$store.dispatch("node/login",Object.assign(Object.assign({},e),{forceHomeRedirect:l}))}}});var i=o(11639),s=o(13246),r=o(490),u=o(76749),m=o(22857),c=o(50926),p=o(33115),f=o(62146),h=o(69984),g=o.n(h);const b=(0,i.Z)(d,[["render",n]]),w=b;g()(d,"components",{QList:s.Z,QItem:r.Z,QItemSection:u.Z,QIcon:m.Z,QSeparator:c.Z,QItemLabel:p.Z}),g()(d,"directives",{ClosePopup:f.Z})},75794:(e,l,o)=>{o.d(l,{Z:()=>Z});var t=o(59835),a=o(86970);const n={class:"row q-gutter-md"},d=(0,t._)("div",{class:"text-subtitle1 q-pt-md"},"Fields",-1);function i(e,l,o,i,s,r){const u=(0,t.up)("q-tab"),m=(0,t.up)("q-tabs"),c=(0,t.up)("q-separator"),p=(0,t.up)("q-input"),f=(0,t.up)("q-select"),h=(0,t.up)("q-card-section"),g=(0,t.up)("q-checkbox"),b=(0,t.up)("q-btn"),w=(0,t.up)("q-card-actions"),y=(0,t.up)("q-card"),V=(0,t.up)("q-tab-panel"),_=(0,t.up)("monaco-editor"),v=(0,t.up)("q-banner"),k=(0,t.up)("q-tab-panels");return(0,t.wg)(),(0,t.j4)(y,null,{default:(0,t.w5)((()=>[(0,t.Wm)(m,{modelValue:e.tab,"onUpdate:modelValue":l[0]||(l[0]=l=>e.tab=l),dense:"",class:"text-grey","active-color":"primary","indicator-color":"primary",align:"justify","narrow-indicator":""},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{name:"form",label:"Form Mode"}),(0,t.Wm)(u,{name:"json",label:"JSON Mode"})])),_:1},8,["modelValue"]),(0,t.Wm)(c),(0,t.Wm)(k,{modelValue:e.tab,"onUpdate:modelValue":l[4]||(l[4]=l=>e.tab=l),animated:"",style:(0,a.j5)(e.createMode?"height: 60vh":""),class:"bg-surface"},{default:(0,t.w5)((()=>[(0,t.Wm)(V,{name:"form"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,null,{default:(0,t.w5)((()=>[(0,t._)("div",n,[(0,t.Wm)(p,{class:"col",filled:"",dense:"",modelValue:e.schema.name,"onUpdate:modelValue":l[1]||(l[1]=l=>e.schema.name=l),label:"Collection Name",placeholder:"books",disable:!e.createMode,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","disable","rules"]),(0,t.Wm)(f,{filled:"",class:"col",dense:"",modelValue:e.schema.default_sorting_field,"onUpdate:modelValue":l[2]||(l[2]=l=>e.schema.default_sorting_field=l),options:e.availableSortFields,label:"Default sort field optional, but must be int32 or float"},null,8,["modelValue","options"])]),d,((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.schema.fields,((l,o)=>((0,t.wg)(),(0,t.j4)(y,{flat:"",bordered:"",key:o,class:"q-mb-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{class:"row q-col-gutter-md"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{class:"col-12 col-sm-6",dense:"",outlined:"",modelValue:l.name,"onUpdate:modelValue":e=>l.name=e,label:"Field Name",placeholder:"title",rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","rules"]),(0,t.Wm)(f,{class:"col-12 col-sm-4",dense:"",outlined:"",modelValue:l.type,"onUpdate:modelValue":e=>l.type=e,label:"type",options:e.types,rules:[e=>!!e||"Field is required"]},null,8,["modelValue","onUpdate:modelValue","options","rules"]),"float[]"===l.type?((0,t.wg)(),(0,t.j4)(p,{key:0,class:"col-12 col-sm-2",dense:"",outlined:"",type:"number",modelValue:l.num_dim,"onUpdate:modelValue":e=>l.num_dim=e,modelModifiers:{number:!0},label:"num_dim",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0),l.type.startsWith("string")?((0,t.wg)(),(0,t.j4)(p,{key:1,class:"col-12 col-sm-2",dense:"",outlined:"",modelValue:l.locale,"onUpdate:modelValue":e=>l.locale=e,label:"locale",placeholder:""},null,8,["modelValue","onUpdate:modelValue"])):(0,t.kq)("",!0)])),_:2},1024),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between"},{default:(0,t.w5)((()=>[(0,t._)("div",null,[(0,t.Wm)(g,{modelValue:l.optional,"onUpdate:modelValue":e=>l.optional=e,label:"optional"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.facet,"onUpdate:modelValue":e=>l.facet=e,label:"facet"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.index,"onUpdate:modelValue":e=>l.index=e,label:"index"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.sort,"onUpdate:modelValue":e=>l.sort=e,label:"sort"},null,8,["modelValue","onUpdate:modelValue"]),(0,t.Wm)(g,{modelValue:l.infix,"onUpdate:modelValue":e=>l.infix=e,label:"infix"},null,8,["modelValue","onUpdate:modelValue"])]),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",onClick:o=>e.removeField(l)},{default:(0,t.w5)((()=>[(0,t.Uk)("Remove Field")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),(0,t.Wm)(V,{name:"json",class:"q-pa-none"},{default:(0,t.w5)((()=>[(0,t.Wm)(_,{modelValue:e.schemaJson,"onUpdate:modelValue":l[3]||(l[3]=l=>e.schemaJson=l),style:{height:"60vh"}},null,8,["modelValue"]),e.jsonError?((0,t.wg)(),(0,t.j4)(v,{key:0,"inline-actions":"",class:"text-white bg-red"},{default:(0,t.w5)((()=>[(0,t.Uk)(" Invalid Format: "+(0,a.zw)(e.jsonError),1)])),_:1})):(0,t.kq)("",!0)])),_:1})])),_:1},8,["modelValue","style"]),(0,t.Wm)(c),(0,t.Wm)(w,{align:"between",class:"bg-primary"},{default:(0,t.w5)((()=>[(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[5]||(l[5]=l=>e.addField())},{default:(0,t.w5)((()=>[(0,t.Uk)("Add field")])),_:1}),(0,t.Wm)(b,{size:"md",padding:"sm lg",unelevated:"",color:"primary",onClick:l[6]||(l[6]=l=>e.$emit("submit",e.schema))},{default:(0,t.w5)((()=>[(0,t.Uk)((0,a.zw)(e.primaryActionLabel),1)])),_:1})])),_:1})])),_:1})}var s=o(66531);const r=(0,t.aZ)({components:{MonacoEditor:s.Z},name:"CollectionUi",emits:["submit"],props:{initialSchema:{type:Object,default:()=>({name:"",fields:[{name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0}],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1})},primaryActionLabel:{type:String,required:!0},createMode:{type:Boolean,default:!1}},data(){return{tab:"form",schema:{name:"",fields:[],default_sorting_field:"",token_separators:[],symbols_to_index:[],enable_nested_fields:!1},types:["string","string[]","int32","int32[]","int64","int64[]","float","float[]","bool","bool[]","geopoint","geopoint[]","object","object[]","string*","auto"],jsonError:null}},computed:{availableSortFields(){const e=(this.schema.fields||[]).filter((e=>["int32","float"].includes(e.type)||"string"===e.type&&e.sort));return[""].concat(e.map((e=>e.name)))},schemaJson:{get(){return JSON.stringify(this.schema,null,2)},set(e){try{this.schema=JSON.parse(e),this.jsonError=null}catch(l){this.jsonError=l.message}}}},watch:{initialSchema:{immediate:!0,handler(e){this.schema=JSON.parse(JSON.stringify(e))}}},methods:{addField(){this.schema.fields&&this.schema.fields.push({name:"",type:"string",facet:!1,optional:!1,index:!0,sort:!1,infix:!1,locale:"",num_dim:void 0})},removeField(e){if(this.schema.fields){const l=this.schema.fields.indexOf(e);l>-1&&this.schema.fields.splice(l,1)}}}});var u=o(11639),m=o(44458),c=o(47817),p=o(70900),f=o(50926),h=o(89800),g=o(84106),b=o(63190),w=o(66611),y=o(67887),V=o(11821),_=o(11221),v=o(24455),k=o(47128),W=o(69984),q=o.n(W);const U=(0,u.Z)(r,[["render",i]]),Z=U;q()(r,"components",{QCard:m.Z,QTabs:c.Z,QTab:p.Z,QSeparator:f.Z,QTabPanels:h.Z,QTabPanel:g.Z,QCardSection:b.Z,QInput:w.Z,QSelect:y.Z,QCardActions:V.Z,QCheckbox:_.Z,QBtn:v.Z,QBanner:k.Z})}}]); \ No newline at end of file diff --git a/js/vendor.51d4a617.js b/js/vendor.4274b22f.js similarity index 99% rename from js/vendor.51d4a617.js rename to js/vendor.4274b22f.js index aba40e6..a5811a9 100644 --- a/js/vendor.51d4a617.js +++ b/js/vendor.4274b22f.js @@ -1183,7 +1183,7 @@ var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"], * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/c(u,n);var h=(e=>(e[e["None"]=0]="None",e[e["CommonJS"]=1]="CommonJS",e[e["AMD"]=2]="AMD",e[e["UMD"]=3]="UMD",e[e["System"]=4]="System",e[e["ES2015"]=5]="ES2015",e[e["ESNext"]=99]="ESNext",e))(h||{}),g=(e=>(e[e["None"]=0]="None",e[e["Preserve"]=1]="Preserve",e[e["React"]=2]="React",e[e["ReactNative"]=3]="ReactNative",e[e["ReactJSX"]=4]="ReactJSX",e[e["ReactJSXDev"]=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e["CarriageReturnLineFeed"]=0]="CarriageReturnLineFeed",e[e["LineFeed"]=1]="LineFeed",e))(p||{}),f=(e=>(e[e["ES3"]=0]="ES3",e[e["ES5"]=1]="ES5",e[e["ES2015"]=2]="ES2015",e[e["ES2016"]=3]="ES2016",e[e["ES2017"]=4]="ES2017",e[e["ES2018"]=5]="ES2018",e[e["ES2019"]=6]="ES2019",e[e["ES2020"]=7]="ES2020",e[e["ESNext"]=99]="ESNext",e[e["JSON"]=100]="JSON",e[e["Latest"]=99]="Latest",e))(f||{}),m=(e=>(e[e["Classic"]=1]="Classic",e[e["NodeJs"]=2]="NodeJs",e))(m||{}),_=class{_onDidChange=new u.Emitter;_onDidExtraLibsChange=new u.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;_modeConfiguration;constructor(e,t,i,n,o){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v=d,b={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},y=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),w=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),C=()=>x().then((e=>e.getTypeScriptWorker())),S=()=>x().then((e=>e.getJavaScriptWorker()));function x(){return i.e(736).then(i.bind(i,28643))}u.languages.typescript={ModuleKind:h,JsxEmit:g,NewLineKind:p,ScriptTarget:f,ModuleResolutionKind:m,typescriptVersion:v,typescriptDefaults:y,javascriptDefaults:w,getTypeScriptWorker:C,getJavaScriptWorker:S},u.languages.onLanguage("typescript",(()=>x().then((e=>e.setupTypeScript(y))))),u.languages.onLanguage("javascript",(()=>x().then((e=>e.setupJavaScript(w)))))},28643:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Adapter:()=>v,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>L,DiagnosticsAdapter:()=>y,DocumentHighlightAdapter:()=>k,FormatAdapter:()=>O,FormatHelper:()=>A,FormatOnTypeAdapter:()=>P,InlayHintsAdapter:()=>B,Kind:()=>D,LibFiles:()=>b,OutlineAdapter:()=>N,QuickInfoAdapter:()=>x,ReferenceAdapter:()=>E,RenameAdapter:()=>F,SignatureHelpAdapter:()=>S,SuggestAdapter:()=>w,WorkerManager:()=>p,flattenDiagnosticMessageText:()=>m,getJavaScriptWorker:()=>V,getTypeScriptWorker:()=>z,setupJavaScript:()=>W,setupTypeScript:()=>H});var n=i(97024),o=i(5483),r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(e,t,i)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,d=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))l.call(e,o)||o===i||r(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},u=(e,t,i)=>(d(e,t,"default"),i&&d(i,t,"default")),h=(e,t,i)=>(c(e,"symbol"!==typeof t?t+"":t,i),i),g={};u(g,n);var p=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}_configChangeListener;_updateExtraLibsToken;_extraLibsChangeListener;_worker;_client;dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=g.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(g.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},f={};function m(e,t,i=0){if("string"===typeof e)return e;if(void 0===e)return"";let n="";if(i){n+=t;for(let e=0;ee.text)).join(""):""}f["lib.d.ts"]=!0,f["lib.decorators.d.ts"]=!0,f["lib.decorators.legacy.d.ts"]=!0,f["lib.dom.d.ts"]=!0,f["lib.dom.iterable.d.ts"]=!0,f["lib.es2015.collection.d.ts"]=!0,f["lib.es2015.core.d.ts"]=!0,f["lib.es2015.d.ts"]=!0,f["lib.es2015.generator.d.ts"]=!0,f["lib.es2015.iterable.d.ts"]=!0,f["lib.es2015.promise.d.ts"]=!0,f["lib.es2015.proxy.d.ts"]=!0,f["lib.es2015.reflect.d.ts"]=!0,f["lib.es2015.symbol.d.ts"]=!0,f["lib.es2015.symbol.wellknown.d.ts"]=!0,f["lib.es2016.array.include.d.ts"]=!0,f["lib.es2016.d.ts"]=!0,f["lib.es2016.full.d.ts"]=!0,f["lib.es2017.d.ts"]=!0,f["lib.es2017.full.d.ts"]=!0,f["lib.es2017.intl.d.ts"]=!0,f["lib.es2017.object.d.ts"]=!0,f["lib.es2017.sharedmemory.d.ts"]=!0,f["lib.es2017.string.d.ts"]=!0,f["lib.es2017.typedarrays.d.ts"]=!0,f["lib.es2018.asyncgenerator.d.ts"]=!0,f["lib.es2018.asynciterable.d.ts"]=!0,f["lib.es2018.d.ts"]=!0,f["lib.es2018.full.d.ts"]=!0,f["lib.es2018.intl.d.ts"]=!0,f["lib.es2018.promise.d.ts"]=!0,f["lib.es2018.regexp.d.ts"]=!0,f["lib.es2019.array.d.ts"]=!0,f["lib.es2019.d.ts"]=!0,f["lib.es2019.full.d.ts"]=!0,f["lib.es2019.intl.d.ts"]=!0,f["lib.es2019.object.d.ts"]=!0,f["lib.es2019.string.d.ts"]=!0,f["lib.es2019.symbol.d.ts"]=!0,f["lib.es2020.bigint.d.ts"]=!0,f["lib.es2020.d.ts"]=!0,f["lib.es2020.date.d.ts"]=!0,f["lib.es2020.full.d.ts"]=!0,f["lib.es2020.intl.d.ts"]=!0,f["lib.es2020.number.d.ts"]=!0,f["lib.es2020.promise.d.ts"]=!0,f["lib.es2020.sharedmemory.d.ts"]=!0,f["lib.es2020.string.d.ts"]=!0,f["lib.es2020.symbol.wellknown.d.ts"]=!0,f["lib.es2021.d.ts"]=!0,f["lib.es2021.full.d.ts"]=!0,f["lib.es2021.intl.d.ts"]=!0,f["lib.es2021.promise.d.ts"]=!0,f["lib.es2021.string.d.ts"]=!0,f["lib.es2021.weakref.d.ts"]=!0,f["lib.es2022.array.d.ts"]=!0,f["lib.es2022.d.ts"]=!0,f["lib.es2022.error.d.ts"]=!0,f["lib.es2022.full.d.ts"]=!0,f["lib.es2022.intl.d.ts"]=!0,f["lib.es2022.object.d.ts"]=!0,f["lib.es2022.regexp.d.ts"]=!0,f["lib.es2022.sharedmemory.d.ts"]=!0,f["lib.es2022.string.d.ts"]=!0,f["lib.es2023.array.d.ts"]=!0,f["lib.es2023.d.ts"]=!0,f["lib.es2023.full.d.ts"]=!0,f["lib.es5.d.ts"]=!0,f["lib.es6.d.ts"]=!0,f["lib.esnext.d.ts"]=!0,f["lib.esnext.full.d.ts"]=!0,f["lib.esnext.intl.d.ts"]=!0,f["lib.scripthost.d.ts"]=!0,f["lib.webworker.d.ts"]=!0,f["lib.webworker.importscripts.d.ts"]=!0,f["lib.webworker.iterable.d.ts"]=!0;var v=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),n=e.getPositionAt(t.start+t.length),{lineNumber:o,column:r}=i,{lineNumber:s,column:a}=n;return{startLineNumber:o,startColumn:r,endLineNumber:s,endColumn:a}}},b=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}_libFiles;_hasFetchedLibFiles;_fetchLibFilesPromise;isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!f[e.path.slice(1)])}getOrCreateModel(e){const t=g.Uri.parse(e),i=g.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return g.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const n=o.TG.getExtraLibs()[e];return n?g.editor.createModel(n.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},y=class extends v{constructor(e,t,i,n){super(n),this._libFiles=e,this._defaults=t,this._selector=i;const o=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let n;const o=e.onDidChangeContent((()=>{clearTimeout(n),n=window.setTimeout(t,500)})),r=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():g.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){o.dispose(),r.dispose(),clearTimeout(n)}},t()},r=e=>{g.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel((e=>o(e)))),this._disposables.push(g.editor.onWillDisposeModel(r)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{r(e.model),o(e.model)}))),this._disposables.push({dispose(){for(const e of g.editor.getModels())r(e)}});const s=()=>{for(const e of g.editor.getModels())r(e),o(e)};this._disposables.push(this._defaults.onDidChange(s)),this._disposables.push(this._defaults.onDidExtraLibsChange(s)),g.editor.getModels().forEach((e=>o(e)))}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:n,noSemanticValidation:o,noSuggestionDiagnostics:r}=this._defaults.getDiagnosticsOptions();n||i.push(t.getSyntacticDiagnostics(e.uri.toString())),o||i.push(t.getSemanticDiagnostics(e.uri.toString())),r||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const s=await Promise.all(i);if(!s||e.isDisposed())return;const a=s.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=a.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?g.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||g.editor.setModelMarkers(e,this._selector,a.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,n=t.length||1,{lineNumber:o,column:r}=e.getPositionAt(i),{lineNumber:s,column:a}=e.getPositionAt(i+n),l=[];return t.reportsUnnecessary&&l.push(g.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(g.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:o,startColumn:r,endLineNumber:s,endColumn:a,message:m(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let n=e;if(t.file&&(n=this._libFiles.getOrCreateModel(t.file.fileName)),!n)return;const o=t.start||0,r=t.length||1,{lineNumber:s,column:a}=n.getPositionAt(o),{lineNumber:l,column:c}=n.getPositionAt(o+r);i.push({resource:n.uri,startLineNumber:s,startColumn:a,endLineNumber:l,endColumn:c,message:m(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return g.MarkerSeverity.Error;case 3:return g.MarkerSeverity.Info;case 0:return g.MarkerSeverity.Warning;case 2:return g.MarkerSeverity.Hint}return g.MarkerSeverity.Info}},w=class extends v{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,i,n){const o=e.getWordUntilPosition(t),r=new g.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),s=e.uri,a=e.getOffsetAt(t),l=await this._worker(s);if(e.isDisposed())return;const c=await l.getCompletionsAtPosition(s.toString(),a);if(!c||e.isDisposed())return;const d=c.entries.map((i=>{let n=r;if(i.replacementSpan){const t=e.getPositionAt(i.replacementSpan.start),o=e.getPositionAt(i.replacementSpan.start+i.replacementSpan.length);n=new g.Range(t.lineNumber,t.column,o.lineNumber,o.column)}const o=[];return void 0!==i.kindModifiers&&-1!==i.kindModifiers.indexOf("deprecated")&&o.push(g.languages.CompletionItemTag.Deprecated),{uri:s,position:t,offset:a,range:n,label:i.name,insertText:i.name,sortText:i.sortText,kind:w.convertKind(i.kind),tags:o}}));return{suggestions:d}}async resolveCompletionItem(e,t){const i=e,n=i.uri,o=i.position,r=i.offset,s=await this._worker(n),a=await s.getCompletionEntryDetails(n.toString(),r,i.label);return a?{uri:n,position:o,label:a.name,kind:w.convertKind(a.kind),detail:_(a.displayParts),documentation:{value:w.createDocumentationString(a)}}:i}static convertKind(e){switch(e){case D.primitiveType:case D.keyword:return g.languages.CompletionItemKind.Keyword;case D.variable:case D.localVariable:return g.languages.CompletionItemKind.Variable;case D.memberVariable:case D.memberGetAccessor:case D.memberSetAccessor:return g.languages.CompletionItemKind.Field;case D.function:case D.memberFunction:case D.constructSignature:case D.callSignature:case D.indexSignature:return g.languages.CompletionItemKind.Function;case D.enum:return g.languages.CompletionItemKind.Enum;case D.module:return g.languages.CompletionItemKind.Module;case D.class:return g.languages.CompletionItemKind.Class;case D.interface:return g.languages.CompletionItemKind.Interface;case D.warning:return g.languages.CompletionItemKind.File}return g.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=_(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${C(i)}`;return t}};function C(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...n]=e.text;t+=`\`${i.text}\``,n.length>0&&(t+=` — ${n.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var S=class extends v{signatureHelpTriggerCharacters=["(",","];static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case g.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(e,t,i,n){const o=e.uri,r=e.getOffsetAt(t),s=await this._worker(o);if(e.isDisposed())return;const a=await s.getSignatureHelpItems(o.toString(),r,{triggerReason:S._toSignatureHelpTriggerReason(n)});if(!a||e.isDisposed())return;const l={activeSignature:a.selectedItemIndex,activeParameter:a.argumentIndex,signatures:[]};return a.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:_(e.documentation)},t.label+=_(e.prefixDisplayParts),e.parameters.forEach(((i,n,o)=>{const r=_(i.displayParts),s={label:r,documentation:{value:_(i.documentation)}};t.label+=r,t.parameters.push(s),nC(e))).join(" \n\n"):"",c=_(s.displayParts);return{range:this._textSpanToRange(e,s.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:a+(l?"\n\n"+l:"")}]}}},k=class extends v{async provideDocumentHighlights(e,t,i){const n=e.uri,o=e.getOffsetAt(t),r=await this._worker(n);if(e.isDisposed())return;const s=await r.getDocumentHighlights(n.toString(),o,[n.toString()]);return s&&!e.isDisposed()?s.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?g.languages.DocumentHighlightKind.Write:g.languages.DocumentHighlightKind.Text}))))):void 0}},L=class extends v{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const n=e.uri,o=e.getOffsetAt(t),r=await this._worker(n);if(e.isDisposed())return;const s=await r.getDefinitionAtPosition(n.toString(),o);if(!s||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(s.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const a=[];for(let l of s){const e=this._libFiles.getOrCreateModel(l.fileName);e&&a.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return a}},E=class extends v{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,n){const o=e.uri,r=e.getOffsetAt(t),s=await this._worker(o);if(e.isDisposed())return;const a=await s.getReferencesAtPosition(o.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let c of a){const e=this._libFiles.getOrCreateModel(c.fileName);e&&l.push({uri:e.uri,range:this._textSpanToRange(e,c.textSpan)})}return l}},N=class extends v{async provideDocumentSymbols(e,t){const i=e.uri,n=await this._worker(i);if(e.isDisposed())return;const o=await n.getNavigationTree(i.toString());if(!o||e.isDisposed())return;const r=(t,i)=>{const n={name:t.text,detail:"",kind:T[t.kind]||g.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>r(e,t.text))),containerName:i};return n},s=o.childItems?o.childItems.map((e=>r(e))):[];return s}},D=class{};h(D,"unknown",""),h(D,"keyword","keyword"),h(D,"script","script"),h(D,"module","module"),h(D,"class","class"),h(D,"interface","interface"),h(D,"type","type"),h(D,"enum","enum"),h(D,"variable","var"),h(D,"localVariable","local var"),h(D,"function","function"),h(D,"localFunction","local function"),h(D,"memberFunction","method"),h(D,"memberGetAccessor","getter"),h(D,"memberSetAccessor","setter"),h(D,"memberVariable","property"),h(D,"constructorImplementation","constructor"),h(D,"callSignature","call"),h(D,"indexSignature","index"),h(D,"constructSignature","construct"),h(D,"parameter","parameter"),h(D,"typeParameter","type parameter"),h(D,"primitiveType","primitive type"),h(D,"label","label"),h(D,"alias","alias"),h(D,"const","const"),h(D,"let","let"),h(D,"warning","warning");var T=Object.create(null);T[D.module]=g.languages.SymbolKind.Module,T[D.class]=g.languages.SymbolKind.Class,T[D.enum]=g.languages.SymbolKind.Enum,T[D.interface]=g.languages.SymbolKind.Interface,T[D.memberFunction]=g.languages.SymbolKind.Method,T[D.memberVariable]=g.languages.SymbolKind.Property,T[D.memberGetAccessor]=g.languages.SymbolKind.Property,T[D.memberSetAccessor]=g.languages.SymbolKind.Property,T[D.variable]=g.languages.SymbolKind.Variable,T[D.const]=g.languages.SymbolKind.Variable,T[D.localVariable]=g.languages.SymbolKind.Variable,T[D.variable]=g.languages.SymbolKind.Variable,T[D.function]=g.languages.SymbolKind.Function,T[D.localFunction]=g.languages.SymbolKind.Function;var I,R,A=class extends v{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},O=class extends A{canFormatMultipleRanges=!1;async provideDocumentRangeFormattingEdits(e,t,i,n){const o=e.uri,r=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=await this._worker(o);if(e.isDisposed())return;const l=await a.getFormattingEditsForRange(o.toString(),r,s,A._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},P=class extends A{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,n,o){const r=e.uri,s=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(r.toString(),s,i,A._convertOptions(n));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends A{async provideCodeActions(e,t,i,n){const o=e.uri,r=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=A._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(o);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(o.toString(),r,s,l,a);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};const u=d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t)));return{actions:u,dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const n=[];for(const r of i.changes)for(const t of r.textChanges)n.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});const o={title:i.description,edit:{edits:n},diagnostics:t.markers,kind:"quickfix"};return o}},F=class extends v{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,n){const o=e.uri,r=o.toString(),s=e.getOffsetAt(t),a=await this._worker(o);if(e.isDisposed())return;const l=await a.getRenameInfo(r,s,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await a.findRenameLocations(r,s,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},B=class extends v{async provideInlayHints(e,t,i){const n=e.uri,o=n.toString(),r=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=await this._worker(n);if(e.isDisposed())return null;const l=await a.provideInlayHints(o,r,s),c=l.map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)})));return{hints:c,dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return g.languages.InlayHintKind.Parameter;case"Type":return g.languages.InlayHintKind.Type;default:return g.languages.InlayHintKind.Type}}};function H(e){R=j(e,"typescript")}function W(e){I=j(e,"javascript")}function V(){return new Promise(((e,t)=>{if(!I)return t("JavaScript not registered!");e(I)}))}function z(){return new Promise(((e,t)=>{if(!R)return t("TypeScript not registered!");e(R)}))}function j(e,t){const i=[],n=[],o=new p(t,e);i.push(o);const r=(...e)=>o.getLanguageServiceWorker(...e),s=new b(r);function a(){const{modeConfiguration:i}=e;$(n),i.completionItems&&n.push(g.languages.registerCompletionItemProvider(t,new w(r))),i.signatureHelp&&n.push(g.languages.registerSignatureHelpProvider(t,new S(r))),i.hovers&&n.push(g.languages.registerHoverProvider(t,new x(r))),i.documentHighlights&&n.push(g.languages.registerDocumentHighlightProvider(t,new k(r))),i.definitions&&n.push(g.languages.registerDefinitionProvider(t,new L(s,r))),i.references&&n.push(g.languages.registerReferenceProvider(t,new E(s,r))),i.documentSymbols&&n.push(g.languages.registerDocumentSymbolProvider(t,new N(r))),i.rename&&n.push(g.languages.registerRenameProvider(t,new F(s,r))),i.documentRangeFormattingEdits&&n.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new O(r))),i.onTypeFormattingEdits&&n.push(g.languages.registerOnTypeFormattingEditProvider(t,new P(r))),i.codeActions&&n.push(g.languages.registerCodeActionProvider(t,new M(r))),i.inlayHints&&n.push(g.languages.registerInlayHintsProvider(t,new B(r))),i.diagnostics&&n.push(new y(s,e,t,r))}return a(),i.push(U(n)),r}function U(e){return{dispose:()=>$(e)}}function $(e){while(e.length)e.pop().dispose()}},25206:(e,t,i)=>{"use strict";i.d(t,{NC:()=>r,aj:()=>a,vv:()=>s});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],o=t[n];let r=e;return"string"===typeof o?r=o:"number"!==typeof o&&"boolean"!==typeof o&&void 0!==o&&null!==o||(r=String(o)),r})),n&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function r(e,t,...i){return o(t,i)}function s(e,t,...i){const n=o(t,i);return{value:n,original:n}}function a(e){}},55907:(e,t,i)=>{"use strict";i.d(t,{F7:()=>r,UA:()=>s,VX:()=>a});var n=i(37174),o=i(21881);const r=(0,o.yh)("accessibilityService"),s=new n.uy("accessibilityModeEnabled",!1),a=(0,o.yh)("accessibleNotificationService")},94700:(e,t,i)=>{"use strict";i.d(t,{Mm:()=>R,Id:()=>M,vr:()=>T,LJ:()=>D});var n=i(2548),o=i(45429),r=i(94873),s=i(29031),a=i(10205),l=i(9501),c=i(70959),d=i(47606),u=i(25206),h=i(82693);function g(e){return!!e&&void 0!==e.condition}var p=i(37174),f=i(93753),m=i(21881),_=i(15285),v=i(18736),b=i(92601),y=i(32656),w=i(99588),C=i(71976),S=i(55455),x=i(47277),k=i(22454),L=i(55907),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},N=function(e,t){return function(i,n){t(i,n,e)}};function D(e,t,i,o){const r=e.getActions(t),s=n._q.getInstance(),a=s.keyStatus.altKey||(d.ED||d.IJ)&&s.keyStatus.shiftKey;I(r,i,a,o?e=>e===o:e=>"navigation"===e)}function T(e,t,i,n,o,r){const s=e.getActions(t),a="string"===typeof n?e=>e===n:n;I(s,i,!1,a,o,r)}function I(e,t,i,n=(e=>"navigation"===e),o=(()=>!1),r=!1){let s,l;Array.isArray(t)?(s=t,l=t):(s=t.primary,l=t.secondary);const c=new Set;for(const[d,u]of e){let e;n(d)?(e=s,e.length>0&&r&&e.push(new a.Z0)):(e=l,e.length>0&&e.push(new a.Z0));for(let t of u){i&&(t=t instanceof h.U8&&t.alt?t.alt:t);const n=e.push(t);t instanceof a.wY&&c.add({group:d,action:t,index:n-1})}}for(const{group:a,action:d,index:u}of c){const e=n(a)?s:l,t=d.actions;o(d,a,e.length)&&e.splice(u,1,...t)}}let R=class extends r.gU{constructor(e,t,i,o,r,s,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===t||void 0===t?void 0:t.draggable,keybinding:null===t||void 0===t?void 0:t.keybinding,hoverDelegate:null===t||void 0===t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=o,this._contextKeyService=r,this._themeService=s,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.XK),this._altKey=n._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.nm)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,n.nm)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let o=i?(0,u.NC)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,u.NC)("titleAndKb","{0} ({1})",e,i):e;o=(0,u.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",o,l.xo.modifierLabels[d.OS].altKey,n)}return o}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const o=this._commandAction.checked&&g(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(o)if(w.k.isThemeIcon(o)){const e=w.k.asClassNameArray(o);i.classList.add(...e),this._itemClassDispose.value=(0,c.OF)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,C._T)(this._themeService.getColorTheme().type)?(0,n.wY)(o.dark):(0,n.wY)(o.light),i.classList.add("icon"),this._itemClassDispose.value=(0,c.F8)((0,c.OF)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};R=E([N(2,_.d),N(3,v.lT),N(4,p.i6),N(5,y.XE),N(6,f.i),N(7,L.F7)],R);let A=class extends s.C{constructor(e,t,i,n,o){var r,s,a;const l={...t,menuAsChild:null!==(r=null===t||void 0===t?void 0:t.menuAsChild)&&void 0!==r&&r,classNames:null!==(s=null===t||void 0===t?void 0:t.classNames)&&void 0!==s?s:w.k.isThemeIcon(e.item.icon)?w.k.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null===t||void 0===t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=o}render(e){super.render(e),(0,S.p_)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!w.k.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,C._T)(this._themeService.getColorTheme().type)?(0,n.wY)(i.dark):(0,n.wY)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};A=E([N(2,_.d),N(3,f.i),N(4,y.XE)],A);let O=class extends r.YH{constructor(e,t,i,n,o,r,l,c){var d,u,g;let p;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=r,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const f=(null===t||void 0===t?void 0:t.persistLastActionId)?c.get(this._storageKey,1):void 0;f&&(p=e.actions.find((e=>f===e.id))),p||(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(R,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});const m={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(d=null===t||void 0===t?void 0:t.menuAsChild)||void 0===d||d,classNames:null!==(u=null===t||void 0===t?void 0:t.classNames)&&void 0!==u?u:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null===t||void 0===t?void 0:t.actionRunner)&&void 0!==g?g:new a.Wi};this._dropdown=new s.C(e,e.actions,this._contextMenuService,m),this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof h.U8&&this.update(e.action)}))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(R,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Ce)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.R3)(this._container,t)),this._register((0,n.nm)(t,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.R3)(this._container,i)),this._register((0,n.nm)(i,n.tw.KEY_DOWN,(e=>{var t;const i=new o.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};O=E([N(2,_.d),N(3,v.lT),N(4,f.i),N(5,h.co),N(6,m.TG),N(7,b.Uy)],O);let P=class extends r.Lc{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.Z0.ID?"─────────":e.label,isDisabled:!e.enabled}))),0,t,k.BM,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,x.n_1)(x.a9O)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function M(e,t,i){return t instanceof h.U8?e.createInstance(R,t,i):t instanceof h.NZ?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(O,t,{...i,persistLastActionId:!0}):e.createInstance(A,t,i):void 0}P=E([N(1,f.u)],P)},74647:(e,t,i)=>{"use strict";i.d(t,{r:()=>N,T:()=>E});var n=i(2548),o=i(75467),r=i(78089),s=i(29031),a=i(10205),l=i(8419),c=i(99588),d=i(11271),u=i(70959),h=i(25206);class g extends u.JT{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new d.z5),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new u.SL),this.options=i,this.lookupKeybindings="function"===typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new p((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.o(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,actionViewItemProvider:(e,n)=>{var o;if(e.id===p.ID)return this.toggleMenuActionViewItem=new s.C(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:c.k.asClassNameArray(null!==(o=i.moreIcon)&&void 0!==o?o:l.l.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof a.wY){const i=new s.C(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const o=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return null!==(n=null===o||void 0===o?void 0:o.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class p extends a.aU{constructor(e,t){t=t||h.NC("moreActions","More Actions..."),super(p.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}p.ID="toolbar.toggle.more";var f=i(21921),m=i(22237),_=i(98642),v=i(39595),b=i(94700),y=i(82693),w=i(37174),C=i(93753),S=i(15285),x=i(38857),k=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},L=function(e,t){return function(i,n){t(i,n,e)}};let E=class extends g{constructor(e,t,i,n,o,r,s){super(e,o,{getKeyBinding:e=>{var t;return null!==(t=r.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"===typeof(null===t||void 0===t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=o,this._sessionDisposables=this._store.add(new u.SL);const a=null===t||void 0===t?void 0:t.telemetrySource;a&&this._store.add(this.actionBar.onDidRun((e=>s.publicLog2("workbenchActionExecuted",{id:e.action.id,from:a}))))}setActions(e,t=[],i){var r,s,l;this._sessionDisposables.clear();const c=e.slice(),d=t.slice(),u=[];let g=0;const p=[];let _=!1;if(-1!==(null===(r=this._options)||void 0===r?void 0:r.hiddenItemStrategy))for(let n=0;nnull===e||void 0===e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n=t&&(c[n]=void 0,p[n]=o))}}(0,f.Rs)(c),(0,f.Rs)(p),super.setActions(c,a.Z0.join(p,d)),u.length>0&&this._sessionDisposables.add((0,n.nm)(this.getElement(),"contextmenu",(e=>{var t,r,s,l,c;const d=new o.n((0,n.Jj)(this.getElement()),e),p=this.getItemAction(d.target);if(!p)return;d.preventDefault(),d.stopPropagation();let f,m=!1;if(1===g&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){m=!0;for(let e=0;ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>d,getActions:()=>v,menuId:null===(s=this._options)||void 0===s?void 0:s.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(l=this._options)||void 0===l?void 0:l.menuOptions},skipTelemetry:"string"===typeof(null===(c=this._options)||void 0===c?void 0:c.telemetrySource),contextKeyService:this._contextKeyService})})))}};E=k([L(2,y.co),L(3,w.i6),L(4,C.i),L(5,S.d),L(6,x.b)],E);let N=class extends E{constructor(e,t,i,n,o,r,s,a){super(e,{resetMenu:t,...i},n,o,r,s,a),this._onDidChangeMenuItems=this._store.add(new d.Q5);const l=this._store.add(n.createMenu(t,o,{emitEventsForSubmenuChanges:!0})),c=()=>{var t,n,o;const r=[],s=[];(0,b.vr)(l,null===i||void 0===i?void 0:i.menuOptions,{primary:r,secondary:s},null===(t=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(o=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===o?void 0:o.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===r.length&&0===s.length),super.setActions(r,s)};this._store.add(l.onDidChange((()=>{c(),this._onDidChangeMenuItems.fire(this)}))),c()}setActions(){throw new _.he("This toolbar is populated from a menu.")}};N=k([L(3,y.co),L(4,w.i6),L(5,C.i),L(6,S.d),L(7,x.b)],N)},82693:(e,t,i)=>{"use strict";i.d(t,{BH:()=>y,Ke:()=>S,NZ:()=>w,U8:()=>C,co:()=>v,eH:()=>_,f6:()=>m,r1:()=>x,vr:()=>f});var n,o=i(10205),r=i(99588),s=i(11271),a=i(70959),l=i(33010),c=i(46871),d=i(37174),u=i(21881),h=i(37395),g=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},p=function(e,t){return function(i,n){t(i,n,e)}};function f(e){return void 0!==e.command}function m(e){return void 0!==e.submenu}class _{constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}_._instances=new Map,_.CommandPalette=new _("CommandPalette"),_.DebugBreakpointsContext=new _("DebugBreakpointsContext"),_.DebugCallStackContext=new _("DebugCallStackContext"),_.DebugConsoleContext=new _("DebugConsoleContext"),_.DebugVariablesContext=new _("DebugVariablesContext"),_.DebugWatchContext=new _("DebugWatchContext"),_.DebugToolBar=new _("DebugToolBar"),_.DebugToolBarStop=new _("DebugToolBarStop"),_.EditorContext=new _("EditorContext"),_.SimpleEditorContext=new _("SimpleEditorContext"),_.EditorContent=new _("EditorContent"),_.EditorLineNumberContext=new _("EditorLineNumberContext"),_.EditorContextCopy=new _("EditorContextCopy"),_.EditorContextPeek=new _("EditorContextPeek"),_.EditorContextShare=new _("EditorContextShare"),_.EditorTitle=new _("EditorTitle"),_.EditorTitleRun=new _("EditorTitleRun"),_.EditorTitleContext=new _("EditorTitleContext"),_.EditorTitleContextShare=new _("EditorTitleContextShare"),_.EmptyEditorGroup=new _("EmptyEditorGroup"),_.EmptyEditorGroupContext=new _("EmptyEditorGroupContext"),_.EditorTabsBarContext=new _("EditorTabsBarContext"),_.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu"),_.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu"),_.ExplorerContext=new _("ExplorerContext"),_.ExplorerContextShare=new _("ExplorerContextShare"),_.ExtensionContext=new _("ExtensionContext"),_.GlobalActivity=new _("GlobalActivity"),_.CommandCenter=new _("CommandCenter"),_.CommandCenterCenter=new _("CommandCenterCenter"),_.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu"),_.LayoutControlMenu=new _("LayoutControlMenu"),_.MenubarMainMenu=new _("MenubarMainMenu"),_.MenubarAppearanceMenu=new _("MenubarAppearanceMenu"),_.MenubarDebugMenu=new _("MenubarDebugMenu"),_.MenubarEditMenu=new _("MenubarEditMenu"),_.MenubarCopy=new _("MenubarCopy"),_.MenubarFileMenu=new _("MenubarFileMenu"),_.MenubarGoMenu=new _("MenubarGoMenu"),_.MenubarHelpMenu=new _("MenubarHelpMenu"),_.MenubarLayoutMenu=new _("MenubarLayoutMenu"),_.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu"),_.PanelAlignmentMenu=new _("PanelAlignmentMenu"),_.PanelPositionMenu=new _("PanelPositionMenu"),_.ActivityBarPositionMenu=new _("ActivityBarPositionMenu"),_.MenubarPreferencesMenu=new _("MenubarPreferencesMenu"),_.MenubarRecentMenu=new _("MenubarRecentMenu"),_.MenubarSelectionMenu=new _("MenubarSelectionMenu"),_.MenubarShare=new _("MenubarShare"),_.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu"),_.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu"),_.MenubarTerminalMenu=new _("MenubarTerminalMenu"),_.MenubarViewMenu=new _("MenubarViewMenu"),_.MenubarHomeMenu=new _("MenubarHomeMenu"),_.OpenEditorsContext=new _("OpenEditorsContext"),_.OpenEditorsContextShare=new _("OpenEditorsContextShare"),_.ProblemsPanelContext=new _("ProblemsPanelContext"),_.SCMInputBox=new _("SCMInputBox"),_.SCMHistoryItem=new _("SCMHistoryItem"),_.SCMChangeContext=new _("SCMChangeContext"),_.SCMResourceContext=new _("SCMResourceContext"),_.SCMResourceContextShare=new _("SCMResourceContextShare"),_.SCMResourceFolderContext=new _("SCMResourceFolderContext"),_.SCMResourceGroupContext=new _("SCMResourceGroupContext"),_.SCMSourceControl=new _("SCMSourceControl"),_.SCMTitle=new _("SCMTitle"),_.SearchContext=new _("SearchContext"),_.SearchActionMenu=new _("SearchActionContext"),_.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu"),_.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu"),_.StickyScrollContext=new _("StickyScrollContext"),_.TestItem=new _("TestItem"),_.TestItemGutter=new _("TestItemGutter"),_.TestMessageContext=new _("TestMessageContext"),_.TestMessageContent=new _("TestMessageContent"),_.TestPeekElement=new _("TestPeekElement"),_.TestPeekTitle=new _("TestPeekTitle"),_.TouchBarContext=new _("TouchBarContext"),_.TitleBarContext=new _("TitleBarContext"),_.TitleBarTitleContext=new _("TitleBarTitleContext"),_.TunnelContext=new _("TunnelContext"),_.TunnelPrivacy=new _("TunnelPrivacy"),_.TunnelProtocol=new _("TunnelProtocol"),_.TunnelPortInline=new _("TunnelInline"),_.TunnelTitle=new _("TunnelTitle"),_.TunnelLocalAddressInline=new _("TunnelLocalAddressInline"),_.TunnelOriginInline=new _("TunnelOriginInline"),_.ViewItemContext=new _("ViewItemContext"),_.ViewContainerTitle=new _("ViewContainerTitle"),_.ViewContainerTitleContext=new _("ViewContainerTitleContext"),_.ViewTitle=new _("ViewTitle"),_.ViewTitleContext=new _("ViewTitleContext"),_.CommentEditorActions=new _("CommentEditorActions"),_.CommentThreadTitle=new _("CommentThreadTitle"),_.CommentThreadActions=new _("CommentThreadActions"),_.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions"),_.CommentThreadTitleContext=new _("CommentThreadTitleContext"),_.CommentThreadCommentContext=new _("CommentThreadCommentContext"),_.CommentTitle=new _("CommentTitle"),_.CommentActions=new _("CommentActions"),_.InteractiveToolbar=new _("InteractiveToolbar"),_.InteractiveCellTitle=new _("InteractiveCellTitle"),_.InteractiveCellDelete=new _("InteractiveCellDelete"),_.InteractiveCellExecute=new _("InteractiveCellExecute"),_.InteractiveInputExecute=new _("InteractiveInputExecute"),_.NotebookToolbar=new _("NotebookToolbar"),_.NotebookStickyScrollContext=new _("NotebookStickyScrollContext"),_.NotebookCellTitle=new _("NotebookCellTitle"),_.NotebookCellDelete=new _("NotebookCellDelete"),_.NotebookCellInsert=new _("NotebookCellInsert"),_.NotebookCellBetween=new _("NotebookCellBetween"),_.NotebookCellListTop=new _("NotebookCellTop"),_.NotebookCellExecute=new _("NotebookCellExecute"),_.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary"),_.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle"),_.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle"),_.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle"),_.NotebookOutputToolbar=new _("NotebookOutputToolbar"),_.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure"),_.NotebookKernelSource=new _("NotebookKernelSource"),_.BulkEditTitle=new _("BulkEditTitle"),_.BulkEditContext=new _("BulkEditContext"),_.TimelineItemContext=new _("TimelineItemContext"),_.TimelineTitle=new _("TimelineTitle"),_.TimelineTitleContext=new _("TimelineTitleContext"),_.TimelineFilterSubMenu=new _("TimelineFilterSubMenu"),_.AccountsContext=new _("AccountsContext"),_.SidebarTitle=new _("SidebarTitle"),_.PanelTitle=new _("PanelTitle"),_.AuxiliaryBarTitle=new _("AuxiliaryBarTitle"),_.TerminalInstanceContext=new _("TerminalInstanceContext"),_.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext"),_.TerminalNewDropdownContext=new _("TerminalNewDropdownContext"),_.TerminalTabContext=new _("TerminalTabContext"),_.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext"),_.TerminalStickyScrollContext=new _("TerminalStickyScrollContext"),_.WebviewContext=new _("WebviewContext"),_.InlineCompletionsActions=new _("InlineCompletionsActions"),_.NewFile=new _("NewFile"),_.MergeInput1Toolbar=new _("MergeToolbar1Toolbar"),_.MergeInput2Toolbar=new _("MergeToolbar2Toolbar"),_.MergeBaseToolbar=new _("MergeBaseToolbar"),_.MergeInputResultToolbar=new _("MergeToolbarResultToolbar"),_.InlineSuggestionToolbar=new _("InlineSuggestionToolbar"),_.ChatContext=new _("ChatContext"),_.ChatCodeBlock=new _("ChatCodeblock"),_.ChatMessageTitle=new _("ChatMessageTitle"),_.ChatExecute=new _("ChatExecute"),_.ChatInputSide=new _("ChatInputSide"),_.AccessibleView=new _("AccessibleView"),_.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar");const v=(0,u.yh)("menuService");class b{static for(e){let t=this._all.get(e);return t||(t=new b(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof b&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}b._all=new Map;const y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.SZ({merge:b.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(b.for(_.CommandPalette)),(0,a.OF)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(b.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.S,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(b.for(e)),(0,a.OF)((()=>{n(),this._onDidChangeMenu.fire(b.for(e))}))}appendMenuItems(e){const t=new a.SL;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)f(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class w extends o.wY{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let C=n=class{static label(e,t){return(null===t||void 0===t?void 0:t.renderShortTitle)&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,o,s,a){var l,c;let d;if(this.hideActions=o,this._commandService=a,this.id=e.id,this.label=n.label(e,i),this.tooltip=null!==(c="string"===typeof e.tooltip?e.tooltip:null===(l=e.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.k.isThemeIcon(t.icon)&&(d=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}d||(d=r.k.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new n(t,void 0,i,o,s,a):void 0,this._options=i,this.class=d&&r.k.asClassName(d)}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};C=n=g([p(4,d.i6),p(5,c.H)],C);class S{constructor(e){this.desc=e}}function x(e){const t=new a.SL,i=new e,{f1:n,menu:o,keybinding:r,...s}=i.desc;if(t.add(c.P.registerCommand({id:s.id,handler:(e,...t)=>i.run(e,...t),metadata:s.metadata})),Array.isArray(o))for(const a of o)t.add(y.appendMenuItem(a.id,{command:{...s,precondition:null===a.precondition?void 0:s.precondition},...a}));else o&&t.add(y.appendMenuItem(o.id,{command:{...s,precondition:null===o.precondition?void 0:s.precondition},...o}));if(n&&(t.add(y.appendMenuItem(_.CommandPalette,{command:s,when:s.precondition})),t.add(y.addCommand(s))),Array.isArray(r))for(const a of r)t.add(h.W.registerKeybindingRule({...a,id:s.id,when:s.precondition?d.Ao.and(s.precondition,a.when):a.when}));else r&&t.add(h.W.registerKeybindingRule({...r,id:s.id,when:s.precondition?d.Ao.and(s.precondition,r.when):r.when}));return t}},70936:(e,t,i)=>{"use strict";i.d(t,{e7:()=>r,y$:()=>l});var n=i(21881),o=i(25206);const r=(0,n.yh)("audioCue");class s{static register(e){const t=new s(e.fileName);return t}constructor(e){this.fileName=e}}s.error=s.register({fileName:"error.mp3"}),s.warning=s.register({fileName:"warning.mp3"}),s.foldedArea=s.register({fileName:"foldedAreas.mp3"}),s.break=s.register({fileName:"break.mp3"}),s.quickFixes=s.register({fileName:"quickFixes.mp3"}),s.taskCompleted=s.register({fileName:"taskCompleted.mp3"}),s.taskFailed=s.register({fileName:"taskFailed.mp3"}),s.terminalBell=s.register({fileName:"terminalBell.mp3"}),s.diffLineInserted=s.register({fileName:"diffLineInserted.mp3"}),s.diffLineDeleted=s.register({fileName:"diffLineDeleted.mp3"}),s.diffLineModified=s.register({fileName:"diffLineModified.mp3"}),s.chatRequestSent=s.register({fileName:"chatRequestSent.mp3"}),s.chatResponsePending=s.register({fileName:"chatResponsePending.mp3"}),s.chatResponseReceived1=s.register({fileName:"chatResponseReceived1.mp3"}),s.chatResponseReceived2=s.register({fileName:"chatResponseReceived2.mp3"}),s.chatResponseReceived3=s.register({fileName:"chatResponseReceived3.mp3"}),s.chatResponseReceived4=s.register({fileName:"chatResponseReceived4.mp3"}),s.clear=s.register({fileName:"clear.mp3"}),s.save=s.register({fileName:"save.mp3"}),s.format=s.register({fileName:"format.mp3"});class a{constructor(e){this.randomOneOf=e}}class l{static register(e){const t=new a("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new l(t,e.name,e.settingsKey);return l._audioCues.add(i),i}constructor(e,t,i){this.sound=e,this.name=t,this.settingsKey=i}}l._audioCues=new Set,l.error=l.register({name:(0,o.NC)("audioCues.lineHasError.name","Error on Line"),sound:s.error,settingsKey:"audioCues.lineHasError"}),l.warning=l.register({name:(0,o.NC)("audioCues.lineHasWarning.name","Warning on Line"),sound:s.warning,settingsKey:"audioCues.lineHasWarning"}),l.foldedArea=l.register({name:(0,o.NC)("audioCues.lineHasFoldedArea.name","Folded Area on Line"),sound:s.foldedArea,settingsKey:"audioCues.lineHasFoldedArea"}),l.break=l.register({name:(0,o.NC)("audioCues.lineHasBreakpoint.name","Breakpoint on Line"),sound:s.break,settingsKey:"audioCues.lineHasBreakpoint"}),l.inlineSuggestion=l.register({name:(0,o.NC)("audioCues.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:s.quickFixes,settingsKey:"audioCues.lineHasInlineSuggestion"}),l.terminalQuickFix=l.register({name:(0,o.NC)("audioCues.terminalQuickFix.name","Terminal Quick Fix"),sound:s.quickFixes,settingsKey:"audioCues.terminalQuickFix"}),l.onDebugBreak=l.register({name:(0,o.NC)("audioCues.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:s.break,settingsKey:"audioCues.onDebugBreak"}),l.noInlayHints=l.register({name:(0,o.NC)("audioCues.noInlayHints","No Inlay Hints on Line"),sound:s.error,settingsKey:"audioCues.noInlayHints"}),l.taskCompleted=l.register({name:(0,o.NC)("audioCues.taskCompleted","Task Completed"),sound:s.taskCompleted,settingsKey:"audioCues.taskCompleted"}),l.taskFailed=l.register({name:(0,o.NC)("audioCues.taskFailed","Task Failed"),sound:s.taskFailed,settingsKey:"audioCues.taskFailed"}),l.terminalCommandFailed=l.register({name:(0,o.NC)("audioCues.terminalCommandFailed","Terminal Command Failed"),sound:s.error,settingsKey:"audioCues.terminalCommandFailed"}),l.terminalBell=l.register({name:(0,o.NC)("audioCues.terminalBell","Terminal Bell"),sound:s.terminalBell,settingsKey:"audioCues.terminalBell"}),l.notebookCellCompleted=l.register({name:(0,o.NC)("audioCues.notebookCellCompleted","Notebook Cell Completed"),sound:s.taskCompleted,settingsKey:"audioCues.notebookCellCompleted"}),l.notebookCellFailed=l.register({name:(0,o.NC)("audioCues.notebookCellFailed","Notebook Cell Failed"),sound:s.taskFailed,settingsKey:"audioCues.notebookCellFailed"}),l.diffLineInserted=l.register({name:(0,o.NC)("audioCues.diffLineInserted","Diff Line Inserted"),sound:s.diffLineInserted,settingsKey:"audioCues.diffLineInserted"}),l.diffLineDeleted=l.register({name:(0,o.NC)("audioCues.diffLineDeleted","Diff Line Deleted"),sound:s.diffLineDeleted,settingsKey:"audioCues.diffLineDeleted"}),l.diffLineModified=l.register({name:(0,o.NC)("audioCues.diffLineModified","Diff Line Modified"),sound:s.diffLineModified,settingsKey:"audioCues.diffLineModified"}),l.chatRequestSent=l.register({name:(0,o.NC)("audioCues.chatRequestSent","Chat Request Sent"),sound:s.chatRequestSent,settingsKey:"audioCues.chatRequestSent"}),l.chatResponseReceived=l.register({name:(0,o.NC)("audioCues.chatResponseReceived","Chat Response Received"),settingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[s.chatResponseReceived1,s.chatResponseReceived2,s.chatResponseReceived3,s.chatResponseReceived4]}}),l.chatResponsePending=l.register({name:(0,o.NC)("audioCues.chatResponsePending","Chat Response Pending"),sound:s.chatResponsePending,settingsKey:"audioCues.chatResponsePending"}),l.clear=l.register({name:(0,o.NC)("audioCues.clear","Clear"),sound:s.clear,settingsKey:"audioCues.clear"}),l.save=l.register({name:(0,o.NC)("audioCues.save","Save"),sound:s.save,settingsKey:"audioCues.save"}),l.format=l.register({name:(0,o.NC)("audioCues.format","Format"),sound:s.format,settingsKey:"audioCues.format"})},2827:(e,t,i)=>{"use strict";i.d(t,{p:()=>o});var n=i(21881);const o=(0,n.yh)("clipboardService")},46871:(e,t,i)=>{"use strict";i.d(t,{H:()=>c,P:()=>d});var n=i(11271),o=i(39595),r=i(70959),s=i(33010),a=i(55455),l=i(21881);const c=(0,l.yh)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const n of e.metadata.args)t.push(n.constraint);const i=e.handler;e.handler=function(e,...n){return(0,a.D8)(n,t),i(e,...n)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new s.S,this._commands.set(i,n));const o=n.unshift(e),l=(0,r.OF)((()=>{o();const e=this._commands.get(i);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return d.registerCommand(e,((e,...i)=>e.get(c).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return o.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};d.registerCommand("noop",(()=>{}))},47596:(e,t,i)=>{"use strict";i.d(t,{KV:()=>s,Mt:()=>c,Od:()=>r,UI:()=>d,Ui:()=>o,xL:()=>a});var n=i(21881);const o=(0,n.yh)("configurationService");function r(e,t){const i=Object.create(null);for(const n in e)s(i,n,e[n],t);return i}function s(e,t,i,n){const o=t.split("."),r=o.pop();let s=e;for(let l=0;l{"use strict";i.d(t,{IP:()=>d,eU:()=>S,ny:()=>x});var n=i(21921),o=i(11271),r=i(55455),s=i(25206),a=i(47596),l=i(62478),c=i(39672);const d={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=c.B.as(l.I.JSONContribution);class b{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.Q5,this._onDidUpdateConfiguration=new o.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:s.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:o,source:l}of e)for(const e in o)if(t.add(e),S.test(e)){const t=this.configurationDefaultsOverrides.get(e),c=null!==(i=null===t||void 0===t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(l)for(const i of Object.keys(o[e]))c.set(i,l);const d={...(null===t||void 0===t?void 0:t.value)||{},...o[e]};this.configurationDefaultsOverrides.set(e,{source:l,value:d,valuesSources:c});const u=(0,a.UI)(e),h={type:"object",default:d,description:s.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",u),$ref:_,defaultDefaultValue:d,source:r.HD(l)?void 0:l,defaultValueSource:l};n.push(...x(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:o[e],source:l});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,n,o=3,s){var a;o=r.Jp(e.scope)?o:e.scope;const l=e.properties;if(l)for(const d in l){const e=l[d];t&&E(d,e)?delete l[d]:(e.source=i,e.defaultDefaultValue=l[d].default,this.updatePropertyDefaultValue(d,e),S.test(d)?e.scope=void 0:(e.scope=r.Jp(e.scope)?o:e.scope,e.restricted=r.Jp(e.restricted)?!!(null===n||void 0===n?void 0:n.includes(d)):e.restricted),!l[d].hasOwnProperty("included")||l[d].included?(this.configurationProperties[d]=l[d],(null===(a=l[d].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[d].policy.name,d),!l[d].deprecationMessage&&l[d].markdownDeprecationMessage&&(l[d].deprecationMessage=l[d].markdownDeprecationMessage),s.add(d)):(this.excludedConfigurationProperties[d]=l[d],delete l[d]))}const c=e.allOf;if(c)for(const r of c)this.validateAndRegisterProperties(r,t,i,n,o,s)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const n=e.allOf;null===n||void 0===n||n.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:h.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:m.properties[e]=t;break;case 5:m.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:s.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),u.properties[t]=i,h.properties[t]=i,g.properties[t]=i,p.properties[t]=i,f.properties[t]=i,m.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:s.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};u.patternProperties[C]=e,h.patternProperties[C]=e,g.patternProperties[C]=e,p.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null===i||void 0===i?void 0:i.value,o=null===i||void 0===i?void 0:i.source;r.o8(n)&&(n=t.defaultDefaultValue,o=void 0),r.o8(n)&&(n=k(t.type)),t.default=n,t.defaultValueSource=o}}const y="\\[([^\\]]+)\\]",w=new RegExp(y,"g"),C=`^(${y})+$`,S=new RegExp(C);function x(e){const t=[];if(S.test(e)){let i=w.exec(e);while(null===i||void 0===i?void 0:i.length){const n=i[1].trim();n&&t.push(n),i=w.exec(e)}}return(0,n.EB)(t)}function k(e){const t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const L=new b;function E(e,t){var i,n,o,r;return e.trim()?S.test(e)?s.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==L.getConfigurationProperties()[e]?s.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==L.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?s.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(o=t.policy)||void 0===o?void 0:o.name,L.getPolicyConfigurations().get(null===(r=t.policy)||void 0===r?void 0:r.name)):null:s.NC("config.property.empty","Cannot register an empty property")}c.B.add(d.Configuration,L)},37174:(e,t,i)=>{"use strict";i.d(t,{cP:()=>T,Ao:()=>x,i6:()=>q,uy:()=>$,Fb:()=>k,K8:()=>Z});var n=i(47606),o=i(61720),r=i(98642),s=i(25206);function a(...e){switch(e.length){case 1:return(0,s.NC)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,s.NC)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,s.NC)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const l=(0,s.NC)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,s.NC)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw(0,r.L6)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){while(!this._isAtEnd()){this._start=this._current;const e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=d._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){while(39!==this._peek()&&!this._isAtEnd())this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;while(1){if(e>=this._input.length)return this._current=e,void this._error(c);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}while(e=this._input.length}}d._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),d._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var u=i(21881);const h=new Map;h.set("false",!1),h.set("true",!0),h.set("isMac",n.dz),h.set("isLinux",n.IJ),h.set("isWindows",n.ED),h.set("isWeb",n.$L),h.set("isMacNative",n.dz&&!n.$L),h.set("isEdge",n.un),h.set("isFirefox",n.vU),h.set("isChrome",n.i7),h.set("isSafari",n.G6);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},f=(0,s.NC)("contextkey.parser.error.emptyString","Empty context key expression"),m=(0,s.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,s.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,s.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,s.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),y=(0,s.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),w=(0,s.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,s.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{constructor(e=p){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?y:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:f,offset:0,lexeme:"",additionalInfo:m})}_expr(){return this._or()}_or(){const e=[this._and()];while(this._matchOne(16)){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];while(this._matchOne(15)){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),null===e||void 0===e?void 0:e.negate()}case 17:return this._advance(),O.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,o=i.lastIndexOf("/"),r=o===i.length-1?void 0:this._removeFlagsGY(i.substring(o+1));let s;try{s=new RegExp(i.substring(1,o),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(n,s)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let o=this._peek(),r=0;for(let t=0;t=0){const s=t.slice(n+1,o),a="i"===t[o+1]?"i":"";try{r=new RegExp(s,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(n,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return x.notIn(n,e)}const r=this._peek().type;switch(r){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(n,e);switch(e){case"true":return x.has(n);case"false":return x.not(n);default:return x.equals(n,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(n,e);switch(e){case"true":return x.not(n);case"false":return x.has(n);default:return x.notEquals(n,e)}}case 5:return this._advance(),B.create(n,this._value());case 6:return this._advance(),H.create(n,this._value());case 7:return this._advance(),M.create(n,this._value());case 8:return this._advance(),F.create(n,this._value());case 13:return this._advance(),x.in(n,this._value());default:return x.has(n)}}case 20:throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:"",additionalInfo:C}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,s.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),o=t.offset,r=d.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:r,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}S._parseError=new Error;class x{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return D.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return A.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return R.create(e,t)}static not(e){return O.create(e)}static and(...e){return j.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static deserialize(e){if(void 0===e||null===e)return;const t=this._parser.parse(e);return t}}function k(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function L(e,t){return e.cmp(t)}x._parser=new S({regexParsingWithErrorRecovery:!1});class E{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}E.INSTANCE=new E;class N{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}N.INSTANCE=new N;class D{static create(e,t=null){const i=h.get(e);return"boolean"===typeof i?i?N.INSTANCE:E.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=h.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this)),this.negated}}class T{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):O.create(e,i);const n=h.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?N.INSTANCE:E.INSTANCE}return new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=h.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=R.create(this.key,this.valueKey)),this.negated}}class R{static create(e,t){return new R(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?O.create(e,i):D.create(e,i);const n=h.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?E.INSTANCE:N.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=h.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class O{static create(e,t=null){const i=h.get(e);return"boolean"===typeof i?i?E.INSTANCE:N.INSTANCE:new O(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=h.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}function P(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class M{static create(e,t,i=null){return P(t,(t=>new M(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return P(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,i=null){return P(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))new H(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),o=0===n.length,r=U.create(e.expr.map((e=>j.create([e,t],null,i))),null,o);r&&(n.push(r),n.sort(L))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());while(e.length>1){const t=e.shift(),i=e.shift(),n=[];for(const e of Y(t))for(const t of Y(i))n.push(j.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends D{static all(){return $._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?$._info.push({...i,key:e}):!0!==i&&$._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}$._info=[];const q=(0,u.yh)("contextKeyService");function K(e,t){return et?1:0}function G(e,t,i,n){return ei?1:tn?1:0}function Z(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Z(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if(Z(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,n=0;while(i{"use strict";i.d(t,{Pf:()=>a,cv:()=>s,d0:()=>l});var n=i(47606),o=i(25206),r=i(37174);new r.uy("isMac",n.dz,(0,o.NC)("isMac","Whether the operating system is macOS")),new r.uy("isLinux",n.IJ,(0,o.NC)("isLinux","Whether the operating system is Linux"));const s=new r.uy("isWindows",n.ED,(0,o.NC)("isWindows","Whether the operating system is Windows")),a=new r.uy("isWeb",n.$L,(0,o.NC)("isWeb","Whether the platform is a web browser")),l=(new r.uy("isMacNative",n.dz&&!n.$L,(0,o.NC)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.uy("isIOS",n.gn,(0,o.NC)("isIOS","Whether the operating system is iOS")),new r.uy("isMobile",n.tq,(0,o.NC)("isMobile","Whether the platform is a mobile web browser")),new r.uy("isDevelopment",!1,!0),new r.uy("productQualityType","",(0,o.NC)("productQualityType","Quality type of VS Code")),"inputFocus");new r.uy(l,!1,(0,o.NC)("inputFocus","Whether keyboard focus is inside an input box"))},93753:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,u:()=>o});var n=i(21881);const o=(0,n.yh)("contextViewService"),r=(0,n.yh)("contextMenuService")},8283:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var n=i(21881);const o=(0,n.yh)("dialogService")},60808:(e,t,i)=>{"use strict";i.d(t,{Ej:()=>a,Km:()=>o});var n=i(39672);const o={EDITORS:"CodeEditors",FILES:"CodeFiles"};class r{}const s={DragAndDropContribution:"workbench.contributions.dragAndDrop"};n.B.add(s.DragAndDropContribution,new r);class a{constructor(){}static getInstance(){return a.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}a.INSTANCE=new a},913:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(21881);const o=(0,n.yh)("environmentService")},63296:(e,t,i)=>{"use strict";i.d(t,{Yb:()=>E,Nq:()=>N,iX:()=>y});var n=i(93575),o=i(2548),r=i(5506),s=i(60748),a=i(9194),l=i(8419),c=i(11271),d=i(25206);const u=d.NC("defaultLabel","input"),h=d.NC("label.preserveCaseToggle","Preserve Case");class g extends r.Z{constructor(e){super({icon:l.l.preserveCase,title:h+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class p extends a.${constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new c.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new c.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new c.Q5),this._onInput=this._register(new c.Q5),this._onKeyUp=this._register(new c.Q5),this._onPreserveCaseKeyDown=this._register(new c.Q5),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||u;const r=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,d=!!n.flexibleWidth,h=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.pG(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:d,flexibleMaxHeight:h,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new g({appendTitle:r,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const p=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=p.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%p.length:e.equals(15)&&(i=0===t?p.length-1:t-1),e.equals(9)?(p[t].blur(),this.inputBox.focus()):i>=0&&p[i].focus(),o.zB.stop(e,!0)}}}));const f=document.createElement("div");f.className="controls",f.style.display=this._showOptionButtons?"block":"none",f.appendChild(this.preserveCase.domNode),this.domNode.appendChild(f),null===e||void 0===e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(37174),m=i(37395),_=i(70959),v=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},b=function(e,t){return function(i,n){t(i,n,e)}};const y=new f.uy("suggestWidgetVisible",!1,(0,d.NC)("suggestWidgetVisible","Whether suggestion are visible")),w="historyNavigationWidgetFocus",C="historyNavigationForwardsEnabled",S="historyNavigationBackwardsEnabled";let x;const k=[];function L(e,t){if(k.includes(t))throw new Error("Cannot register the same widget multiple times");k.push(t);const i=new _.SL,n=new f.uy(w,!1).bindTo(e),r=new f.uy(C,!0).bindTo(e),s=new f.uy(S,!0).bindTo(e),a=()=>{n.set(!0),x=t},l=()=>{n.set(!1),x===t&&(x=void 0)};return(0,o.H9)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,_.OF)((()=>{k.splice(k.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:s,dispose(){i.dispose()}}}let E=class extends n.V{constructor(e,t,i,n){super(e,t,i);const o=this._register(n.createScoped(this.inputBox.element));this._register(L(o,this.inputBox))}};E=v([b(3,f.i6)],E);let N=class extends p{constructor(e,t,i,n,o=!1){super(e,t,o,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(L(r,this.inputBox))}};N=v([b(3,f.i6)],N),m.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(S,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null===x||void 0===x||x.showPreviousValue()}}),m.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(C,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null===x||void 0===x||x.showNextValue()}})},42976:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},39326:(e,t,i)=>{"use strict";i.d(t,{d:()=>s,z:()=>r});var n=i(42976);const o=[];function r(e,t,i){t instanceof n.M||(t=new n.M(t,[],Boolean(i))),o.push([e,t])}function s(){return o}},21881:(e,t,i)=>{"use strict";var n;i.d(t,{I8:()=>n,TG:()=>o,yh:()=>s}),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(n||(n={}));const o=s("instantiationService");function r(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}function s(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(t,e,n)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},39159:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},62478:(e,t,i)=>{"use strict";i.d(t,{I:()=>r});var n=i(11271),o=i(39672);const r={JSONContribution:"base.contributions.json"};function s(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}class a{constructor(){this._onDidChangeSchema=new n.Q5,this.schemasById={}}registerSchema(e,t){this.schemasById[s(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const l=new a;o.B.add(r.JSONContribution,l)},15285:(e,t,i)=>{"use strict";i.d(t,{d:()=>o});var n=i(21881);const o=(0,n.yh)("keybindingService")},37395:(e,t,i)=>{"use strict";i.d(t,{W:()=>d});var n=i(19321),o=i(47606),r=i(46871),s=i(39672),a=i(70959),l=i(33010);class c{constructor(){this._coreKeybindings=new l.S,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o.OS){if(e&&e.win)return e.win}else if(2===o.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=c.bindToCurrentPlatform(e),i=new a.SL;if(t&&t.primary){const r=(0,n.Z9)(t.primary,o.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,s=t.secondary.length;r{s(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(h)),this._cachedMergedKeybindings.slice(0)}}const d=new c,u={EditorModes:"platform.keybindingsRegistry"};function h(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.commandt.command)return 1}return e.weight2-t.weight2}s.B.add(u.EditorModes,d)},51549:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var n=i(21881);const o=(0,n.yh)("labelService")},6726:(e,t,i)=>{"use strict";i.d(t,{Lw:()=>ct,XN:()=>dt,ls:()=>ri,ev:()=>Gt,CQ:()=>pt,PS:()=>yt,uJ:()=>Ct});var n=i(2548),o=i(21921),r=i(55191),s=i(11271),a=i(70959),l=i(51442);class c{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{data:t,disposable:a.JT.None}}renderElement(e,t,i,n){var o;if(null===(o=i.disposable)||void 0===o||o.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const a=new r.A,l=s.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class d{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function u(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new d(e,t.accessibilityProvider)}}class h{constructor(e,t,i,n,o={}){const r=()=>this.model,s=n.map((e=>new c(e,r)));this.list=new l.aV(e,t,i,s,u(r,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return s.ju.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return s.ju.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return s.ju.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,o.w6)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var g=i(26156);class p{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=p.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const o of e){const e=n.get(o.templateId);if(!e)throw new Error(`Table cell renderer for template id ${o.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],o=[];for(let s=0;snew m(e,t))),u={size:d.reduce(((e,t)=>e+t.column.weight),0),views:d.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new g.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:u})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const h=new p(o,r,(e=>this.splitview.getViewSize(e)));this.list=this.disposables.add(new l.aV(e,this.domNode,f(i),[h],c)),s.ju.any(...d.map((e=>e.onDidLayout)))((([e,t])=>h.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=o.reduce(((e,t)=>e+t.weight),0),i=o[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style(l.uZ)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}_.InstanceCount=0;i(9172);var v,b,y=i(45429),w=(i(78089),i(93575),i(60748)),C=i(75461),S=i(5506);(function(e){e[e["Expanded"]=0]="Expanded",e[e["Collapsed"]=1]="Collapsed",e[e["PreserveOrExpanded"]=2]="PreserveOrExpanded",e[e["PreserveOrCollapsed"]=3]="PreserveOrCollapsed"})(v||(v={})),function(e){e[e["Unknown"]=0]="Unknown",e[e["Twistie"]=1]="Twistie",e[e["Element"]=2]="Element",e[e["Filter"]=3]="Filter"}(b||(b={}));class x extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class k{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var L=i(85398),E=i(65338),N=i(88994),D=i(39595);function T(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function I(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function R(e){return"boolean"===typeof e.collapsible}class A{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new s.E7,this._onDidChangeCollapseState=new s.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new s.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new s.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new L.vp(E.n),this.collapseByDefault="undefined"!==typeof n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren="undefined"!==typeof n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=D.$.empty(),n={}){if(0===e.length)throw new x(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,r){var s;void 0===n&&(n=D.$.empty()),void 0===r&&(r=null!==(s=o.diffDepth)&&void 0!==s?s:0);const{parentNode:a}=this.getParentNodeWithListIndex(t);if(!a.lastDiffIds)return this.spliceSimple(t,i,n,o);const l=[...n],c=t[t.length-1],d=new N.Hs({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,c),...l,...a.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(t,i,l,o);const u=t.slice(0,-1),h=(t,i,n)=>{if(r>0)for(let s=0;st.originalStart-e.originalStart)))h(g,p,g-(f.originalStart+f.originalLength)),g=f.originalStart,p=f.modifiedStart-c,this.spliceSimple([...u,g],f.originalLength,D.$.slice(l,p,p+f.modifiedLength),o);h(g,p,g)}spliceSimple(e,t,i=D.$.empty(),{onDidCreateNode:n,onDidDeleteNode:r,diffIdentityProvider:s}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),u=[],h=D.$.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,c,u,n))),g=e[e.length-1],p=a.children.length>0;let f=0;for(let o=g;o>=0&&os.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>s.getId(e.element).toString())):a.lastDiffIds=void 0;let y=0;for(const o of b)o.visible&&y++;if(0!==y)for(let o=g+m.length;oe+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,u)}if(b.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:m,deletedNodes:b});const w=a.children.length>0;p!==w&&this.setCollapsible(e.slice(0,-1),w);let C=a;while(C){if(2===C.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}C=C.parent}}rerender(e){if(0===e.length)throw new x(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,o)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!R(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e-1){n=-1;break}n=e}}n>-1&&this._setCollapseState([...e,n],t)}return r}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const r=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(R(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!R(t)&&t.recursive)for(const o of e.children)n=this._setNodeCollapseState(o,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);while(t.parent)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,r){const s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,i);s.visibility=a,n&&o.push(s);const l=e.children||D.$.empty(),c=n&&0!==a&&!s.collapsed;let d=0,u=1;for(const h of l){const e=this.createTreeNode(h,s,a,c,o,r);s.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return s.collapsible=s.collapsible||s.children.length>0,s.visibleChildrenCount=d,s.visible=2===a?d>0:1===a,s.visible?s.collapsed||(s.renderNodeCount=u):(s.renderNodeCount=0,n&&o.pop()),null===r||void 0===r||r(s),s}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let s=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)s=this._updateNodeAfterFilterChange(r,o,i,n&&!e.collapsed)||s,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?s:1===o,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):T(i)?(e.filterData=i.data,I(i.visibility)):(e.filterData=void 0,I(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new x(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new x(this.user,"Invalid tree location");const s=t.children[r];return{node:s,listIndex:i,revealed:n,visible:o&&s.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[r,...s]=e;if(r<0||r>t.children.length)throw new x(this.user,"Invalid tree location");for(let a=0;ae.element))),this.data=e}}function j(e){return e instanceof C.kX?new z(e):e}class U{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.JT.None,this.disposables=new a.SL}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,j(e),t)}onDragOver(e,t,i,n,r=!0){const s=this.dnd.onDragOver(j(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return s;if(a&&"boolean"!==typeof s&&s.autoExpand&&(this.autoExpandDisposable=(0,L.Vg)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof s||!s.accept||"undefined"===typeof s.bubble||s.feedback){if(!r){const e="boolean"===typeof s?s:s.accept,t="boolean"===typeof s?void 0:s.effect;return{accept:e,effect:t,feedback:[i]}}return s}if(1===s.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),s=i.getNode(r),a=r&&i.getListIndex(r);return this.onDragOver(e,s,a,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),u=l.getListRenderCount(c);return{...s,feedback:(0,o.w6)(d,d+u)}}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(j(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}function $(e,t){return t&&{...t,identityProvider:t.identityProvider&&{getId(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new U(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return t.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element})},isSelectionRangeChangeEvent(e){return t.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})}},accessibilityProvider:t.accessibilityProvider&&{...t.accessibilityProvider,getSetSize(t){const i=e(),n=i.getNodeLocation(t),o=i.getParentNodeLocation(n),r=i.getNode(o);return r.visibleChildrenCount},getPosInSet(e){return e.visibleChildIndex+1},isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?e=>t.accessibilityProvider.isChecked(e.element):void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?e=>t.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel(e){return t.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return t.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?()=>t.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:t.accessibilityProvider&&t.accessibilityProvider.getAriaLevel?e=>t.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&(e=>t.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}}}class q{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(O||(O={}));class K{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new a.SL,this.onDidChange=s.ju.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class G{constructor(e,t,i,n,o,r={}){var l;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=G.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.JT.None,this.disposables=new a.SL,this.templateId=e.templateId,this.updateOptions(r),s.ju.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(l=e.onDidChangeTwistieState)||void 0===l||l.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,H.uZ)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==O.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new a.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.R3)(t,(0,n.$)(".monaco-tl-indent")),o=(0,n.R3)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.R3)(t,(0,n.$)(".monaco-tl-contents")),s=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:o,indentGuidesDisposable:a.JT.None,templateData:s}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var o,r;i.indentGuidesDisposable.dispose(),null===(r=(o=this.renderer).disposeElement)||void 0===r||r.call(o,e,t,i.templateData,n),"number"===typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=G.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...M.k.asClassNameArray(P.l.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...M.k.asClassNameArray(P.l.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new a.SL,o=this.modelProvider();while(1){const r=o.getNodeLocation(e),s=o.getParentNodeLocation(r);if(!s)break;const l=o.getNode(s),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add((0,a.OF)((()=>this.renderedIndentGuides.delete(l,c)))),e=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(o){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,a.B9)(this.disposables)}}G.DefaultIndent=8;class Z{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.SL,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"===typeof n?n?1:0:T(n)?I(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:B.CL.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=Array.isArray(n)?n:[n];for(const r of o){const e=r&&r.toString();if("undefined"===typeof e)return{data:B.CL.Default,visibility:i};let t;if(this.tree.findMatchType===Y.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,B.EW)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===o.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===Q.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:B.CL.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,a.B9)(this.disposables)}}w.g4,S.D;var Q,Y;(function(e){e[e["Highlight"]=0]="Highlight",e[e["Filter"]=1]="Filter"})(Q||(Q={})),function(e){e[e["Fuzzy"]=0]="Fuzzy",e[e["Contiguous"]=1]="Contiguous"}(Y||(Y={}));class J{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,o,r={}){var l,c;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=o,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new s.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new s.Q5,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new s.Q5,this._onDidChangeOpenState=new s.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new a.SL,this.disposables=new a.SL,this._mode=null!==(l=e.options.defaultFindMode)&&void 0!==l?l:Q.Highlight,this._matchType=null!==(c=e.options.defaultFindMatchType)&&void 0!==c?c:Y.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const o=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&o?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,V.NC)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===Q.Filter||(this.filter.totalCount>0&&this.filter.matchCount<=1||!B.CL.isDefault(e.filterData))}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function X(e,t){return e.position===t.position&&e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class ee extends a.JT{constructor(e=[]){super(),this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,o.fS)(this.stickyNodes,e.stickyNodes,X)}addDisposable(e){this._register(e)}}class te extends a.JT{get firstVisibleNode(){const e=this.view.firstVisibleIndex;if(!(e<0||e>=this.view.length))return this.view.element(e)}constructor(e,t,i,n,o,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=o,this.maxWidgetViewRatio=.4;const s=this.validateStickySettings(r);this.stickyScrollMaxItemCount=s.stickyScrollMaxItemCount,this._widget=this._register(new ie(i.getScrollableElement(),i,t,n,o)),this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}update(){const e=this.firstVisibleNode;if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[],i=this.view.renderHeight*this.maxWidgetViewRatio;let n=e,o=0,r=this.getNextStickyNode(n,void 0,o);while(r&&o+r.height=this.stickyScrollMaxItemCount)break;if(n=this.getNextVisibleNode(n),!n)break;r=this.getNextStickyNode(n,r.node,o)}return t.length?new ee(t):void 0}getNextVisibleNode(e){const t=this.getNodeIndex(e);if(-1===t||t===this.view.length-1)return;const i=this.view.element(t+1);return i}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),o=t;return this.view.scrollTop===n-o}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:o}=this.getNodeRange(e),r=this.calculateStickyNodePosition(o,t);return{node:e,position:r,height:i,startIndex:n,endIndex:o}}getAncestorUnderPrevious(e,t=void 0){let i=e,n=this.getParentNode(i);while(n){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t){let i=this.view.getRelativeTop(e);if(null===i&&this.view.firstVisibleIndex===e&&e+1r&&t<=s?r:t}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e,t){void 0===t&&(t=this.model.getNodeLocation(e));const i=this.model.getListIndex(t);return i}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");const n=this.model.getListRenderCount(t),o=i+n-1;return{startIndex:i,endIndex:o}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);while(i)t.push(i),i=this.getParentNode(i);let n=0;for(let o=0;o0,o=!!e&&e.count>0;if(!i&&!o||i&&o&&this._previousState.equal(e))return;if(i!==o&&this.setVisible(o),null===(t=this._previousState)||void 0===t||t.dispose(),this._previousState=e,!o)return;for(let n=e.count-1;n>=0;n--){const t=e.stickyNodes[n],i=n?e.stickyNodes[n-1]:void 0,o=i?i.position+i.height:0,{element:r,disposable:s}=this.createElement(t,o);this._rootDomNode.appendChild(r),e.addDisposable(s)}const r=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(r),e.addDisposable((0,a.OF)((()=>r.remove())));const s=e.stickyNodes[e.count-1];this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t){const i=this.model.getNodeLocation(e.node),n=this.model.getListIndex(i),o=document.createElement("div");o.style.top=`${e.position}px`,o.style.height=`${e.height}px`,o.style.lineHeight=`${e.height}px`,o.classList.add("monaco-tree-sticky-row"),o.classList.add("monaco-list-row"),o.setAttribute("data-index",`${n}`),o.setAttribute("data-parity",n%2===0?"even":"odd"),o.setAttribute("id",this.view.getElementID(n));const r=this.treeDelegate.getTemplateId(e.node),s=this.treeRenderers.find((e=>e.templateId===r));if(!s)throw new Error(`No renderer found for template id ${r}`);const l=new Proxy(e.node,{}),c=s.renderTemplate(o);s.renderElement(l,e.startIndex,c,e.height);const d=(0,a.OF)((()=>{s.disposeElement(l,e.startIndex,c,e.height),s.disposeTemplate(c),o.remove()}));return{element:o,disposable:d}}setVisible(e){this._rootDomNode.style.display=e?"block":"none"}dispose(){var e;null===(e=this._previousState)||void 0===e||e.dispose(),this._rootDomNode.remove()}}function ne(e){let t=b.Unknown;return(0,n.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=b.Twistie:(0,n.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=b.Element:(0,n.uU)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=b.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function oe(e,t){t(e),e.children.forEach((e=>oe(e,t)))}class re{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event}set(e,t){!(null===t||void 0===t?void 0:t.__forceEvent)&&(0,o.fS)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>oe(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>oe(e,n)));const o=new Map,r=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>oe(e,r)));const s=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString(),t=i.has(e);if(t){const t=o.get(e);t&&t.visible&&s.push(t)}else s.push(a)}if(this.nodes.length>0&&0===s.length){const e=this.getFirstViewElementWithTrait();e&&s.push(e)}this._set(s,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class se extends l.sx{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.iK)(e.browserEvent.target)||(0,l.cK)(e.browserEvent.target)||(0,l.hD)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,o=(0,l.Et)(e.browserEvent.target);let r=!1;if(r=!!o||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),o)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!o||n)){const i=this.tree.getNodeLocation(t),o=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,o),r&&n)return void(e.browserEvent.isHandledByList=!0)}o||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,l.$B)(e.browserEvent.target)||(0,l.dk)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),o=this.list.getElementTop(n),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=o-r,this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){const t=e.browserEvent.target.classList.contains("monaco-tl-twistie");!t&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}}class ae extends l.aV{constructor(e,t,i,n,o,r,s,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=r,this.anchorTrait=s}createMouseController(e){return new se(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],r=[];let s;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&r.push(e+i),this.anchorTrait.has(t)&&(s=e+i)})),n.length>0&&super.setFocus((0,o.EB)([...super.getFocus(),...n])),r.length>0&&super.setSelection((0,o.EB)([...super.getSelection(),...r])),"number"===typeof s&&super.setAnchor(s)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class le{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return s.ju.filter(s.ju.map(this.view.onMouseDblClick,ne),(e=>e.target!==b.Filter))}get onPointer(){return s.ju.map(this.view.onPointer,ne)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return s.ju.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:Q.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:Y.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,r={}){var c;this._user=e,this._options=r,this.eventBufferer=new s.E7,this.onDidChangeFindOpenState=s.ju.None,this.disposables=new a.SL,this._onWillRefilter=new s.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new s.Q5,this.treeDelegate=new q(i);const d=new s.ZD,u=new s.ZD,h=this.disposables.add(new K(u.event)),g=new F.ri;this.renderers=o.map((e=>new G(e,(()=>this.model),d.event,h,g,r)));for(const n of this.renderers)this.disposables.add(n);let p;r.keyboardNavigationLabelProvider&&(p=new Z(this,r.keyboardNavigationLabelProvider,r.filter),r={...r,filter:p},this.disposables.add(p)),this.focus=new re((()=>this.view.getFocusedElements()[0]),r.identityProvider),this.selection=new re((()=>this.view.getSelectedElements()[0]),r.identityProvider),this.anchor=new re((()=>this.view.getAnchorElement()),r.identityProvider),this.view=new ae(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...$((()=>this.model),r),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,r),d.input=this.model.onDidChangeCollapseState;const f=s.ju.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);f((()=>null),null,this.disposables);const m=this.disposables.add(new s.Q5),_=this.disposables.add(new L.vp(0));if(this.disposables.add(s.ju.any(f,this.focus.onDidChange,this.selection.onDidChange)((()=>{_.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);m.fire([...e.values()])}))}))),u.input=m.event,!1!==r.keyboardSupport){const e=s.ju.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.cK)(e.target))).map((e=>new y.y(e)))));s.ju.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),s.ju.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),s.ju.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(c=r.findWidgetEnabled)||void 0===c||c)&&r.keyboardNavigationLabelProvider&&r.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new J(this,this.model,this.view,p,r.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=s.ju.None,this.onDidChangeFindMatchType=s.ju.None;r.enableStickyScroll&&(this.stickyScrollController=new te(this,this.model,this.view,this.renderers,this.treeDelegate,r)),this.styleElement=(0,n.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===O.Always)}updateOptions(e={}){var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===O.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?this.stickyScrollController=new te(this,this.model,this.view,this.renderers,this.treeDelegate,this._options):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,W.hj)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),e.listBackground&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${e.listBackground}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${e.listBackground}; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e),i=this.model.getNode(t);return i.element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=this.model.setCollapsed(n,!0);if(!o){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=this.model.setCollapsed(n,!1);if(!o){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){var e;(0,a.B9)(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}class ce{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new A(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(e,t){return i.sorter.compare(e.element,t.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=D.$.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=D.$.empty(),i){const n=new Set,o=new Set,r=e=>{var t;if(null===e.element)return;const r=e;if(n.add(r.element),this.nodes.set(r.element,r),this.identityProvider){const e=this.identityProvider.getId(r.element).toString();o.add(e),this.nodesByIdentity.set(e,r)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,r)},s=e=>{var t;if(null===e.element)return;const r=e;if(n.has(r.element)||this.nodes.delete(r.element),this.identityProvider){const e=this.identityProvider.getId(r.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,r)};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:r,onDidDeleteNode:s})}preserveCollapseState(e=D.$.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),D.$.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===v.Collapsed||e.collapsed===v.PreserveOrCollapsed||e.collapsed!==v.Expanded&&e.collapsed!==v.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let n;return n="undefined"===typeof e.collapsed||e.collapsed===v.PreserveOrCollapsed||e.collapsed===v.PreserveOrExpanded?t.collapsed:e.collapsed===v.Collapsed||e.collapsed!==v.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new x(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i),o=this.model.getNode(n);return o.element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function de(e){const t=[e.element],i=e.incompressible||!1;return{element:{elements:t,incompressible:i},children:D.$.map(D.$.from(e.children),de),collapsible:e.collapsible,collapsed:e.collapsed}}function ue(e){const t=[e.element],i=e.incompressible||!1;let n,o;while(1){if([o,n]=D.$.consume(D.$.from(e.children),2),1!==o.length)break;if(o[0].incompressible)break;e=o[0],t.push(e.element)}return{element:{elements:t,incompressible:i},children:D.$.map(D.$.concat(o,n),ue),collapsible:e.collapsible,collapsed:e.collapsed}}function he(e,t=0){let i;return i=the(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function ge(e){return he(e,0)}function pe(e,t,i){return e.element===t?{...e,children:i}:{...e,children:D.$.map(D.$.from(e.children),(e=>pe(e,t,i)))}}const fe=e=>({getId(t){return t.elements.map((t=>e.getId(t).toString())).join("\0")}});class me{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new ce(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=D.$.empty(),i){const n=i.diffIdentityProvider&&fe(i.diffIdentityProvider);if(null===e){const e=D.$.map(t,this.enabled?ue:de);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new x(this.user,"Unknown compressed tree node");const s=this.model.getNode(r),a=this.model.getParentNodeLocation(r),l=this.model.getNode(a),c=ge(s),d=pe(c,e,t),u=(this.enabled?ue:de)(d),h=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,o.fS)(u.element.elements,s.element.elements,h))return void this._setChildren(r,u.children||D.$.empty(),{diffIdentityProvider:n,diffDepth:1});const g=l.children.map((e=>e===s?u:e));this._setChildren(l.element,g,{diffIdentityProvider:n,diffDepth:s.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode(),i=t.children,n=D.$.map(i,ge),o=D.$.map(n,e?ue:de);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,o=e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},r=e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)};this.model.setChildren(e,t,{...i,onDidCreateNode:o,onDidDeleteNode:r})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);return t}}const _e=e=>e[e.length-1];class ve{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new ve(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}function be(e,t){return{splice(i,n,o){t.splice(i,n,o.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}function ye(e,t){return{...t,identityProvider:t.identityProvider&&{getId(i){return t.identityProvider.getId(e(i))}},sorter:t.sorter&&{compare(e,i){return t.sorter.compare(e.elements[0],i.elements[0])}},filter:t.filter&&{filter(i,n){return t.filter.filter(e(i),n)}}}}class we{get onDidSplice(){return s.ju.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return s.ju.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return s.ju.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||_e;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new k((e=>new ve(n,e))),this.model=new me(e,be(this.nodeMapper,t),ye(n,i))}setChildren(e,t=D.$.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var Ce=i(58718),Se=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class xe extends le{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=D.$.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new ce(e,t,i)}}class ke{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){var o,r,s,a;i.compressedTreeNode?null===(r=(o=this.renderer).disposeCompressedElements)||void 0===r||r.call(o,i.compressedTreeNode,t,i.data,n):null===(a=(s=this.renderer).disposeElement)||void 0===a||a.call(s,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}function Le(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(o){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}}}Se([Ce.H],ke.prototype,"compressedTreeNodeProvider",null);class Ee extends xe{constructor(e,t,i,n,o={}){const r=()=>this,s=n.map((e=>new ke(r,e)));super(e,t,i,s,Le(r,o))}setChildren(e,t=D.$.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new we(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var Ne=i(98642);function De(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function Te(e,t){return!!t.parent&&(t.parent===e||Te(e,t.parent))}function Ie(e,t){return e===t||Te(e,t)||Te(t,e)}class Re{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Re(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class Ae{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...M.k.asClassNameArray(P.l.treeItemLoading)),!0):(t.classList.remove(...M.k.asClassNameArray(P.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,r;null===(r=(o=this.renderer).disposeElement)||void 0===r||r.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function Oe(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Pe(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Me extends C.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Fe(e){return e instanceof C.kX?new Me(e):e}class Be{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,Fe(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(Fe(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(Fe(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function He(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new Be(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element})},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})}},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter(t,i){return e.filter.filter(t.element,i)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function We(e,t){t(e),e.children.forEach((e=>We(e,t)))}class Ve{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return s.ju.map(this.tree.onDidChangeFocus,Oe)}get onDidChangeSelection(){return s.ju.map(this.tree.onDidChangeSelection,Oe)}get onMouseDblClick(){return s.ju.map(this.tree.onMouseDblClick,Pe)}get onPointer(){return s.ju.map(this.tree.onPointer,Pe)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new s.Q5,this._onDidChangeNodeSlowState=new s.Q5,this.nodeMapper=new k((e=>new Re(e))),this.disposables=new a.SL,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?v.PreserveOrCollapsed:v.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=De({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,o){const r=new q(i),s=n.map((e=>new Ae(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=He(o)||{};return new xe(e,t,r,s,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,n,o){if("undefined"===typeof this.root.element)throw new x(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch(a){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new x(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){const e=this.tree.getSelection();return e.map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){const e=this.tree.getFocus();return e.map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new x(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.render(e,i,n)}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach(((o,r)=>{!n&&Ie(r,e)&&(n=o.then((()=>this.refreshNode(e,t,i))))})),n)return n;if(e!==this.root){const t=this.tree.getNode(e);if(t.collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),void(e.stale=!0)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await L.jT.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,W.TW)(t))n=Promise.resolve(t);else{const i=(0,L.Vs)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(D.$.empty());try{const o=await n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,Ne.n2)(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,W.TW)(i)?this.processChildren(i):(t=(0,L.PG)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Ne.dL))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const r=new Map,s=new Map;for(const c of e.children)r.set(c.element,c),this.identityProvider&&s.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const a=[],l=o.map((t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=De({element:t,parent:e,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return o&&i.defaultCollapseState===v.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),c=s.get(l);if(c){const e=c.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?c.collapsed?(e.children.forEach((e=>We(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&!c.collapsed&&a.push(e),e}const d=De({element:t,parent:e,id:l,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||o&&d.defaultCollapseState===v.PreserveOrExpanded)&&a.push(d),d}));for(const c of r.values())We(c,(e=>this.nodes.delete(e.element)));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),o=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId(e){return i.diffIdentityProvider.getId(e.element)}}};this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?D.$.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class ze{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new ze(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class je{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...M.k.asClassNameArray(P.l.treeItemLoading)),!0):(t.classList.remove(...M.k.asClassNameArray(P.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,r;null===(r=(o=this.renderer).disposeElement)||void 0===r||r.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var o,r;null===(r=(o=this.renderer).disposeCompressedElements)||void 0===r||r.call(o,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.B9)(this.disposables)}}function Ue(e){const t=e&&He(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}}class $e extends Ve{constructor(e,t,i,n,o,r,s={}){super(e,t,i,o,r,s),this.compressionDelegate=n,this.compressibleNodeMapper=new k((e=>new ze(e))),this.filter=s.filter}createTree(e,t,i,n,o){const r=new q(i),s=n.map((e=>new je(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=Ue(o)||{};return new Ee(e,t,r,s,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const n of e){const e=this.tree.getCompressedTreeNode(n===this.root?null:n);if(e.element)for(const n of e.element.elements)t.add(i(n.element))}return t},o=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const s=this.getSelection();let a=!1;const l=this.getFocus();let c=!1;const d=e=>{const t=e.element;if(t)for(let n=0;n{const t=this.filter.filter(e,1),i=qe(t);if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}function qe(e){return"boolean"===typeof e?e?1:0:T(e)?I(e.visibility):I(e)}class Ke extends le{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t,i){return new ce(e,t,i)}}var Ge=i(47596),Ze=i(46853),Qe=i(37174),Ye=i(29689),Je=i(93753),Xe=i(21881),et=i(15285),tt=i(93962);let it;const nt=globalThis.vscode;if("undefined"!==typeof nt&&"undefined"!==typeof nt.context){const e=nt.context.configuration();if(!e)throw new Error("Sandbox: unable to resolve product configuration from preload script.");it=e.product}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(it=globalThis._VSCODE_PRODUCT_JSON,tt.OB["VSCODE_DEV"]&&Object.assign(it,{nameShort:`${it.nameShort} Dev`,nameLong:`${it.nameLong} Dev`,dataFolderName:`${it.dataFolderName}-dev`,serverDataFolderName:it.serverDataFolderName?`${it.serverDataFolderName}-dev`:void 0}),!it.version){const e=globalThis._VSCODE_PACKAGE_JSON;Object.assign(it,{version:e.version})}}else it={},0===Object.keys(it).length&&Object.assign(it,{version:"1.82.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});const ot=it;var rt=i(39672),st=i(22454),at=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},lt=function(e,t){return function(i,n){t(i,n,e)}};const ct=(0,Xe.yh)("listService");class dt{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const e=new l.wD((0,n.dS)(),"");e.style(st.O2)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,n.H9)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.F8)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.OF)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const ut=new Qe.uy("listScrollAtBoundary","none"),ht=(Qe.Ao.or(ut.isEqualTo("top"),ut.isEqualTo("both")),Qe.Ao.or(ut.isEqualTo("bottom"),ut.isEqualTo("both")),new Qe.uy("listFocus",!0)),gt=new Qe.uy("listSupportsMultiselect",!0),pt=Qe.Ao.and(ht,Qe.Ao.not(Ye.d0)),ft=new Qe.uy("listHasSelectionOrFocus",!1),mt=new Qe.uy("listDoubleSelection",!1),_t=new Qe.uy("listMultiSelection",!1),vt=new Qe.uy("listSelectionNavigation",!1),bt=new Qe.uy("listSupportsFind",!0),yt=new Qe.uy("treeElementCanCollapse",!1),wt=new Qe.uy("treeElementHasParent",!1),Ct=new Qe.uy("treeElementCanExpand",!1),St=new Qe.uy("treeElementHasChild",!1),xt=new Qe.uy("treeFindOpen",!1),kt="listTypeNavigationMode",Lt="listAutomaticKeyboardNavigation";function Et(e,t){const i=e.createScoped(t.getHTMLElement());return ht.bindTo(i),i}function Nt(e,t){const i=ut.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const Dt="workbench.list.multiSelectModifier",Tt="workbench.list.openMode",It="workbench.list.horizontalScrolling",Rt="workbench.list.defaultFindMode",At="workbench.list.typeNavigationMode",Ot="workbench.list.keyboardNavigation",Pt="workbench.list.scrollByPage",Mt="workbench.list.defaultFindMatchType",Ft="workbench.tree.indent",Bt="workbench.tree.renderIndentGuides",Ht="workbench.list.smoothScrolling",Wt="workbench.list.mouseWheelScrollSensitivity",Vt="workbench.list.fastScrollSensitivity",zt="workbench.tree.expandMode",jt="workbench.tree.enableStickyScroll",Ut="workbench.tree.stickyScrollMaxItemCount";function $t(e){return"alt"===e.getValue(Dt)}class qt extends a.JT{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=$t(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this.useAltAsMultipleSelectionModifier=$t(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.Zo)(e)}isSelectionRangeChangeEvent(e){return(0,l.wn)(e)}}function Kt(e,t){var i;const n=e.get(Ge.Ui),o=e.get(et.d),r=new a.SL,s={...t,keyboardNavigationDelegate:{mightProducePrintableCharacter(e){return o.mightProducePrintableCharacter(e)}},smoothScrolling:Boolean(n.getValue(Ht)),mouseWheelScrollSensitivity:n.getValue(Wt),fastScrollSensitivity:n.getValue(Vt),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:r.add(new qt(n)),keyboardNavigationEventFilter:ti(o),scrollByPage:Boolean(n.getValue(Pt))};return[s,r]}let Gt=class extends l.aV{constructor(e,t,i,n,o,r,s,a,l){const c="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(a.getValue(It)),[d,u]=l.invokeFunction(Kt,o);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:c}),this.disposables.add(u),this.contextKeyService=Et(r,this),this.disposables.add(Nt(this.contextKeyService,this)),this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);const h=vt.bindTo(this.contextKeyService);h.set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=ft.bindTo(this.contextKeyService),this.listDoubleSelection=mt.bindTo(this.contextKeyService),this.listMultiSelection=_t.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=$t(a),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(a));let t={};if(e.affectsConfiguration(It)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(It));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Pt)){const e=Boolean(a.getValue(Pt));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ht)){const e=Boolean(a.getValue(Ht));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Wt)){const e=a.getValue(Wt);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Vt)){const e=a.getValue(Vt);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Jt(this,{configurationService:a,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,st.TU)(e):st.O2)}};Gt=at([lt(5,Qe.i6),lt(6,ct),lt(7,Ge.Ui),lt(8,Xe.TG)],Gt);let Zt=class extends h{constructor(e,t,i,n,o,r,s,l,c){const d="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(It)),[u,h]=c.invokeFunction(Kt,o);super(e,t,i,n,{keyboardSupport:!1,...u,horizontalScrolling:d}),this.disposables=new a.SL,this.disposables.add(h),this.contextKeyService=Et(r,this),this.disposables.add(Nt(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);const g=vt.bindTo(this.contextKeyService);g.set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=$t(l),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(l));let t={};if(e.affectsConfiguration(It)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(It));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Pt)){const e=Boolean(l.getValue(Pt));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ht)){const e=Boolean(l.getValue(Ht));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Wt)){const e=l.getValue(Wt);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Vt)){const e=l.getValue(Vt);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Jt(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,st.TU)(e):st.O2)}dispose(){this.disposables.dispose(),super.dispose()}};Zt=at([lt(5,Qe.i6),lt(6,ct),lt(7,Ge.Ui),lt(8,Xe.TG)],Zt);let Qt=class extends _{constructor(e,t,i,n,o,r,s,a,l,c){const d="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(l.getValue(It)),[u,h]=c.invokeFunction(Kt,r);super(e,t,i,n,o,{keyboardSupport:!1,...u,horizontalScrolling:d}),this.disposables.add(h),this.contextKeyService=Et(s,this),this.disposables.add(Nt(this.contextKeyService,this)),this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);const g=vt.bindTo(this.contextKeyService);g.set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=ft.bindTo(this.contextKeyService),this.listDoubleSelection=mt.bindTo(this.contextKeyService),this.listMultiSelection=_t.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=$t(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(l));let t={};if(e.affectsConfiguration(It)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(It));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Pt)){const e=Boolean(l.getValue(Pt));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ht)){const e=Boolean(l.getValue(Ht));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Wt)){const e=l.getValue(Wt);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Vt)){const e=l.getValue(Vt);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Xt(this,{configurationService:l,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,st.TU)(e):st.O2)}dispose(){this.disposables.dispose(),super.dispose()}};Qt=at([lt(6,Qe.i6),lt(7,ct),lt(8,Ge.Ui),lt(9,Xe.TG)],Qt);class Yt extends a.JT{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new s.Q5),this.onDidOpen=this._onDidOpen.event,this._register(s.ju.filter(this.widget.onDidChangeSelection,(e=>(0,n.vd)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(Tt)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Tt)&&(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(Tt)))})))):this.openOnSingleClick=null===(i=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,n="boolean"===typeof t.pinned?t.pinned:!i,o=!1;this._open(this.getSelectedElement(),i,n,o,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;const i=2===t.detail;if(i)return;const n=1===t.button,o=!0,r=n,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,s,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16;if(n)return;const o=!1,r=!0,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,s,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Jt extends Yt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class Xt extends Yt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ei extends Yt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function ti(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let ii=class extends xe{constructor(e,t,i,n,o,r,s,a,l){const{options:c,getTypeNavigationMode:d,disposable:u}=r.invokeFunction(ci,o);super(e,t,i,n,c),this.disposables.add(u),this.internals=new di(this,o,d,o.overrideStyles,s,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};ii=at([lt(5,Xe.TG),lt(6,Qe.i6),lt(7,ct),lt(8,Ge.Ui)],ii);let ni=class extends Ee{constructor(e,t,i,n,o,r,s,a,l){const{options:c,getTypeNavigationMode:d,disposable:u}=r.invokeFunction(ci,o);super(e,t,i,n,c),this.disposables.add(u),this.internals=new di(this,o,d,o.overrideStyles,s,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ni=at([lt(5,Xe.TG),lt(6,Qe.i6),lt(7,ct),lt(8,Ge.Ui)],ni);let oi=class extends Ke{constructor(e,t,i,n,o,r,s,a,l,c){const{options:d,getTypeNavigationMode:u,disposable:h}=s.invokeFunction(ci,r);super(e,t,i,n,o,d),this.disposables.add(h),this.internals=new di(this,r,u,r.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};oi=at([lt(6,Xe.TG),lt(7,Qe.i6),lt(8,ct),lt(9,Ge.Ui)],oi);let ri=class extends Ve{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,r,s,a,l,c){const{options:d,getTypeNavigationMode:u,disposable:h}=s.invokeFunction(ci,r);super(e,t,i,n,o,d),this.disposables.add(h),this.internals=new di(this,r,u,r.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ri=at([lt(6,Xe.TG),lt(7,Qe.i6),lt(8,ct),lt(9,Ge.Ui)],ri);let si=class extends $e{constructor(e,t,i,n,o,r,s,a,l,c,d){const{options:u,getTypeNavigationMode:h,disposable:g}=a.invokeFunction(ci,s);super(e,t,i,n,o,r,u),this.disposables.add(g),this.internals=new di(this,s,h,s.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function ai(e){const t=e.getValue(Rt);if("highlight"===t)return Q.Highlight;if("filter"===t)return Q.Filter;const i=e.getValue(Ot);return"simple"===i||"highlight"===i?Q.Highlight:"filter"===i?Q.Filter:void 0}function li(e){const t=e.getValue(Mt);return"fuzzy"===t?Y.Fuzzy:"contiguous"===t?Y.Contiguous:void 0}function ci(e,t){var i;const n=e.get(Ge.Ui),o=e.get(Je.u),r=e.get(Qe.i6),s=e.get(Xe.TG),a=()=>{const e=r.getContextKeyValue(kt);if("automatic"===e)return l.AA.Automatic;if("trigger"===e)return l.AA.Trigger;const t=r.getContextKeyValue(Lt);if(!1===t)return l.AA.Trigger;const i=n.getValue(At);return"automatic"===i?l.AA.Automatic:"trigger"===i?l.AA.Trigger:void 0},c=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(It)),[d,u]=s.invokeFunction(Kt,t),h=t.paddingBottom,g=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(Bt);return{getTypeNavigationMode:a,disposable:u,options:{keyboardSupport:!1,...d,indent:"number"===typeof n.getValue(Ft)?n.getValue(Ft):void 0,renderIndentGuides:g,smoothScrolling:Boolean(n.getValue(Ht)),defaultFindMode:ai(n),defaultFindMatchType:li(n),horizontalScrolling:c,scrollByPage:Boolean(n.getValue(Pt)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(zt),contextViewProvider:o,findWidgetStyles:st.uX,enableStickyScroll:Boolean(n.getValue(jt)),stickyScrollMaxItemCount:Number(n.getValue(Ut))}}}si=at([lt(7,Xe.TG),lt(8,Qe.i6),lt(9,ct),lt(10,Ge.Ui)],si);let di=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,r,s){var a;this.tree=e,this.disposables=[],this.contextKeyService=Et(o,e),this.disposables.push(Nt(this.contextKeyService,e)),this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);const l=vt.bindTo(this.contextKeyService);l.set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=bt.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=ft.bindTo(this.contextKeyService),this.hasDoubleSelection=mt.bindTo(this.contextKeyService),this.hasMultiSelection=_t.bindTo(this.contextKeyService),this.treeElementCanCollapse=yt.bindTo(this.contextKeyService),this.treeElementHasParent=wt.bindTo(this.contextKeyService),this.treeElementCanExpand=Ct.bindTo(this.contextKeyService),this.treeElementHasChild=St.bindTo(this.contextKeyService),this.treeFindOpen=xt.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=$t(s),this.updateStyleOverrides(n);const c=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},d=new Set;d.add(kt),d.add(Lt),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),c()})),e.onDidChangeCollapseState(c),e.onDidChangeModel(c),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),s.onDidChangeConfiguration((n=>{let o={};if(n.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(s)),n.affectsConfiguration(Ft)){const e=s.getValue(Ft);o={...o,indent:e}}if(n.affectsConfiguration(Bt)&&void 0===t.renderIndentGuides){const e=s.getValue(Bt);o={...o,renderIndentGuides:e}}if(n.affectsConfiguration(Ht)){const e=Boolean(s.getValue(Ht));o={...o,smoothScrolling:e}}if(n.affectsConfiguration(Rt)||n.affectsConfiguration(Ot)){const e=ai(s);o={...o,defaultFindMode:e}}if(n.affectsConfiguration(At)||n.affectsConfiguration(Ot)){const e=i();o={...o,typeNavigationMode:e}}if(n.affectsConfiguration(Mt)){const e=li(s);o={...o,defaultFindMatchType:e}}if(n.affectsConfiguration(It)&&void 0===t.horizontalScrolling){const e=Boolean(s.getValue(It));o={...o,horizontalScrolling:e}}if(n.affectsConfiguration(Pt)){const e=Boolean(s.getValue(Pt));o={...o,scrollByPage:e}}if(n.affectsConfiguration(zt)&&void 0===t.expandOnlyOnTwistieClick&&(o={...o,expandOnlyOnTwistieClick:"doubleClick"===s.getValue(zt)}),n.affectsConfiguration(jt)){const e=s.getValue(jt);o={...o,enableStickyScroll:e}}if(n.affectsConfiguration(Ut)){const e=Math.max(1,s.getValue(Ut));o={...o,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(Wt)){const e=s.getValue(Wt);o={...o,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(Vt)){const e=s.getValue(Vt);o={...o,fastScrollSensitivity:e}}Object.keys(o).length>0&&e.updateOptions(o)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new ei(e,{configurationService:s,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,st.TU)(e):st.O2)}dispose(){this.disposables=(0,a.B9)(this.disposables)}};di=at([lt(4,Qe.i6),lt(5,ct),lt(6,Ge.Ui)],di);const ui=rt.B.as(Ze.IP.Configuration);ui.registerConfiguration({id:"workbench",order:7,title:(0,V.NC)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Dt]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,V.NC)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,V.NC)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,V.NC)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[Tt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,V.NC)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[It]:{type:"boolean",default:!1,description:(0,V.NC)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Pt]:{type:"boolean",default:!1,description:(0,V.NC)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[Ft]:{type:"number",default:8,minimum:4,maximum:40,description:(0,V.NC)("tree indent setting","Controls tree indentation in pixels.")},[Bt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,V.NC)("render tree indent guides","Controls whether the tree should render indent guides.")},[Ht]:{type:"boolean",default:!1,description:(0,V.NC)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Wt]:{type:"number",default:1,markdownDescription:(0,V.NC)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Vt]:{type:"number",default:5,markdownDescription:(0,V.NC)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[Rt]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,V.NC)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,V.NC)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,V.NC)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[Ot]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,V.NC)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,V.NC)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,V.NC)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,V.NC)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,V.NC)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Mt]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,V.NC)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,V.NC)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,V.NC)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[zt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,V.NC)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[jt]:{type:"boolean",default:"string"===typeof ot.quality&&"stable"!==ot.quality,description:(0,V.NC)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[Ut]:{type:"number",minimum:1,default:7,markdownDescription:(0,V.NC)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[At]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,V.NC)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},23034:(e,t,i)=>{"use strict";i.d(t,{VZ:()=>a,in:()=>l,kw:()=>u,qA:()=>h});var n=i(11271),o=i(70959),r=i(37174),s=i(21881);const a=(0,s.yh)("logService");var l;(function(e){e[e["Off"]=0]="Off",e[e["Trace"]=1]="Trace",e[e["Debug"]=2]="Debug",e[e["Info"]=3]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=5]="Error"})(l||(l={}));const c=l.Info;class d extends o.JT{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new n.Q5),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==l.Off&&this.level<=e}}class u extends d{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(l.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(l.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(l.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(l.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(l.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class h extends d{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose()}}function g(e){switch(e){case l.Trace:return"trace";case l.Debug:return"debug";case l.Info:return"info";case l.Warning:return"warn";case l.Error:return"error";case l.Off:return"off"}}new r.uy("logLevel",g(l.Info))},48580:(e,t,i)=>{"use strict";i.d(t,{H0:()=>o,ZL:()=>n,lT:()=>l});var n,o,r=i(72235),s=i(25206),a=i(21881);(function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"})(n||(n={})),function(e){function t(e,t){return t-e}e.compare=t;const i=Object.create(null);function n(e){return i[e]||""}function o(t){switch(t){case r.Z.Error:return e.Error;case r.Z.Warning:return e.Warning;case r.Z.Info:return e.Info;case r.Z.Ignore:return e.Hint}}function a(t){switch(t){case e.Error:return r.Z.Error;case e.Warning:return r.Z.Warning;case e.Info:return r.Z.Info;case e.Hint:return r.Z.Ignore}}i[e.Error]=(0,s.NC)("sev.error","Error"),i[e.Warning]=(0,s.NC)("sev.warning","Warning"),i[e.Info]=(0,s.NC)("sev.info","Info"),e.toString=n,e.fromSeverity=o,e.toSeverity=a}(n||(n={})),function(e){const t="";function i(e){return o(e,!0)}function o(e,i){const o=[t];return e.source?o.push(e.source.replace("¦","\\¦")):o.push(t),e.code?"string"===typeof e.code?o.push(e.code.replace("¦","\\¦")):o.push(e.code.value.replace("¦","\\¦")):o.push(t),void 0!==e.severity&&null!==e.severity?o.push(n.toString(e.severity)):o.push(t),e.message&&i?o.push(e.message.replace("¦","\\¦")):o.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?o.push(e.startLineNumber.toString()):o.push(t),void 0!==e.startColumn&&null!==e.startColumn?o.push(e.startColumn.toString()):o.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?o.push(e.endLineNumber.toString()):o.push(t),void 0!==e.endColumn&&null!==e.endColumn?o.push(e.endColumn.toString()):o.push(t),o.push(t),o.join("¦")}e.makeKey=i,e.makeKeyOptionalMessage=o}(o||(o={}));const l=(0,a.yh)("markerService")},18736:(e,t,i)=>{"use strict";i.d(t,{EO:()=>a,lT:()=>s,zb:()=>r});var n=i(72235),o=i(21881),r=n.Z;const s=(0,o.yh)("notificationService");class a{}},6544:(e,t,i)=>{"use strict";i.d(t,{v:()=>o,x:()=>r});var n=i(21881);const o=(0,n.yh)("openerService");function r(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},34679:(e,t,i)=>{"use strict";i.d(t,{Ex:()=>r,R9:()=>o,ek:()=>s});var n=i(21881);const o=(0,n.yh)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}r.None=Object.freeze({report(){}});const s=(0,n.yh)("editorProgressService")},84475:(e,t,i)=>{"use strict";i.d(t,{IP:()=>a,Ry:()=>n});var n,o=i(21921),r=i(70959),s=i(39672);(function(e){e[e["PRESERVE"]=0]="PRESERVE",e[e["LAST"]=1]="LAST"})(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};class l{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,r.OF)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,o.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){const t=e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0;return t||this.defaultProvider}}s.B.add(a.Quickaccess,new l)},45726:(e,t,i)=>{"use strict";i.d(t,{Jq:()=>r,X5:()=>o,eJ:()=>l,jG:()=>s});var n=i(21881);const o={ctrlCmd:!1,alt:!1};var r,s;(function(e){e[e["Blur"]=1]="Blur",e[e["Gesture"]=2]="Gesture",e[e["Other"]=3]="Other"})(r||(r={})),function(e){e[e["NONE"]=0]="NONE",e[e["FIRST"]=1]="FIRST",e[e["SECOND"]=2]="SECOND",e[e["LAST"]=3]="LAST"}(s||(s={}));class a{constructor(e){this.options=e}}new a;const l=(0,n.yh)("quickInputService")},39672:(e,t,i)=>{"use strict";i.d(t,{B:()=>s});var n=i(65662),o=i(55455);class r{constructor(){this.data=new Map}add(e,t){n.ok(o.HD(e)),n.ok(o.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const s=new r},92601:(e,t,i)=>{"use strict";i.d(t,{Uy:()=>p,vm:()=>v,fk:()=>f});var n,o,r=i(11271),s=i(70959),a=i(55455),l=i(85398),c=i(79247);(function(e){e[e["STORAGE_DOES_NOT_EXIST"]=0]="STORAGE_DOES_NOT_EXIST",e[e["STORAGE_IN_MEMORY"]=1]="STORAGE_IN_MEMORY"})(n||(n={})),function(e){e[e["None"]=0]="None",e[e["Initialized"]=1]="Initialized",e[e["Closed"]=2]="Closed"}(o||(o={}));class d extends s.JT{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.K3),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=o.None,this.cache=new Map,this.flushDelayer=this._register(new l.rH(d.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===o.Closed)return;let i=!1;if((0,a.Jp)(t))i=this.cache.delete(e);else{const n=this.cache.get(e);n!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.Jp)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===o.Closed)return;if((0,a.Jp)(t))return this.delete(e,i);const n=(0,a.Kn)(t)||Array.isArray(t)?(0,c.Pz)(t):String(t),r=this.cache.get(e);return r!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===o.Closed)return;const i=this.cache.delete(e);return i?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)while(this.whenFlushedCallbacks.length)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===n.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}d.DEFAULT_FLUSH_DELAY=100;class u{constructor(){this.onDidChangeItemsExternal=r.ju.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}var h=i(21881);const g="__$__targetStorageMarker",p=(0,h.yh)("storageService");var f;function m(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(f||(f={}));class _ extends s.JT{constructor(e={flushInterval:_.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.K3),this._onDidChangeTarget=this._register(new r.K3),this._onWillSaveState=this._register(new r.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.ju.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n,o=!1){(0,a.Jp)(t)?this.remove(e,i,o):this.withPausedEmitters((()=>{var r;this.updateKeyTarget(e,i,n),null===(r=this.getStorage(i))||void 0===r||r.set(e,t,o)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,n=!1){var o,r;const s=this.getKeyTargets(t);"number"===typeof i?s[e]!==i&&(s[e]=i,null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(s),n)):"number"===typeof s[e]&&(delete s[e],null===(r=this.getStorage(t))||void 0===r||r.set(g,JSON.stringify(s),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?m(t):Object.create(null)}}_.DEFAULT_FLUSH_INTERVAL=6e4;class v extends _{constructor(){super(),this.applicationStorage=this._register(new d(new u,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new d(new u,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new d(new u,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},38857:(e,t,i)=>{"use strict";i.d(t,{b:()=>o});var n=i(21881);const o=(0,n.yh)("telemetryService")},22454:(e,t,i)=>{"use strict";i.d(t,{BM:()=>f,Hc:()=>d,O2:()=>g,TU:()=>p,ZR:()=>m,b5:()=>l,eO:()=>s,ku:()=>h,pl:()=>c,uX:()=>u,wG:()=>a});var n=i(47277),o=i(60204);function r(e,t){const i={...t};for(const o in e){const t=e[o];i[o]=void 0!==t?(0,n.n_1)(t):void 0}return i}const s={keybindingLabelBackground:(0,n.n_1)(n.oQ$),keybindingLabelForeground:(0,n.n_1)(n.lWp),keybindingLabelBorder:(0,n.n_1)(n.AWI),keybindingLabelBottomBorder:(0,n.n_1)(n.K19),keybindingLabelShadow:(0,n.n_1)(n.rh)},a={buttonForeground:(0,n.n_1)(n.j5u),buttonSeparator:(0,n.n_1)(n.iFQ),buttonBackground:(0,n.n_1)(n.b7$),buttonHoverBackground:(0,n.n_1)(n.GO4),buttonSecondaryForeground:(0,n.n_1)(n.qBU),buttonSecondaryBackground:(0,n.n_1)(n.ESD),buttonSecondaryHoverBackground:(0,n.n_1)(n.xEn),buttonBorder:(0,n.n_1)(n.GYc)},l={progressBarBackground:(0,n.n_1)(n.zRJ)},c={inputActiveOptionBorder:(0,n.n_1)(n.PRb),inputActiveOptionForeground:(0,n.n_1)(n.Pvw),inputActiveOptionBackground:(0,n.n_1)(n.XEs)},d=((0,n.n_1)(n.SUp),(0,n.n_1)(n.nd),(0,n.n_1)(n.BQ0),(0,n.n_1)(n.D0T),(0,n.n_1)(n.Hfx),(0,n.n_1)(n.rh),(0,n.n_1)(n.lRK),(0,n.n_1)(n.JpG),(0,n.n_1)(n.BOY),(0,n.n_1)(n.OLZ),(0,n.n_1)(n.url),{inputBackground:(0,n.n_1)(n.sEe),inputForeground:(0,n.n_1)(n.zJb),inputBorder:(0,n.n_1)(n.dt_),inputValidationInfoBorder:(0,n.n_1)(n.EPQ),inputValidationInfoBackground:(0,n.n_1)(n._lC),inputValidationInfoForeground:(0,n.n_1)(n.YI3),inputValidationWarningBorder:(0,n.n_1)(n.C3g),inputValidationWarningBackground:(0,n.n_1)(n.RV_),inputValidationWarningForeground:(0,n.n_1)(n.SUG),inputValidationErrorBorder:(0,n.n_1)(n.OZR),inputValidationErrorBackground:(0,n.n_1)(n.paE),inputValidationErrorForeground:(0,n.n_1)(n._t9)}),u={listFilterWidgetBackground:(0,n.n_1)(n.vGG),listFilterWidgetOutline:(0,n.n_1)(n.oSI),listFilterWidgetNoMatchesOutline:(0,n.n_1)(n.Saq),listFilterWidgetShadow:(0,n.n_1)(n.y65),inputBoxStyles:d,toggleStyles:c},h={badgeBackground:(0,n.n_1)(n.g8u),badgeForeground:(0,n.n_1)(n.qeD),badgeBorder:(0,n.n_1)(n.lRK)},g=((0,n.n_1)(n.ixd),(0,n.n_1)(n.l80),(0,n.n_1)(n.H6q),(0,n.n_1)(n.H6q),(0,n.n_1)(n.fSI),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.n_1)(n._bK),listFocusForeground:(0,n.n_1)(n._2n),listFocusOutline:(0,n.n_1)(n.Oop),listActiveSelectionBackground:(0,n.n_1)(n.dCr),listActiveSelectionForeground:(0,n.n_1)(n.M6C),listActiveSelectionIconForeground:(0,n.n_1)(n.Tnx),listFocusAndSelectionOutline:(0,n.n_1)(n.Bqu),listFocusAndSelectionBackground:(0,n.n_1)(n.dCr),listFocusAndSelectionForeground:(0,n.n_1)(n.M6C),listInactiveSelectionBackground:(0,n.n_1)(n.rg2),listInactiveSelectionIconForeground:(0,n.n_1)(n.kvU),listInactiveSelectionForeground:(0,n.n_1)(n.ytC),listInactiveFocusBackground:(0,n.n_1)(n.s$),listInactiveFocusOutline:(0,n.n_1)(n.F3d),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listDropBackground:(0,n.n_1)(n.AS1),listSelectionOutline:(0,n.n_1)(n.xL1),listHoverOutline:(0,n.n_1)(n.xL1),treeIndentGuidesStroke:(0,n.n_1)(n.UnT),treeInactiveIndentGuidesStroke:(0,n.n_1)(n.KjV),tableColumnsBorder:(0,n.n_1)(n.uxu),tableOddRowsBackgroundColor:(0,n.n_1)(n.EQn)});function p(e){return r(e,g)}const f={selectBackground:(0,n.n_1)(n.XV0),selectListBackground:(0,n.n_1)(n.Fgs),selectForeground:(0,n.n_1)(n._g0),decoratorRightForeground:(0,n.n_1)(n.kJk),selectBorder:(0,n.n_1)(n.a9O),focusBorder:(0,n.n_1)(n.R80),listFocusBackground:(0,n.n_1)(n.Vqd),listInactiveSelectionIconForeground:(0,n.n_1)(n.cbQ),listFocusForeground:(0,n.n_1)(n.NPS),listFocusOutline:(0,n.BtC)(n.xL1,o.Il.transparent.toString()),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listHoverOutline:(0,n.n_1)(n.xL1),selectListBorder:(0,n.n_1)(n.D1_),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,n.n_1)(n.rh),borderColor:(0,n.n_1)(n.Cdg),foregroundColor:(0,n.n_1)(n.DEr),backgroundColor:(0,n.n_1)(n.Hz8),selectionForegroundColor:(0,n.n_1)(n.jbW),selectionBackgroundColor:(0,n.n_1)(n.$DX),selectionBorderColor:(0,n.n_1)(n.E3h),separatorColor:(0,n.n_1)(n.ZGJ),scrollbarShadow:(0,n.n_1)(n._wn),scrollbarSliderBackground:(0,n.n_1)(n.etL),scrollbarSliderHoverBackground:(0,n.n_1)(n.ABB),scrollbarSliderActiveBackground:(0,n.n_1)(n.ynu)}},47277:(e,t,i)=>{"use strict";i.d(t,{$DX:()=>Pt,$d5:()=>ht,A42:()=>k,ABB:()=>ne,AS1:()=>gt,AWI:()=>Le,BOY:()=>di,BQ0:()=>kt,Bqu:()=>it,BtC:()=>h,C3g:()=>F,CNo:()=>He,Cdg:()=>It,CzK:()=>Ke,D0T:()=>fe,D1_:()=>_e,DEr:()=>Rt,Dut:()=>he,E3h:()=>Mt,EPQ:()=>O,EQn:()=>St,ES4:()=>Te,ESD:()=>Y,EiJ:()=>Me,F3d:()=>dt,F9q:()=>Je,Fgs:()=>z,Fm_:()=>Xt,GO4:()=>G,GYc:()=>Z,Gj_:()=>si,Gvr:()=>oi,Gwp:()=>pt,H6q:()=>Vt,HCL:()=>$e,Hfx:()=>me,Hz8:()=>At,IPX:()=>g,IYc:()=>ii,Ido:()=>v,Itd:()=>li,Ivo:()=>ri,JpG:()=>ci,K19:()=>Ee,KjV:()=>wt,M6C:()=>ot,MUv:()=>Ae,NOs:()=>pe,NPS:()=>Nt,Ng6:()=>ve,OLZ:()=>ui,OZR:()=>W,Oop:()=>tt,P4M:()=>Qe,P6G:()=>m,P6Y:()=>Ye,PRb:()=>D,PX0:()=>ft,PpC:()=>ze,Pvw:()=>I,QO2:()=>d,R80:()=>y,RV_:()=>P,Rzx:()=>Ie,SPM:()=>ei,SUG:()=>M,SUY:()=>ti,SUp:()=>xt,Saq:()=>vt,T83:()=>ue,Tnx:()=>rt,UnT:()=>yt,VVv:()=>Ve,Vqd:()=>Tt,XEs:()=>T,XV0:()=>V,XZx:()=>b,YI3:()=>A,ZGJ:()=>Ft,ZnX:()=>fi,_2n:()=>et,_Yy:()=>We,_bK:()=>Xe,_g0:()=>j,_lC:()=>R,_t9:()=>H,_wn:()=>te,a9O:()=>U,b6y:()=>ae,b7$:()=>K,bKB:()=>Ue,c63:()=>de,cbQ:()=>Dt,cvW:()=>ge,dCr:()=>nt,dRz:()=>_,dt_:()=>N,etL:()=>ie,fSI:()=>zt,g8u:()=>X,gkn:()=>Fe,hEj:()=>Ne,hX8:()=>je,iFQ:()=>q,ixd:()=>Wt,j5u:()=>$,jUe:()=>Oe,jbW:()=>Ot,kJk:()=>Ce,kVY:()=>ai,keg:()=>Ge,kvU:()=>lt,kwl:()=>mi,l80:()=>Ht,lRK:()=>w,lUq:()=>Bt,lWp:()=>ke,lXJ:()=>se,loF:()=>we,mV1:()=>ut,n_1:()=>u,nd:()=>Lt,nyM:()=>Re,oQ$:()=>xe,oSI:()=>_t,opG:()=>Se,ov3:()=>ni,pW3:()=>ce,paE:()=>B,phM:()=>qe,pnM:()=>Pe,qBU:()=>Q,qeD:()=>ee,rg2:()=>st,rh:()=>x,s$:()=>ct,sEe:()=>L,tZ6:()=>ye,uoC:()=>le,url:()=>S,uxu:()=>Ct,vGG:()=>mt,xEn:()=>J,xL1:()=>C,y65:()=>bt,yJx:()=>Be,yb5:()=>De,ynu:()=>oe,ypS:()=>Ze,ytC:()=>at,zJb:()=>E,zKr:()=>be,zRJ:()=>re});var n=i(85398),o=i(60204),r=i(11271),s=i(65662),a=i(25206),l=i(62478),c=i(39672);function d(e){return`--vscode-${e.replace(/\./g,"-")}`}function u(e){return`var(${d(e)})`}function h(e,t){return`var(${d(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};class p{constructor(){this._onDidChangeSchema=new r.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){const r={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=r;const s={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const e=i.defaults[t.type];return bi(e,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)};return Object.keys(this.colorsById).sort(e).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}}const f=new p;function m(e,t,i,n,o){return f.registerColor(e,t,i,n,o)}c.B.add(g.ColorContribution,f);const _=m("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("foreground","Overall foreground color. This color is only used if not overridden by a component.")),v=(m("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},a.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),m("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."))),b=(m("descriptionForeground",{light:"#717171",dark:fi(_,.7),hcDark:fi(_,.7),hcLight:fi(_,.7)},a.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),m("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("iconForeground","The default color for icons in the workbench."))),y=m("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},a.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=m("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},a.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),C=m("contrastActiveBorder",{light:null,dark:null,hcDark:y,hcLight:y},a.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),S=(m("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),m("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:o.Il.black,hcLight:"#292929"},a.NC("textSeparatorForeground","Color for text separators.")),m("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkForeground","Foreground color for links in text."))),x=(m("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),m("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},a.NC("textPreformatForeground","Foreground color for preformatted text segments.")),m("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},a.NC("textPreformatBackground","Background color for preformatted text segments.")),m("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},a.NC("textBlockQuoteBackground","Background color for block quotes in text.")),m("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:o.Il.white,hcLight:"#292929"},a.NC("textBlockQuoteBorder","Border color for block quotes in text.")),m("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:o.Il.black,hcLight:"#F2F2F2"},a.NC("textCodeBlockBackground","Background color for code blocks in text.")),m("widget.shadow",{dark:fi(o.Il.black,.36),light:fi(o.Il.black,.16),hcDark:null,hcLight:null},a.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),k=m("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("widgetBorder","Border color of widgets such as find/replace inside the editor.")),L=m("input.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputBoxBackground","Input box background.")),E=m("input.foreground",{dark:_,light:_,hcDark:_,hcLight:_},a.NC("inputBoxForeground","Input box foreground.")),N=m("input.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("inputBoxBorder","Input box border.")),D=m("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},a.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),T=(m("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("inputOption.hoverBackground","Background color of activated options in input fields.")),m("inputOption.activeBackground",{dark:fi(y,.4),light:fi(y,.2),hcDark:o.Il.transparent,hcLight:o.Il.transparent},a.NC("inputOption.activeBackground","Background hover color of options in input fields."))),I=m("inputOption.activeForeground",{dark:o.Il.white,light:o.Il.black,hcDark:_,hcLight:_},a.NC("inputOption.activeForeground","Foreground color of activated options in input fields.")),R=(m("input.placeholderForeground",{light:fi(_,.5),dark:fi(_,.5),hcDark:fi(_,.7),hcLight:fi(_,.7)},a.NC("inputPlaceholderForeground","Input box foreground color for placeholder text.")),m("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationInfoBackground","Input validation background color for information severity."))),A=m("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:_},a.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),O=m("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},a.NC("inputValidationInfoBorder","Input validation border color for information severity.")),P=m("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),M=m("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:_},a.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),F=m("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},a.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),B=m("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationErrorBackground","Input validation background color for error severity.")),H=m("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:_},a.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),W=m("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},a.NC("inputValidationErrorBorder","Input validation border color for error severity.")),V=m("dropdown.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("dropdownBackground","Dropdown background.")),z=m("dropdown.listBackground",{dark:null,light:null,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("dropdownListBackground","Dropdown list background.")),j=m("dropdown.foreground",{dark:"#F0F0F0",light:_,hcDark:o.Il.white,hcLight:_},a.NC("dropdownForeground","Dropdown foreground.")),U=m("dropdown.border",{dark:V,light:"#CECECE",hcDark:w,hcLight:w},a.NC("dropdownBorder","Dropdown border.")),$=m("button.foreground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:o.Il.white},a.NC("buttonForeground","Button foreground color.")),q=m("button.separator",{dark:fi($,.4),light:fi($,.4),hcDark:fi($,.4),hcLight:fi($,.4)},a.NC("buttonSeparator","Button separator color.")),K=m("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},a.NC("buttonBackground","Button background color.")),G=m("button.hoverBackground",{dark:pi(K,.2),light:gi(K,.2),hcDark:K,hcLight:K},a.NC("buttonHoverBackground","Button background color when hovering.")),Z=m("button.border",{dark:w,light:w,hcDark:w,hcLight:w},a.NC("buttonBorder","Button border color.")),Q=m("button.secondaryForeground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:_},a.NC("buttonSecondaryForeground","Secondary button foreground color.")),Y=m("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:o.Il.white},a.NC("buttonSecondaryBackground","Secondary button background color.")),J=m("button.secondaryHoverBackground",{dark:pi(Y,.2),light:gi(Y,.2),hcDark:null,hcLight:null},a.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),X=m("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:o.Il.black,hcLight:"#0F4A85"},a.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ee=m("badge.foreground",{dark:o.Il.white,light:"#333",hcDark:o.Il.white,hcLight:o.Il.white},a.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),te=m("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},a.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ie=m("scrollbarSlider.background",{dark:o.Il.fromHex("#797979").transparent(.4),light:o.Il.fromHex("#646464").transparent(.4),hcDark:fi(w,.6),hcLight:fi(w,.4)},a.NC("scrollbarSliderBackground","Scrollbar slider background color.")),ne=m("scrollbarSlider.hoverBackground",{dark:o.Il.fromHex("#646464").transparent(.7),light:o.Il.fromHex("#646464").transparent(.7),hcDark:fi(w,.8),hcLight:fi(w,.8)},a.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),oe=m("scrollbarSlider.activeBackground",{dark:o.Il.fromHex("#BFBFBF").transparent(.4),light:o.Il.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},a.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),re=m("progressBar.background",{dark:o.Il.fromHex("#0E70C0"),light:o.Il.fromHex("#0E70C0"),hcDark:w,hcLight:w},a.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),se=(m("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("editorError.foreground","Foreground color of error squigglies in the editor."))),ae=m("editorError.border",{dark:null,light:null,hcDark:o.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},a.NC("errorBorder","If set, color of double underlines for errors in the editor.")),le=(m("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},a.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor."))),ce=m("editorWarning.border",{dark:null,light:null,hcDark:o.Il.fromHex("#FFCC00").transparent(.8),hcLight:o.Il.fromHex("#FFCC00").transparent(.8)},a.NC("warningBorder","If set, color of double underlines for warnings in the editor.")),de=(m("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},a.NC("editorInfo.foreground","Foreground color of info squigglies in the editor."))),ue=m("editorInfo.border",{dark:null,light:null,hcDark:o.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},a.NC("infoBorder","If set, color of double underlines for infos in the editor.")),he=m("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},a.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ge=(m("editorHint.border",{dark:null,light:null,hcDark:o.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},a.NC("hintBorder","If set, color of double underlines for hints in the editor.")),m("sash.hoverBorder",{dark:y,light:y,hcDark:y,hcLight:y},a.NC("sashActiveBorder","Border color of active sashes.")),m("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("editorBackground","Editor background color."))),pe=m("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Il.white,hcLight:_},a.NC("editorForeground","Editor default foreground color.")),fe=(m("editorStickyScroll.background",{light:ge,dark:ge,hcDark:ge,hcLight:ge},a.NC("editorStickyScrollBackground","Sticky scroll background color for the editor")),m("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor")),m("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Il.white},a.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),me=m("editorWidget.foreground",{dark:_,light:_,hcDark:_,hcLight:_},a.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),_e=m("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},a.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ve=m("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),be=m("quickInput.background",{dark:fe,light:fe,hcDark:fe,hcLight:fe},a.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ye=m("quickInput.foreground",{dark:me,light:me,hcDark:me,hcLight:me},a.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),we=m("quickInputTitle.background",{dark:new o.Il(new o.VS(255,255,255,.105)),light:new o.Il(new o.VS(0,0,0,.06)),hcDark:"#000000",hcLight:o.Il.white},a.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),Ce=m("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:o.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupForeground","Quick picker color for grouping labels.")),Se=m("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:o.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupBorder","Quick picker color for grouping borders.")),xe=m("keybindingLabel.background",{dark:new o.Il(new o.VS(128,128,128,.17)),light:new o.Il(new o.VS(221,221,221,.4)),hcDark:o.Il.transparent,hcLight:o.Il.transparent},a.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ke=m("keybindingLabel.foreground",{dark:o.Il.fromHex("#CCCCCC"),light:o.Il.fromHex("#555555"),hcDark:o.Il.white,hcLight:_},a.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),Le=m("keybindingLabel.border",{dark:new o.Il(new o.VS(51,51,51,.6)),light:new o.Il(new o.VS(204,204,204,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:w},a.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Ee=m("keybindingLabel.bottomBorder",{dark:new o.Il(new o.VS(68,68,68,.6)),light:new o.Il(new o.VS(187,187,187,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:_},a.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ne=m("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},a.NC("editorSelectionBackground","Color of the editor selection.")),De=m("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Il.white},a.NC("editorSelectionForeground","Color of the selected text for high contrast.")),Te=m("editor.inactiveSelectionBackground",{light:fi(Ne,.5),dark:fi(Ne,.5),hcDark:fi(Ne,.7),hcLight:fi(Ne,.5)},a.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=m("editor.selectionHighlightBackground",{light:vi(Ne,ge,.3,.6),dark:vi(Ne,ge,.3,.6),hcDark:null,hcLight:null},a.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Re=(m("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),m("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},a.NC("editorFindMatch","Color of the current search match."))),Ae=m("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},a.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Oe=m("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},a.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Pe=m("editor.findMatchBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorFindMatchBorder","Border color of the current search match.")),Me=m("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("findMatchHighlightBorder","Border color of the other search matches.")),Fe=m("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:fi(C,.4),hcLight:fi(C,.4)},a.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Be=(m("searchEditor.findMatchBackground",{light:fi(Ae,.66),dark:fi(Ae,.66),hcDark:Ae,hcLight:Ae},a.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),m("searchEditor.findMatchBorder",{light:fi(Me,.66),dark:fi(Me,.66),hcDark:Me,hcLight:Me},a.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches.")),m("search.resultsInfoForeground",{light:_,dark:fi(_,.65),hcDark:_,hcLight:_},a.NC("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),m("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},a.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorHoverWidget.background",{light:fe,dark:fe,hcDark:fe,hcLight:fe},a.NC("hoverBackground","Background color of the editor hover."))),He=(m("editorHoverWidget.foreground",{light:me,dark:me,hcDark:me,hcLight:me},a.NC("hoverForeground","Foreground color of the editor hover.")),m("editorHoverWidget.border",{light:_e,dark:_e,hcDark:_e,hcLight:_e},a.NC("hoverBorder","Border color of the editor hover."))),We=(m("editorHoverWidget.statusBarBackground",{dark:pi(Be,.2),light:gi(Be,.05),hcDark:fe,hcLight:fe},a.NC("statusBarBackground","Background color of the editor hover status bar.")),m("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hcDark:o.Il.cyan,hcLight:"#292929"},a.NC("activeLinkForeground","Color of active links."))),Ve=m("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:o.Il.white,hcLight:o.Il.black},a.NC("editorInlayHintForeground","Foreground color of inline hints")),ze=m("editorInlayHint.background",{dark:fi(X,.1),light:fi(X,.1),hcDark:fi(o.Il.white,.1),hcLight:fi(X,.1)},a.NC("editorInlayHintBackground","Background color of inline hints")),je=m("editorInlayHint.typeForeground",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},a.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Ue=m("editorInlayHint.typeBackground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},a.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),$e=m("editorInlayHint.parameterForeground",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},a.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),qe=m("editorInlayHint.parameterBackground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},a.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Ke=(m("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},a.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),m("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},a.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),m("editorLightBulbAi.foreground",{dark:gi(b,.4),light:pi(b,1.7),hcDark:b,hcLight:b},a.NC("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),new o.Il(new o.VS(155,185,85,.2))),Ge=new o.Il(new o.VS(255,0,0,.2)),Ze=m("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},a.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=m("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},a.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ye=(m("diffEditor.insertedLineBackground",{dark:Ke,light:Ke,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),m("diffEditor.removedLineBackground",{dark:Ge,light:Ge,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),m("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),m("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),m("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),Je=m("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Xe=(m("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},a.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),m("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},a.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),m("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("diffEditorBorder","Border color between the two text editors.")),m("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},a.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),m("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},a.NC("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),m("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},a.NC("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),m("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},a.NC("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),m("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),et=m("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=m("list.focusOutline",{dark:y,light:y,hcDark:C,hcLight:C},a.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),it=m("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),nt=m("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ot=m("list.activeSelectionForeground",{dark:o.Il.white,light:o.Il.white,hcDark:null,hcLight:null},a.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),rt=m("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),st=m("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),at=m("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),lt=m("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ct=m("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),dt=m("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ut=m("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:o.Il.white.transparent(.1),hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ht=m("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),gt=m("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},a.NC("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),pt=m("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:y,hcLight:y},a.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ft=m("list.focusHighlightForeground",{dark:pt,light:_i(nt,pt,"#BBE7FF"),hcDark:pt,hcLight:pt},a.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),mt=(m("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},a.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),m("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},a.NC("listErrorForeground","Foreground color of list items containing errors.")),m("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},a.NC("listWarningForeground","Foreground color of list items containing warnings.")),m("listFilterWidget.background",{light:gi(fe,0),dark:pi(fe,0),hcDark:fe,hcLight:fe},a.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),_t=m("listFilterWidget.outline",{dark:o.Il.transparent,light:o.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},a.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),vt=m("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},a.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),bt=m("listFilterWidget.shadow",{dark:x,light:x,hcDark:x,hcLight:x},a.NC("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),yt=(m("list.filterMatchBackground",{dark:Ae,light:Ae,hcDark:null,hcLight:null},a.NC("listFilterMatchHighlight","Background color of the filtered match.")),m("list.filterMatchBorder",{dark:Me,light:Me,hcDark:w,hcLight:C},a.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),m("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},a.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),wt=m("tree.inactiveIndentGuidesStroke",{dark:fi(yt,.4),light:fi(yt,.4),hcDark:fi(yt,.4),hcLight:fi(yt,.4)},a.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Ct=m("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},a.NC("tableColumnsBorder","Table border color between columns.")),St=m("tree.tableOddRowsBackground",{dark:fi(_,.04),light:fi(_,.04),hcDark:null,hcLight:null},a.NC("tableOddRowsBackgroundColor","Background color for odd table rows.")),xt=(m("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},a.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. ")),m("checkbox.background",{dark:V,light:V,hcDark:V,hcLight:V},a.NC("checkbox.background","Background color of checkbox widget."))),kt=(m("checkbox.selectBackground",{dark:fe,light:fe,hcDark:fe,hcLight:fe},a.NC("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),m("checkbox.foreground",{dark:j,light:j,hcDark:j,hcLight:j},a.NC("checkbox.foreground","Foreground color of checkbox widget."))),Lt=m("checkbox.border",{dark:U,light:U,hcDark:U,hcLight:U},a.NC("checkbox.border","Border color of checkbox widget.")),Et=(m("checkbox.selectBorder",{dark:b,light:b,hcDark:b,hcLight:b},a.NC("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),m("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,a.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead"))),Nt=m("quickInputList.focusForeground",{dark:ot,light:ot,hcDark:ot,hcLight:ot},a.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Dt=m("quickInputList.focusIconForeground",{dark:rt,light:rt,hcDark:rt,hcLight:rt},a.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Tt=m("quickInputList.focusBackground",{dark:mi(Et,nt),light:mi(Et,nt),hcDark:null,hcLight:null},a.NC("quickInput.listFocusBackground","Quick picker background color for the focused item.")),It=m("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("menuBorder","Border color of menus.")),Rt=m("menu.foreground",{dark:j,light:j,hcDark:j,hcLight:j},a.NC("menuForeground","Foreground color of menu items.")),At=m("menu.background",{dark:V,light:V,hcDark:V,hcLight:V},a.NC("menuBackground","Background color of menu items.")),Ot=m("menu.selectionForeground",{dark:ot,light:ot,hcDark:ot,hcLight:ot},a.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Pt=m("menu.selectionBackground",{dark:nt,light:nt,hcDark:nt,hcLight:nt},a.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),Mt=m("menu.selectionBorder",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),Ft=m("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},a.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),Bt=m("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Ht=(m("toolbar.hoverOutline",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),m("toolbar.activeBackground",{dark:pi(Bt,.1),light:gi(Bt,.1),hcDark:null,hcLight:null},a.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),m("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hcDark:new o.Il(new o.VS(124,124,124,.3)),hcLight:new o.Il(new o.VS(10,50,100,.2))},a.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),m("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),m("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),m("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},a.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),m("breadcrumb.foreground",{light:fi(_,.8),dark:fi(_,.8),hcDark:fi(_,.8),hcLight:fi(_,.8)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),Wt=m("breadcrumb.background",{light:ge,dark:ge,hcDark:ge,hcLight:ge},a.NC("breadcrumbsBackground","Background color of breadcrumb items.")),Vt=m("breadcrumb.focusForeground",{light:gi(_,.2),dark:pi(_,.1),hcDark:pi(_,.1),hcLight:pi(_,.1)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),zt=m("breadcrumb.activeSelectionForeground",{light:gi(_,.2),dark:pi(_,.1),hcDark:pi(_,.1),hcLight:pi(_,.1)},a.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),jt=(m("breadcrumbPicker.background",{light:fe,dark:fe,hcDark:fe,hcLight:fe},a.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),.5),Ut=o.Il.fromHex("#40C8AE").transparent(jt),$t=o.Il.fromHex("#40A6FF").transparent(jt),qt=o.Il.fromHex("#606060").transparent(.4),Kt=.4,Gt=1,Zt=m("merge.currentHeaderBackground",{dark:Ut,light:Ut,hcDark:null,hcLight:null},a.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Qt=(m("merge.currentContentBackground",{dark:fi(Zt,Kt),light:fi(Zt,Kt),hcDark:fi(Zt,Kt),hcLight:fi(Zt,Kt)},a.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.incomingHeaderBackground",{dark:$t,light:$t,hcDark:null,hcLight:null},a.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Yt=(m("merge.incomingContentBackground",{dark:fi(Qt,Kt),light:fi(Qt,Kt),hcDark:fi(Qt,Kt),hcLight:fi(Qt,Kt)},a.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.commonHeaderBackground",{dark:qt,light:qt,hcDark:null,hcLight:null},a.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Jt=(m("merge.commonContentBackground",{dark:fi(Yt,Kt),light:fi(Yt,Kt),hcDark:fi(Yt,Kt),hcLight:fi(Yt,Kt)},a.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},a.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),Xt=(m("editorOverviewRuler.currentContentForeground",{dark:fi(Zt,Gt),light:fi(Zt,Gt),hcDark:Jt,hcLight:Jt},a.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.incomingContentForeground",{dark:fi(Qt,Gt),light:fi(Qt,Gt),hcDark:Jt,hcLight:Jt},a.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.commonContentForeground",{dark:fi(Yt,Gt),light:fi(Yt,Gt),hcDark:Jt,hcLight:Jt},a.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},a.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ei=m("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},a.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ti=m("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},a.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ii=m("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),ni=m("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),oi=m("minimap.infoHighlight",{dark:de,light:de,hcDark:ue,hcLight:ue},a.NC("minimapInfo","Minimap marker color for infos.")),ri=m("minimap.warningHighlight",{dark:le,light:le,hcDark:ce,hcLight:ce},a.NC("overviewRuleWarning","Minimap marker color for warnings.")),si=m("minimap.errorHighlight",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:"#B5200D"},a.NC("minimapError","Minimap marker color for errors.")),ai=m("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("minimapBackground","Minimap background color.")),li=m("minimap.foregroundOpacity",{dark:o.Il.fromHex("#000f"),light:o.Il.fromHex("#000f"),hcDark:o.Il.fromHex("#000f"),hcLight:o.Il.fromHex("#000f")},a.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),ci=(m("minimapSlider.background",{light:fi(ie,.5),dark:fi(ie,.5),hcDark:fi(ie,.5),hcLight:fi(ie,.5)},a.NC("minimapSliderBackground","Minimap slider background color.")),m("minimapSlider.hoverBackground",{light:fi(ne,.5),dark:fi(ne,.5),hcDark:fi(ne,.5),hcLight:fi(ne,.5)},a.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),m("minimapSlider.activeBackground",{light:fi(oe,.5),dark:fi(oe,.5),hcDark:fi(oe,.5),hcLight:fi(oe,.5)},a.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),m("problemsErrorIcon.foreground",{dark:se,light:se,hcDark:se,hcLight:se},a.NC("problemsErrorIconForeground","The color used for the problems error icon."))),di=m("problemsWarningIcon.foreground",{dark:le,light:le,hcDark:le,hcLight:le},a.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),ui=m("problemsInfoIcon.foreground",{dark:de,light:de,hcDark:de,hcLight:de},a.NC("problemsInfoIconForeground","The color used for the problems info icon."));m("charts.foreground",{dark:_,light:_,hcDark:_,hcLight:_},a.NC("chartsForeground","The foreground color used in charts.")),m("charts.lines",{dark:fi(_,.5),light:fi(_,.5),hcDark:fi(_,.5),hcLight:fi(_,.5)},a.NC("chartsLines","The color used for horizontal lines in charts.")),m("charts.red",{dark:se,light:se,hcDark:se,hcLight:se},a.NC("chartsRed","The red color used in chart visualizations.")),m("charts.blue",{dark:de,light:de,hcDark:de,hcLight:de},a.NC("chartsBlue","The blue color used in chart visualizations.")),m("charts.yellow",{dark:le,light:le,hcDark:le,hcLight:le},a.NC("chartsYellow","The yellow color used in chart visualizations.")),m("charts.orange",{dark:ti,light:ti,hcDark:ti,hcLight:ti},a.NC("chartsOrange","The orange color used in chart visualizations.")),m("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},a.NC("chartsGreen","The green color used in chart visualizations.")),m("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},a.NC("chartsPurple","The purple color used in chart visualizations."));function hi(e,t){var i,n,r,a;switch(e.op){case 0:return null===(i=bi(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=bi(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(r=bi(e.value,t))||void 0===r?void 0:r.transparent(e.factor);case 3:{const i=bi(e.background,t);return i?null===(a=bi(e.value,t))||void 0===a?void 0:a.makeOpaque(i):bi(e.value,t)}case 4:for(const i of e.values){const e=bi(i,t);if(e)return e}return;case 6:return bi(t.defines(e.if)?e.then:e.else,t);case 5:{const i=bi(e.value,t);if(!i)return;const n=bi(e.background,t);return n?i.isDarkerThan(n)?o.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):o.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.vE)(e)}}function gi(e,t){return{op:0,value:e,factor:t}}function pi(e,t){return{op:1,value:e,factor:t}}function fi(e,t){return{op:2,value:e,factor:t}}function mi(...e){return{op:4,values:e}}function _i(e,t,i){return{op:6,if:e,then:t,else:i}}function vi(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function bi(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?o.Il.fromHex(e):t.getColor(e):e instanceof o.Il?e:"object"===typeof e?hi(e,t):void 0}const yi="vscode://schemas/workbench-colors",wi=c.B.as(l.I.JSONContribution);wi.registerSchema(yi,f.getColorSchema());const Ci=new n.pY((()=>wi.notifySchemaChanged(yi)),200);f.onDidChangeSchema((()=>{Ci.isScheduled()||Ci.schedule()}))},98158:(e,t,i)=>{"use strict";i.d(t,{Ks:()=>v,q5:()=>_,s_:()=>S});var n=i(85398),o=i(8419),r=i(99588),s=i(11271),a=i(55455),l=i(95896),c=i(25206),d=i(62478),u=i(39672);const h={IconContribution:"base.contributions.icons"};var g,p;(function(e){function t(e,t){let i=e.defaults;while(r.k.isThemeIcon(i)){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}e.getDefinition=t})(g||(g={})),function(e){function t(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}}function i(e){const t=e=>(0,a.HD)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,a.HD)(e.format)&&(0,a.HD)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:l.o.parse(e.location)})))}}e.toJSONObject=t,e.fromJSONObject=i}(p||(p={}));class f{constructor(){this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,c.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,c.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${r.k.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const s={$ref:"#/definitions/icons"};return n&&(s.deprecationMessage=n),i&&(s.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{while(r.k.isThemeIcon(e.defaults))e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const o of n.filter((e=>!!e.description)).sort(e))i.push(`||${o.id}|${r.k.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter((e=>!r.k.isThemeIcon(e.defaults))).sort(e))i.push(`||${o.id}|`);return i.join("\n")}}const m=new f;function _(e,t,i,n){return m.registerIcon(e,t,i,n)}function v(){return m}function b(){const e=(0,o.u)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}u.B.add(h.IconContribution,m),b();const y="vscode://schemas/icons",w=u.B.as(d.I.JSONContribution);w.registerSchema(y,m.getIconSchema());const C=new n.pY((()=>w.notifySchemaChanged(y)),200);m.onDidChange((()=>{C.isScheduled()||C.schedule()}));const S=_("widget-close",o.l.close,(0,c.NC)("widgetClose","Icon for the close action in widgets."));_("goto-previous-location",o.l.arrowUp,(0,c.NC)("previousChangeIcon","Icon for goto previous editor location.")),_("goto-next-location",o.l.arrowDown,(0,c.NC)("nextChangeIcon","Icon for goto next editor location.")),r.k.modify(o.l.sync,"spin"),r.k.modify(o.l.loading,"spin")},71976:(e,t,i)=>{"use strict";var n;function o(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function r(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{_T:()=>r,c3:()=>o,eL:()=>n}),function(e){e["DARK"]="dark",e["LIGHT"]="light",e["HIGH_CONTRAST_DARK"]="hcDark",e["HIGH_CONTRAST_LIGHT"]="hcLight"}(n||(n={}))},32656:(e,t,i)=>{"use strict";i.d(t,{EN:()=>c,IP:()=>u,Ic:()=>p,XE:()=>l,bB:()=>f,m6:()=>d});var n=i(11271),o=i(70959),r=i(21881),s=i(39672),a=i(71976);const l=(0,r.yh)("themeService");function c(e){return{id:e}}function d(e){switch(e){case a.eL.DARK:return"vs-dark";case a.eL.HIGH_CONTRAST_DARK:return"hc-black";case a.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class h{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,o.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}}const g=new h;function p(e){return g.onColorThemeChange(e)}s.B.add(u.ThemingContribution,g);class f extends o.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},70813:(e,t,i)=>{"use strict";i.d(t,{Xt:()=>s,YO:()=>r,gJ:()=>a,tJ:()=>o});var n=i(21881);const o=(0,n.yh)("undoRedoService");class r{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class a{constructor(){this.id=a._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}a._ID=0,a.None=new a},15086:(e,t,i)=>{"use strict";i.d(t,{A6:()=>f,c$:()=>c,eb:()=>l,ec:()=>a,md:()=>p,p$:()=>m,uT:()=>h,x:()=>_});var n=i(25206),o=i(19912),r=(i(17141),i(95896)),s=i(21881);const a=(0,s.yh)("contextService");function l(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&r.o.isUri(t.uri)}function c(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&!l(e)&&!g(e)}const d={id:"ext-dev"},u={id:"empty-window"};function h(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,o.EZ)(e)}:t?d:u;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}function g(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&r.o.isUri(t.configPath)}class p{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const f="code-workspace",m=((0,n.NC)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function _(e){return e.id===m}},8625:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(21881);const o=(0,n.yh)("workspaceTrustManagementService")},61833:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;var o=n(i(76325)),r=n(i(97459)),s=function(){function e(){var t,i,n,r,s,a,l,c,d,u,h,g,p,f,m=this,_=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o["default"])(this,e),this.server=_.server||{nodes:[{host:"localhost",port:"8108",path:"",protocol:"http"}]},this.server.cacheSearchResultsForSeconds=null!==(t=this.server.cacheSearchResultsForSeconds)&&void 0!==t?t:120,this.additionalSearchParameters=null!==(i=_.additionalSearchParameters)&&void 0!==i?i:{},this.additionalSearchParameters.query_by=null!==(n=null!==(r=this.additionalSearchParameters.queryBy)&&void 0!==r?r:this.additionalSearchParameters.query_by)&&void 0!==n?n:"",this.additionalSearchParameters.preset=null!==(s=null!==(a=this.additionalSearchParameters.preset)&&void 0!==a?a:this.additionalSearchParameters.preset)&&void 0!==s?s:"",this.additionalSearchParameters.sort_by=null!==(l=null!==(c=this.additionalSearchParameters.sortBy)&&void 0!==c?c:this.additionalSearchParameters.sort_by)&&void 0!==l?l:"",this.additionalSearchParameters.highlight_full_fields=null!==(d=null!==(u=this.additionalSearchParameters.highlightFullFields)&&void 0!==u?u:this.additionalSearchParameters.highlight_full_fields)&&void 0!==d?d:this.additionalSearchParameters.query_by,this.geoLocationField=null!==(h=_.geoLocationField)&&void 0!==h?h:"_geoloc",this.facetableFieldsWithSpecialCharacters=null!==(g=_.facetableFieldsWithSpecialCharacters)&&void 0!==g?g:[],this.collectionSpecificSearchParameters=null!==(p=_.collectionSpecificSearchParameters)&&void 0!==p?p:{},Object.keys(this.collectionSpecificSearchParameters).forEach((function(e){var t,i,n,o,r,s,a=m.collectionSpecificSearchParameters[e];a.query_by=null!==(t=a.queryBy)&&void 0!==t?t:a.query_by,a.preset=null!==(i=a.preset)&&void 0!==i?i:a.preset,a.sort_by=null!==(n=a.sortBy)&&void 0!==n?n:a.sort_by,a.highlight_full_fields=null!==(o=null!==(r=null!==(s=a.highlightFullFields)&&void 0!==s?s:a.highlight_full_fields)&&void 0!==r?r:m.additionalSearchParameters.highlight_full_fields)&&void 0!==o?o:a.query_by,Object.keys(a).forEach((function(e){return void 0===a[e]?delete a[e]:{}}))})),this.renderingContent=_.renderingContent,this.flattenGroupedHits=null===(f=_.flattenGroupedHits)||void 0===f||f}return(0,r["default"])(e,[{key:"validate",value:function(){if((this.additionalSearchParameters.queryBy||Object.values(this.collectionSpecificSearchParameters).some((function(e){return e.queryBy})))&&console.warn("[typesense-instantsearch-adapter] Please use snake_cased versions of parameters in additionalSearchParameters instead of camelCased parameters. For example: Use query_by instead of queryBy. camelCased parameters will be deprecated in a future version. We're making this change so that parameter names are identical to the ones sent to Typesense (which are all snake_cased), and to also keep the types for these parameters in sync with the types defined in typesense-js."),0===this.additionalSearchParameters.query_by.length&&0===this.additionalSearchParameters.preset.length&&(0===Object.keys(this.collectionSpecificSearchParameters).length||Object.values(this.collectionSpecificSearchParameters).some((function(e){return 0===(e.query_by||"").length&&0===(e.preset||"").length}))))throw new Error("[typesense-instantsearch-adapter] Missing parameter: One of additionalSearchParameters.query_by or additionalSearchParameters.preset needs to be set, or all collectionSpecificSearchParameters need to have either .query_by or .preset set.")}}]),e}();t.Configuration=s},97027:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.FacetSearchResponseAdapter=void 0;var o=n(i(76325)),r=n(i(97459)),s=i(63627),a=function(){function e(t,i){(0,o["default"])(this,e),this.typesenseResponse=t,this.instantsearchRequest=i}return(0,r["default"])(e,[{key:"_adaptFacetHits",value:function(e){var t=this,i={},n=e.find((function(e){return e.field_name===t.instantsearchRequest.params.facetName}));return i=n.counts.map((function(e){return{value:e.value,highlighted:t._adaptHighlightTag(e.highlighted,t.instantsearchRequest.params.highlightPreTag,t.instantsearchRequest.params.highlightPostTag),count:e.count}})),i}},{key:"adapt",value:function(){var e={facetHits:this._adaptFacetHits(this.typesenseResponse.facet_counts),exhaustiveFacetsCount:!0,processingTimeMS:this.typesenseResponse.search_time_ms};return e}}]),e}();t.FacetSearchResponseAdapter=a,Object.assign(a.prototype,s.utils)},55790:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchRequestAdapter=void 0;var o=n(i(65902)),r=n(i(1001)),s=n(i(37167)),a=n(i(76325)),l=n(i(97459)),c=function(){function e(t,i,n){(0,a["default"])(this,e),this.instantsearchRequests=t,this.typesenseClient=i,this.configuration=n,this.additionalSearchParameters=n.additionalSearchParameters,this.collectionSpecificSearchParameters=n.collectionSpecificSearchParameters}return(0,l["default"])(e,[{key:"_adaptFacetFilters",value:function(e){var t=this,i="";if(!e)return i;var n=e.map((function(e){if(Array.isArray(e)){var i={};e.forEach((function(e){var n=t._parseFacetFilter(e),o=n.fieldName,r=n.fieldValue;i[o]=i[o]||[],i[o].push(r)})),Object.keys(i).length>1&&console.error("[Typesense-Instantsearch-Adapter] Typesense does not support cross-field ORs at the moment. The adapter could not OR values between these fields: ".concat(Object.keys(i).join(",")));var n=Object.keys(i)[0],o=i[n],r=o.reduce((function(e,i){return i.startsWith("-")&&!t._isNumber(i)?e[0].push(i.substring(1)):e[1].push(i),e}),[[],[]]),a=(0,s["default"])(r,2),l=a[0],c=a[1],d=[];c.length>0&&d.push("".concat(n,":=[").concat(c.map((function(e){return t._escapeFacetValue(e)})).join(","),"]")),l.length>0&&d.push("".concat(n,":!=[").concat(l.map((function(e){return t._escapeFacetValue(e)})).join(","),"]"));var u=d.filter((function(e){return e})).join(" && ");return u}var h,g=t._parseFacetFilter(e),p=g.fieldName,f=g.fieldValue;return h=f.startsWith("-")&&!t._isNumber(f)?"".concat(p,":!=[").concat(t._escapeFacetValue(f.substring(1)),"]"):"".concat(p,":=[").concat(t._escapeFacetValue(f),"]"),h}));return i=n.join(" && "),i}},{key:"_parseFacetFilter",value:function(e){var t,i,n,o,r;if((null===(t=this.configuration.facetableFieldsWithSpecialCharacters)||void 0===t?void 0:t.length)>0){var s=this.configuration.facetableFieldsWithSpecialCharacters.flat().map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}));if(i=new RegExp("^(".concat(s.join("|"),"):(.*)$")),n=e.match(i),null!=n)return o="".concat(n[1]),r="".concat(n[2]),{fieldName:o,fieldValue:r}}return i=this.constructor.DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX,n=e.match(i),null==n?console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a facet filter `".concat(e,"` with the Regex `").concat(i,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter.")):(o="".concat(n[1]).concat(n[2]),r="".concat(n[3])),{fieldName:o,fieldValue:r}}},{key:"_escapeFacetValue",value:function(e){return"boolean"===typeof e||"true"===e||"false"===e||this._isNumber(e)?e:"`".concat(e,"`")}},{key:"_isNumber",value:function(e){return Number.isInteger(e%1)||!!(e%1)}},{key:"_adaptNumericFilters",value:function(e){var t=this,i="";if(!e)return i;var n={};e.forEach((function(e){var i=t._parseNumericFilter(e),o=i.fieldName,r=i.operator,s=i.fieldValue;n[o]=n[o]||{},n[o][r]=s}));var o=[];return Object.keys(n).forEach((function(e){null!=n[e]["<="]&&null!=n[e][">="]?o.push("".concat(e,":=[").concat(n[e][">="],"..").concat(n[e]["<="],"]")):null!=n[e]["<="]?o.push("".concat(e,":<=").concat(n[e]["<="])):null!=n[e][">="]?o.push("".concat(e,":>=").concat(n[e][">="])):null!=n[e]["="]?o.push("".concat(e,":=").concat(n[e]["="])):console.warn("[Typesense-Instantsearch-Adapter] Unsupported operator found ".concat(JSON.stringify(n[e])))})),i=o.join(" && "),i}},{key:"_parseNumericFilter",value:function(e){var t,i,n,o,r,a;if((null===(t=this.configuration.facetableFieldsWithSpecialCharacters)||void 0===t?void 0:t.length)>0){var l=this.configuration.facetableFieldsWithSpecialCharacters.map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}));if(i=new RegExp("^(".concat(l.join("|"),")(<=|>=|>|<|=)(.*)$")),n=e.match(i),null!=n){var c=n,d=(0,s["default"])(c,4);return o=d[1],r=d[2],a=d[3],{fieldName:o,operator:r,fieldValue:a}}}if(i=this.constructor.DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX,n=e.match(i),null==n)console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a numeric filter `".concat(e,"` with the Regex `").concat(i,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter."));else{var u=n,h=(0,s["default"])(u,4);o=h[1],r=h[2],a=h[3]}return{fieldName:o,operator:r,fieldValue:a}}},{key:"_adaptGeoFilter",value:function(e){var t=e.insideBoundingBox,i=e.aroundRadius,n=e.aroundLatLng,o=e.insidePolygon;if(t){var r,a,l,c;if(Array.isArray(t)){var d=t.flat(),u=(0,s["default"])(d,4);r=u[0],a=u[1],l=u[2],c=u[3]}else{var h=t.split(","),g=(0,s["default"])(h,4);r=g[0],a=g[1],l=g[2],c=g[3]}return"".concat(this.configuration.geoLocationField,":(").concat(r,", ").concat(a,", ").concat(r,", ").concat(c,", ").concat(l,", ").concat(c,", ").concat(l,", ").concat(a,")")}if(n||i){if(!i||"all"===i)throw new Error("[Typesense-Instantsearch-Adapter] In Typesense, geo-filtering around a lat/lng also requires a numerical radius. So the `aroundRadius` parameter is required when `aroundLatLng` is used. If you intend to just geo-sort around a lat/long, you want to use the sortBy InstantSearch widget (or a virtual sortBy custom widget).");var p="".concat(parseFloat(i)/1e3," km");return"".concat(this.configuration.geoLocationField,":(").concat(n,", ").concat(p,")")}if(o){var f=o;return Array.isArray(o)&&(f=o.flat().join(",")),"".concat(this.configuration.geoLocationField,":(").concat(f,")")}}},{key:"_adaptFilters",value:function(e){var t=[];return e.filters&&t.push(e.filters),t.push(this._adaptFacetFilters(e.facetFilters)),t.push(this._adaptNumericFilters(e.numericFilters)),t.push(this._adaptGeoFilter(e)),t.filter((function(e){return e&&""!==e})).join(" && ")}},{key:"_adaptIndexName",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[1]}},{key:"_adaptSortBy",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[3]}},{key:"_buildSearchParameters",value:function(e){for(var t=e.params,i=e.indexName,n=this._adaptIndexName(i),o={},r=0,a=Object.entries(this.additionalSearchParameters);r=|>|<|=)(.*)")}}]),e}();t.SearchRequestAdapter=c},17753:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResponseAdapter=void 0;var o=n(i(18774)),r=n(i(37167)),s=n(i(50001)),a=n(i(38761)),l=n(i(76325)),c=n(i(97459)),d=i(63627);function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:[];(0,l["default"])(this,e),this.typesenseResponse=t,this.instantsearchRequest=i,this.configuration=n,this.allTypesenseResponses=o}return(0,c["default"])(e,[{key:"_adaptGroupedHits",value:function(e){var t=this,i=[];return i=e.map((function(e){var i=t._adaptHits(e.hits);return i.forEach((function(t){t["group_key"]=t["_group_key"]=e.group_key,e.found&&(t["_group_found"]=e.found)})),i})),i=this.configuration.flattenGroupedHits?i.flat():i.map((function(e){return h(h({},e[0]),{},{_grouped_hits:e})})),i}},{key:"_adaptHits",value:function(e){var t=this,i=[];return i=e.map((function(e){var i=h({},e.document);i.objectID=e.document.id,i._snippetResult=t._adaptHighlightResult(e,"snippet"),i._highlightResult=t._adaptHighlightResult(e,"value"),i._rawTypesenseHit=e,["text_match","geo_distance_meters","curated","text_match_info","hybrid_search_info","vector_distance"].forEach((function(t){Object.keys(e).includes(t)&&!Object.keys(i).includes(t)&&(i[t]=e[t])}));var n=i[t.configuration.geoLocationField];return n&&(i._geoloc={lat:n[0],lng:n[1]}),i})),i}},{key:"_adaptHighlightResult",value:function(e,t){var i={};return null!=e.highlight&&this.isHighlightPost0240RCN32Format(e.highlight)?this.adaptHighlightObject(e,i,t):this.adaptHighlightsArray(e,i,t),i}},{key:"isHighlightPost0240RCN32Format",value:function(e){return null==e.full&&null==e.snippet}},{key:"adaptHighlightsArray",value:function(e,t,i){var n=this;Object.assign.apply(Object,[t].concat((0,s["default"])(Object.entries(e.document).map((function(e){var t=(0,r["default"])(e,2),i=t[0],n=t[1];return(0,a["default"])({},i,{value:n,matchLevel:"none",matchedWords:[]})}))))),e.highlights.forEach((function(e){t[e.field]={value:e[i]||e["".concat(i,"s")],matchLevel:"full",matchedWords:e.matched_tokens},e.indices&&(t[e.field]["matchedIndices"]=e.indices)})),Object.entries(t).forEach((function(s){var a=(0,r["default"])(s,2),l=a[0],c=a[1],d=l,u=c.value,h=c.matchLevel,g=c.matchedWords,p=c.matchedIndices;null==u?t[d]=n._adaptHighlightNullValue():Array.isArray(u)?(t[d]=[],e.document[d].forEach((function(e,r){p&&p.includes(r)?t[d].push({value:n._adaptHighlightTag("".concat(u[p.indexOf(r)]),n.instantsearchRequest.params.highlightPreTag,n.instantsearchRequest.params.highlightPostTag),matchLevel:h,matchedWords:g[r]}):"object"===(0,o["default"])(e)?t[d].push(n._adaptHighlightInObjectValue(e,{},i)):t[d].push({value:"".concat(e),matchLevel:"none",matchedWords:[]})}))):"object"===(0,o["default"])(u)?t[d]=n._adaptHighlightInObjectValue(u,{},i):t[d].value=n._adaptHighlightTag("".concat(u),n.instantsearchRequest.params.highlightPreTag,n.instantsearchRequest.params.highlightPostTag)}))}},{key:"adaptHighlightObject",value:function(e,t,i){Object.assign(t,this._adaptHighlightInObjectValue(e.document,e.highlight,i))}},{key:"_adaptHighlightInObjectValue",value:function(e,t,i){var n=this;return Object.assign.apply(Object,[{}].concat((0,s["default"])(Object.entries(e).map((function(e){var s,l=(0,r["default"])(e,2),c=l[0],d=l[1];if(null==d)s=n._adaptHighlightNullValue();else if(Array.isArray(d)){var u;s=n._adaptHighlightInArrayValue(d,null!==(u=null===t||void 0===t?void 0:t[c])&&void 0!==u?u:[],i)}else if("object"===(0,o["default"])(d)){var h;s=n._adaptHighlightInObjectValue(d,null!==(h=null===t||void 0===t?void 0:t[c])&&void 0!==h?h:{},i)}else s=n._adaptHighlightInPrimitiveValue(d,null===t||void 0===t?void 0:t[c],i);return(0,a["default"])({},c,s)})))))}},{key:"_adaptHighlightInArrayValue",value:function(e,t,i){var n=this;return e.map((function(e,r){var s;if(null==e)s=n._adaptHighlightNullValue();else if(Array.isArray(e)){var a;s=n._adaptHighlightInArrayValue(e,null!==(a=null===t||void 0===t?void 0:t[r])&&void 0!==a?a:[],i)}else if("object"===(0,o["default"])(e)){var l;s=n._adaptHighlightInObjectValue(e,null!==(l=null===t||void 0===t?void 0:t[r])&&void 0!==l?l:{},i)}else s=n._adaptHighlightInPrimitiveValue(e,null===t||void 0===t?void 0:t[r],i);return s}))}},{key:"_adaptHighlightInPrimitiveValue",value:function(e,t,i){var n,o;return null!=t?{value:this._adaptHighlightTag("".concat(null!==(n=null!==(o=t[i])&&void 0!==o?o:t["highlight"])&&void 0!==n?n:t["snippet"]),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:(t.matched_tokens||[]).length>0?"full":"none",matchedWords:t.matched_tokens||[]}:{value:this._adaptHighlightTag("".concat(e),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:"none",matchedWords:[]}}},{key:"_adaptHighlightNullValue",value:function(){return{value:"",matchLevel:"none",matchedWords:[]}}},{key:"_adaptFacets",value:function(e){var t={};return e.forEach((function(e){Object.assign(t,(0,a["default"])({},e.field_name,Object.assign.apply(Object,[{}].concat((0,s["default"])(e.counts.map((function(e){return(0,a["default"])({},e.value,e.count)})))))))})),t}},{key:"_adaptFacetStats",value:function(e){var t={};return e.forEach((function(e){Object.keys(e.stats).length>0&&Object.assign(t,(0,a["default"])({},e.field_name,e.stats))})),t}},{key:"_adaptRenderingContent",value:function(e){var t,i=Object.assign({},this.configuration.renderingContent);return null==(null===(t=i.facetOrdering)||void 0===t||null===(t=t.facets)||void 0===t?void 0:t.order)&&(i.facetOrdering=i.facetOrdering||{},i.facetOrdering.facets=i.facetOrdering.facets||{},i.facetOrdering.facets.order=(0,s["default"])(new Set(e.map((function(e){return e["field_name"]})).concat(this.allTypesenseResponses.map((function(e){return e.facet_counts||[]})).flat().map((function(e){return e["field_name"]})).filter((function(e){return e})))))),i}},{key:"adapt",value:function(){var e=this._adaptRenderingContent(this.typesenseResponse.facet_counts||[]),t=h({hits:this.typesenseResponse.grouped_hits?this._adaptGroupedHits(this.typesenseResponse.grouped_hits):this._adaptHits(this.typesenseResponse.hits),nbHits:this.typesenseResponse.found,page:this.typesenseResponse.page-1,nbPages:this._adaptNumberOfPages(),hitsPerPage:this.typesenseResponse.request_params.per_page,facets:this._adaptFacets(this.typesenseResponse.facet_counts||[]),facets_stats:this._adaptFacetStats(this.typesenseResponse.facet_counts||{}),query:this.typesenseResponse.request_params.q,processingTimeMS:this.typesenseResponse.search_time_ms},Object.keys(e).length>0?{renderingContent:e}:null);return t}}]),e}();t.SearchResponseAdapter=g,Object.assign(g.prototype,d.utils)},53317:(e,t,i)=>{"use strict";var n=i(58846);t.Z=void 0;var o=n(i(65902)),r=n(i(1001)),s=n(i(76325)),a=n(i(97459)),l=i(61833),c=i(86953),d=i(55790),u=i(17753),h=i(97027),g=function(){function e(t){var i=this;(0,s["default"])(this,e),this.updateConfiguration(t),this.searchClient={clearCache:function(){return i.clearCache()},search:function(e){return i.searchTypesenseAndAdapt(e)},searchForFacetValues:function(e){return i.searchTypesenseForFacetValuesAndAdapt(e)}}}return(0,a["default"])(e,[{key:"searchTypesenseAndAdapt",value:function(){var e=(0,r["default"])(o["default"].mark((function e(t){var i,n,r=this;return o["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return i=e.sent,n=i.results.map((function(e,n){r._validateTypesenseResult(e);var o=new u.SearchResponseAdapter(e,t[n],r.configuration,i.results);return o.adapt()})),e.abrupt("return",{results:n});case 8:throw e.prev=8,e.t0=e["catch"](0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"searchTypesenseForFacetValuesAndAdapt",value:function(){var e=(0,r["default"])(o["default"].mark((function e(t){var i,n,r=this;return o["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return i=e.sent,n=i.results.map((function(e,i){r._validateTypesenseResult(e);var n=new h.FacetSearchResponseAdapter(e,t[i],r.configuration);return n.adapt()})),e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e["catch"](0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_adaptAndPerformTypesenseRequest",value:function(){var e=(0,r["default"])(o["default"].mark((function e(t){var i,n;return o["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=new d.SearchRequestAdapter(t,this.typesenseClient,this.configuration),e.next=3,i.request();case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"clearCache",value:function(){return this.typesenseClient=new c.SearchClient(this.configuration.server),this.searchClient}},{key:"updateConfiguration",value:function(e){return this.configuration=new l.Configuration(e),this.configuration.validate(),this.typesenseClient=new c.SearchClient(this.configuration.server),!0}},{key:"_validateTypesenseResult",value:function(e){if(e.error)throw new Error("".concat(e.code," - ").concat(e.error));if(!e.hits&&!e.grouped_hits)throw new Error("Did not find any hits. ".concat(e.code," - ").concat(e.error))}}]),e}();t.Z=g},63627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=void 0;var i={_adaptHighlightTag:function(e,t,i){return e.replace(new RegExp("","g"),t||"").replace(new RegExp("","g"),i||"")},_adaptNumberOfPages:function(){var e=this.typesenseResponse.found/this.typesenseResponse.request_params.per_page;return Number.isFinite(e)?Math.ceil(e):1}};t.utils=i},86953:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Errors=t.SearchClient=t.Client=void 0;var a=s(i(51856));t.Client=a.default;var l=s(i(184));t.SearchClient=l.default;var c=r(i(79856));t.Errors=c,t["default"]={Client:a.default,SearchClient:l.default,Errors:c}},65539:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0},transformResponse:[function(e,t){var i=e;return void 0!==t&&"string"===typeof e&&t["content-type"]&&t["content-type"].startsWith("application/json")&&(i=JSON.parse(e)),i}]},!0!==C&&(b.timeout=1e3*g.connectionTimeoutSeconds),h&&0!==Object.keys(h).length&&(b.params=h),g.sendApiKeyAsQueryParam&&(b.params=b.params||{},b.params["x-typesense-api-key"]=g.apiKey),p&&("string"===typeof p&&0!==p.length||"object"===typeof p&&0!==Object.keys(p).length)&&(b.data=p),v&&(w=s.default.CancelToken,S=w.source(),_=function(){return S.cancel()},v.addEventListener("abort",_),b.cancelToken=S.token),[4,(0,s.default)(b)];case 2:if(x=o.sent(),x.status>=1&&x.status<=499&&g.setNodeHealthcheck(f,d),g.logger.debug("Request #".concat(i,": Request to Node ").concat(f.index," was made. Response Code was ").concat(x.status,".")),x.status>=200&&x.status<300)return[2,{value:Promise.resolve(x.data)}];if(x.status<500)return[2,{value:Promise.reject(g.customErrorForResponse(x,null===(r=x.data)||void 0===r?void 0:r.message))}];throw g.customErrorForResponse(x,null===(a=x.data)||void 0===a?void 0:a.message);case 3:return k=o.sent(),g.setNodeHealthcheck(f,u),n=k,g.logger.warn("Request #".concat(i,": Request to Node ").concat(f.index,' failed due to "').concat(k.code," ").concat(k.message).concat(null==k.response?"":" - "+JSON.stringify(null===(l=k.response)||void 0===l?void 0:l.data),'"')),g.logger.warn("Request #".concat(i,": Sleeping for ").concat(g.retryIntervalSeconds,"s and then retrying request...")),[4,g.timer(g.retryIntervalSeconds)];case 4:return o.sent(),[3,6];case 5:return v&&_&&v.removeEventListener("abort",_),[7];case 6:return[2]}}))},g=this,f=1,b.label=1;case 1:return f<=this.numRetriesPerRequest+1?[5,c(f)]:[3,4];case 2:if(_=b.sent(),"object"===typeof _)return[2,_.value];b.label=3;case 3:return f++,[3,1];case 4:return this.logger.debug("Request #".concat(i,": No retries left. Raising last error")),[2,Promise.reject(n)]}}))}))},e.prototype.getNextNode=function(e){if(void 0===e&&(e=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(e,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(e,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(e,": Nodes Health: ").concat(this.nodes.map((function(e){return"Node ".concat(e.index," is ").concat(!0===e.isHealthy?"Healthy":"Unhealthy")})).join(" || ")));for(var t=this.nodes[0],i=0;i<=this.nodes.length;i++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,t=this.nodes[this.currentNodeIndex],!0===t.isHealthy||this.nodeDueForHealthcheck(t,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(t.index)),t;return this.logger.debug("Request #".concat(e,": No healthy nodes were found. Returning the next node, Node ").concat(t.index)),t},e.prototype.nodeDueForHealthcheck=function(e,t){void 0===t&&(t=0);var i=Date.now()-e.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return i&&this.logger.debug("Request #".concat(t,": Node ").concat(e.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),i},e.prototype.initializeMetadataForNodes=function(){var e=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,d)),this.nodes.forEach((function(t,i){t.index=i,e.setNodeHealthcheck(t,d)}))},e.prototype.setNodeHealthcheck=function(e,t){e.isHealthy=t,e.lastAccessTimestamp=Date.now()},e.prototype.uriFor=function(e,t){return null!=t.url?"".concat(t.url).concat(e):"".concat(t.protocol,"://").concat(t.host,":").concat(t.port).concat(t.path).concat(e)},e.prototype.defaultHeaders=function(){var e={};return this.sendApiKeyAsQueryParam||(e[c]=this.apiKey),e["Content-Type"]="application/json",e},e.prototype.timer=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,1e3*e)}))]}))}))},e.prototype.customErrorForResponse=function(e,t){var i="Request failed with HTTP code ".concat(e.status);"string"===typeof t&&""!==t.trim()&&(i+=" | Server said: ".concat(t));var n=new l.default(i);return n=400===e.status?new a.RequestMalformed(i):401===e.status?new a.RequestUnauthorized(i):404===e.status?new a.ObjectNotFound(i):409===e.status?new a.ObjectAlreadyExists(i):422===e.status?new a.ObjectUnprocessable(i):e.status>=500&&e.status<=599?new a.ServerError(i):new a.HTTPError(i),n.httpStatus=e.status,n},e}();t["default"]=h},51856:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(i(76290)),r=n(i(87994)),s=n(i(22379)),a=n(i(47918)),l=n(i(6846)),c=n(i(65539)),d=n(i(38473)),u=n(i(47895)),h=n(i(6635)),g=n(i(99888)),p=n(i(45634)),f=n(i(54282)),m=n(i(65651)),_=n(i(43194)),v=n(i(48218)),b=n(i(91410)),y=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null!==(t=e.sendApiKeyAsQueryParam)&&void 0!==t&&t,this.configuration=new o.default(e),this.apiCall=new r.default(this.configuration),this.debug=new h.default(this.apiCall),this.metrics=new g.default(this.apiCall),this.health=new p.default(this.apiCall),this.operations=new f.default(this.apiCall),this.multiSearch=new m.default(this.apiCall,this.configuration),this._collections=new s.default(this.apiCall),this.individualCollections={},this._aliases=new l.default(this.apiCall),this.individualAliases={},this._keys=new d.default(this.apiCall),this.individualKeys={},this._presets=new _.default(this.apiCall),this.individualPresets={},this.analytics=new b.default(this.apiCall)}return e.prototype.collections=function(e){return void 0===e?this._collections:(void 0===this.individualCollections[e]&&(this.individualCollections[e]=new a.default(e,this.apiCall,this.configuration)),this.individualCollections[e])},e.prototype.aliases=function(e){return void 0===e?this._aliases:(void 0===this.individualAliases[e]&&(this.individualAliases[e]=new c.default(e,this.apiCall)),this.individualAliases[e])},e.prototype.keys=function(e){return void 0===e?this._keys:(void 0===this.individualKeys[e]&&(this.individualKeys[e]=new u.default(e,this.apiCall)),this.individualKeys[e])},e.prototype.presets=function(e){return void 0===e?this._presets:(void 0===this.individualPresets[e]&&(this.individualPresets[e]=new v.default(e,this.apiCall)),this.individualPresets[e])},e}();t["default"]=y},47918:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0;i--){var n=Math.floor(Math.random()*(i+1));t=[e[n],e[i]],e[i]=t[0],e[n]=t[1]}},e}();t["default"]=c},6635:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0)throw new s.ImportError("".concat(o.length-a.length," documents imported successfully, ").concat(a.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),o);return[2,o]}return[2,n]}}))}))},t.prototype.export=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e)]}))}))},t.prototype.exportStream=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e,{responseType:"stream"})]}))}))},t}(a.SearchOnlyDocuments);t["default"]=l},7554:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},14352:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(t,i){var n=e.call(this,t)||this;return n.importResults=i,n}return n(t,e),t}(r.default);t["default"]=s},84094:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},12862:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},88708:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},12590:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},29463:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},98295:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},92782:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},293:function(e,t){"use strict";var i=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){var i=this.constructor,n=e.call(this,t)||this;return n.name=i.name,Object.setPrototypeOf(n,i.prototype),n}return i(t,e),t}(Error);t["default"]=n},79856:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.TypesenseError=t.ServerError=t.RequestUnauthorized=t.RequestMalformed=t.ObjectUnprocessable=t.ObjectNotFound=t.ObjectAlreadyExists=t.MissingConfigurationError=t.HTTPError=void 0;var o=n(i(7554));t.HTTPError=o.default;var r=n(i(84094));t.MissingConfigurationError=r.default;var s=n(i(12862));t.ObjectAlreadyExists=s.default;var a=n(i(88708));t.ObjectNotFound=a.default;var l=n(i(12590));t.ObjectUnprocessable=l.default;var c=n(i(29463));t.RequestMalformed=c.default;var d=n(i(98295));t.RequestUnauthorized=d.default;var u=n(i(92782));t.ServerError=u.default;var h=n(i(14352));t.ImportError=h.default;var g=n(i(293));t.TypesenseError=g.default},45634:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]u,y&&(C=this.responseCache.keys().next().value,this.responseCache.delete(C)),w=this.responsePromiseCache.size>u,w&&(C=this.responsePromiseCache.keys().next().value,this.responsePromiseCache.delete(C)),[2,b]}}))}))},e}();t["default"]=a},184:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(i(76290)),r=n(i(87994)),s=n(i(65651)),a=i(55921),l=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null===(t=e.sendApiKeyAsQueryParam)||void 0===t||t,!0===e.sendApiKeyAsQueryParam&&(e.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),e.sendApiKeyAsQueryParam=!1),this.configuration=new o.default(e),this.apiCall=new r.default(this.configuration),this.multiSearch=new s.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return e.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach((function(e){e[0];var t=e[1];t.documents().clearCache()}))},e.prototype.collections=function(e){if(e)return void 0===this.individualCollections[e]&&(this.individualCollections[e]=new a.SearchOnlyCollection(e,this.apiCall,this.configuration)),this.individualCollections[e];throw new Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},e}();t["default"]=l},55921:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyCollection=void 0;var n=i(96156),o=function(){function e(e,t,i){this.name=e,this.apiCall=t,this.configuration=i,this._documents=new n.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return e.prototype.documents=function(){return this._documents},e}();t.SearchOnlyCollection=o},96156:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{e.exports=i(12153)},49042:(e,t,i)=>{"use strict";var n=i(91323),o=i(79664),r=i(60119),s=i(10453),a=i(98617),l=i(80176),c=i(44728),d=i(28967),u=i(14309),h=i(13351);e.exports=function(e){return new Promise((function(t,i){var g,p=e.data,f=e.headers,m=e.responseType;function _(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}n.isFormData(p)&&delete f["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(b+":"+y)}var w=a(e.baseURL,e.url);function C(){if(v){var n="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,r=m&&"text"!==m&&"json"!==m?v.response:v.responseText,s={data:r,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};o((function(e){t(e),_()}),(function(e){i(e),_()}),s),v=null}}if(v.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=C:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(C)},v.onabort=function(){v&&(i(d("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){i(d("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(d(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||c(w))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;S&&(f[e.xsrfHeaderName]=S)}"setRequestHeader"in v&&n.forEach(f,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete f[t]:v.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),m&&"json"!==m&&(v.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){v&&(i(!e||e&&e.type?new h("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),p||(p=null),v.send(p)}))}},12153:(e,t,i)=>{"use strict";var n=i(91323),o=i(89256),r=i(58179),s=i(27639),a=i(94370);function l(e){var t=new r(e),i=o(r.prototype.request,t);return n.extend(i,r.prototype,t),n.extend(i,t),i.create=function(t){return l(s(e,t))},i}var c=l(a);c.Axios=r,c.Cancel=i(13351),c.CancelToken=i(7479),c.isCancel=i(66963),c.VERSION=i(42499).version,c.all=function(e){return Promise.all(e)},c.spread=i(74e3),c.isAxiosError=i(55713),e.exports=c,e.exports["default"]=c},13351:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},7479:(e,t,i)=>{"use strict";var n=i(13351);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},58179:(e,t,i)=>{"use strict";var n=i(91323),o=i(10453),r=i(95272),s=i(86544),a=i(27639),l=i(35758),c=l.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&l.assertOptions(i,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var r,d=[];if(this.interceptors.response.forEach((function(e){d.push(e.fulfilled,e.rejected)})),!o){var u=[s,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(d),r=Promise.resolve(t);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=t;while(n.length){var g=n.shift(),p=n.shift();try{h=g(h)}catch(f){p(f);break}}try{r=s(h)}catch(f){return Promise.reject(f)}while(d.length)r=r.then(d.shift(),d.shift());return r},d.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,i){return this.request(a(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,i,n){return this.request(a(n||{},{method:e,url:t,data:i}))}})),e.exports=d},95272:(e,t,i)=>{"use strict";var n=i(91323);function o(){this.handlers=[]}o.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},98617:(e,t,i)=>{"use strict";var n=i(48077),o=i(61221);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},28967:(e,t,i)=>{"use strict";var n=i(80314);e.exports=function(e,t,i,o,r){var s=new Error(e);return n(s,t,i,o,r)}},86544:(e,t,i)=>{"use strict";var n=i(91323),o=i(46922),r=i(66963),s=i(94370),a=i(13351);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80314:e=>{"use strict";e.exports=function(e,t,i,n,o){return e.config=t,i&&(e.code=i),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},27639:(e,t,i)=>{"use strict";var n=i(91323);e.exports=function(e,t){t=t||{};var i={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function r(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(e[i],t[i])}function s(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function a(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(void 0,t[i])}function l(i){return i in t?o(e[i],t[i]):i in e?o(void 0,e[i]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||r,o=t(e);n.isUndefined(o)&&t!==l||(i[e]=o)})),i}},79664:(e,t,i)=>{"use strict";var n=i(28967);e.exports=function(e,t,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},46922:(e,t,i)=>{"use strict";var n=i(91323),o=i(94370);e.exports=function(e,t,i){var r=this||o;return n.forEach(i,(function(i){e=i.call(r,e,t)})),e}},94370:(e,t,i)=>{"use strict";var n=i(91323),o=i(59374),r=i(80314),s=i(14309),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=i(49042)),e}function d(e,t,i){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(i||JSON.stringify)(e)}var u={transitional:s,adapter:c(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,i=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!i&&"json"===this.responseType;if(s||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw r(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(a)})),e.exports=u},14309:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},42499:e=>{e.exports={version:"0.26.1"}},89256:e=>{"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n{"use strict";var n=i(91323);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var r;if(i)r=i(t);else if(n.isURLSearchParams(t))r=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),r=s.join("&")}if(r){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},61221:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},60119:(e,t,i)=>{"use strict";var n=i(91323);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,i,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},48077:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},55713:(e,t,i)=>{"use strict";var n=i(91323);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},44728:(e,t,i)=>{"use strict";var n=i(91323);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=o(window.location.href),function(t){var i=n.isString(t)?o(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},59374:(e,t,i)=>{"use strict";var n=i(91323);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},80176:(e,t,i)=>{"use strict";var n=i(91323),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,r,s={};return e?(n.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=n.trim(e.substr(0,r)).toLowerCase(),i=n.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}})),s):s}},74e3:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},35758:(e,t,i)=>{"use strict";var n=i(42499).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var r={};function s(e,t,i){if("object"!==typeof e)throw new TypeError("options must be an object");var n=Object.keys(e),o=n.length;while(o-- >0){var r=n[o],s=t[r];if(s){var a=e[r],l=void 0===a||s(a,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==i)throw Error("Unknown option "+r)}}o.transitional=function(e,t,i){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,s){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!r[n]&&(r[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={assertOptions:s,validators:o}},91323:(e,t,i)=>{"use strict";var n=i(89256),o=Object.prototype.toString;function r(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"[object FormData]"===o.call(e)}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function g(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function _(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function b(e){return g(e)&&v(e.pipe)}function y(e){return"[object URLSearchParams]"===o.call(e)}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var i=0,n=e.length;i{"use strict";t.Z=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i}},33100:(e,t,i)=>{"use strict";i.d(t,{MT:()=>ee});var n=i(59835),o=i(60499);function r(){return s().__VUE_DEVTOOLS_GLOBAL_HOOK__}function s(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{}}const a="function"===typeof Proxy,l="devtools-plugin:setup",c="plugin:settings:set";let d,u;function h(){var e;return void 0!==d||("undefined"!==typeof window&&window.performance?(d=!0,u=window.performance):"undefined"!==typeof i.g&&(null===(e=i.g.perf_hooks)||void 0===e?void 0:e.performance)?(d=!0,u=i.g.perf_hooks.performance):d=!1),d}function g(){return h()?u.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const i={};if(e.settings)for(const s in e.settings){const t=e.settings[s];i[s]=t.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},i);try{const e=localStorage.getItem(n),t=JSON.parse(e);Object.assign(o,t)}catch(r){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(r){}o=e},now(){return g()}},t&&t.on(c,((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((i=>{this.targetQueue.push({method:t,args:e,resolve:i})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function f(e,t){const i=e,n=s(),o=r(),c=a&&i.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new p(i,o):null,r=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:i,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit(l,e,t)} + *-----------------------------------------------------------------------------*/c(u,n);var h=(e=>(e[e["None"]=0]="None",e[e["CommonJS"]=1]="CommonJS",e[e["AMD"]=2]="AMD",e[e["UMD"]=3]="UMD",e[e["System"]=4]="System",e[e["ES2015"]=5]="ES2015",e[e["ESNext"]=99]="ESNext",e))(h||{}),g=(e=>(e[e["None"]=0]="None",e[e["Preserve"]=1]="Preserve",e[e["React"]=2]="React",e[e["ReactNative"]=3]="ReactNative",e[e["ReactJSX"]=4]="ReactJSX",e[e["ReactJSXDev"]=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e["CarriageReturnLineFeed"]=0]="CarriageReturnLineFeed",e[e["LineFeed"]=1]="LineFeed",e))(p||{}),f=(e=>(e[e["ES3"]=0]="ES3",e[e["ES5"]=1]="ES5",e[e["ES2015"]=2]="ES2015",e[e["ES2016"]=3]="ES2016",e[e["ES2017"]=4]="ES2017",e[e["ES2018"]=5]="ES2018",e[e["ES2019"]=6]="ES2019",e[e["ES2020"]=7]="ES2020",e[e["ESNext"]=99]="ESNext",e[e["JSON"]=100]="JSON",e[e["Latest"]=99]="Latest",e))(f||{}),m=(e=>(e[e["Classic"]=1]="Classic",e[e["NodeJs"]=2]="NodeJs",e))(m||{}),_=class{_onDidChange=new u.Emitter;_onDidExtraLibsChange=new u.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;_modeConfiguration;constructor(e,t,i,n,o){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v=d,b={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},y=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),w=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),C=()=>x().then((e=>e.getTypeScriptWorker())),S=()=>x().then((e=>e.getJavaScriptWorker()));function x(){return i.e(736).then(i.bind(i,28643))}u.languages.typescript={ModuleKind:h,JsxEmit:g,NewLineKind:p,ScriptTarget:f,ModuleResolutionKind:m,typescriptVersion:v,typescriptDefaults:y,javascriptDefaults:w,getTypeScriptWorker:C,getJavaScriptWorker:S},u.languages.onLanguage("typescript",(()=>x().then((e=>e.setupTypeScript(y))))),u.languages.onLanguage("javascript",(()=>x().then((e=>e.setupJavaScript(w)))))},28643:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Adapter:()=>v,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>L,DiagnosticsAdapter:()=>y,DocumentHighlightAdapter:()=>k,FormatAdapter:()=>O,FormatHelper:()=>A,FormatOnTypeAdapter:()=>P,InlayHintsAdapter:()=>B,Kind:()=>D,LibFiles:()=>b,OutlineAdapter:()=>N,QuickInfoAdapter:()=>x,ReferenceAdapter:()=>E,RenameAdapter:()=>F,SignatureHelpAdapter:()=>S,SuggestAdapter:()=>w,WorkerManager:()=>p,flattenDiagnosticMessageText:()=>m,getJavaScriptWorker:()=>V,getTypeScriptWorker:()=>z,setupJavaScript:()=>W,setupTypeScript:()=>H});var n=i(97024),o=i(5483),r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(e,t,i)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,d=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))l.call(e,o)||o===i||r(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},u=(e,t,i)=>(d(e,t,"default"),i&&d(i,t,"default")),h=(e,t,i)=>(c(e,"symbol"!==typeof t?t+"":t,i),i),g={};u(g,n);var p=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}_configChangeListener;_updateExtraLibsToken;_extraLibsChangeListener;_worker;_client;dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=g.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(g.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},f={};function m(e,t,i=0){if("string"===typeof e)return e;if(void 0===e)return"";let n="";if(i){n+=t;for(let e=0;ee.text)).join(""):""}f["lib.d.ts"]=!0,f["lib.decorators.d.ts"]=!0,f["lib.decorators.legacy.d.ts"]=!0,f["lib.dom.d.ts"]=!0,f["lib.dom.iterable.d.ts"]=!0,f["lib.es2015.collection.d.ts"]=!0,f["lib.es2015.core.d.ts"]=!0,f["lib.es2015.d.ts"]=!0,f["lib.es2015.generator.d.ts"]=!0,f["lib.es2015.iterable.d.ts"]=!0,f["lib.es2015.promise.d.ts"]=!0,f["lib.es2015.proxy.d.ts"]=!0,f["lib.es2015.reflect.d.ts"]=!0,f["lib.es2015.symbol.d.ts"]=!0,f["lib.es2015.symbol.wellknown.d.ts"]=!0,f["lib.es2016.array.include.d.ts"]=!0,f["lib.es2016.d.ts"]=!0,f["lib.es2016.full.d.ts"]=!0,f["lib.es2017.d.ts"]=!0,f["lib.es2017.full.d.ts"]=!0,f["lib.es2017.intl.d.ts"]=!0,f["lib.es2017.object.d.ts"]=!0,f["lib.es2017.sharedmemory.d.ts"]=!0,f["lib.es2017.string.d.ts"]=!0,f["lib.es2017.typedarrays.d.ts"]=!0,f["lib.es2018.asyncgenerator.d.ts"]=!0,f["lib.es2018.asynciterable.d.ts"]=!0,f["lib.es2018.d.ts"]=!0,f["lib.es2018.full.d.ts"]=!0,f["lib.es2018.intl.d.ts"]=!0,f["lib.es2018.promise.d.ts"]=!0,f["lib.es2018.regexp.d.ts"]=!0,f["lib.es2019.array.d.ts"]=!0,f["lib.es2019.d.ts"]=!0,f["lib.es2019.full.d.ts"]=!0,f["lib.es2019.intl.d.ts"]=!0,f["lib.es2019.object.d.ts"]=!0,f["lib.es2019.string.d.ts"]=!0,f["lib.es2019.symbol.d.ts"]=!0,f["lib.es2020.bigint.d.ts"]=!0,f["lib.es2020.d.ts"]=!0,f["lib.es2020.date.d.ts"]=!0,f["lib.es2020.full.d.ts"]=!0,f["lib.es2020.intl.d.ts"]=!0,f["lib.es2020.number.d.ts"]=!0,f["lib.es2020.promise.d.ts"]=!0,f["lib.es2020.sharedmemory.d.ts"]=!0,f["lib.es2020.string.d.ts"]=!0,f["lib.es2020.symbol.wellknown.d.ts"]=!0,f["lib.es2021.d.ts"]=!0,f["lib.es2021.full.d.ts"]=!0,f["lib.es2021.intl.d.ts"]=!0,f["lib.es2021.promise.d.ts"]=!0,f["lib.es2021.string.d.ts"]=!0,f["lib.es2021.weakref.d.ts"]=!0,f["lib.es2022.array.d.ts"]=!0,f["lib.es2022.d.ts"]=!0,f["lib.es2022.error.d.ts"]=!0,f["lib.es2022.full.d.ts"]=!0,f["lib.es2022.intl.d.ts"]=!0,f["lib.es2022.object.d.ts"]=!0,f["lib.es2022.regexp.d.ts"]=!0,f["lib.es2022.sharedmemory.d.ts"]=!0,f["lib.es2022.string.d.ts"]=!0,f["lib.es2023.array.d.ts"]=!0,f["lib.es2023.d.ts"]=!0,f["lib.es2023.full.d.ts"]=!0,f["lib.es5.d.ts"]=!0,f["lib.es6.d.ts"]=!0,f["lib.esnext.d.ts"]=!0,f["lib.esnext.full.d.ts"]=!0,f["lib.esnext.intl.d.ts"]=!0,f["lib.scripthost.d.ts"]=!0,f["lib.webworker.d.ts"]=!0,f["lib.webworker.importscripts.d.ts"]=!0,f["lib.webworker.iterable.d.ts"]=!0;var v=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),n=e.getPositionAt(t.start+t.length),{lineNumber:o,column:r}=i,{lineNumber:s,column:a}=n;return{startLineNumber:o,startColumn:r,endLineNumber:s,endColumn:a}}},b=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}_libFiles;_hasFetchedLibFiles;_fetchLibFilesPromise;isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!f[e.path.slice(1)])}getOrCreateModel(e){const t=g.Uri.parse(e),i=g.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return g.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const n=o.TG.getExtraLibs()[e];return n?g.editor.createModel(n.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},y=class extends v{constructor(e,t,i,n){super(n),this._libFiles=e,this._defaults=t,this._selector=i;const o=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let n;const o=e.onDidChangeContent((()=>{clearTimeout(n),n=window.setTimeout(t,500)})),r=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():g.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){o.dispose(),r.dispose(),clearTimeout(n)}},t()},r=e=>{g.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel((e=>o(e)))),this._disposables.push(g.editor.onWillDisposeModel(r)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{r(e.model),o(e.model)}))),this._disposables.push({dispose(){for(const e of g.editor.getModels())r(e)}});const s=()=>{for(const e of g.editor.getModels())r(e),o(e)};this._disposables.push(this._defaults.onDidChange(s)),this._disposables.push(this._defaults.onDidExtraLibsChange(s)),g.editor.getModels().forEach((e=>o(e)))}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:n,noSemanticValidation:o,noSuggestionDiagnostics:r}=this._defaults.getDiagnosticsOptions();n||i.push(t.getSyntacticDiagnostics(e.uri.toString())),o||i.push(t.getSemanticDiagnostics(e.uri.toString())),r||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const s=await Promise.all(i);if(!s||e.isDisposed())return;const a=s.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=a.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?g.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||g.editor.setModelMarkers(e,this._selector,a.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,n=t.length||1,{lineNumber:o,column:r}=e.getPositionAt(i),{lineNumber:s,column:a}=e.getPositionAt(i+n),l=[];return t.reportsUnnecessary&&l.push(g.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(g.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:o,startColumn:r,endLineNumber:s,endColumn:a,message:m(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let n=e;if(t.file&&(n=this._libFiles.getOrCreateModel(t.file.fileName)),!n)return;const o=t.start||0,r=t.length||1,{lineNumber:s,column:a}=n.getPositionAt(o),{lineNumber:l,column:c}=n.getPositionAt(o+r);i.push({resource:n.uri,startLineNumber:s,startColumn:a,endLineNumber:l,endColumn:c,message:m(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return g.MarkerSeverity.Error;case 3:return g.MarkerSeverity.Info;case 0:return g.MarkerSeverity.Warning;case 2:return g.MarkerSeverity.Hint}return g.MarkerSeverity.Info}},w=class extends v{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,i,n){const o=e.getWordUntilPosition(t),r=new g.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),s=e.uri,a=e.getOffsetAt(t),l=await this._worker(s);if(e.isDisposed())return;const c=await l.getCompletionsAtPosition(s.toString(),a);if(!c||e.isDisposed())return;const d=c.entries.map((i=>{let n=r;if(i.replacementSpan){const t=e.getPositionAt(i.replacementSpan.start),o=e.getPositionAt(i.replacementSpan.start+i.replacementSpan.length);n=new g.Range(t.lineNumber,t.column,o.lineNumber,o.column)}const o=[];return void 0!==i.kindModifiers&&-1!==i.kindModifiers.indexOf("deprecated")&&o.push(g.languages.CompletionItemTag.Deprecated),{uri:s,position:t,offset:a,range:n,label:i.name,insertText:i.name,sortText:i.sortText,kind:w.convertKind(i.kind),tags:o}}));return{suggestions:d}}async resolveCompletionItem(e,t){const i=e,n=i.uri,o=i.position,r=i.offset,s=await this._worker(n),a=await s.getCompletionEntryDetails(n.toString(),r,i.label);return a?{uri:n,position:o,label:a.name,kind:w.convertKind(a.kind),detail:_(a.displayParts),documentation:{value:w.createDocumentationString(a)}}:i}static convertKind(e){switch(e){case D.primitiveType:case D.keyword:return g.languages.CompletionItemKind.Keyword;case D.variable:case D.localVariable:return g.languages.CompletionItemKind.Variable;case D.memberVariable:case D.memberGetAccessor:case D.memberSetAccessor:return g.languages.CompletionItemKind.Field;case D.function:case D.memberFunction:case D.constructSignature:case D.callSignature:case D.indexSignature:return g.languages.CompletionItemKind.Function;case D.enum:return g.languages.CompletionItemKind.Enum;case D.module:return g.languages.CompletionItemKind.Module;case D.class:return g.languages.CompletionItemKind.Class;case D.interface:return g.languages.CompletionItemKind.Interface;case D.warning:return g.languages.CompletionItemKind.File}return g.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=_(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${C(i)}`;return t}};function C(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...n]=e.text;t+=`\`${i.text}\``,n.length>0&&(t+=` — ${n.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var S=class extends v{signatureHelpTriggerCharacters=["(",","];static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case g.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(e,t,i,n){const o=e.uri,r=e.getOffsetAt(t),s=await this._worker(o);if(e.isDisposed())return;const a=await s.getSignatureHelpItems(o.toString(),r,{triggerReason:S._toSignatureHelpTriggerReason(n)});if(!a||e.isDisposed())return;const l={activeSignature:a.selectedItemIndex,activeParameter:a.argumentIndex,signatures:[]};return a.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:_(e.documentation)},t.label+=_(e.prefixDisplayParts),e.parameters.forEach(((i,n,o)=>{const r=_(i.displayParts),s={label:r,documentation:{value:_(i.documentation)}};t.label+=r,t.parameters.push(s),nC(e))).join(" \n\n"):"",c=_(s.displayParts);return{range:this._textSpanToRange(e,s.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:a+(l?"\n\n"+l:"")}]}}},k=class extends v{async provideDocumentHighlights(e,t,i){const n=e.uri,o=e.getOffsetAt(t),r=await this._worker(n);if(e.isDisposed())return;const s=await r.getDocumentHighlights(n.toString(),o,[n.toString()]);return s&&!e.isDisposed()?s.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?g.languages.DocumentHighlightKind.Write:g.languages.DocumentHighlightKind.Text}))))):void 0}},L=class extends v{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const n=e.uri,o=e.getOffsetAt(t),r=await this._worker(n);if(e.isDisposed())return;const s=await r.getDefinitionAtPosition(n.toString(),o);if(!s||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(s.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const a=[];for(let l of s){const e=this._libFiles.getOrCreateModel(l.fileName);e&&a.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return a}},E=class extends v{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,n){const o=e.uri,r=e.getOffsetAt(t),s=await this._worker(o);if(e.isDisposed())return;const a=await s.getReferencesAtPosition(o.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let c of a){const e=this._libFiles.getOrCreateModel(c.fileName);e&&l.push({uri:e.uri,range:this._textSpanToRange(e,c.textSpan)})}return l}},N=class extends v{async provideDocumentSymbols(e,t){const i=e.uri,n=await this._worker(i);if(e.isDisposed())return;const o=await n.getNavigationTree(i.toString());if(!o||e.isDisposed())return;const r=(t,i)=>{const n={name:t.text,detail:"",kind:T[t.kind]||g.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>r(e,t.text))),containerName:i};return n},s=o.childItems?o.childItems.map((e=>r(e))):[];return s}},D=class{};h(D,"unknown",""),h(D,"keyword","keyword"),h(D,"script","script"),h(D,"module","module"),h(D,"class","class"),h(D,"interface","interface"),h(D,"type","type"),h(D,"enum","enum"),h(D,"variable","var"),h(D,"localVariable","local var"),h(D,"function","function"),h(D,"localFunction","local function"),h(D,"memberFunction","method"),h(D,"memberGetAccessor","getter"),h(D,"memberSetAccessor","setter"),h(D,"memberVariable","property"),h(D,"constructorImplementation","constructor"),h(D,"callSignature","call"),h(D,"indexSignature","index"),h(D,"constructSignature","construct"),h(D,"parameter","parameter"),h(D,"typeParameter","type parameter"),h(D,"primitiveType","primitive type"),h(D,"label","label"),h(D,"alias","alias"),h(D,"const","const"),h(D,"let","let"),h(D,"warning","warning");var T=Object.create(null);T[D.module]=g.languages.SymbolKind.Module,T[D.class]=g.languages.SymbolKind.Class,T[D.enum]=g.languages.SymbolKind.Enum,T[D.interface]=g.languages.SymbolKind.Interface,T[D.memberFunction]=g.languages.SymbolKind.Method,T[D.memberVariable]=g.languages.SymbolKind.Property,T[D.memberGetAccessor]=g.languages.SymbolKind.Property,T[D.memberSetAccessor]=g.languages.SymbolKind.Property,T[D.variable]=g.languages.SymbolKind.Variable,T[D.const]=g.languages.SymbolKind.Variable,T[D.localVariable]=g.languages.SymbolKind.Variable,T[D.variable]=g.languages.SymbolKind.Variable,T[D.function]=g.languages.SymbolKind.Function,T[D.localFunction]=g.languages.SymbolKind.Function;var I,R,A=class extends v{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},O=class extends A{canFormatMultipleRanges=!1;async provideDocumentRangeFormattingEdits(e,t,i,n){const o=e.uri,r=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=await this._worker(o);if(e.isDisposed())return;const l=await a.getFormattingEditsForRange(o.toString(),r,s,A._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},P=class extends A{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,n,o){const r=e.uri,s=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(r.toString(),s,i,A._convertOptions(n));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends A{async provideCodeActions(e,t,i,n){const o=e.uri,r=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=A._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(o);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(o.toString(),r,s,l,a);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};const u=d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t)));return{actions:u,dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const n=[];for(const r of i.changes)for(const t of r.textChanges)n.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});const o={title:i.description,edit:{edits:n},diagnostics:t.markers,kind:"quickfix"};return o}},F=class extends v{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,n){const o=e.uri,r=o.toString(),s=e.getOffsetAt(t),a=await this._worker(o);if(e.isDisposed())return;const l=await a.getRenameInfo(r,s,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await a.findRenameLocations(r,s,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},B=class extends v{async provideInlayHints(e,t,i){const n=e.uri,o=n.toString(),r=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=await this._worker(n);if(e.isDisposed())return null;const l=await a.provideInlayHints(o,r,s),c=l.map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)})));return{hints:c,dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return g.languages.InlayHintKind.Parameter;case"Type":return g.languages.InlayHintKind.Type;default:return g.languages.InlayHintKind.Type}}};function H(e){R=j(e,"typescript")}function W(e){I=j(e,"javascript")}function V(){return new Promise(((e,t)=>{if(!I)return t("JavaScript not registered!");e(I)}))}function z(){return new Promise(((e,t)=>{if(!R)return t("TypeScript not registered!");e(R)}))}function j(e,t){const i=[],n=[],o=new p(t,e);i.push(o);const r=(...e)=>o.getLanguageServiceWorker(...e),s=new b(r);function a(){const{modeConfiguration:i}=e;$(n),i.completionItems&&n.push(g.languages.registerCompletionItemProvider(t,new w(r))),i.signatureHelp&&n.push(g.languages.registerSignatureHelpProvider(t,new S(r))),i.hovers&&n.push(g.languages.registerHoverProvider(t,new x(r))),i.documentHighlights&&n.push(g.languages.registerDocumentHighlightProvider(t,new k(r))),i.definitions&&n.push(g.languages.registerDefinitionProvider(t,new L(s,r))),i.references&&n.push(g.languages.registerReferenceProvider(t,new E(s,r))),i.documentSymbols&&n.push(g.languages.registerDocumentSymbolProvider(t,new N(r))),i.rename&&n.push(g.languages.registerRenameProvider(t,new F(s,r))),i.documentRangeFormattingEdits&&n.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new O(r))),i.onTypeFormattingEdits&&n.push(g.languages.registerOnTypeFormattingEditProvider(t,new P(r))),i.codeActions&&n.push(g.languages.registerCodeActionProvider(t,new M(r))),i.inlayHints&&n.push(g.languages.registerInlayHintsProvider(t,new B(r))),i.diagnostics&&n.push(new y(s,e,t,r))}return a(),i.push(U(n)),r}function U(e){return{dispose:()=>$(e)}}function $(e){while(e.length)e.pop().dispose()}},25206:(e,t,i)=>{"use strict";i.d(t,{NC:()=>r,aj:()=>a,vv:()=>s});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],o=t[n];let r=e;return"string"===typeof o?r=o:"number"!==typeof o&&"boolean"!==typeof o&&void 0!==o&&null!==o||(r=String(o)),r})),n&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function r(e,t,...i){return o(t,i)}function s(e,t,...i){const n=o(t,i);return{value:n,original:n}}function a(e){}},55907:(e,t,i)=>{"use strict";i.d(t,{F7:()=>r,UA:()=>s,VX:()=>a});var n=i(37174),o=i(21881);const r=(0,o.yh)("accessibilityService"),s=new n.uy("accessibilityModeEnabled",!1),a=(0,o.yh)("accessibleNotificationService")},94700:(e,t,i)=>{"use strict";i.d(t,{Mm:()=>R,Id:()=>M,vr:()=>T,LJ:()=>D});var n=i(2548),o=i(45429),r=i(94873),s=i(29031),a=i(10205),l=i(9501),c=i(70959),d=i(47606),u=i(25206),h=i(82693);function g(e){return!!e&&void 0!==e.condition}var p=i(37174),f=i(93753),m=i(21881),_=i(15285),v=i(18736),b=i(92601),y=i(32656),w=i(99588),C=i(71976),S=i(55455),x=i(47277),k=i(22454),L=i(55907),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},N=function(e,t){return function(i,n){t(i,n,e)}};function D(e,t,i,o){const r=e.getActions(t),s=n._q.getInstance(),a=s.keyStatus.altKey||(d.ED||d.IJ)&&s.keyStatus.shiftKey;I(r,i,a,o?e=>e===o:e=>"navigation"===e)}function T(e,t,i,n,o,r){const s=e.getActions(t),a="string"===typeof n?e=>e===n:n;I(s,i,!1,a,o,r)}function I(e,t,i,n=(e=>"navigation"===e),o=(()=>!1),r=!1){let s,l;Array.isArray(t)?(s=t,l=t):(s=t.primary,l=t.secondary);const c=new Set;for(const[d,u]of e){let e;n(d)?(e=s,e.length>0&&r&&e.push(new a.Z0)):(e=l,e.length>0&&e.push(new a.Z0));for(let t of u){i&&(t=t instanceof h.U8&&t.alt?t.alt:t);const n=e.push(t);t instanceof a.wY&&c.add({group:d,action:t,index:n-1})}}for(const{group:a,action:d,index:u}of c){const e=n(a)?s:l,t=d.actions;o(d,a,e.length)&&e.splice(u,1,...t)}}let R=class extends r.gU{constructor(e,t,i,o,r,s,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===t||void 0===t?void 0:t.draggable,keybinding:null===t||void 0===t?void 0:t.keybinding,hoverDelegate:null===t||void 0===t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=o,this._contextKeyService=r,this._themeService=s,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.XK),this._altKey=n._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.nm)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,n.nm)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let o=i?(0,u.NC)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,u.NC)("titleAndKb","{0} ({1})",e,i):e;o=(0,u.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",o,l.xo.modifierLabels[d.OS].altKey,n)}return o}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const o=this._commandAction.checked&&g(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(o)if(w.k.isThemeIcon(o)){const e=w.k.asClassNameArray(o);i.classList.add(...e),this._itemClassDispose.value=(0,c.OF)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,C._T)(this._themeService.getColorTheme().type)?(0,n.wY)(o.dark):(0,n.wY)(o.light),i.classList.add("icon"),this._itemClassDispose.value=(0,c.F8)((0,c.OF)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};R=E([N(2,_.d),N(3,v.lT),N(4,p.i6),N(5,y.XE),N(6,f.i),N(7,L.F7)],R);let A=class extends s.C{constructor(e,t,i,n,o){var r,s,a;const l={...t,menuAsChild:null!==(r=null===t||void 0===t?void 0:t.menuAsChild)&&void 0!==r&&r,classNames:null!==(s=null===t||void 0===t?void 0:t.classNames)&&void 0!==s?s:w.k.isThemeIcon(e.item.icon)?w.k.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null===t||void 0===t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=o}render(e){super.render(e),(0,S.p_)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!w.k.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,C._T)(this._themeService.getColorTheme().type)?(0,n.wY)(i.dark):(0,n.wY)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};A=E([N(2,_.d),N(3,f.i),N(4,y.XE)],A);let O=class extends r.YH{constructor(e,t,i,n,o,r,l,c){var d,u,g;let p;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=r,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const f=(null===t||void 0===t?void 0:t.persistLastActionId)?c.get(this._storageKey,1):void 0;f&&(p=e.actions.find((e=>f===e.id))),p||(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(R,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});const m={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(d=null===t||void 0===t?void 0:t.menuAsChild)||void 0===d||d,classNames:null!==(u=null===t||void 0===t?void 0:t.classNames)&&void 0!==u?u:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null===t||void 0===t?void 0:t.actionRunner)&&void 0!==g?g:new a.Wi};this._dropdown=new s.C(e,e.actions,this._contextMenuService,m),this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof h.U8&&this.update(e.action)}))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(R,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Ce)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.R3)(this._container,t)),this._register((0,n.nm)(t,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.R3)(this._container,i)),this._register((0,n.nm)(i,n.tw.KEY_DOWN,(e=>{var t;const i=new o.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};O=E([N(2,_.d),N(3,v.lT),N(4,f.i),N(5,h.co),N(6,m.TG),N(7,b.Uy)],O);let P=class extends r.Lc{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.Z0.ID?"─────────":e.label,isDisabled:!e.enabled}))),0,t,k.BM,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,x.n_1)(x.a9O)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function M(e,t,i){return t instanceof h.U8?e.createInstance(R,t,i):t instanceof h.NZ?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(O,t,{...i,persistLastActionId:!0}):e.createInstance(A,t,i):void 0}P=E([N(1,f.u)],P)},74647:(e,t,i)=>{"use strict";i.d(t,{r:()=>N,T:()=>E});var n=i(2548),o=i(75467),r=i(78089),s=i(29031),a=i(10205),l=i(8419),c=i(99588),d=i(11271),u=i(70959),h=i(25206);class g extends u.JT{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new d.z5),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new u.SL),this.options=i,this.lookupKeybindings="function"===typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new p((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.o(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,actionViewItemProvider:(e,n)=>{var o;if(e.id===p.ID)return this.toggleMenuActionViewItem=new s.C(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:c.k.asClassNameArray(null!==(o=i.moreIcon)&&void 0!==o?o:l.l.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof a.wY){const i=new s.C(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const o=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return null!==(n=null===o||void 0===o?void 0:o.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class p extends a.aU{constructor(e,t){t=t||h.NC("moreActions","More Actions..."),super(p.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}p.ID="toolbar.toggle.more";var f=i(21921),m=i(22237),_=i(98642),v=i(39595),b=i(94700),y=i(82693),w=i(37174),C=i(93753),S=i(15285),x=i(38857),k=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},L=function(e,t){return function(i,n){t(i,n,e)}};let E=class extends g{constructor(e,t,i,n,o,r,s){super(e,o,{getKeyBinding:e=>{var t;return null!==(t=r.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"===typeof(null===t||void 0===t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=o,this._sessionDisposables=this._store.add(new u.SL);const a=null===t||void 0===t?void 0:t.telemetrySource;a&&this._store.add(this.actionBar.onDidRun((e=>s.publicLog2("workbenchActionExecuted",{id:e.action.id,from:a}))))}setActions(e,t=[],i){var r,s,l;this._sessionDisposables.clear();const c=e.slice(),d=t.slice(),u=[];let g=0;const p=[];let _=!1;if(-1!==(null===(r=this._options)||void 0===r?void 0:r.hiddenItemStrategy))for(let n=0;nnull===e||void 0===e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n=t&&(c[n]=void 0,p[n]=o))}}(0,f.Rs)(c),(0,f.Rs)(p),super.setActions(c,a.Z0.join(p,d)),u.length>0&&this._sessionDisposables.add((0,n.nm)(this.getElement(),"contextmenu",(e=>{var t,r,s,l,c;const d=new o.n((0,n.Jj)(this.getElement()),e),p=this.getItemAction(d.target);if(!p)return;d.preventDefault(),d.stopPropagation();let f,m=!1;if(1===g&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){m=!0;for(let e=0;ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>d,getActions:()=>v,menuId:null===(s=this._options)||void 0===s?void 0:s.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(l=this._options)||void 0===l?void 0:l.menuOptions},skipTelemetry:"string"===typeof(null===(c=this._options)||void 0===c?void 0:c.telemetrySource),contextKeyService:this._contextKeyService})})))}};E=k([L(2,y.co),L(3,w.i6),L(4,C.i),L(5,S.d),L(6,x.b)],E);let N=class extends E{constructor(e,t,i,n,o,r,s,a){super(e,{resetMenu:t,...i},n,o,r,s,a),this._onDidChangeMenuItems=this._store.add(new d.Q5);const l=this._store.add(n.createMenu(t,o,{emitEventsForSubmenuChanges:!0})),c=()=>{var t,n,o;const r=[],s=[];(0,b.vr)(l,null===i||void 0===i?void 0:i.menuOptions,{primary:r,secondary:s},null===(t=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(o=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===o?void 0:o.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===r.length&&0===s.length),super.setActions(r,s)};this._store.add(l.onDidChange((()=>{c(),this._onDidChangeMenuItems.fire(this)}))),c()}setActions(){throw new _.he("This toolbar is populated from a menu.")}};N=k([L(3,y.co),L(4,w.i6),L(5,C.i),L(6,S.d),L(7,x.b)],N)},82693:(e,t,i)=>{"use strict";i.d(t,{BH:()=>y,Ke:()=>S,NZ:()=>w,U8:()=>C,co:()=>v,eH:()=>_,f6:()=>m,r1:()=>x,vr:()=>f});var n,o=i(10205),r=i(99588),s=i(11271),a=i(70959),l=i(33010),c=i(46871),d=i(37174),u=i(21881),h=i(37395),g=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},p=function(e,t){return function(i,n){t(i,n,e)}};function f(e){return void 0!==e.command}function m(e){return void 0!==e.submenu}class _{constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}_._instances=new Map,_.CommandPalette=new _("CommandPalette"),_.DebugBreakpointsContext=new _("DebugBreakpointsContext"),_.DebugCallStackContext=new _("DebugCallStackContext"),_.DebugConsoleContext=new _("DebugConsoleContext"),_.DebugVariablesContext=new _("DebugVariablesContext"),_.DebugWatchContext=new _("DebugWatchContext"),_.DebugToolBar=new _("DebugToolBar"),_.DebugToolBarStop=new _("DebugToolBarStop"),_.EditorContext=new _("EditorContext"),_.SimpleEditorContext=new _("SimpleEditorContext"),_.EditorContent=new _("EditorContent"),_.EditorLineNumberContext=new _("EditorLineNumberContext"),_.EditorContextCopy=new _("EditorContextCopy"),_.EditorContextPeek=new _("EditorContextPeek"),_.EditorContextShare=new _("EditorContextShare"),_.EditorTitle=new _("EditorTitle"),_.EditorTitleRun=new _("EditorTitleRun"),_.EditorTitleContext=new _("EditorTitleContext"),_.EditorTitleContextShare=new _("EditorTitleContextShare"),_.EmptyEditorGroup=new _("EmptyEditorGroup"),_.EmptyEditorGroupContext=new _("EmptyEditorGroupContext"),_.EditorTabsBarContext=new _("EditorTabsBarContext"),_.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu"),_.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu"),_.ExplorerContext=new _("ExplorerContext"),_.ExplorerContextShare=new _("ExplorerContextShare"),_.ExtensionContext=new _("ExtensionContext"),_.GlobalActivity=new _("GlobalActivity"),_.CommandCenter=new _("CommandCenter"),_.CommandCenterCenter=new _("CommandCenterCenter"),_.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu"),_.LayoutControlMenu=new _("LayoutControlMenu"),_.MenubarMainMenu=new _("MenubarMainMenu"),_.MenubarAppearanceMenu=new _("MenubarAppearanceMenu"),_.MenubarDebugMenu=new _("MenubarDebugMenu"),_.MenubarEditMenu=new _("MenubarEditMenu"),_.MenubarCopy=new _("MenubarCopy"),_.MenubarFileMenu=new _("MenubarFileMenu"),_.MenubarGoMenu=new _("MenubarGoMenu"),_.MenubarHelpMenu=new _("MenubarHelpMenu"),_.MenubarLayoutMenu=new _("MenubarLayoutMenu"),_.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu"),_.PanelAlignmentMenu=new _("PanelAlignmentMenu"),_.PanelPositionMenu=new _("PanelPositionMenu"),_.ActivityBarPositionMenu=new _("ActivityBarPositionMenu"),_.MenubarPreferencesMenu=new _("MenubarPreferencesMenu"),_.MenubarRecentMenu=new _("MenubarRecentMenu"),_.MenubarSelectionMenu=new _("MenubarSelectionMenu"),_.MenubarShare=new _("MenubarShare"),_.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu"),_.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu"),_.MenubarTerminalMenu=new _("MenubarTerminalMenu"),_.MenubarViewMenu=new _("MenubarViewMenu"),_.MenubarHomeMenu=new _("MenubarHomeMenu"),_.OpenEditorsContext=new _("OpenEditorsContext"),_.OpenEditorsContextShare=new _("OpenEditorsContextShare"),_.ProblemsPanelContext=new _("ProblemsPanelContext"),_.SCMInputBox=new _("SCMInputBox"),_.SCMHistoryItem=new _("SCMHistoryItem"),_.SCMChangeContext=new _("SCMChangeContext"),_.SCMResourceContext=new _("SCMResourceContext"),_.SCMResourceContextShare=new _("SCMResourceContextShare"),_.SCMResourceFolderContext=new _("SCMResourceFolderContext"),_.SCMResourceGroupContext=new _("SCMResourceGroupContext"),_.SCMSourceControl=new _("SCMSourceControl"),_.SCMTitle=new _("SCMTitle"),_.SearchContext=new _("SearchContext"),_.SearchActionMenu=new _("SearchActionContext"),_.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu"),_.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu"),_.StickyScrollContext=new _("StickyScrollContext"),_.TestItem=new _("TestItem"),_.TestItemGutter=new _("TestItemGutter"),_.TestMessageContext=new _("TestMessageContext"),_.TestMessageContent=new _("TestMessageContent"),_.TestPeekElement=new _("TestPeekElement"),_.TestPeekTitle=new _("TestPeekTitle"),_.TouchBarContext=new _("TouchBarContext"),_.TitleBarContext=new _("TitleBarContext"),_.TitleBarTitleContext=new _("TitleBarTitleContext"),_.TunnelContext=new _("TunnelContext"),_.TunnelPrivacy=new _("TunnelPrivacy"),_.TunnelProtocol=new _("TunnelProtocol"),_.TunnelPortInline=new _("TunnelInline"),_.TunnelTitle=new _("TunnelTitle"),_.TunnelLocalAddressInline=new _("TunnelLocalAddressInline"),_.TunnelOriginInline=new _("TunnelOriginInline"),_.ViewItemContext=new _("ViewItemContext"),_.ViewContainerTitle=new _("ViewContainerTitle"),_.ViewContainerTitleContext=new _("ViewContainerTitleContext"),_.ViewTitle=new _("ViewTitle"),_.ViewTitleContext=new _("ViewTitleContext"),_.CommentEditorActions=new _("CommentEditorActions"),_.CommentThreadTitle=new _("CommentThreadTitle"),_.CommentThreadActions=new _("CommentThreadActions"),_.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions"),_.CommentThreadTitleContext=new _("CommentThreadTitleContext"),_.CommentThreadCommentContext=new _("CommentThreadCommentContext"),_.CommentTitle=new _("CommentTitle"),_.CommentActions=new _("CommentActions"),_.InteractiveToolbar=new _("InteractiveToolbar"),_.InteractiveCellTitle=new _("InteractiveCellTitle"),_.InteractiveCellDelete=new _("InteractiveCellDelete"),_.InteractiveCellExecute=new _("InteractiveCellExecute"),_.InteractiveInputExecute=new _("InteractiveInputExecute"),_.NotebookToolbar=new _("NotebookToolbar"),_.NotebookStickyScrollContext=new _("NotebookStickyScrollContext"),_.NotebookCellTitle=new _("NotebookCellTitle"),_.NotebookCellDelete=new _("NotebookCellDelete"),_.NotebookCellInsert=new _("NotebookCellInsert"),_.NotebookCellBetween=new _("NotebookCellBetween"),_.NotebookCellListTop=new _("NotebookCellTop"),_.NotebookCellExecute=new _("NotebookCellExecute"),_.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary"),_.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle"),_.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle"),_.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle"),_.NotebookOutputToolbar=new _("NotebookOutputToolbar"),_.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure"),_.NotebookKernelSource=new _("NotebookKernelSource"),_.BulkEditTitle=new _("BulkEditTitle"),_.BulkEditContext=new _("BulkEditContext"),_.TimelineItemContext=new _("TimelineItemContext"),_.TimelineTitle=new _("TimelineTitle"),_.TimelineTitleContext=new _("TimelineTitleContext"),_.TimelineFilterSubMenu=new _("TimelineFilterSubMenu"),_.AccountsContext=new _("AccountsContext"),_.SidebarTitle=new _("SidebarTitle"),_.PanelTitle=new _("PanelTitle"),_.AuxiliaryBarTitle=new _("AuxiliaryBarTitle"),_.TerminalInstanceContext=new _("TerminalInstanceContext"),_.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext"),_.TerminalNewDropdownContext=new _("TerminalNewDropdownContext"),_.TerminalTabContext=new _("TerminalTabContext"),_.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext"),_.TerminalStickyScrollContext=new _("TerminalStickyScrollContext"),_.WebviewContext=new _("WebviewContext"),_.InlineCompletionsActions=new _("InlineCompletionsActions"),_.NewFile=new _("NewFile"),_.MergeInput1Toolbar=new _("MergeToolbar1Toolbar"),_.MergeInput2Toolbar=new _("MergeToolbar2Toolbar"),_.MergeBaseToolbar=new _("MergeBaseToolbar"),_.MergeInputResultToolbar=new _("MergeToolbarResultToolbar"),_.InlineSuggestionToolbar=new _("InlineSuggestionToolbar"),_.ChatContext=new _("ChatContext"),_.ChatCodeBlock=new _("ChatCodeblock"),_.ChatMessageTitle=new _("ChatMessageTitle"),_.ChatExecute=new _("ChatExecute"),_.ChatInputSide=new _("ChatInputSide"),_.AccessibleView=new _("AccessibleView"),_.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar");const v=(0,u.yh)("menuService");class b{static for(e){let t=this._all.get(e);return t||(t=new b(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof b&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}b._all=new Map;const y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.SZ({merge:b.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(b.for(_.CommandPalette)),(0,a.OF)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(b.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.S,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(b.for(e)),(0,a.OF)((()=>{n(),this._onDidChangeMenu.fire(b.for(e))}))}appendMenuItems(e){const t=new a.SL;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)f(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class w extends o.wY{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let C=n=class{static label(e,t){return(null===t||void 0===t?void 0:t.renderShortTitle)&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,o,s,a){var l,c;let d;if(this.hideActions=o,this._commandService=a,this.id=e.id,this.label=n.label(e,i),this.tooltip=null!==(c="string"===typeof e.tooltip?e.tooltip:null===(l=e.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.k.isThemeIcon(t.icon)&&(d=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}d||(d=r.k.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new n(t,void 0,i,o,s,a):void 0,this._options=i,this.class=d&&r.k.asClassName(d)}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};C=n=g([p(4,d.i6),p(5,c.H)],C);class S{constructor(e){this.desc=e}}function x(e){const t=new a.SL,i=new e,{f1:n,menu:o,keybinding:r,...s}=i.desc;if(t.add(c.P.registerCommand({id:s.id,handler:(e,...t)=>i.run(e,...t),metadata:s.metadata})),Array.isArray(o))for(const a of o)t.add(y.appendMenuItem(a.id,{command:{...s,precondition:null===a.precondition?void 0:s.precondition},...a}));else o&&t.add(y.appendMenuItem(o.id,{command:{...s,precondition:null===o.precondition?void 0:s.precondition},...o}));if(n&&(t.add(y.appendMenuItem(_.CommandPalette,{command:s,when:s.precondition})),t.add(y.addCommand(s))),Array.isArray(r))for(const a of r)t.add(h.W.registerKeybindingRule({...a,id:s.id,when:s.precondition?d.Ao.and(s.precondition,a.when):a.when}));else r&&t.add(h.W.registerKeybindingRule({...r,id:s.id,when:s.precondition?d.Ao.and(s.precondition,r.when):r.when}));return t}},70936:(e,t,i)=>{"use strict";i.d(t,{e7:()=>r,y$:()=>l});var n=i(21881),o=i(25206);const r=(0,n.yh)("audioCue");class s{static register(e){const t=new s(e.fileName);return t}constructor(e){this.fileName=e}}s.error=s.register({fileName:"error.mp3"}),s.warning=s.register({fileName:"warning.mp3"}),s.foldedArea=s.register({fileName:"foldedAreas.mp3"}),s.break=s.register({fileName:"break.mp3"}),s.quickFixes=s.register({fileName:"quickFixes.mp3"}),s.taskCompleted=s.register({fileName:"taskCompleted.mp3"}),s.taskFailed=s.register({fileName:"taskFailed.mp3"}),s.terminalBell=s.register({fileName:"terminalBell.mp3"}),s.diffLineInserted=s.register({fileName:"diffLineInserted.mp3"}),s.diffLineDeleted=s.register({fileName:"diffLineDeleted.mp3"}),s.diffLineModified=s.register({fileName:"diffLineModified.mp3"}),s.chatRequestSent=s.register({fileName:"chatRequestSent.mp3"}),s.chatResponsePending=s.register({fileName:"chatResponsePending.mp3"}),s.chatResponseReceived1=s.register({fileName:"chatResponseReceived1.mp3"}),s.chatResponseReceived2=s.register({fileName:"chatResponseReceived2.mp3"}),s.chatResponseReceived3=s.register({fileName:"chatResponseReceived3.mp3"}),s.chatResponseReceived4=s.register({fileName:"chatResponseReceived4.mp3"}),s.clear=s.register({fileName:"clear.mp3"}),s.save=s.register({fileName:"save.mp3"}),s.format=s.register({fileName:"format.mp3"});class a{constructor(e){this.randomOneOf=e}}class l{static register(e){const t=new a("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new l(t,e.name,e.settingsKey);return l._audioCues.add(i),i}constructor(e,t,i){this.sound=e,this.name=t,this.settingsKey=i}}l._audioCues=new Set,l.error=l.register({name:(0,o.NC)("audioCues.lineHasError.name","Error on Line"),sound:s.error,settingsKey:"audioCues.lineHasError"}),l.warning=l.register({name:(0,o.NC)("audioCues.lineHasWarning.name","Warning on Line"),sound:s.warning,settingsKey:"audioCues.lineHasWarning"}),l.foldedArea=l.register({name:(0,o.NC)("audioCues.lineHasFoldedArea.name","Folded Area on Line"),sound:s.foldedArea,settingsKey:"audioCues.lineHasFoldedArea"}),l.break=l.register({name:(0,o.NC)("audioCues.lineHasBreakpoint.name","Breakpoint on Line"),sound:s.break,settingsKey:"audioCues.lineHasBreakpoint"}),l.inlineSuggestion=l.register({name:(0,o.NC)("audioCues.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:s.quickFixes,settingsKey:"audioCues.lineHasInlineSuggestion"}),l.terminalQuickFix=l.register({name:(0,o.NC)("audioCues.terminalQuickFix.name","Terminal Quick Fix"),sound:s.quickFixes,settingsKey:"audioCues.terminalQuickFix"}),l.onDebugBreak=l.register({name:(0,o.NC)("audioCues.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:s.break,settingsKey:"audioCues.onDebugBreak"}),l.noInlayHints=l.register({name:(0,o.NC)("audioCues.noInlayHints","No Inlay Hints on Line"),sound:s.error,settingsKey:"audioCues.noInlayHints"}),l.taskCompleted=l.register({name:(0,o.NC)("audioCues.taskCompleted","Task Completed"),sound:s.taskCompleted,settingsKey:"audioCues.taskCompleted"}),l.taskFailed=l.register({name:(0,o.NC)("audioCues.taskFailed","Task Failed"),sound:s.taskFailed,settingsKey:"audioCues.taskFailed"}),l.terminalCommandFailed=l.register({name:(0,o.NC)("audioCues.terminalCommandFailed","Terminal Command Failed"),sound:s.error,settingsKey:"audioCues.terminalCommandFailed"}),l.terminalBell=l.register({name:(0,o.NC)("audioCues.terminalBell","Terminal Bell"),sound:s.terminalBell,settingsKey:"audioCues.terminalBell"}),l.notebookCellCompleted=l.register({name:(0,o.NC)("audioCues.notebookCellCompleted","Notebook Cell Completed"),sound:s.taskCompleted,settingsKey:"audioCues.notebookCellCompleted"}),l.notebookCellFailed=l.register({name:(0,o.NC)("audioCues.notebookCellFailed","Notebook Cell Failed"),sound:s.taskFailed,settingsKey:"audioCues.notebookCellFailed"}),l.diffLineInserted=l.register({name:(0,o.NC)("audioCues.diffLineInserted","Diff Line Inserted"),sound:s.diffLineInserted,settingsKey:"audioCues.diffLineInserted"}),l.diffLineDeleted=l.register({name:(0,o.NC)("audioCues.diffLineDeleted","Diff Line Deleted"),sound:s.diffLineDeleted,settingsKey:"audioCues.diffLineDeleted"}),l.diffLineModified=l.register({name:(0,o.NC)("audioCues.diffLineModified","Diff Line Modified"),sound:s.diffLineModified,settingsKey:"audioCues.diffLineModified"}),l.chatRequestSent=l.register({name:(0,o.NC)("audioCues.chatRequestSent","Chat Request Sent"),sound:s.chatRequestSent,settingsKey:"audioCues.chatRequestSent"}),l.chatResponseReceived=l.register({name:(0,o.NC)("audioCues.chatResponseReceived","Chat Response Received"),settingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[s.chatResponseReceived1,s.chatResponseReceived2,s.chatResponseReceived3,s.chatResponseReceived4]}}),l.chatResponsePending=l.register({name:(0,o.NC)("audioCues.chatResponsePending","Chat Response Pending"),sound:s.chatResponsePending,settingsKey:"audioCues.chatResponsePending"}),l.clear=l.register({name:(0,o.NC)("audioCues.clear","Clear"),sound:s.clear,settingsKey:"audioCues.clear"}),l.save=l.register({name:(0,o.NC)("audioCues.save","Save"),sound:s.save,settingsKey:"audioCues.save"}),l.format=l.register({name:(0,o.NC)("audioCues.format","Format"),sound:s.format,settingsKey:"audioCues.format"})},2827:(e,t,i)=>{"use strict";i.d(t,{p:()=>o});var n=i(21881);const o=(0,n.yh)("clipboardService")},46871:(e,t,i)=>{"use strict";i.d(t,{H:()=>c,P:()=>d});var n=i(11271),o=i(39595),r=i(70959),s=i(33010),a=i(55455),l=i(21881);const c=(0,l.yh)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const n of e.metadata.args)t.push(n.constraint);const i=e.handler;e.handler=function(e,...n){return(0,a.D8)(n,t),i(e,...n)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new s.S,this._commands.set(i,n));const o=n.unshift(e),l=(0,r.OF)((()=>{o();const e=this._commands.get(i);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return d.registerCommand(e,((e,...i)=>e.get(c).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return o.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};d.registerCommand("noop",(()=>{}))},47596:(e,t,i)=>{"use strict";i.d(t,{KV:()=>s,Mt:()=>c,Od:()=>r,UI:()=>d,Ui:()=>o,xL:()=>a});var n=i(21881);const o=(0,n.yh)("configurationService");function r(e,t){const i=Object.create(null);for(const n in e)s(i,n,e[n],t);return i}function s(e,t,i,n){const o=t.split("."),r=o.pop();let s=e;for(let l=0;l{"use strict";i.d(t,{IP:()=>d,eU:()=>S,ny:()=>x});var n=i(21921),o=i(11271),r=i(55455),s=i(25206),a=i(47596),l=i(62478),c=i(39672);const d={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=c.B.as(l.I.JSONContribution);class b{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.Q5,this._onDidUpdateConfiguration=new o.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:s.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:o,source:l}of e)for(const e in o)if(t.add(e),S.test(e)){const t=this.configurationDefaultsOverrides.get(e),c=null!==(i=null===t||void 0===t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(l)for(const i of Object.keys(o[e]))c.set(i,l);const d={...(null===t||void 0===t?void 0:t.value)||{},...o[e]};this.configurationDefaultsOverrides.set(e,{source:l,value:d,valuesSources:c});const u=(0,a.UI)(e),h={type:"object",default:d,description:s.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",u),$ref:_,defaultDefaultValue:d,source:r.HD(l)?void 0:l,defaultValueSource:l};n.push(...x(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:o[e],source:l});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,n,o=3,s){var a;o=r.Jp(e.scope)?o:e.scope;const l=e.properties;if(l)for(const d in l){const e=l[d];t&&E(d,e)?delete l[d]:(e.source=i,e.defaultDefaultValue=l[d].default,this.updatePropertyDefaultValue(d,e),S.test(d)?e.scope=void 0:(e.scope=r.Jp(e.scope)?o:e.scope,e.restricted=r.Jp(e.restricted)?!!(null===n||void 0===n?void 0:n.includes(d)):e.restricted),!l[d].hasOwnProperty("included")||l[d].included?(this.configurationProperties[d]=l[d],(null===(a=l[d].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[d].policy.name,d),!l[d].deprecationMessage&&l[d].markdownDeprecationMessage&&(l[d].deprecationMessage=l[d].markdownDeprecationMessage),s.add(d)):(this.excludedConfigurationProperties[d]=l[d],delete l[d]))}const c=e.allOf;if(c)for(const r of c)this.validateAndRegisterProperties(r,t,i,n,o,s)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const n=e.allOf;null===n||void 0===n||n.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:h.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:m.properties[e]=t;break;case 5:m.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:s.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),u.properties[t]=i,h.properties[t]=i,g.properties[t]=i,p.properties[t]=i,f.properties[t]=i,m.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:s.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};u.patternProperties[C]=e,h.patternProperties[C]=e,g.patternProperties[C]=e,p.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null===i||void 0===i?void 0:i.value,o=null===i||void 0===i?void 0:i.source;r.o8(n)&&(n=t.defaultDefaultValue,o=void 0),r.o8(n)&&(n=k(t.type)),t.default=n,t.defaultValueSource=o}}const y="\\[([^\\]]+)\\]",w=new RegExp(y,"g"),C=`^(${y})+$`,S=new RegExp(C);function x(e){const t=[];if(S.test(e)){let i=w.exec(e);while(null===i||void 0===i?void 0:i.length){const n=i[1].trim();n&&t.push(n),i=w.exec(e)}}return(0,n.EB)(t)}function k(e){const t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const L=new b;function E(e,t){var i,n,o,r;return e.trim()?S.test(e)?s.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==L.getConfigurationProperties()[e]?s.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==L.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?s.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(o=t.policy)||void 0===o?void 0:o.name,L.getPolicyConfigurations().get(null===(r=t.policy)||void 0===r?void 0:r.name)):null:s.NC("config.property.empty","Cannot register an empty property")}c.B.add(d.Configuration,L)},37174:(e,t,i)=>{"use strict";i.d(t,{cP:()=>T,Ao:()=>x,i6:()=>q,uy:()=>$,Fb:()=>k,K8:()=>Z});var n=i(47606),o=i(61720),r=i(98642),s=i(25206);function a(...e){switch(e.length){case 1:return(0,s.NC)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,s.NC)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,s.NC)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const l=(0,s.NC)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,s.NC)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw(0,r.L6)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){while(!this._isAtEnd()){this._start=this._current;const e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=d._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){while(39!==this._peek()&&!this._isAtEnd())this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;while(1){if(e>=this._input.length)return this._current=e,void this._error(c);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}while(e=this._input.length}}d._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),d._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var u=i(21881);const h=new Map;h.set("false",!1),h.set("true",!0),h.set("isMac",n.dz),h.set("isLinux",n.IJ),h.set("isWindows",n.ED),h.set("isWeb",n.$L),h.set("isMacNative",n.dz&&!n.$L),h.set("isEdge",n.un),h.set("isFirefox",n.vU),h.set("isChrome",n.i7),h.set("isSafari",n.G6);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},f=(0,s.NC)("contextkey.parser.error.emptyString","Empty context key expression"),m=(0,s.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,s.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,s.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,s.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),y=(0,s.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),w=(0,s.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,s.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{constructor(e=p){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?y:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:f,offset:0,lexeme:"",additionalInfo:m})}_expr(){return this._or()}_or(){const e=[this._and()];while(this._matchOne(16)){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];while(this._matchOne(15)){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),null===e||void 0===e?void 0:e.negate()}case 17:return this._advance(),O.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,o=i.lastIndexOf("/"),r=o===i.length-1?void 0:this._removeFlagsGY(i.substring(o+1));let s;try{s=new RegExp(i.substring(1,o),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(n,s)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let o=this._peek(),r=0;for(let t=0;t=0){const s=t.slice(n+1,o),a="i"===t[o+1]?"i":"";try{r=new RegExp(s,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(n,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return x.notIn(n,e)}const r=this._peek().type;switch(r){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(n,e);switch(e){case"true":return x.has(n);case"false":return x.not(n);default:return x.equals(n,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(n,e);switch(e){case"true":return x.not(n);case"false":return x.has(n);default:return x.notEquals(n,e)}}case 5:return this._advance(),B.create(n,this._value());case 6:return this._advance(),H.create(n,this._value());case 7:return this._advance(),M.create(n,this._value());case 8:return this._advance(),F.create(n,this._value());case 13:return this._advance(),x.in(n,this._value());default:return x.has(n)}}case 20:throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:"",additionalInfo:C}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,s.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),o=t.offset,r=d.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:r,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}S._parseError=new Error;class x{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return D.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return A.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return R.create(e,t)}static not(e){return O.create(e)}static and(...e){return j.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static deserialize(e){if(void 0===e||null===e)return;const t=this._parser.parse(e);return t}}function k(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function L(e,t){return e.cmp(t)}x._parser=new S({regexParsingWithErrorRecovery:!1});class E{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}E.INSTANCE=new E;class N{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}N.INSTANCE=new N;class D{static create(e,t=null){const i=h.get(e);return"boolean"===typeof i?i?N.INSTANCE:E.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=h.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this)),this.negated}}class T{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):O.create(e,i);const n=h.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?N.INSTANCE:E.INSTANCE}return new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=h.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=R.create(this.key,this.valueKey)),this.negated}}class R{static create(e,t){return new R(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?O.create(e,i):D.create(e,i);const n=h.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?E.INSTANCE:N.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=h.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class O{static create(e,t=null){const i=h.get(e);return"boolean"===typeof i?i?E.INSTANCE:N.INSTANCE:new O(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=h.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}function P(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class M{static create(e,t,i=null){return P(t,(t=>new M(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return P(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,i=null){return P(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))new H(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),o=0===n.length,r=U.create(e.expr.map((e=>j.create([e,t],null,i))),null,o);r&&(n.push(r),n.sort(L))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());while(e.length>1){const t=e.shift(),i=e.shift(),n=[];for(const e of Y(t))for(const t of Y(i))n.push(j.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends D{static all(){return $._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?$._info.push({...i,key:e}):!0!==i&&$._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}$._info=[];const q=(0,u.yh)("contextKeyService");function K(e,t){return et?1:0}function G(e,t,i,n){return ei?1:tn?1:0}function Z(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Z(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if(Z(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,n=0;while(i{"use strict";i.d(t,{Pf:()=>a,cv:()=>s,d0:()=>l});var n=i(47606),o=i(25206),r=i(37174);new r.uy("isMac",n.dz,(0,o.NC)("isMac","Whether the operating system is macOS")),new r.uy("isLinux",n.IJ,(0,o.NC)("isLinux","Whether the operating system is Linux"));const s=new r.uy("isWindows",n.ED,(0,o.NC)("isWindows","Whether the operating system is Windows")),a=new r.uy("isWeb",n.$L,(0,o.NC)("isWeb","Whether the platform is a web browser")),l=(new r.uy("isMacNative",n.dz&&!n.$L,(0,o.NC)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.uy("isIOS",n.gn,(0,o.NC)("isIOS","Whether the operating system is iOS")),new r.uy("isMobile",n.tq,(0,o.NC)("isMobile","Whether the platform is a mobile web browser")),new r.uy("isDevelopment",!1,!0),new r.uy("productQualityType","",(0,o.NC)("productQualityType","Quality type of VS Code")),"inputFocus");new r.uy(l,!1,(0,o.NC)("inputFocus","Whether keyboard focus is inside an input box"))},93753:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,u:()=>o});var n=i(21881);const o=(0,n.yh)("contextViewService"),r=(0,n.yh)("contextMenuService")},8283:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var n=i(21881);const o=(0,n.yh)("dialogService")},60808:(e,t,i)=>{"use strict";i.d(t,{Ej:()=>a,Km:()=>o});var n=i(39672);const o={EDITORS:"CodeEditors",FILES:"CodeFiles"};class r{}const s={DragAndDropContribution:"workbench.contributions.dragAndDrop"};n.B.add(s.DragAndDropContribution,new r);class a{constructor(){}static getInstance(){return a.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}a.INSTANCE=new a},913:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(21881);const o=(0,n.yh)("environmentService")},63296:(e,t,i)=>{"use strict";i.d(t,{Yb:()=>E,Nq:()=>N,iX:()=>y});var n=i(93575),o=i(2548),r=i(5506),s=i(60748),a=i(9194),l=i(8419),c=i(11271),d=i(25206);const u=d.NC("defaultLabel","input"),h=d.NC("label.preserveCaseToggle","Preserve Case");class g extends r.Z{constructor(e){super({icon:l.l.preserveCase,title:h+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class p extends a.${constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new c.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new c.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new c.Q5),this._onInput=this._register(new c.Q5),this._onKeyUp=this._register(new c.Q5),this._onPreserveCaseKeyDown=this._register(new c.Q5),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||u;const r=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,d=!!n.flexibleWidth,h=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.pG(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:d,flexibleMaxHeight:h,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new g({appendTitle:r,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const p=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=p.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%p.length:e.equals(15)&&(i=0===t?p.length-1:t-1),e.equals(9)?(p[t].blur(),this.inputBox.focus()):i>=0&&p[i].focus(),o.zB.stop(e,!0)}}}));const f=document.createElement("div");f.className="controls",f.style.display=this._showOptionButtons?"block":"none",f.appendChild(this.preserveCase.domNode),this.domNode.appendChild(f),null===e||void 0===e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(37174),m=i(37395),_=i(70959),v=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},b=function(e,t){return function(i,n){t(i,n,e)}};const y=new f.uy("suggestWidgetVisible",!1,(0,d.NC)("suggestWidgetVisible","Whether suggestion are visible")),w="historyNavigationWidgetFocus",C="historyNavigationForwardsEnabled",S="historyNavigationBackwardsEnabled";let x;const k=[];function L(e,t){if(k.includes(t))throw new Error("Cannot register the same widget multiple times");k.push(t);const i=new _.SL,n=new f.uy(w,!1).bindTo(e),r=new f.uy(C,!0).bindTo(e),s=new f.uy(S,!0).bindTo(e),a=()=>{n.set(!0),x=t},l=()=>{n.set(!1),x===t&&(x=void 0)};return(0,o.H9)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,_.OF)((()=>{k.splice(k.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:s,dispose(){i.dispose()}}}let E=class extends n.V{constructor(e,t,i,n){super(e,t,i);const o=this._register(n.createScoped(this.inputBox.element));this._register(L(o,this.inputBox))}};E=v([b(3,f.i6)],E);let N=class extends p{constructor(e,t,i,n,o=!1){super(e,t,o,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(L(r,this.inputBox))}};N=v([b(3,f.i6)],N),m.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(S,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null===x||void 0===x||x.showPreviousValue()}}),m.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.Ao.and(f.Ao.has(w),f.Ao.equals(C,!0),f.Ao.not("isComposing"),y.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null===x||void 0===x||x.showNextValue()}})},42976:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},39326:(e,t,i)=>{"use strict";i.d(t,{d:()=>s,z:()=>r});var n=i(42976);const o=[];function r(e,t,i){t instanceof n.M||(t=new n.M(t,[],Boolean(i))),o.push([e,t])}function s(){return o}},21881:(e,t,i)=>{"use strict";var n;i.d(t,{I8:()=>n,TG:()=>o,yh:()=>s}),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(n||(n={}));const o=s("instantiationService");function r(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}function s(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(t,e,n)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},39159:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},62478:(e,t,i)=>{"use strict";i.d(t,{I:()=>r});var n=i(11271),o=i(39672);const r={JSONContribution:"base.contributions.json"};function s(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}class a{constructor(){this._onDidChangeSchema=new n.Q5,this.schemasById={}}registerSchema(e,t){this.schemasById[s(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const l=new a;o.B.add(r.JSONContribution,l)},15285:(e,t,i)=>{"use strict";i.d(t,{d:()=>o});var n=i(21881);const o=(0,n.yh)("keybindingService")},37395:(e,t,i)=>{"use strict";i.d(t,{W:()=>d});var n=i(19321),o=i(47606),r=i(46871),s=i(39672),a=i(70959),l=i(33010);class c{constructor(){this._coreKeybindings=new l.S,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o.OS){if(e&&e.win)return e.win}else if(2===o.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=c.bindToCurrentPlatform(e),i=new a.SL;if(t&&t.primary){const r=(0,n.Z9)(t.primary,o.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,s=t.secondary.length;r{s(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(h)),this._cachedMergedKeybindings.slice(0)}}const d=new c,u={EditorModes:"platform.keybindingsRegistry"};function h(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.commandt.command)return 1}return e.weight2-t.weight2}s.B.add(u.EditorModes,d)},51549:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var n=i(21881);const o=(0,n.yh)("labelService")},6726:(e,t,i)=>{"use strict";i.d(t,{Lw:()=>ct,XN:()=>dt,ls:()=>ri,ev:()=>Gt,CQ:()=>pt,PS:()=>yt,uJ:()=>Ct});var n=i(2548),o=i(21921),r=i(55191),s=i(11271),a=i(70959),l=i(51442);class c{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{data:t,disposable:a.JT.None}}renderElement(e,t,i,n){var o;if(null===(o=i.disposable)||void 0===o||o.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const a=new r.A,l=s.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class d{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function u(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new d(e,t.accessibilityProvider)}}class h{constructor(e,t,i,n,o={}){const r=()=>this.model,s=n.map((e=>new c(e,r)));this.list=new l.aV(e,t,i,s,u(r,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return s.ju.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return s.ju.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return s.ju.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,o.w6)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var g=i(26156);class p{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=p.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const o of e){const e=n.get(o.templateId);if(!e)throw new Error(`Table cell renderer for template id ${o.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],o=[];for(let s=0;snew m(e,t))),u={size:d.reduce(((e,t)=>e+t.column.weight),0),views:d.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new g.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:u})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const h=new p(o,r,(e=>this.splitview.getViewSize(e)));this.list=this.disposables.add(new l.aV(e,this.domNode,f(i),[h],c)),s.ju.any(...d.map((e=>e.onDidLayout)))((([e,t])=>h.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=o.reduce(((e,t)=>e+t.weight),0),i=o[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style(l.uZ)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}_.InstanceCount=0;i(9172);var v,b,y=i(45429),w=(i(78089),i(93575),i(60748)),C=i(75461),S=i(5506);(function(e){e[e["Expanded"]=0]="Expanded",e[e["Collapsed"]=1]="Collapsed",e[e["PreserveOrExpanded"]=2]="PreserveOrExpanded",e[e["PreserveOrCollapsed"]=3]="PreserveOrCollapsed"})(v||(v={})),function(e){e[e["Unknown"]=0]="Unknown",e[e["Twistie"]=1]="Twistie",e[e["Element"]=2]="Element",e[e["Filter"]=3]="Filter"}(b||(b={}));class x extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class k{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var L=i(85398),E=i(65338),N=i(88994),D=i(39595);function T(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function I(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function R(e){return"boolean"===typeof e.collapsible}class A{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new s.E7,this._onDidChangeCollapseState=new s.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new s.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new s.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new L.vp(E.n),this.collapseByDefault="undefined"!==typeof n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren="undefined"!==typeof n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=D.$.empty(),n={}){if(0===e.length)throw new x(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,r){var s;void 0===n&&(n=D.$.empty()),void 0===r&&(r=null!==(s=o.diffDepth)&&void 0!==s?s:0);const{parentNode:a}=this.getParentNodeWithListIndex(t);if(!a.lastDiffIds)return this.spliceSimple(t,i,n,o);const l=[...n],c=t[t.length-1],d=new N.Hs({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,c),...l,...a.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(t,i,l,o);const u=t.slice(0,-1),h=(t,i,n)=>{if(r>0)for(let s=0;st.originalStart-e.originalStart)))h(g,p,g-(f.originalStart+f.originalLength)),g=f.originalStart,p=f.modifiedStart-c,this.spliceSimple([...u,g],f.originalLength,D.$.slice(l,p,p+f.modifiedLength),o);h(g,p,g)}spliceSimple(e,t,i=D.$.empty(),{onDidCreateNode:n,onDidDeleteNode:r,diffIdentityProvider:s}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),u=[],h=D.$.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,c,u,n))),g=e[e.length-1],p=a.children.length>0;let f=0;for(let o=g;o>=0&&os.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>s.getId(e.element).toString())):a.lastDiffIds=void 0;let y=0;for(const o of b)o.visible&&y++;if(0!==y)for(let o=g+m.length;oe+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,u)}if(b.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:m,deletedNodes:b});const w=a.children.length>0;p!==w&&this.setCollapsible(e.slice(0,-1),w);let C=a;while(C){if(2===C.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}C=C.parent}}rerender(e){if(0===e.length)throw new x(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,o)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!R(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e-1){n=-1;break}n=e}}n>-1&&this._setCollapseState([...e,n],t)}return r}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const r=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(R(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!R(t)&&t.recursive)for(const o of e.children)n=this._setNodeCollapseState(o,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);while(t.parent)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,r){const s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,i);s.visibility=a,n&&o.push(s);const l=e.children||D.$.empty(),c=n&&0!==a&&!s.collapsed;let d=0,u=1;for(const h of l){const e=this.createTreeNode(h,s,a,c,o,r);s.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return s.collapsible=s.collapsible||s.children.length>0,s.visibleChildrenCount=d,s.visible=2===a?d>0:1===a,s.visible?s.collapsed||(s.renderNodeCount=u):(s.renderNodeCount=0,n&&o.pop()),null===r||void 0===r||r(s),s}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let s=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)s=this._updateNodeAfterFilterChange(r,o,i,n&&!e.collapsed)||s,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?s:1===o,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):T(i)?(e.filterData=i.data,I(i.visibility)):(e.filterData=void 0,I(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new x(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new x(this.user,"Invalid tree location");const s=t.children[r];return{node:s,listIndex:i,revealed:n,visible:o&&s.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[r,...s]=e;if(r<0||r>t.children.length)throw new x(this.user,"Invalid tree location");for(let a=0;ae.element))),this.data=e}}function j(e){return e instanceof C.kX?new z(e):e}class U{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.JT.None,this.disposables=new a.SL}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,j(e),t)}onDragOver(e,t,i,n,r=!0){const s=this.dnd.onDragOver(j(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return s;if(a&&"boolean"!==typeof s&&s.autoExpand&&(this.autoExpandDisposable=(0,L.Vg)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof s||!s.accept||"undefined"===typeof s.bubble||s.feedback){if(!r){const e="boolean"===typeof s?s:s.accept,t="boolean"===typeof s?void 0:s.effect;return{accept:e,effect:t,feedback:[i]}}return s}if(1===s.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),s=i.getNode(r),a=r&&i.getListIndex(r);return this.onDragOver(e,s,a,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),u=l.getListRenderCount(c);return{...s,feedback:(0,o.w6)(d,d+u)}}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(j(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}function $(e,t){return t&&{...t,identityProvider:t.identityProvider&&{getId(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new U(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return t.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element})},isSelectionRangeChangeEvent(e){return t.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})}},accessibilityProvider:t.accessibilityProvider&&{...t.accessibilityProvider,getSetSize(t){const i=e(),n=i.getNodeLocation(t),o=i.getParentNodeLocation(n),r=i.getNode(o);return r.visibleChildrenCount},getPosInSet(e){return e.visibleChildIndex+1},isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?e=>t.accessibilityProvider.isChecked(e.element):void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?e=>t.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel(e){return t.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return t.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?()=>t.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:t.accessibilityProvider&&t.accessibilityProvider.getAriaLevel?e=>t.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&(e=>t.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}}}class q{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(O||(O={}));class K{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new a.SL,this.onDidChange=s.ju.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class G{constructor(e,t,i,n,o,r={}){var l;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=G.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.JT.None,this.disposables=new a.SL,this.templateId=e.templateId,this.updateOptions(r),s.ju.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(l=e.onDidChangeTwistieState)||void 0===l||l.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,H.uZ)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==O.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new a.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.R3)(t,(0,n.$)(".monaco-tl-indent")),o=(0,n.R3)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.R3)(t,(0,n.$)(".monaco-tl-contents")),s=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:o,indentGuidesDisposable:a.JT.None,templateData:s}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var o,r;i.indentGuidesDisposable.dispose(),null===(r=(o=this.renderer).disposeElement)||void 0===r||r.call(o,e,t,i.templateData,n),"number"===typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=G.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...M.k.asClassNameArray(P.l.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...M.k.asClassNameArray(P.l.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new a.SL,o=this.modelProvider();while(1){const r=o.getNodeLocation(e),s=o.getParentNodeLocation(r);if(!s)break;const l=o.getNode(s),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add((0,a.OF)((()=>this.renderedIndentGuides.delete(l,c)))),e=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(o){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,a.B9)(this.disposables)}}G.DefaultIndent=8;class Z{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.SL,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"===typeof n?n?1:0:T(n)?I(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:B.CL.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=Array.isArray(n)?n:[n];for(const r of o){const e=r&&r.toString();if("undefined"===typeof e)return{data:B.CL.Default,visibility:i};let t;if(this.tree.findMatchType===Y.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,B.EW)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===o.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===Q.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:B.CL.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,a.B9)(this.disposables)}}w.g4,S.D;var Q,Y;(function(e){e[e["Highlight"]=0]="Highlight",e[e["Filter"]=1]="Filter"})(Q||(Q={})),function(e){e[e["Fuzzy"]=0]="Fuzzy",e[e["Contiguous"]=1]="Contiguous"}(Y||(Y={}));class J{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,o,r={}){var l,c;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=o,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new s.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new s.Q5,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new s.Q5,this._onDidChangeOpenState=new s.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new a.SL,this.disposables=new a.SL,this._mode=null!==(l=e.options.defaultFindMode)&&void 0!==l?l:Q.Highlight,this._matchType=null!==(c=e.options.defaultFindMatchType)&&void 0!==c?c:Y.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const o=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&o?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,V.NC)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===Q.Filter||(this.filter.totalCount>0&&this.filter.matchCount<=1||!B.CL.isDefault(e.filterData))}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function X(e,t){return e.position===t.position&&e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class ee extends a.JT{constructor(e=[]){super(),this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,o.fS)(this.stickyNodes,e.stickyNodes,X)}addDisposable(e){this._register(e)}}class te extends a.JT{get firstVisibleNode(){const e=this.view.firstVisibleIndex;if(!(e<0||e>=this.view.length))return this.view.element(e)}constructor(e,t,i,n,o,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=o,this.maxWidgetViewRatio=.4;const s=this.validateStickySettings(r);this.stickyScrollMaxItemCount=s.stickyScrollMaxItemCount,this._widget=this._register(new ie(i.getScrollableElement(),i,t,n,o)),this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}update(){const e=this.firstVisibleNode;if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[],i=this.view.renderHeight*this.maxWidgetViewRatio;let n=e,o=0,r=this.getNextStickyNode(n,void 0,o);while(r&&o+r.height=this.stickyScrollMaxItemCount)break;if(n=this.getNextVisibleNode(n),!n)break;r=this.getNextStickyNode(n,r.node,o)}return t.length?new ee(t):void 0}getNextVisibleNode(e){const t=this.getNodeIndex(e);if(-1===t||t===this.view.length-1)return;const i=this.view.element(t+1);return i}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),o=t;return this.view.scrollTop===n-o}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:o}=this.getNodeRange(e),r=this.calculateStickyNodePosition(o,t);return{node:e,position:r,height:i,startIndex:n,endIndex:o}}getAncestorUnderPrevious(e,t=void 0){let i=e,n=this.getParentNode(i);while(n){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t){let i=this.view.getRelativeTop(e);if(null===i&&this.view.firstVisibleIndex===e&&e+1r&&t<=s?r:t}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e,t){void 0===t&&(t=this.model.getNodeLocation(e));const i=this.model.getListIndex(t);return i}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");const n=this.model.getListRenderCount(t),o=i+n-1;return{startIndex:i,endIndex:o}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);while(i)t.push(i),i=this.getParentNode(i);let n=0;for(let o=0;o0,o=!!e&&e.count>0;if(!i&&!o||i&&o&&this._previousState.equal(e))return;if(i!==o&&this.setVisible(o),null===(t=this._previousState)||void 0===t||t.dispose(),this._previousState=e,!o)return;for(let n=e.count-1;n>=0;n--){const t=e.stickyNodes[n],i=n?e.stickyNodes[n-1]:void 0,o=i?i.position+i.height:0,{element:r,disposable:s}=this.createElement(t,o);this._rootDomNode.appendChild(r),e.addDisposable(s)}const r=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(r),e.addDisposable((0,a.OF)((()=>r.remove())));const s=e.stickyNodes[e.count-1];this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t){const i=this.model.getNodeLocation(e.node),n=this.model.getListIndex(i),o=document.createElement("div");o.style.top=`${e.position}px`,o.style.height=`${e.height}px`,o.style.lineHeight=`${e.height}px`,o.classList.add("monaco-tree-sticky-row"),o.classList.add("monaco-list-row"),o.setAttribute("data-index",`${n}`),o.setAttribute("data-parity",n%2===0?"even":"odd"),o.setAttribute("id",this.view.getElementID(n));const r=this.treeDelegate.getTemplateId(e.node),s=this.treeRenderers.find((e=>e.templateId===r));if(!s)throw new Error(`No renderer found for template id ${r}`);const l=new Proxy(e.node,{}),c=s.renderTemplate(o);s.renderElement(l,e.startIndex,c,e.height);const d=(0,a.OF)((()=>{s.disposeElement(l,e.startIndex,c,e.height),s.disposeTemplate(c),o.remove()}));return{element:o,disposable:d}}setVisible(e){this._rootDomNode.style.display=e?"block":"none"}dispose(){var e;null===(e=this._previousState)||void 0===e||e.dispose(),this._rootDomNode.remove()}}function ne(e){let t=b.Unknown;return(0,n.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=b.Twistie:(0,n.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=b.Element:(0,n.uU)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=b.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function oe(e,t){t(e),e.children.forEach((e=>oe(e,t)))}class re{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event}set(e,t){!(null===t||void 0===t?void 0:t.__forceEvent)&&(0,o.fS)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>oe(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>oe(e,n)));const o=new Map,r=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>oe(e,r)));const s=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString(),t=i.has(e);if(t){const t=o.get(e);t&&t.visible&&s.push(t)}else s.push(a)}if(this.nodes.length>0&&0===s.length){const e=this.getFirstViewElementWithTrait();e&&s.push(e)}this._set(s,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class se extends l.sx{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.iK)(e.browserEvent.target)||(0,l.cK)(e.browserEvent.target)||(0,l.hD)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,o=(0,l.Et)(e.browserEvent.target);let r=!1;if(r=!!o||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),o)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!o||n)){const i=this.tree.getNodeLocation(t),o=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,o),r&&n)return void(e.browserEvent.isHandledByList=!0)}o||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,l.$B)(e.browserEvent.target)||(0,l.dk)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),o=this.list.getElementTop(n),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=o-r,this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){const t=e.browserEvent.target.classList.contains("monaco-tl-twistie");!t&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}}class ae extends l.aV{constructor(e,t,i,n,o,r,s,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=r,this.anchorTrait=s}createMouseController(e){return new se(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],r=[];let s;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&r.push(e+i),this.anchorTrait.has(t)&&(s=e+i)})),n.length>0&&super.setFocus((0,o.EB)([...super.getFocus(),...n])),r.length>0&&super.setSelection((0,o.EB)([...super.getSelection(),...r])),"number"===typeof s&&super.setAnchor(s)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class le{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return s.ju.filter(s.ju.map(this.view.onMouseDblClick,ne),(e=>e.target!==b.Filter))}get onPointer(){return s.ju.map(this.view.onPointer,ne)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return s.ju.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:Q.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:Y.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,r={}){var c;this._user=e,this._options=r,this.eventBufferer=new s.E7,this.onDidChangeFindOpenState=s.ju.None,this.disposables=new a.SL,this._onWillRefilter=new s.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new s.Q5,this.treeDelegate=new q(i);const d=new s.ZD,u=new s.ZD,h=this.disposables.add(new K(u.event)),g=new F.ri;this.renderers=o.map((e=>new G(e,(()=>this.model),d.event,h,g,r)));for(const n of this.renderers)this.disposables.add(n);let p;r.keyboardNavigationLabelProvider&&(p=new Z(this,r.keyboardNavigationLabelProvider,r.filter),r={...r,filter:p},this.disposables.add(p)),this.focus=new re((()=>this.view.getFocusedElements()[0]),r.identityProvider),this.selection=new re((()=>this.view.getSelectedElements()[0]),r.identityProvider),this.anchor=new re((()=>this.view.getAnchorElement()),r.identityProvider),this.view=new ae(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...$((()=>this.model),r),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,r),d.input=this.model.onDidChangeCollapseState;const f=s.ju.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);f((()=>null),null,this.disposables);const m=this.disposables.add(new s.Q5),_=this.disposables.add(new L.vp(0));if(this.disposables.add(s.ju.any(f,this.focus.onDidChange,this.selection.onDidChange)((()=>{_.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);m.fire([...e.values()])}))}))),u.input=m.event,!1!==r.keyboardSupport){const e=s.ju.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.cK)(e.target))).map((e=>new y.y(e)))));s.ju.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),s.ju.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),s.ju.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(c=r.findWidgetEnabled)||void 0===c||c)&&r.keyboardNavigationLabelProvider&&r.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new J(this,this.model,this.view,p,r.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=s.ju.None,this.onDidChangeFindMatchType=s.ju.None;r.enableStickyScroll&&(this.stickyScrollController=new te(this,this.model,this.view,this.renderers,this.treeDelegate,r)),this.styleElement=(0,n.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===O.Always)}updateOptions(e={}){var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===O.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?this.stickyScrollController=new te(this,this.model,this.view,this.renderers,this.treeDelegate,this._options):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,W.hj)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),e.listBackground&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${e.listBackground}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${e.listBackground}; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e),i=this.model.getNode(t);return i.element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=this.model.setCollapsed(n,!0);if(!o){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=this.model.setCollapsed(n,!1);if(!o){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){var e;(0,a.B9)(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}class ce{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new A(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(e,t){return i.sorter.compare(e.element,t.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=D.$.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=D.$.empty(),i){const n=new Set,o=new Set,r=e=>{var t;if(null===e.element)return;const r=e;if(n.add(r.element),this.nodes.set(r.element,r),this.identityProvider){const e=this.identityProvider.getId(r.element).toString();o.add(e),this.nodesByIdentity.set(e,r)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,r)},s=e=>{var t;if(null===e.element)return;const r=e;if(n.has(r.element)||this.nodes.delete(r.element),this.identityProvider){const e=this.identityProvider.getId(r.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,r)};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:r,onDidDeleteNode:s})}preserveCollapseState(e=D.$.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),D.$.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===v.Collapsed||e.collapsed===v.PreserveOrCollapsed||e.collapsed!==v.Expanded&&e.collapsed!==v.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let n;return n="undefined"===typeof e.collapsed||e.collapsed===v.PreserveOrCollapsed||e.collapsed===v.PreserveOrExpanded?t.collapsed:e.collapsed===v.Collapsed||e.collapsed!==v.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new x(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i),o=this.model.getNode(n);return o.element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function de(e){const t=[e.element],i=e.incompressible||!1;return{element:{elements:t,incompressible:i},children:D.$.map(D.$.from(e.children),de),collapsible:e.collapsible,collapsed:e.collapsed}}function ue(e){const t=[e.element],i=e.incompressible||!1;let n,o;while(1){if([o,n]=D.$.consume(D.$.from(e.children),2),1!==o.length)break;if(o[0].incompressible)break;e=o[0],t.push(e.element)}return{element:{elements:t,incompressible:i},children:D.$.map(D.$.concat(o,n),ue),collapsible:e.collapsible,collapsed:e.collapsed}}function he(e,t=0){let i;return i=the(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function ge(e){return he(e,0)}function pe(e,t,i){return e.element===t?{...e,children:i}:{...e,children:D.$.map(D.$.from(e.children),(e=>pe(e,t,i)))}}const fe=e=>({getId(t){return t.elements.map((t=>e.getId(t).toString())).join("\0")}});class me{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new ce(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=D.$.empty(),i){const n=i.diffIdentityProvider&&fe(i.diffIdentityProvider);if(null===e){const e=D.$.map(t,this.enabled?ue:de);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new x(this.user,"Unknown compressed tree node");const s=this.model.getNode(r),a=this.model.getParentNodeLocation(r),l=this.model.getNode(a),c=ge(s),d=pe(c,e,t),u=(this.enabled?ue:de)(d),h=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,o.fS)(u.element.elements,s.element.elements,h))return void this._setChildren(r,u.children||D.$.empty(),{diffIdentityProvider:n,diffDepth:1});const g=l.children.map((e=>e===s?u:e));this._setChildren(l.element,g,{diffIdentityProvider:n,diffDepth:s.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode(),i=t.children,n=D.$.map(i,ge),o=D.$.map(n,e?ue:de);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,o=e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},r=e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)};this.model.setChildren(e,t,{...i,onDidCreateNode:o,onDidDeleteNode:r})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new x(this.user,`Tree element not found: ${e}`);return t}}const _e=e=>e[e.length-1];class ve{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new ve(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}function be(e,t){return{splice(i,n,o){t.splice(i,n,o.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}function ye(e,t){return{...t,identityProvider:t.identityProvider&&{getId(i){return t.identityProvider.getId(e(i))}},sorter:t.sorter&&{compare(e,i){return t.sorter.compare(e.elements[0],i.elements[0])}},filter:t.filter&&{filter(i,n){return t.filter.filter(e(i),n)}}}}class we{get onDidSplice(){return s.ju.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return s.ju.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return s.ju.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||_e;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new k((e=>new ve(n,e))),this.model=new me(e,be(this.nodeMapper,t),ye(n,i))}setChildren(e,t=D.$.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var Ce=i(58718),Se=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class xe extends le{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=D.$.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new ce(e,t,i)}}class ke{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){var o,r,s,a;i.compressedTreeNode?null===(r=(o=this.renderer).disposeCompressedElements)||void 0===r||r.call(o,i.compressedTreeNode,t,i.data,n):null===(a=(s=this.renderer).disposeElement)||void 0===a||a.call(s,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}function Le(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(o){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}}}Se([Ce.H],ke.prototype,"compressedTreeNodeProvider",null);class Ee extends xe{constructor(e,t,i,n,o={}){const r=()=>this,s=n.map((e=>new ke(r,e)));super(e,t,i,s,Le(r,o))}setChildren(e,t=D.$.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new we(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var Ne=i(98642);function De(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function Te(e,t){return!!t.parent&&(t.parent===e||Te(e,t.parent))}function Ie(e,t){return e===t||Te(e,t)||Te(t,e)}class Re{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Re(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class Ae{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...M.k.asClassNameArray(P.l.treeItemLoading)),!0):(t.classList.remove(...M.k.asClassNameArray(P.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,r;null===(r=(o=this.renderer).disposeElement)||void 0===r||r.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function Oe(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Pe(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Me extends C.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Fe(e){return e instanceof C.kX?new Me(e):e}class Be{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,Fe(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(Fe(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(Fe(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function He(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new Be(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element})},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})}},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter(t,i){return e.filter.filter(t.element,i)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function We(e,t){t(e),e.children.forEach((e=>We(e,t)))}class Ve{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return s.ju.map(this.tree.onDidChangeFocus,Oe)}get onDidChangeSelection(){return s.ju.map(this.tree.onDidChangeSelection,Oe)}get onMouseDblClick(){return s.ju.map(this.tree.onMouseDblClick,Pe)}get onPointer(){return s.ju.map(this.tree.onPointer,Pe)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new s.Q5,this._onDidChangeNodeSlowState=new s.Q5,this.nodeMapper=new k((e=>new Re(e))),this.disposables=new a.SL,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?v.PreserveOrCollapsed:v.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=De({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,o){const r=new q(i),s=n.map((e=>new Ae(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=He(o)||{};return new xe(e,t,r,s,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,n,o){if("undefined"===typeof this.root.element)throw new x(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch(a){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new x(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await s.ju.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){const e=this.tree.getSelection();return e.map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){const e=this.tree.getFocus();return e.map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new x(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.render(e,i,n)}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach(((o,r)=>{!n&&Ie(r,e)&&(n=o.then((()=>this.refreshNode(e,t,i))))})),n)return n;if(e!==this.root){const t=this.tree.getNode(e);if(t.collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),void(e.stale=!0)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await L.jT.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,W.TW)(t))n=Promise.resolve(t);else{const i=(0,L.Vs)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(D.$.empty());try{const o=await n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,Ne.n2)(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,W.TW)(i)?this.processChildren(i):(t=(0,L.PG)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Ne.dL))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const r=new Map,s=new Map;for(const c of e.children)r.set(c.element,c),this.identityProvider&&s.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const a=[],l=o.map((t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=De({element:t,parent:e,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return o&&i.defaultCollapseState===v.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),c=s.get(l);if(c){const e=c.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?c.collapsed?(e.children.forEach((e=>We(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&!c.collapsed&&a.push(e),e}const d=De({element:t,parent:e,id:l,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||o&&d.defaultCollapseState===v.PreserveOrExpanded)&&a.push(d),d}));for(const c of r.values())We(c,(e=>this.nodes.delete(e.element)));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),o=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId(e){return i.diffIdentityProvider.getId(e.element)}}};this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?D.$.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class ze{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new ze(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class je{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...M.k.asClassNameArray(P.l.treeItemLoading)),!0):(t.classList.remove(...M.k.asClassNameArray(P.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,r;null===(r=(o=this.renderer).disposeElement)||void 0===r||r.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var o,r;null===(r=(o=this.renderer).disposeCompressedElements)||void 0===r||r.call(o,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.B9)(this.disposables)}}function Ue(e){const t=e&&He(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}}class $e extends Ve{constructor(e,t,i,n,o,r,s={}){super(e,t,i,o,r,s),this.compressionDelegate=n,this.compressibleNodeMapper=new k((e=>new ze(e))),this.filter=s.filter}createTree(e,t,i,n,o){const r=new q(i),s=n.map((e=>new je(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=Ue(o)||{};return new Ee(e,t,r,s,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const n of e){const e=this.tree.getCompressedTreeNode(n===this.root?null:n);if(e.element)for(const n of e.element.elements)t.add(i(n.element))}return t},o=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const s=this.getSelection();let a=!1;const l=this.getFocus();let c=!1;const d=e=>{const t=e.element;if(t)for(let n=0;n{const t=this.filter.filter(e,1),i=qe(t);if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}function qe(e){return"boolean"===typeof e?e?1:0:T(e)?I(e.visibility):I(e)}class Ke extends le{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t,i){return new ce(e,t,i)}}var Ge=i(47596),Ze=i(46853),Qe=i(37174),Ye=i(29689),Je=i(93753),Xe=i(21881),et=i(15285),tt=i(93962);let it;const nt=globalThis.vscode;if("undefined"!==typeof nt&&"undefined"!==typeof nt.context){const e=nt.context.configuration();if(!e)throw new Error("Sandbox: unable to resolve product configuration from preload script.");it=e.product}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(it=globalThis._VSCODE_PRODUCT_JSON,tt.OB["VSCODE_DEV"]&&Object.assign(it,{nameShort:`${it.nameShort} Dev`,nameLong:`${it.nameLong} Dev`,dataFolderName:`${it.dataFolderName}-dev`,serverDataFolderName:it.serverDataFolderName?`${it.serverDataFolderName}-dev`:void 0}),!it.version){const e=globalThis._VSCODE_PACKAGE_JSON;Object.assign(it,{version:e.version})}}else it={},0===Object.keys(it).length&&Object.assign(it,{version:"1.82.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});const ot=it;var rt=i(39672),st=i(22454),at=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},lt=function(e,t){return function(i,n){t(i,n,e)}};const ct=(0,Xe.yh)("listService");class dt{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const e=new l.wD((0,n.dS)(),"");e.style(st.O2)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,n.H9)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.F8)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.OF)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const ut=new Qe.uy("listScrollAtBoundary","none"),ht=(Qe.Ao.or(ut.isEqualTo("top"),ut.isEqualTo("both")),Qe.Ao.or(ut.isEqualTo("bottom"),ut.isEqualTo("both")),new Qe.uy("listFocus",!0)),gt=new Qe.uy("listSupportsMultiselect",!0),pt=Qe.Ao.and(ht,Qe.Ao.not(Ye.d0)),ft=new Qe.uy("listHasSelectionOrFocus",!1),mt=new Qe.uy("listDoubleSelection",!1),_t=new Qe.uy("listMultiSelection",!1),vt=new Qe.uy("listSelectionNavigation",!1),bt=new Qe.uy("listSupportsFind",!0),yt=new Qe.uy("treeElementCanCollapse",!1),wt=new Qe.uy("treeElementHasParent",!1),Ct=new Qe.uy("treeElementCanExpand",!1),St=new Qe.uy("treeElementHasChild",!1),xt=new Qe.uy("treeFindOpen",!1),kt="listTypeNavigationMode",Lt="listAutomaticKeyboardNavigation";function Et(e,t){const i=e.createScoped(t.getHTMLElement());return ht.bindTo(i),i}function Nt(e,t){const i=ut.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const Dt="workbench.list.multiSelectModifier",Tt="workbench.list.openMode",It="workbench.list.horizontalScrolling",Rt="workbench.list.defaultFindMode",At="workbench.list.typeNavigationMode",Ot="workbench.list.keyboardNavigation",Pt="workbench.list.scrollByPage",Mt="workbench.list.defaultFindMatchType",Ft="workbench.tree.indent",Bt="workbench.tree.renderIndentGuides",Ht="workbench.list.smoothScrolling",Wt="workbench.list.mouseWheelScrollSensitivity",Vt="workbench.list.fastScrollSensitivity",zt="workbench.tree.expandMode",jt="workbench.tree.enableStickyScroll",Ut="workbench.tree.stickyScrollMaxItemCount";function $t(e){return"alt"===e.getValue(Dt)}class qt extends a.JT{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=$t(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this.useAltAsMultipleSelectionModifier=$t(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.Zo)(e)}isSelectionRangeChangeEvent(e){return(0,l.wn)(e)}}function Kt(e,t){var i;const n=e.get(Ge.Ui),o=e.get(et.d),r=new a.SL,s={...t,keyboardNavigationDelegate:{mightProducePrintableCharacter(e){return o.mightProducePrintableCharacter(e)}},smoothScrolling:Boolean(n.getValue(Ht)),mouseWheelScrollSensitivity:n.getValue(Wt),fastScrollSensitivity:n.getValue(Vt),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:r.add(new qt(n)),keyboardNavigationEventFilter:ti(o),scrollByPage:Boolean(n.getValue(Pt))};return[s,r]}let Gt=class extends l.aV{constructor(e,t,i,n,o,r,s,a,l){const c="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(a.getValue(It)),[d,u]=l.invokeFunction(Kt,o);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:c}),this.disposables.add(u),this.contextKeyService=Et(r,this),this.disposables.add(Nt(this.contextKeyService,this)),this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);const h=vt.bindTo(this.contextKeyService);h.set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=ft.bindTo(this.contextKeyService),this.listDoubleSelection=mt.bindTo(this.contextKeyService),this.listMultiSelection=_t.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=$t(a),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(a));let t={};if(e.affectsConfiguration(It)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(It));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Pt)){const e=Boolean(a.getValue(Pt));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ht)){const e=Boolean(a.getValue(Ht));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Wt)){const e=a.getValue(Wt);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Vt)){const e=a.getValue(Vt);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Jt(this,{configurationService:a,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,st.TU)(e):st.O2)}};Gt=at([lt(5,Qe.i6),lt(6,ct),lt(7,Ge.Ui),lt(8,Xe.TG)],Gt);let Zt=class extends h{constructor(e,t,i,n,o,r,s,l,c){const d="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(It)),[u,h]=c.invokeFunction(Kt,o);super(e,t,i,n,{keyboardSupport:!1,...u,horizontalScrolling:d}),this.disposables=new a.SL,this.disposables.add(h),this.contextKeyService=Et(r,this),this.disposables.add(Nt(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);const g=vt.bindTo(this.contextKeyService);g.set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=$t(l),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(l));let t={};if(e.affectsConfiguration(It)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(It));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Pt)){const e=Boolean(l.getValue(Pt));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ht)){const e=Boolean(l.getValue(Ht));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Wt)){const e=l.getValue(Wt);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Vt)){const e=l.getValue(Vt);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Jt(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,st.TU)(e):st.O2)}dispose(){this.disposables.dispose(),super.dispose()}};Zt=at([lt(5,Qe.i6),lt(6,ct),lt(7,Ge.Ui),lt(8,Xe.TG)],Zt);let Qt=class extends _{constructor(e,t,i,n,o,r,s,a,l,c){const d="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(l.getValue(It)),[u,h]=c.invokeFunction(Kt,r);super(e,t,i,n,o,{keyboardSupport:!1,...u,horizontalScrolling:d}),this.disposables.add(h),this.contextKeyService=Et(s,this),this.disposables.add(Nt(this.contextKeyService,this)),this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);const g=vt.bindTo(this.contextKeyService);g.set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=ft.bindTo(this.contextKeyService),this.listDoubleSelection=mt.bindTo(this.contextKeyService),this.listMultiSelection=_t.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=$t(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(l));let t={};if(e.affectsConfiguration(It)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(It));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Pt)){const e=Boolean(l.getValue(Pt));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ht)){const e=Boolean(l.getValue(Ht));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Wt)){const e=l.getValue(Wt);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Vt)){const e=l.getValue(Vt);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Xt(this,{configurationService:l,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,st.TU)(e):st.O2)}dispose(){this.disposables.dispose(),super.dispose()}};Qt=at([lt(6,Qe.i6),lt(7,ct),lt(8,Ge.Ui),lt(9,Xe.TG)],Qt);class Yt extends a.JT{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new s.Q5),this.onDidOpen=this._onDidOpen.event,this._register(s.ju.filter(this.widget.onDidChangeSelection,(e=>(0,n.vd)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(Tt)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Tt)&&(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(Tt)))})))):this.openOnSingleClick=null===(i=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,n="boolean"===typeof t.pinned?t.pinned:!i,o=!1;this._open(this.getSelectedElement(),i,n,o,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;const i=2===t.detail;if(i)return;const n=1===t.button,o=!0,r=n,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,s,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16;if(n)return;const o=!1,r=!0,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,s,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Jt extends Yt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class Xt extends Yt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ei extends Yt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function ti(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let ii=class extends xe{constructor(e,t,i,n,o,r,s,a,l){const{options:c,getTypeNavigationMode:d,disposable:u}=r.invokeFunction(ci,o);super(e,t,i,n,c),this.disposables.add(u),this.internals=new di(this,o,d,o.overrideStyles,s,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};ii=at([lt(5,Xe.TG),lt(6,Qe.i6),lt(7,ct),lt(8,Ge.Ui)],ii);let ni=class extends Ee{constructor(e,t,i,n,o,r,s,a,l){const{options:c,getTypeNavigationMode:d,disposable:u}=r.invokeFunction(ci,o);super(e,t,i,n,c),this.disposables.add(u),this.internals=new di(this,o,d,o.overrideStyles,s,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ni=at([lt(5,Xe.TG),lt(6,Qe.i6),lt(7,ct),lt(8,Ge.Ui)],ni);let oi=class extends Ke{constructor(e,t,i,n,o,r,s,a,l,c){const{options:d,getTypeNavigationMode:u,disposable:h}=s.invokeFunction(ci,r);super(e,t,i,n,o,d),this.disposables.add(h),this.internals=new di(this,r,u,r.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};oi=at([lt(6,Xe.TG),lt(7,Qe.i6),lt(8,ct),lt(9,Ge.Ui)],oi);let ri=class extends Ve{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,r,s,a,l,c){const{options:d,getTypeNavigationMode:u,disposable:h}=s.invokeFunction(ci,r);super(e,t,i,n,o,d),this.disposables.add(h),this.internals=new di(this,r,u,r.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ri=at([lt(6,Xe.TG),lt(7,Qe.i6),lt(8,ct),lt(9,Ge.Ui)],ri);let si=class extends $e{constructor(e,t,i,n,o,r,s,a,l,c,d){const{options:u,getTypeNavigationMode:h,disposable:g}=a.invokeFunction(ci,s);super(e,t,i,n,o,r,u),this.disposables.add(g),this.internals=new di(this,s,h,s.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function ai(e){const t=e.getValue(Rt);if("highlight"===t)return Q.Highlight;if("filter"===t)return Q.Filter;const i=e.getValue(Ot);return"simple"===i||"highlight"===i?Q.Highlight:"filter"===i?Q.Filter:void 0}function li(e){const t=e.getValue(Mt);return"fuzzy"===t?Y.Fuzzy:"contiguous"===t?Y.Contiguous:void 0}function ci(e,t){var i;const n=e.get(Ge.Ui),o=e.get(Je.u),r=e.get(Qe.i6),s=e.get(Xe.TG),a=()=>{const e=r.getContextKeyValue(kt);if("automatic"===e)return l.AA.Automatic;if("trigger"===e)return l.AA.Trigger;const t=r.getContextKeyValue(Lt);if(!1===t)return l.AA.Trigger;const i=n.getValue(At);return"automatic"===i?l.AA.Automatic:"trigger"===i?l.AA.Trigger:void 0},c=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(It)),[d,u]=s.invokeFunction(Kt,t),h=t.paddingBottom,g=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(Bt);return{getTypeNavigationMode:a,disposable:u,options:{keyboardSupport:!1,...d,indent:"number"===typeof n.getValue(Ft)?n.getValue(Ft):void 0,renderIndentGuides:g,smoothScrolling:Boolean(n.getValue(Ht)),defaultFindMode:ai(n),defaultFindMatchType:li(n),horizontalScrolling:c,scrollByPage:Boolean(n.getValue(Pt)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(zt),contextViewProvider:o,findWidgetStyles:st.uX,enableStickyScroll:Boolean(n.getValue(jt)),stickyScrollMaxItemCount:Number(n.getValue(Ut))}}}si=at([lt(7,Xe.TG),lt(8,Qe.i6),lt(9,ct),lt(10,Ge.Ui)],si);let di=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,r,s){var a;this.tree=e,this.disposables=[],this.contextKeyService=Et(o,e),this.disposables.push(Nt(this.contextKeyService,e)),this.listSupportsMultiSelect=gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);const l=vt.bindTo(this.contextKeyService);l.set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=bt.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=ft.bindTo(this.contextKeyService),this.hasDoubleSelection=mt.bindTo(this.contextKeyService),this.hasMultiSelection=_t.bindTo(this.contextKeyService),this.treeElementCanCollapse=yt.bindTo(this.contextKeyService),this.treeElementHasParent=wt.bindTo(this.contextKeyService),this.treeElementCanExpand=Ct.bindTo(this.contextKeyService),this.treeElementHasChild=St.bindTo(this.contextKeyService),this.treeFindOpen=xt.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=$t(s),this.updateStyleOverrides(n);const c=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},d=new Set;d.add(kt),d.add(Lt),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),c()})),e.onDidChangeCollapseState(c),e.onDidChangeModel(c),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),s.onDidChangeConfiguration((n=>{let o={};if(n.affectsConfiguration(Dt)&&(this._useAltAsMultipleSelectionModifier=$t(s)),n.affectsConfiguration(Ft)){const e=s.getValue(Ft);o={...o,indent:e}}if(n.affectsConfiguration(Bt)&&void 0===t.renderIndentGuides){const e=s.getValue(Bt);o={...o,renderIndentGuides:e}}if(n.affectsConfiguration(Ht)){const e=Boolean(s.getValue(Ht));o={...o,smoothScrolling:e}}if(n.affectsConfiguration(Rt)||n.affectsConfiguration(Ot)){const e=ai(s);o={...o,defaultFindMode:e}}if(n.affectsConfiguration(At)||n.affectsConfiguration(Ot)){const e=i();o={...o,typeNavigationMode:e}}if(n.affectsConfiguration(Mt)){const e=li(s);o={...o,defaultFindMatchType:e}}if(n.affectsConfiguration(It)&&void 0===t.horizontalScrolling){const e=Boolean(s.getValue(It));o={...o,horizontalScrolling:e}}if(n.affectsConfiguration(Pt)){const e=Boolean(s.getValue(Pt));o={...o,scrollByPage:e}}if(n.affectsConfiguration(zt)&&void 0===t.expandOnlyOnTwistieClick&&(o={...o,expandOnlyOnTwistieClick:"doubleClick"===s.getValue(zt)}),n.affectsConfiguration(jt)){const e=s.getValue(jt);o={...o,enableStickyScroll:e}}if(n.affectsConfiguration(Ut)){const e=Math.max(1,s.getValue(Ut));o={...o,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(Wt)){const e=s.getValue(Wt);o={...o,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(Vt)){const e=s.getValue(Vt);o={...o,fastScrollSensitivity:e}}Object.keys(o).length>0&&e.updateOptions(o)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new ei(e,{configurationService:s,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,st.TU)(e):st.O2)}dispose(){this.disposables=(0,a.B9)(this.disposables)}};di=at([lt(4,Qe.i6),lt(5,ct),lt(6,Ge.Ui)],di);const ui=rt.B.as(Ze.IP.Configuration);ui.registerConfiguration({id:"workbench",order:7,title:(0,V.NC)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Dt]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,V.NC)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,V.NC)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,V.NC)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[Tt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,V.NC)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[It]:{type:"boolean",default:!1,description:(0,V.NC)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Pt]:{type:"boolean",default:!1,description:(0,V.NC)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[Ft]:{type:"number",default:8,minimum:4,maximum:40,description:(0,V.NC)("tree indent setting","Controls tree indentation in pixels.")},[Bt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,V.NC)("render tree indent guides","Controls whether the tree should render indent guides.")},[Ht]:{type:"boolean",default:!1,description:(0,V.NC)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Wt]:{type:"number",default:1,markdownDescription:(0,V.NC)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Vt]:{type:"number",default:5,markdownDescription:(0,V.NC)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[Rt]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,V.NC)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,V.NC)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,V.NC)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[Ot]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,V.NC)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,V.NC)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,V.NC)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,V.NC)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,V.NC)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Mt]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,V.NC)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,V.NC)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,V.NC)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[zt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,V.NC)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[jt]:{type:"boolean",default:"string"===typeof ot.quality&&"stable"!==ot.quality,description:(0,V.NC)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[Ut]:{type:"number",minimum:1,default:7,markdownDescription:(0,V.NC)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[At]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,V.NC)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},23034:(e,t,i)=>{"use strict";i.d(t,{VZ:()=>a,in:()=>l,kw:()=>u,qA:()=>h});var n=i(11271),o=i(70959),r=i(37174),s=i(21881);const a=(0,s.yh)("logService");var l;(function(e){e[e["Off"]=0]="Off",e[e["Trace"]=1]="Trace",e[e["Debug"]=2]="Debug",e[e["Info"]=3]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=5]="Error"})(l||(l={}));const c=l.Info;class d extends o.JT{constructor(){super(...arguments),this.level=c,this._onDidChangeLogLevel=this._register(new n.Q5),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==l.Off&&this.level<=e}}class u extends d{constructor(e=c,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(l.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(l.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(l.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(l.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(l.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class h extends d{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose()}}function g(e){switch(e){case l.Trace:return"trace";case l.Debug:return"debug";case l.Info:return"info";case l.Warning:return"warn";case l.Error:return"error";case l.Off:return"off"}}new r.uy("logLevel",g(l.Info))},48580:(e,t,i)=>{"use strict";i.d(t,{H0:()=>o,ZL:()=>n,lT:()=>l});var n,o,r=i(72235),s=i(25206),a=i(21881);(function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"})(n||(n={})),function(e){function t(e,t){return t-e}e.compare=t;const i=Object.create(null);function n(e){return i[e]||""}function o(t){switch(t){case r.Z.Error:return e.Error;case r.Z.Warning:return e.Warning;case r.Z.Info:return e.Info;case r.Z.Ignore:return e.Hint}}function a(t){switch(t){case e.Error:return r.Z.Error;case e.Warning:return r.Z.Warning;case e.Info:return r.Z.Info;case e.Hint:return r.Z.Ignore}}i[e.Error]=(0,s.NC)("sev.error","Error"),i[e.Warning]=(0,s.NC)("sev.warning","Warning"),i[e.Info]=(0,s.NC)("sev.info","Info"),e.toString=n,e.fromSeverity=o,e.toSeverity=a}(n||(n={})),function(e){const t="";function i(e){return o(e,!0)}function o(e,i){const o=[t];return e.source?o.push(e.source.replace("¦","\\¦")):o.push(t),e.code?"string"===typeof e.code?o.push(e.code.replace("¦","\\¦")):o.push(e.code.value.replace("¦","\\¦")):o.push(t),void 0!==e.severity&&null!==e.severity?o.push(n.toString(e.severity)):o.push(t),e.message&&i?o.push(e.message.replace("¦","\\¦")):o.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?o.push(e.startLineNumber.toString()):o.push(t),void 0!==e.startColumn&&null!==e.startColumn?o.push(e.startColumn.toString()):o.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?o.push(e.endLineNumber.toString()):o.push(t),void 0!==e.endColumn&&null!==e.endColumn?o.push(e.endColumn.toString()):o.push(t),o.push(t),o.join("¦")}e.makeKey=i,e.makeKeyOptionalMessage=o}(o||(o={}));const l=(0,a.yh)("markerService")},18736:(e,t,i)=>{"use strict";i.d(t,{EO:()=>a,lT:()=>s,zb:()=>r});var n=i(72235),o=i(21881),r=n.Z;const s=(0,o.yh)("notificationService");class a{}},6544:(e,t,i)=>{"use strict";i.d(t,{v:()=>o,x:()=>r});var n=i(21881);const o=(0,n.yh)("openerService");function r(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},34679:(e,t,i)=>{"use strict";i.d(t,{Ex:()=>r,R9:()=>o,ek:()=>s});var n=i(21881);const o=(0,n.yh)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}r.None=Object.freeze({report(){}});const s=(0,n.yh)("editorProgressService")},84475:(e,t,i)=>{"use strict";i.d(t,{IP:()=>a,Ry:()=>n});var n,o=i(21921),r=i(70959),s=i(39672);(function(e){e[e["PRESERVE"]=0]="PRESERVE",e[e["LAST"]=1]="LAST"})(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};class l{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,r.OF)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,o.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){const t=e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0;return t||this.defaultProvider}}s.B.add(a.Quickaccess,new l)},45726:(e,t,i)=>{"use strict";i.d(t,{Jq:()=>r,X5:()=>o,eJ:()=>l,jG:()=>s});var n=i(21881);const o={ctrlCmd:!1,alt:!1};var r,s;(function(e){e[e["Blur"]=1]="Blur",e[e["Gesture"]=2]="Gesture",e[e["Other"]=3]="Other"})(r||(r={})),function(e){e[e["NONE"]=0]="NONE",e[e["FIRST"]=1]="FIRST",e[e["SECOND"]=2]="SECOND",e[e["LAST"]=3]="LAST"}(s||(s={}));class a{constructor(e){this.options=e}}new a;const l=(0,n.yh)("quickInputService")},39672:(e,t,i)=>{"use strict";i.d(t,{B:()=>s});var n=i(65662),o=i(55455);class r{constructor(){this.data=new Map}add(e,t){n.ok(o.HD(e)),n.ok(o.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const s=new r},92601:(e,t,i)=>{"use strict";i.d(t,{Uy:()=>p,vm:()=>v,fk:()=>f});var n,o,r=i(11271),s=i(70959),a=i(55455),l=i(85398),c=i(79247);(function(e){e[e["STORAGE_DOES_NOT_EXIST"]=0]="STORAGE_DOES_NOT_EXIST",e[e["STORAGE_IN_MEMORY"]=1]="STORAGE_IN_MEMORY"})(n||(n={})),function(e){e[e["None"]=0]="None",e[e["Initialized"]=1]="Initialized",e[e["Closed"]=2]="Closed"}(o||(o={}));class d extends s.JT{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.K3),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=o.None,this.cache=new Map,this.flushDelayer=this._register(new l.rH(d.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===o.Closed)return;let i=!1;if((0,a.Jp)(t))i=this.cache.delete(e);else{const n=this.cache.get(e);n!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.Jp)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===o.Closed)return;if((0,a.Jp)(t))return this.delete(e,i);const n=(0,a.Kn)(t)||Array.isArray(t)?(0,c.Pz)(t):String(t),r=this.cache.get(e);return r!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===o.Closed)return;const i=this.cache.delete(e);return i?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)while(this.whenFlushedCallbacks.length)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===n.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}d.DEFAULT_FLUSH_DELAY=100;class u{constructor(){this.onDidChangeItemsExternal=r.ju.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}var h=i(21881);const g="__$__targetStorageMarker",p=(0,h.yh)("storageService");var f;function m(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(f||(f={}));class _ extends s.JT{constructor(e={flushInterval:_.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.K3),this._onDidChangeTarget=this._register(new r.K3),this._onWillSaveState=this._register(new r.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.ju.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n,o=!1){(0,a.Jp)(t)?this.remove(e,i,o):this.withPausedEmitters((()=>{var r;this.updateKeyTarget(e,i,n),null===(r=this.getStorage(i))||void 0===r||r.set(e,t,o)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,n=!1){var o,r;const s=this.getKeyTargets(t);"number"===typeof i?s[e]!==i&&(s[e]=i,null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(s),n)):"number"===typeof s[e]&&(delete s[e],null===(r=this.getStorage(t))||void 0===r||r.set(g,JSON.stringify(s),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?m(t):Object.create(null)}}_.DEFAULT_FLUSH_INTERVAL=6e4;class v extends _{constructor(){super(),this.applicationStorage=this._register(new d(new u,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new d(new u,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new d(new u,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},38857:(e,t,i)=>{"use strict";i.d(t,{b:()=>o});var n=i(21881);const o=(0,n.yh)("telemetryService")},22454:(e,t,i)=>{"use strict";i.d(t,{BM:()=>f,Hc:()=>d,O2:()=>g,TU:()=>p,ZR:()=>m,b5:()=>l,eO:()=>s,ku:()=>h,pl:()=>c,uX:()=>u,wG:()=>a});var n=i(47277),o=i(60204);function r(e,t){const i={...t};for(const o in e){const t=e[o];i[o]=void 0!==t?(0,n.n_1)(t):void 0}return i}const s={keybindingLabelBackground:(0,n.n_1)(n.oQ$),keybindingLabelForeground:(0,n.n_1)(n.lWp),keybindingLabelBorder:(0,n.n_1)(n.AWI),keybindingLabelBottomBorder:(0,n.n_1)(n.K19),keybindingLabelShadow:(0,n.n_1)(n.rh)},a={buttonForeground:(0,n.n_1)(n.j5u),buttonSeparator:(0,n.n_1)(n.iFQ),buttonBackground:(0,n.n_1)(n.b7$),buttonHoverBackground:(0,n.n_1)(n.GO4),buttonSecondaryForeground:(0,n.n_1)(n.qBU),buttonSecondaryBackground:(0,n.n_1)(n.ESD),buttonSecondaryHoverBackground:(0,n.n_1)(n.xEn),buttonBorder:(0,n.n_1)(n.GYc)},l={progressBarBackground:(0,n.n_1)(n.zRJ)},c={inputActiveOptionBorder:(0,n.n_1)(n.PRb),inputActiveOptionForeground:(0,n.n_1)(n.Pvw),inputActiveOptionBackground:(0,n.n_1)(n.XEs)},d=((0,n.n_1)(n.SUp),(0,n.n_1)(n.nd),(0,n.n_1)(n.BQ0),(0,n.n_1)(n.D0T),(0,n.n_1)(n.Hfx),(0,n.n_1)(n.rh),(0,n.n_1)(n.lRK),(0,n.n_1)(n.JpG),(0,n.n_1)(n.BOY),(0,n.n_1)(n.OLZ),(0,n.n_1)(n.url),{inputBackground:(0,n.n_1)(n.sEe),inputForeground:(0,n.n_1)(n.zJb),inputBorder:(0,n.n_1)(n.dt_),inputValidationInfoBorder:(0,n.n_1)(n.EPQ),inputValidationInfoBackground:(0,n.n_1)(n._lC),inputValidationInfoForeground:(0,n.n_1)(n.YI3),inputValidationWarningBorder:(0,n.n_1)(n.C3g),inputValidationWarningBackground:(0,n.n_1)(n.RV_),inputValidationWarningForeground:(0,n.n_1)(n.SUG),inputValidationErrorBorder:(0,n.n_1)(n.OZR),inputValidationErrorBackground:(0,n.n_1)(n.paE),inputValidationErrorForeground:(0,n.n_1)(n._t9)}),u={listFilterWidgetBackground:(0,n.n_1)(n.vGG),listFilterWidgetOutline:(0,n.n_1)(n.oSI),listFilterWidgetNoMatchesOutline:(0,n.n_1)(n.Saq),listFilterWidgetShadow:(0,n.n_1)(n.y65),inputBoxStyles:d,toggleStyles:c},h={badgeBackground:(0,n.n_1)(n.g8u),badgeForeground:(0,n.n_1)(n.qeD),badgeBorder:(0,n.n_1)(n.lRK)},g=((0,n.n_1)(n.ixd),(0,n.n_1)(n.l80),(0,n.n_1)(n.H6q),(0,n.n_1)(n.H6q),(0,n.n_1)(n.fSI),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.n_1)(n._bK),listFocusForeground:(0,n.n_1)(n._2n),listFocusOutline:(0,n.n_1)(n.Oop),listActiveSelectionBackground:(0,n.n_1)(n.dCr),listActiveSelectionForeground:(0,n.n_1)(n.M6C),listActiveSelectionIconForeground:(0,n.n_1)(n.Tnx),listFocusAndSelectionOutline:(0,n.n_1)(n.Bqu),listFocusAndSelectionBackground:(0,n.n_1)(n.dCr),listFocusAndSelectionForeground:(0,n.n_1)(n.M6C),listInactiveSelectionBackground:(0,n.n_1)(n.rg2),listInactiveSelectionIconForeground:(0,n.n_1)(n.kvU),listInactiveSelectionForeground:(0,n.n_1)(n.ytC),listInactiveFocusBackground:(0,n.n_1)(n.s$),listInactiveFocusOutline:(0,n.n_1)(n.F3d),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listDropBackground:(0,n.n_1)(n.AS1),listSelectionOutline:(0,n.n_1)(n.xL1),listHoverOutline:(0,n.n_1)(n.xL1),treeIndentGuidesStroke:(0,n.n_1)(n.UnT),treeInactiveIndentGuidesStroke:(0,n.n_1)(n.KjV),tableColumnsBorder:(0,n.n_1)(n.uxu),tableOddRowsBackgroundColor:(0,n.n_1)(n.EQn)});function p(e){return r(e,g)}const f={selectBackground:(0,n.n_1)(n.XV0),selectListBackground:(0,n.n_1)(n.Fgs),selectForeground:(0,n.n_1)(n._g0),decoratorRightForeground:(0,n.n_1)(n.kJk),selectBorder:(0,n.n_1)(n.a9O),focusBorder:(0,n.n_1)(n.R80),listFocusBackground:(0,n.n_1)(n.Vqd),listInactiveSelectionIconForeground:(0,n.n_1)(n.cbQ),listFocusForeground:(0,n.n_1)(n.NPS),listFocusOutline:(0,n.BtC)(n.xL1,o.Il.transparent.toString()),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listHoverOutline:(0,n.n_1)(n.xL1),selectListBorder:(0,n.n_1)(n.D1_),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,n.n_1)(n.rh),borderColor:(0,n.n_1)(n.Cdg),foregroundColor:(0,n.n_1)(n.DEr),backgroundColor:(0,n.n_1)(n.Hz8),selectionForegroundColor:(0,n.n_1)(n.jbW),selectionBackgroundColor:(0,n.n_1)(n.$DX),selectionBorderColor:(0,n.n_1)(n.E3h),separatorColor:(0,n.n_1)(n.ZGJ),scrollbarShadow:(0,n.n_1)(n._wn),scrollbarSliderBackground:(0,n.n_1)(n.etL),scrollbarSliderHoverBackground:(0,n.n_1)(n.ABB),scrollbarSliderActiveBackground:(0,n.n_1)(n.ynu)}},47277:(e,t,i)=>{"use strict";i.d(t,{$DX:()=>Pt,$d5:()=>ht,A42:()=>k,ABB:()=>ne,AS1:()=>gt,AWI:()=>Le,BOY:()=>di,BQ0:()=>kt,Bqu:()=>it,BtC:()=>h,C3g:()=>F,CNo:()=>He,Cdg:()=>It,CzK:()=>Ke,D0T:()=>fe,D1_:()=>_e,DEr:()=>Rt,Dut:()=>he,E3h:()=>Mt,EPQ:()=>O,EQn:()=>St,ES4:()=>Te,ESD:()=>Y,EiJ:()=>Me,F3d:()=>dt,F9q:()=>Je,Fgs:()=>z,Fm_:()=>Xt,GO4:()=>G,GYc:()=>Z,Gj_:()=>si,Gvr:()=>oi,Gwp:()=>pt,H6q:()=>Vt,HCL:()=>$e,Hfx:()=>me,Hz8:()=>At,IPX:()=>g,IYc:()=>ii,Ido:()=>v,Itd:()=>li,Ivo:()=>ri,JpG:()=>ci,K19:()=>Ee,KjV:()=>wt,M6C:()=>ot,MUv:()=>Ae,NOs:()=>pe,NPS:()=>Nt,Ng6:()=>ve,OLZ:()=>ui,OZR:()=>W,Oop:()=>tt,P4M:()=>Qe,P6G:()=>m,P6Y:()=>Ye,PRb:()=>D,PX0:()=>ft,PpC:()=>ze,Pvw:()=>I,QO2:()=>d,R80:()=>y,RV_:()=>P,Rzx:()=>Ie,SPM:()=>ei,SUG:()=>M,SUY:()=>ti,SUp:()=>xt,Saq:()=>vt,T83:()=>ue,Tnx:()=>rt,UnT:()=>yt,VVv:()=>Ve,Vqd:()=>Tt,XEs:()=>T,XV0:()=>V,XZx:()=>b,YI3:()=>A,ZGJ:()=>Ft,ZnX:()=>fi,_2n:()=>et,_Yy:()=>We,_bK:()=>Xe,_g0:()=>j,_lC:()=>R,_t9:()=>H,_wn:()=>te,a9O:()=>U,b6y:()=>ae,b7$:()=>K,bKB:()=>Ue,c63:()=>de,cbQ:()=>Dt,cvW:()=>ge,dCr:()=>nt,dRz:()=>_,dt_:()=>N,etL:()=>ie,fSI:()=>zt,g8u:()=>X,gkn:()=>Fe,hEj:()=>Ne,hX8:()=>je,iFQ:()=>q,ixd:()=>Wt,j5u:()=>$,jUe:()=>Oe,jbW:()=>Ot,kJk:()=>Ce,kVY:()=>ai,keg:()=>Ge,kvU:()=>lt,kwl:()=>mi,l80:()=>Ht,lRK:()=>w,lUq:()=>Bt,lWp:()=>ke,lXJ:()=>se,loF:()=>we,mV1:()=>ut,n_1:()=>u,nd:()=>Lt,nyM:()=>Re,oQ$:()=>xe,oSI:()=>_t,opG:()=>Se,ov3:()=>ni,pW3:()=>ce,paE:()=>B,phM:()=>qe,pnM:()=>Pe,qBU:()=>Q,qeD:()=>ee,rg2:()=>st,rh:()=>x,s$:()=>ct,sEe:()=>L,tZ6:()=>ye,uoC:()=>le,url:()=>S,uxu:()=>Ct,vGG:()=>mt,xEn:()=>J,xL1:()=>C,y65:()=>bt,yJx:()=>Be,yb5:()=>De,ynu:()=>oe,ypS:()=>Ze,ytC:()=>at,zJb:()=>E,zKr:()=>be,zRJ:()=>re});var n=i(85398),o=i(60204),r=i(11271),s=i(65662),a=i(25206),l=i(62478),c=i(39672);function d(e){return`--vscode-${e.replace(/\./g,"-")}`}function u(e){return`var(${d(e)})`}function h(e,t){return`var(${d(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};class p{constructor(){this._onDidChangeSchema=new r.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){const r={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=r;const s={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const e=i.defaults[t.type];return bi(e,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)};return Object.keys(this.colorsById).sort(e).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}}const f=new p;function m(e,t,i,n,o){return f.registerColor(e,t,i,n,o)}c.B.add(g.ColorContribution,f);const _=m("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("foreground","Overall foreground color. This color is only used if not overridden by a component.")),v=(m("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},a.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),m("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."))),b=(m("descriptionForeground",{light:"#717171",dark:fi(_,.7),hcDark:fi(_,.7),hcLight:fi(_,.7)},a.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),m("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("iconForeground","The default color for icons in the workbench."))),y=m("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},a.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=m("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},a.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),C=m("contrastActiveBorder",{light:null,dark:null,hcDark:y,hcLight:y},a.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),S=(m("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),m("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:o.Il.black,hcLight:"#292929"},a.NC("textSeparatorForeground","Color for text separators.")),m("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkForeground","Foreground color for links in text."))),x=(m("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),m("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},a.NC("textPreformatForeground","Foreground color for preformatted text segments.")),m("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},a.NC("textPreformatBackground","Background color for preformatted text segments.")),m("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},a.NC("textBlockQuoteBackground","Background color for block quotes in text.")),m("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:o.Il.white,hcLight:"#292929"},a.NC("textBlockQuoteBorder","Border color for block quotes in text.")),m("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:o.Il.black,hcLight:"#F2F2F2"},a.NC("textCodeBlockBackground","Background color for code blocks in text.")),m("widget.shadow",{dark:fi(o.Il.black,.36),light:fi(o.Il.black,.16),hcDark:null,hcLight:null},a.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),k=m("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("widgetBorder","Border color of widgets such as find/replace inside the editor.")),L=m("input.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputBoxBackground","Input box background.")),E=m("input.foreground",{dark:_,light:_,hcDark:_,hcLight:_},a.NC("inputBoxForeground","Input box foreground.")),N=m("input.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("inputBoxBorder","Input box border.")),D=m("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},a.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),T=(m("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("inputOption.hoverBackground","Background color of activated options in input fields.")),m("inputOption.activeBackground",{dark:fi(y,.4),light:fi(y,.2),hcDark:o.Il.transparent,hcLight:o.Il.transparent},a.NC("inputOption.activeBackground","Background hover color of options in input fields."))),I=m("inputOption.activeForeground",{dark:o.Il.white,light:o.Il.black,hcDark:_,hcLight:_},a.NC("inputOption.activeForeground","Foreground color of activated options in input fields.")),R=(m("input.placeholderForeground",{light:fi(_,.5),dark:fi(_,.5),hcDark:fi(_,.7),hcLight:fi(_,.7)},a.NC("inputPlaceholderForeground","Input box foreground color for placeholder text.")),m("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationInfoBackground","Input validation background color for information severity."))),A=m("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:_},a.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),O=m("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},a.NC("inputValidationInfoBorder","Input validation border color for information severity.")),P=m("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),M=m("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:_},a.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),F=m("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},a.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),B=m("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationErrorBackground","Input validation background color for error severity.")),H=m("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:_},a.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),W=m("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},a.NC("inputValidationErrorBorder","Input validation border color for error severity.")),V=m("dropdown.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("dropdownBackground","Dropdown background.")),z=m("dropdown.listBackground",{dark:null,light:null,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("dropdownListBackground","Dropdown list background.")),j=m("dropdown.foreground",{dark:"#F0F0F0",light:_,hcDark:o.Il.white,hcLight:_},a.NC("dropdownForeground","Dropdown foreground.")),U=m("dropdown.border",{dark:V,light:"#CECECE",hcDark:w,hcLight:w},a.NC("dropdownBorder","Dropdown border.")),$=m("button.foreground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:o.Il.white},a.NC("buttonForeground","Button foreground color.")),q=m("button.separator",{dark:fi($,.4),light:fi($,.4),hcDark:fi($,.4),hcLight:fi($,.4)},a.NC("buttonSeparator","Button separator color.")),K=m("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},a.NC("buttonBackground","Button background color.")),G=m("button.hoverBackground",{dark:pi(K,.2),light:gi(K,.2),hcDark:K,hcLight:K},a.NC("buttonHoverBackground","Button background color when hovering.")),Z=m("button.border",{dark:w,light:w,hcDark:w,hcLight:w},a.NC("buttonBorder","Button border color.")),Q=m("button.secondaryForeground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:_},a.NC("buttonSecondaryForeground","Secondary button foreground color.")),Y=m("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:o.Il.white},a.NC("buttonSecondaryBackground","Secondary button background color.")),J=m("button.secondaryHoverBackground",{dark:pi(Y,.2),light:gi(Y,.2),hcDark:null,hcLight:null},a.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),X=m("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:o.Il.black,hcLight:"#0F4A85"},a.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ee=m("badge.foreground",{dark:o.Il.white,light:"#333",hcDark:o.Il.white,hcLight:o.Il.white},a.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),te=m("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},a.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ie=m("scrollbarSlider.background",{dark:o.Il.fromHex("#797979").transparent(.4),light:o.Il.fromHex("#646464").transparent(.4),hcDark:fi(w,.6),hcLight:fi(w,.4)},a.NC("scrollbarSliderBackground","Scrollbar slider background color.")),ne=m("scrollbarSlider.hoverBackground",{dark:o.Il.fromHex("#646464").transparent(.7),light:o.Il.fromHex("#646464").transparent(.7),hcDark:fi(w,.8),hcLight:fi(w,.8)},a.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),oe=m("scrollbarSlider.activeBackground",{dark:o.Il.fromHex("#BFBFBF").transparent(.4),light:o.Il.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},a.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),re=m("progressBar.background",{dark:o.Il.fromHex("#0E70C0"),light:o.Il.fromHex("#0E70C0"),hcDark:w,hcLight:w},a.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),se=(m("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("editorError.foreground","Foreground color of error squigglies in the editor."))),ae=m("editorError.border",{dark:null,light:null,hcDark:o.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},a.NC("errorBorder","If set, color of double underlines for errors in the editor.")),le=(m("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},a.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor."))),ce=m("editorWarning.border",{dark:null,light:null,hcDark:o.Il.fromHex("#FFCC00").transparent(.8),hcLight:o.Il.fromHex("#FFCC00").transparent(.8)},a.NC("warningBorder","If set, color of double underlines for warnings in the editor.")),de=(m("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},a.NC("editorInfo.foreground","Foreground color of info squigglies in the editor."))),ue=m("editorInfo.border",{dark:null,light:null,hcDark:o.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},a.NC("infoBorder","If set, color of double underlines for infos in the editor.")),he=m("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},a.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ge=(m("editorHint.border",{dark:null,light:null,hcDark:o.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},a.NC("hintBorder","If set, color of double underlines for hints in the editor.")),m("sash.hoverBorder",{dark:y,light:y,hcDark:y,hcLight:y},a.NC("sashActiveBorder","Border color of active sashes.")),m("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("editorBackground","Editor background color."))),pe=m("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Il.white,hcLight:_},a.NC("editorForeground","Editor default foreground color.")),fe=(m("editorStickyScroll.background",{light:ge,dark:ge,hcDark:ge,hcLight:ge},a.NC("editorStickyScrollBackground","Sticky scroll background color for the editor")),m("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor")),m("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Il.white},a.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),me=m("editorWidget.foreground",{dark:_,light:_,hcDark:_,hcLight:_},a.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),_e=m("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},a.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ve=m("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),be=m("quickInput.background",{dark:fe,light:fe,hcDark:fe,hcLight:fe},a.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ye=m("quickInput.foreground",{dark:me,light:me,hcDark:me,hcLight:me},a.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),we=m("quickInputTitle.background",{dark:new o.Il(new o.VS(255,255,255,.105)),light:new o.Il(new o.VS(0,0,0,.06)),hcDark:"#000000",hcLight:o.Il.white},a.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),Ce=m("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:o.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupForeground","Quick picker color for grouping labels.")),Se=m("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:o.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupBorder","Quick picker color for grouping borders.")),xe=m("keybindingLabel.background",{dark:new o.Il(new o.VS(128,128,128,.17)),light:new o.Il(new o.VS(221,221,221,.4)),hcDark:o.Il.transparent,hcLight:o.Il.transparent},a.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ke=m("keybindingLabel.foreground",{dark:o.Il.fromHex("#CCCCCC"),light:o.Il.fromHex("#555555"),hcDark:o.Il.white,hcLight:_},a.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),Le=m("keybindingLabel.border",{dark:new o.Il(new o.VS(51,51,51,.6)),light:new o.Il(new o.VS(204,204,204,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:w},a.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Ee=m("keybindingLabel.bottomBorder",{dark:new o.Il(new o.VS(68,68,68,.6)),light:new o.Il(new o.VS(187,187,187,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:_},a.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ne=m("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},a.NC("editorSelectionBackground","Color of the editor selection.")),De=m("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Il.white},a.NC("editorSelectionForeground","Color of the selected text for high contrast.")),Te=m("editor.inactiveSelectionBackground",{light:fi(Ne,.5),dark:fi(Ne,.5),hcDark:fi(Ne,.7),hcLight:fi(Ne,.5)},a.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=m("editor.selectionHighlightBackground",{light:vi(Ne,ge,.3,.6),dark:vi(Ne,ge,.3,.6),hcDark:null,hcLight:null},a.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Re=(m("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),m("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},a.NC("editorFindMatch","Color of the current search match."))),Ae=m("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},a.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Oe=m("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},a.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Pe=m("editor.findMatchBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorFindMatchBorder","Border color of the current search match.")),Me=m("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("findMatchHighlightBorder","Border color of the other search matches.")),Fe=m("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:fi(C,.4),hcLight:fi(C,.4)},a.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Be=(m("searchEditor.findMatchBackground",{light:fi(Ae,.66),dark:fi(Ae,.66),hcDark:Ae,hcLight:Ae},a.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),m("searchEditor.findMatchBorder",{light:fi(Me,.66),dark:fi(Me,.66),hcDark:Me,hcLight:Me},a.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches.")),m("search.resultsInfoForeground",{light:_,dark:fi(_,.65),hcDark:_,hcLight:_},a.NC("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),m("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},a.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorHoverWidget.background",{light:fe,dark:fe,hcDark:fe,hcLight:fe},a.NC("hoverBackground","Background color of the editor hover."))),He=(m("editorHoverWidget.foreground",{light:me,dark:me,hcDark:me,hcLight:me},a.NC("hoverForeground","Foreground color of the editor hover.")),m("editorHoverWidget.border",{light:_e,dark:_e,hcDark:_e,hcLight:_e},a.NC("hoverBorder","Border color of the editor hover."))),We=(m("editorHoverWidget.statusBarBackground",{dark:pi(Be,.2),light:gi(Be,.05),hcDark:fe,hcLight:fe},a.NC("statusBarBackground","Background color of the editor hover status bar.")),m("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hcDark:o.Il.cyan,hcLight:"#292929"},a.NC("activeLinkForeground","Color of active links."))),Ve=m("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:o.Il.white,hcLight:o.Il.black},a.NC("editorInlayHintForeground","Foreground color of inline hints")),ze=m("editorInlayHint.background",{dark:fi(X,.1),light:fi(X,.1),hcDark:fi(o.Il.white,.1),hcLight:fi(X,.1)},a.NC("editorInlayHintBackground","Background color of inline hints")),je=m("editorInlayHint.typeForeground",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},a.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Ue=m("editorInlayHint.typeBackground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},a.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),$e=m("editorInlayHint.parameterForeground",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},a.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),qe=m("editorInlayHint.parameterBackground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},a.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Ke=(m("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},a.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),m("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},a.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),m("editorLightBulbAi.foreground",{dark:gi(b,.4),light:pi(b,1.7),hcDark:b,hcLight:b},a.NC("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),new o.Il(new o.VS(155,185,85,.2))),Ge=new o.Il(new o.VS(255,0,0,.2)),Ze=m("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},a.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=m("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},a.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ye=(m("diffEditor.insertedLineBackground",{dark:Ke,light:Ke,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),m("diffEditor.removedLineBackground",{dark:Ge,light:Ge,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),m("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),m("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),m("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),Je=m("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Xe=(m("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},a.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),m("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},a.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),m("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("diffEditorBorder","Border color between the two text editors.")),m("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},a.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),m("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},a.NC("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),m("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},a.NC("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),m("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},a.NC("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),m("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),et=m("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=m("list.focusOutline",{dark:y,light:y,hcDark:C,hcLight:C},a.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),it=m("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),nt=m("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ot=m("list.activeSelectionForeground",{dark:o.Il.white,light:o.Il.white,hcDark:null,hcLight:null},a.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),rt=m("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),st=m("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),at=m("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),lt=m("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ct=m("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),dt=m("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ut=m("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:o.Il.white.transparent(.1),hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ht=m("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),gt=m("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},a.NC("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),pt=m("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:y,hcLight:y},a.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ft=m("list.focusHighlightForeground",{dark:pt,light:_i(nt,pt,"#BBE7FF"),hcDark:pt,hcLight:pt},a.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),mt=(m("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},a.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),m("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},a.NC("listErrorForeground","Foreground color of list items containing errors.")),m("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},a.NC("listWarningForeground","Foreground color of list items containing warnings.")),m("listFilterWidget.background",{light:gi(fe,0),dark:pi(fe,0),hcDark:fe,hcLight:fe},a.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),_t=m("listFilterWidget.outline",{dark:o.Il.transparent,light:o.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},a.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),vt=m("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},a.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),bt=m("listFilterWidget.shadow",{dark:x,light:x,hcDark:x,hcLight:x},a.NC("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),yt=(m("list.filterMatchBackground",{dark:Ae,light:Ae,hcDark:null,hcLight:null},a.NC("listFilterMatchHighlight","Background color of the filtered match.")),m("list.filterMatchBorder",{dark:Me,light:Me,hcDark:w,hcLight:C},a.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),m("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},a.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),wt=m("tree.inactiveIndentGuidesStroke",{dark:fi(yt,.4),light:fi(yt,.4),hcDark:fi(yt,.4),hcLight:fi(yt,.4)},a.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Ct=m("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},a.NC("tableColumnsBorder","Table border color between columns.")),St=m("tree.tableOddRowsBackground",{dark:fi(_,.04),light:fi(_,.04),hcDark:null,hcLight:null},a.NC("tableOddRowsBackgroundColor","Background color for odd table rows.")),xt=(m("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},a.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. ")),m("checkbox.background",{dark:V,light:V,hcDark:V,hcLight:V},a.NC("checkbox.background","Background color of checkbox widget."))),kt=(m("checkbox.selectBackground",{dark:fe,light:fe,hcDark:fe,hcLight:fe},a.NC("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),m("checkbox.foreground",{dark:j,light:j,hcDark:j,hcLight:j},a.NC("checkbox.foreground","Foreground color of checkbox widget."))),Lt=m("checkbox.border",{dark:U,light:U,hcDark:U,hcLight:U},a.NC("checkbox.border","Border color of checkbox widget.")),Et=(m("checkbox.selectBorder",{dark:b,light:b,hcDark:b,hcLight:b},a.NC("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),m("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,a.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead"))),Nt=m("quickInputList.focusForeground",{dark:ot,light:ot,hcDark:ot,hcLight:ot},a.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Dt=m("quickInputList.focusIconForeground",{dark:rt,light:rt,hcDark:rt,hcLight:rt},a.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Tt=m("quickInputList.focusBackground",{dark:mi(Et,nt),light:mi(Et,nt),hcDark:null,hcLight:null},a.NC("quickInput.listFocusBackground","Quick picker background color for the focused item.")),It=m("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},a.NC("menuBorder","Border color of menus.")),Rt=m("menu.foreground",{dark:j,light:j,hcDark:j,hcLight:j},a.NC("menuForeground","Foreground color of menu items.")),At=m("menu.background",{dark:V,light:V,hcDark:V,hcLight:V},a.NC("menuBackground","Background color of menu items.")),Ot=m("menu.selectionForeground",{dark:ot,light:ot,hcDark:ot,hcLight:ot},a.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Pt=m("menu.selectionBackground",{dark:nt,light:nt,hcDark:nt,hcLight:nt},a.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),Mt=m("menu.selectionBorder",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),Ft=m("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},a.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),Bt=m("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Ht=(m("toolbar.hoverOutline",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),m("toolbar.activeBackground",{dark:pi(Bt,.1),light:gi(Bt,.1),hcDark:null,hcLight:null},a.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),m("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hcDark:new o.Il(new o.VS(124,124,124,.3)),hcLight:new o.Il(new o.VS(10,50,100,.2))},a.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),m("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),m("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),m("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},a.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),m("breadcrumb.foreground",{light:fi(_,.8),dark:fi(_,.8),hcDark:fi(_,.8),hcLight:fi(_,.8)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),Wt=m("breadcrumb.background",{light:ge,dark:ge,hcDark:ge,hcLight:ge},a.NC("breadcrumbsBackground","Background color of breadcrumb items.")),Vt=m("breadcrumb.focusForeground",{light:gi(_,.2),dark:pi(_,.1),hcDark:pi(_,.1),hcLight:pi(_,.1)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),zt=m("breadcrumb.activeSelectionForeground",{light:gi(_,.2),dark:pi(_,.1),hcDark:pi(_,.1),hcLight:pi(_,.1)},a.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),jt=(m("breadcrumbPicker.background",{light:fe,dark:fe,hcDark:fe,hcLight:fe},a.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),.5),Ut=o.Il.fromHex("#40C8AE").transparent(jt),$t=o.Il.fromHex("#40A6FF").transparent(jt),qt=o.Il.fromHex("#606060").transparent(.4),Kt=.4,Gt=1,Zt=m("merge.currentHeaderBackground",{dark:Ut,light:Ut,hcDark:null,hcLight:null},a.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Qt=(m("merge.currentContentBackground",{dark:fi(Zt,Kt),light:fi(Zt,Kt),hcDark:fi(Zt,Kt),hcLight:fi(Zt,Kt)},a.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.incomingHeaderBackground",{dark:$t,light:$t,hcDark:null,hcLight:null},a.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Yt=(m("merge.incomingContentBackground",{dark:fi(Qt,Kt),light:fi(Qt,Kt),hcDark:fi(Qt,Kt),hcLight:fi(Qt,Kt)},a.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.commonHeaderBackground",{dark:qt,light:qt,hcDark:null,hcLight:null},a.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Jt=(m("merge.commonContentBackground",{dark:fi(Yt,Kt),light:fi(Yt,Kt),hcDark:fi(Yt,Kt),hcLight:fi(Yt,Kt)},a.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},a.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),Xt=(m("editorOverviewRuler.currentContentForeground",{dark:fi(Zt,Gt),light:fi(Zt,Gt),hcDark:Jt,hcLight:Jt},a.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.incomingContentForeground",{dark:fi(Qt,Gt),light:fi(Qt,Gt),hcDark:Jt,hcLight:Jt},a.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.commonContentForeground",{dark:fi(Yt,Gt),light:fi(Yt,Gt),hcDark:Jt,hcLight:Jt},a.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},a.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ei=m("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},a.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ti=m("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},a.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ii=m("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),ni=m("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),oi=m("minimap.infoHighlight",{dark:de,light:de,hcDark:ue,hcLight:ue},a.NC("minimapInfo","Minimap marker color for infos.")),ri=m("minimap.warningHighlight",{dark:le,light:le,hcDark:ce,hcLight:ce},a.NC("overviewRuleWarning","Minimap marker color for warnings.")),si=m("minimap.errorHighlight",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:"#B5200D"},a.NC("minimapError","Minimap marker color for errors.")),ai=m("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("minimapBackground","Minimap background color.")),li=m("minimap.foregroundOpacity",{dark:o.Il.fromHex("#000f"),light:o.Il.fromHex("#000f"),hcDark:o.Il.fromHex("#000f"),hcLight:o.Il.fromHex("#000f")},a.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),ci=(m("minimapSlider.background",{light:fi(ie,.5),dark:fi(ie,.5),hcDark:fi(ie,.5),hcLight:fi(ie,.5)},a.NC("minimapSliderBackground","Minimap slider background color.")),m("minimapSlider.hoverBackground",{light:fi(ne,.5),dark:fi(ne,.5),hcDark:fi(ne,.5),hcLight:fi(ne,.5)},a.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),m("minimapSlider.activeBackground",{light:fi(oe,.5),dark:fi(oe,.5),hcDark:fi(oe,.5),hcLight:fi(oe,.5)},a.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),m("problemsErrorIcon.foreground",{dark:se,light:se,hcDark:se,hcLight:se},a.NC("problemsErrorIconForeground","The color used for the problems error icon."))),di=m("problemsWarningIcon.foreground",{dark:le,light:le,hcDark:le,hcLight:le},a.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),ui=m("problemsInfoIcon.foreground",{dark:de,light:de,hcDark:de,hcLight:de},a.NC("problemsInfoIconForeground","The color used for the problems info icon."));m("charts.foreground",{dark:_,light:_,hcDark:_,hcLight:_},a.NC("chartsForeground","The foreground color used in charts.")),m("charts.lines",{dark:fi(_,.5),light:fi(_,.5),hcDark:fi(_,.5),hcLight:fi(_,.5)},a.NC("chartsLines","The color used for horizontal lines in charts.")),m("charts.red",{dark:se,light:se,hcDark:se,hcLight:se},a.NC("chartsRed","The red color used in chart visualizations.")),m("charts.blue",{dark:de,light:de,hcDark:de,hcLight:de},a.NC("chartsBlue","The blue color used in chart visualizations.")),m("charts.yellow",{dark:le,light:le,hcDark:le,hcLight:le},a.NC("chartsYellow","The yellow color used in chart visualizations.")),m("charts.orange",{dark:ti,light:ti,hcDark:ti,hcLight:ti},a.NC("chartsOrange","The orange color used in chart visualizations.")),m("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},a.NC("chartsGreen","The green color used in chart visualizations.")),m("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},a.NC("chartsPurple","The purple color used in chart visualizations."));function hi(e,t){var i,n,r,a;switch(e.op){case 0:return null===(i=bi(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=bi(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(r=bi(e.value,t))||void 0===r?void 0:r.transparent(e.factor);case 3:{const i=bi(e.background,t);return i?null===(a=bi(e.value,t))||void 0===a?void 0:a.makeOpaque(i):bi(e.value,t)}case 4:for(const i of e.values){const e=bi(i,t);if(e)return e}return;case 6:return bi(t.defines(e.if)?e.then:e.else,t);case 5:{const i=bi(e.value,t);if(!i)return;const n=bi(e.background,t);return n?i.isDarkerThan(n)?o.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):o.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.vE)(e)}}function gi(e,t){return{op:0,value:e,factor:t}}function pi(e,t){return{op:1,value:e,factor:t}}function fi(e,t){return{op:2,value:e,factor:t}}function mi(...e){return{op:4,values:e}}function _i(e,t,i){return{op:6,if:e,then:t,else:i}}function vi(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function bi(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?o.Il.fromHex(e):t.getColor(e):e instanceof o.Il?e:"object"===typeof e?hi(e,t):void 0}const yi="vscode://schemas/workbench-colors",wi=c.B.as(l.I.JSONContribution);wi.registerSchema(yi,f.getColorSchema());const Ci=new n.pY((()=>wi.notifySchemaChanged(yi)),200);f.onDidChangeSchema((()=>{Ci.isScheduled()||Ci.schedule()}))},98158:(e,t,i)=>{"use strict";i.d(t,{Ks:()=>v,q5:()=>_,s_:()=>S});var n=i(85398),o=i(8419),r=i(99588),s=i(11271),a=i(55455),l=i(95896),c=i(25206),d=i(62478),u=i(39672);const h={IconContribution:"base.contributions.icons"};var g,p;(function(e){function t(e,t){let i=e.defaults;while(r.k.isThemeIcon(i)){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}e.getDefinition=t})(g||(g={})),function(e){function t(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}}function i(e){const t=e=>(0,a.HD)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,a.HD)(e.format)&&(0,a.HD)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:l.o.parse(e.location)})))}}e.toJSONObject=t,e.fromJSONObject=i}(p||(p={}));class f{constructor(){this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,c.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,c.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${r.k.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const s={$ref:"#/definitions/icons"};return n&&(s.deprecationMessage=n),i&&(s.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{while(r.k.isThemeIcon(e.defaults))e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const o of n.filter((e=>!!e.description)).sort(e))i.push(`||${o.id}|${r.k.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter((e=>!r.k.isThemeIcon(e.defaults))).sort(e))i.push(`||${o.id}|`);return i.join("\n")}}const m=new f;function _(e,t,i,n){return m.registerIcon(e,t,i,n)}function v(){return m}function b(){const e=(0,o.u)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}u.B.add(h.IconContribution,m),b();const y="vscode://schemas/icons",w=u.B.as(d.I.JSONContribution);w.registerSchema(y,m.getIconSchema());const C=new n.pY((()=>w.notifySchemaChanged(y)),200);m.onDidChange((()=>{C.isScheduled()||C.schedule()}));const S=_("widget-close",o.l.close,(0,c.NC)("widgetClose","Icon for the close action in widgets."));_("goto-previous-location",o.l.arrowUp,(0,c.NC)("previousChangeIcon","Icon for goto previous editor location.")),_("goto-next-location",o.l.arrowDown,(0,c.NC)("nextChangeIcon","Icon for goto next editor location.")),r.k.modify(o.l.sync,"spin"),r.k.modify(o.l.loading,"spin")},71976:(e,t,i)=>{"use strict";var n;function o(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function r(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{_T:()=>r,c3:()=>o,eL:()=>n}),function(e){e["DARK"]="dark",e["LIGHT"]="light",e["HIGH_CONTRAST_DARK"]="hcDark",e["HIGH_CONTRAST_LIGHT"]="hcLight"}(n||(n={}))},32656:(e,t,i)=>{"use strict";i.d(t,{EN:()=>c,IP:()=>u,Ic:()=>p,XE:()=>l,bB:()=>f,m6:()=>d});var n=i(11271),o=i(70959),r=i(21881),s=i(39672),a=i(71976);const l=(0,r.yh)("themeService");function c(e){return{id:e}}function d(e){switch(e){case a.eL.DARK:return"vs-dark";case a.eL.HIGH_CONTRAST_DARK:return"hc-black";case a.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class h{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,o.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}}const g=new h;function p(e){return g.onColorThemeChange(e)}s.B.add(u.ThemingContribution,g);class f extends o.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},70813:(e,t,i)=>{"use strict";i.d(t,{Xt:()=>s,YO:()=>r,gJ:()=>a,tJ:()=>o});var n=i(21881);const o=(0,n.yh)("undoRedoService");class r{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class a{constructor(){this.id=a._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}a._ID=0,a.None=new a},15086:(e,t,i)=>{"use strict";i.d(t,{A6:()=>f,c$:()=>c,eb:()=>l,ec:()=>a,md:()=>p,p$:()=>m,uT:()=>h,x:()=>_});var n=i(25206),o=i(19912),r=(i(17141),i(95896)),s=i(21881);const a=(0,s.yh)("contextService");function l(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&r.o.isUri(t.uri)}function c(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&!l(e)&&!g(e)}const d={id:"ext-dev"},u={id:"empty-window"};function h(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,o.EZ)(e)}:t?d:u;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}function g(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&r.o.isUri(t.configPath)}class p{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const f="code-workspace",m=((0,n.NC)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function _(e){return e.id===m}},8625:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(21881);const o=(0,n.yh)("workspaceTrustManagementService")},78164:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;var o=n(i(76325)),r=n(i(97459)),s=function(){function e(){var t,i,n,r,s,a,l,c,d,u,h,g,p,f,m=this,_=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o["default"])(this,e),this.server=_.server||{nodes:[{host:"localhost",port:"8108",path:"",protocol:"http"}]},this.server.cacheSearchResultsForSeconds=null!==(t=this.server.cacheSearchResultsForSeconds)&&void 0!==t?t:120,this.additionalSearchParameters=null!==(i=_.additionalSearchParameters)&&void 0!==i?i:{},this.additionalSearchParameters.query_by=null!==(n=null!==(r=this.additionalSearchParameters.queryBy)&&void 0!==r?r:this.additionalSearchParameters.query_by)&&void 0!==n?n:"",this.additionalSearchParameters.preset=null!==(s=null!==(a=this.additionalSearchParameters.preset)&&void 0!==a?a:this.additionalSearchParameters.preset)&&void 0!==s?s:"",this.additionalSearchParameters.sort_by=null!==(l=null!==(c=this.additionalSearchParameters.sortBy)&&void 0!==c?c:this.additionalSearchParameters.sort_by)&&void 0!==l?l:"",this.additionalSearchParameters.highlight_full_fields=null!==(d=null!==(u=this.additionalSearchParameters.highlightFullFields)&&void 0!==u?u:this.additionalSearchParameters.highlight_full_fields)&&void 0!==d?d:this.additionalSearchParameters.query_by,this.geoLocationField=null!==(h=_.geoLocationField)&&void 0!==h?h:"_geoloc",this.facetableFieldsWithSpecialCharacters=null!==(g=_.facetableFieldsWithSpecialCharacters)&&void 0!==g?g:[],this.collectionSpecificSearchParameters=null!==(p=_.collectionSpecificSearchParameters)&&void 0!==p?p:{},Object.keys(this.collectionSpecificSearchParameters).forEach((function(e){var t,i,n,o,r,s,a=m.collectionSpecificSearchParameters[e];a.query_by=null!==(t=a.queryBy)&&void 0!==t?t:a.query_by,a.preset=null!==(i=a.preset)&&void 0!==i?i:a.preset,a.sort_by=null!==(n=a.sortBy)&&void 0!==n?n:a.sort_by,a.highlight_full_fields=null!==(o=null!==(r=null!==(s=a.highlightFullFields)&&void 0!==s?s:a.highlight_full_fields)&&void 0!==r?r:m.additionalSearchParameters.highlight_full_fields)&&void 0!==o?o:a.query_by,Object.keys(a).forEach((function(e){return void 0===a[e]?delete a[e]:{}}))})),this.renderingContent=_.renderingContent,this.flattenGroupedHits=null===(f=_.flattenGroupedHits)||void 0===f||f}return(0,r["default"])(e,[{key:"validate",value:function(){if((this.additionalSearchParameters.queryBy||Object.values(this.collectionSpecificSearchParameters).some((function(e){return e.queryBy})))&&console.warn("[typesense-instantsearch-adapter] Please use snake_cased versions of parameters in additionalSearchParameters instead of camelCased parameters. For example: Use query_by instead of queryBy. camelCased parameters will be deprecated in a future version. We're making this change so that parameter names are identical to the ones sent to Typesense (which are all snake_cased), and to also keep the types for these parameters in sync with the types defined in typesense-js."),0===this.additionalSearchParameters.query_by.length&&0===this.additionalSearchParameters.preset.length&&(0===Object.keys(this.collectionSpecificSearchParameters).length||Object.values(this.collectionSpecificSearchParameters).some((function(e){return 0===(e.query_by||"").length&&0===(e.preset||"").length}))))throw new Error("[typesense-instantsearch-adapter] Missing parameter: One of additionalSearchParameters.query_by or additionalSearchParameters.preset needs to be set, or all collectionSpecificSearchParameters need to have either .query_by or .preset set.")}}]),e}();t.Configuration=s},97027:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.FacetSearchResponseAdapter=void 0;var o=n(i(76325)),r=n(i(97459)),s=i(63627),a=function(){function e(t,i){(0,o["default"])(this,e),this.typesenseResponse=t,this.instantsearchRequest=i}return(0,r["default"])(e,[{key:"_adaptFacetHits",value:function(e){var t=this,i={},n=e.find((function(e){return e.field_name===t.instantsearchRequest.params.facetName}));return i=n.counts.map((function(e){return{value:e.value,highlighted:t._adaptHighlightTag(e.highlighted,t.instantsearchRequest.params.highlightPreTag,t.instantsearchRequest.params.highlightPostTag),count:e.count}})),i}},{key:"adapt",value:function(){var e={facetHits:this._adaptFacetHits(this.typesenseResponse.facet_counts),exhaustiveFacetsCount:!0,processingTimeMS:this.typesenseResponse.search_time_ms};return e}}]),e}();t.FacetSearchResponseAdapter=a,Object.assign(a.prototype,s.utils)},55790:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchRequestAdapter=void 0;var o=n(i(65902)),r=n(i(1001)),s=n(i(37167)),a=n(i(76325)),l=n(i(97459)),c=function(){function e(t,i,n){(0,a["default"])(this,e),this.instantsearchRequests=t,this.typesenseClient=i,this.configuration=n,this.additionalSearchParameters=n.additionalSearchParameters,this.collectionSpecificSearchParameters=n.collectionSpecificSearchParameters}return(0,l["default"])(e,[{key:"_adaptFacetFilters",value:function(e){var t=this,i="";if(!e)return i;var n=e.map((function(e){if(Array.isArray(e)){var i={};e.forEach((function(e){var n=t._parseFacetFilter(e),o=n.fieldName,r=n.fieldValue;i[o]=i[o]||[],i[o].push(r)})),Object.keys(i).length>1&&console.error("[Typesense-Instantsearch-Adapter] Typesense does not support cross-field ORs at the moment. The adapter could not OR values between these fields: ".concat(Object.keys(i).join(",")));var n=Object.keys(i)[0],o=i[n],r=o.reduce((function(e,i){return i.startsWith("-")&&!t._isNumber(i)?e[0].push(i.substring(1)):e[1].push(i),e}),[[],[]]),a=(0,s["default"])(r,2),l=a[0],c=a[1],d=[];c.length>0&&d.push("".concat(n,":=[").concat(c.map((function(e){return t._escapeFacetValue(e)})).join(","),"]")),l.length>0&&d.push("".concat(n,":!=[").concat(l.map((function(e){return t._escapeFacetValue(e)})).join(","),"]"));var u=d.filter((function(e){return e})).join(" && ");return u}var h,g=t._parseFacetFilter(e),p=g.fieldName,f=g.fieldValue;return h=f.startsWith("-")&&!t._isNumber(f)?"".concat(p,":!=[").concat(t._escapeFacetValue(f.substring(1)),"]"):"".concat(p,":=[").concat(t._escapeFacetValue(f),"]"),h}));return i=n.join(" && "),i}},{key:"_parseFacetFilter",value:function(e){var t,i,n,o,r;if((null===(t=this.configuration.facetableFieldsWithSpecialCharacters)||void 0===t?void 0:t.length)>0){var s=this.configuration.facetableFieldsWithSpecialCharacters.flat().map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}));if(i=new RegExp("^(".concat(s.join("|"),"):(.*)$")),n=e.match(i),null!=n)return o="".concat(n[1]),r="".concat(n[2]),{fieldName:o,fieldValue:r}}return i=this.constructor.DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX,n=e.match(i),null==n?console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a facet filter `".concat(e,"` with the Regex `").concat(i,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter.")):(o="".concat(n[1]).concat(n[2]),r="".concat(n[3])),{fieldName:o,fieldValue:r}}},{key:"_escapeFacetValue",value:function(e){return"boolean"===typeof e||"true"===e||"false"===e||this._isNumber(e)?e:"`".concat(e,"`")}},{key:"_isNumber",value:function(e){return Number.isInteger(e%1)||!!(e%1)}},{key:"_adaptNumericFilters",value:function(e){var t=this,i="";if(!e)return i;var n={};e.forEach((function(e){var i=t._parseNumericFilter(e),o=i.fieldName,r=i.operator,s=i.fieldValue;n[o]=n[o]||{},n[o][r]=s}));var o=[];return Object.keys(n).forEach((function(e){null!=n[e]["<="]&&null!=n[e][">="]?o.push("".concat(e,":=[").concat(n[e][">="],"..").concat(n[e]["<="],"]")):null!=n[e]["<="]?o.push("".concat(e,":<=").concat(n[e]["<="])):null!=n[e][">="]?o.push("".concat(e,":>=").concat(n[e][">="])):null!=n[e]["="]?o.push("".concat(e,":=").concat(n[e]["="])):console.warn("[Typesense-Instantsearch-Adapter] Unsupported operator found ".concat(JSON.stringify(n[e])))})),i=o.join(" && "),i}},{key:"_parseNumericFilter",value:function(e){var t,i,n,o,r,a;if((null===(t=this.configuration.facetableFieldsWithSpecialCharacters)||void 0===t?void 0:t.length)>0){var l=this.configuration.facetableFieldsWithSpecialCharacters.map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}));if(i=new RegExp("^(".concat(l.join("|"),")(<=|>=|>|<|=)(.*)$")),n=e.match(i),null!=n){var c=n,d=(0,s["default"])(c,4);return o=d[1],r=d[2],a=d[3],{fieldName:o,operator:r,fieldValue:a}}}if(i=this.constructor.DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX,n=e.match(i),null==n)console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a numeric filter `".concat(e,"` with the Regex `").concat(i,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter."));else{var u=n,h=(0,s["default"])(u,4);o=h[1],r=h[2],a=h[3]}return{fieldName:o,operator:r,fieldValue:a}}},{key:"_adaptGeoFilter",value:function(e){var t=e.insideBoundingBox,i=e.aroundRadius,n=e.aroundLatLng,o=e.insidePolygon;if(t){var r,a,l,c;if(Array.isArray(t)){var d=t.flat(),u=(0,s["default"])(d,4);r=u[0],a=u[1],l=u[2],c=u[3]}else{var h=t.split(","),g=(0,s["default"])(h,4);r=g[0],a=g[1],l=g[2],c=g[3]}return"".concat(this.configuration.geoLocationField,":(").concat(r,", ").concat(a,", ").concat(r,", ").concat(c,", ").concat(l,", ").concat(c,", ").concat(l,", ").concat(a,")")}if(n||i){if(!i||"all"===i)throw new Error("[Typesense-Instantsearch-Adapter] In Typesense, geo-filtering around a lat/lng also requires a numerical radius. So the `aroundRadius` parameter is required when `aroundLatLng` is used. If you intend to just geo-sort around a lat/long, you want to use the sortBy InstantSearch widget (or a virtual sortBy custom widget).");var p="".concat(parseFloat(i)/1e3," km");return"".concat(this.configuration.geoLocationField,":(").concat(n,", ").concat(p,")")}if(o){var f=o;return Array.isArray(o)&&(f=o.flat().join(",")),"".concat(this.configuration.geoLocationField,":(").concat(f,")")}}},{key:"_adaptFilters",value:function(e){var t=[];return e.filters&&t.push(e.filters),t.push(this._adaptFacetFilters(e.facetFilters)),t.push(this._adaptNumericFilters(e.numericFilters)),t.push(this._adaptGeoFilter(e)),t.filter((function(e){return e&&""!==e})).join(" && ")}},{key:"_adaptIndexName",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[1]}},{key:"_adaptSortBy",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[3]}},{key:"_buildSearchParameters",value:function(e){for(var t=e.params,i=e.indexName,n=this._adaptIndexName(i),o={},r=0,a=Object.entries(this.additionalSearchParameters);r=|>|<|=)(.*)")}}]),e}();t.SearchRequestAdapter=c},17753:(e,t,i)=>{"use strict";var n=i(58846);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResponseAdapter=void 0;var o=n(i(18774)),r=n(i(37167)),s=n(i(50001)),a=n(i(38761)),l=n(i(76325)),c=n(i(97459)),d=i(63627);function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:[];(0,l["default"])(this,e),this.typesenseResponse=t,this.instantsearchRequest=i,this.configuration=n,this.allTypesenseResponses=o}return(0,c["default"])(e,[{key:"_adaptGroupedHits",value:function(e){var t=this,i=[];return i=e.map((function(e){var i=t._adaptHits(e.hits);return i.forEach((function(t){t["group_key"]=t["_group_key"]=e.group_key,e.found&&(t["_group_found"]=e.found)})),i})),i=this.configuration.flattenGroupedHits?i.flat():i.map((function(e){return h(h({},e[0]),{},{_grouped_hits:e})})),i}},{key:"_adaptHits",value:function(e){var t=this,i=[];return i=e.map((function(e){var i=h({},e.document);i.objectID=e.document.id,i._snippetResult=t._adaptHighlightResult(e,"snippet"),i._highlightResult=t._adaptHighlightResult(e,"value"),i._rawTypesenseHit=e,["text_match","geo_distance_meters","curated","text_match_info","hybrid_search_info","vector_distance"].forEach((function(t){Object.keys(e).includes(t)&&!Object.keys(i).includes(t)&&(i[t]=e[t])}));var n=i[t.configuration.geoLocationField];return n&&(i._geoloc={lat:n[0],lng:n[1]}),i})),i}},{key:"_adaptHighlightResult",value:function(e,t){var i={};return null!=e.highlight&&this.isHighlightPost0240RCN32Format(e.highlight)?this.adaptHighlightObject(e,i,t):this.adaptHighlightsArray(e,i,t),i}},{key:"isHighlightPost0240RCN32Format",value:function(e){return null==e.full&&null==e.snippet}},{key:"adaptHighlightsArray",value:function(e,t,i){var n=this;Object.assign.apply(Object,[t].concat((0,s["default"])(Object.entries(e.document).map((function(e){var t=(0,r["default"])(e,2),i=t[0],n=t[1];return(0,a["default"])({},i,{value:n,matchLevel:"none",matchedWords:[]})}))))),e.highlights.forEach((function(e){t[e.field]={value:e[i]||e["".concat(i,"s")],matchLevel:"full",matchedWords:e.matched_tokens},e.indices&&(t[e.field]["matchedIndices"]=e.indices)})),Object.entries(t).forEach((function(s){var a=(0,r["default"])(s,2),l=a[0],c=a[1],d=l,u=c.value,h=c.matchLevel,g=c.matchedWords,p=c.matchedIndices;null==u?t[d]=n._adaptHighlightNullValue():Array.isArray(u)?(t[d]=[],e.document[d].forEach((function(e,r){p&&p.includes(r)?t[d].push({value:n._adaptHighlightTag("".concat(u[p.indexOf(r)]),n.instantsearchRequest.params.highlightPreTag,n.instantsearchRequest.params.highlightPostTag),matchLevel:h,matchedWords:g[r]}):"object"===(0,o["default"])(e)?t[d].push(n._adaptHighlightInObjectValue(e,{},i)):t[d].push({value:"".concat(e),matchLevel:"none",matchedWords:[]})}))):"object"===(0,o["default"])(u)?t[d]=n._adaptHighlightInObjectValue(u,{},i):t[d].value=n._adaptHighlightTag("".concat(u),n.instantsearchRequest.params.highlightPreTag,n.instantsearchRequest.params.highlightPostTag)}))}},{key:"adaptHighlightObject",value:function(e,t,i){Object.assign(t,this._adaptHighlightInObjectValue(e.document,e.highlight,i))}},{key:"_adaptHighlightInObjectValue",value:function(e,t,i){var n=this;return Object.assign.apply(Object,[{}].concat((0,s["default"])(Object.entries(e).map((function(e){var s,l=(0,r["default"])(e,2),c=l[0],d=l[1];if(null==d)s=n._adaptHighlightNullValue();else if(Array.isArray(d)){var u;s=n._adaptHighlightInArrayValue(d,null!==(u=null===t||void 0===t?void 0:t[c])&&void 0!==u?u:[],i)}else if("object"===(0,o["default"])(d)){var h;s=n._adaptHighlightInObjectValue(d,null!==(h=null===t||void 0===t?void 0:t[c])&&void 0!==h?h:{},i)}else s=n._adaptHighlightInPrimitiveValue(d,null===t||void 0===t?void 0:t[c],i);return(0,a["default"])({},c,s)})))))}},{key:"_adaptHighlightInArrayValue",value:function(e,t,i){var n=this;return e.map((function(e,r){var s;if(null==e)s=n._adaptHighlightNullValue();else if(Array.isArray(e)){var a;s=n._adaptHighlightInArrayValue(e,null!==(a=null===t||void 0===t?void 0:t[r])&&void 0!==a?a:[],i)}else if("object"===(0,o["default"])(e)){var l;s=n._adaptHighlightInObjectValue(e,null!==(l=null===t||void 0===t?void 0:t[r])&&void 0!==l?l:{},i)}else s=n._adaptHighlightInPrimitiveValue(e,null===t||void 0===t?void 0:t[r],i);return s}))}},{key:"_adaptHighlightInPrimitiveValue",value:function(e,t,i){var n,o;return null!=t?{value:this._adaptHighlightTag("".concat(null!==(n=null!==(o=t[i])&&void 0!==o?o:t["highlight"])&&void 0!==n?n:t["snippet"]),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:(t.matched_tokens||[]).length>0?"full":"none",matchedWords:t.matched_tokens||[]}:{value:this._adaptHighlightTag("".concat(e),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:"none",matchedWords:[]}}},{key:"_adaptHighlightNullValue",value:function(){return{value:"",matchLevel:"none",matchedWords:[]}}},{key:"_adaptFacets",value:function(e){var t={};return e.forEach((function(e){Object.assign(t,(0,a["default"])({},e.field_name,Object.assign.apply(Object,[{}].concat((0,s["default"])(e.counts.map((function(e){return(0,a["default"])({},e.value,e.count)})))))))})),t}},{key:"_adaptFacetStats",value:function(e){var t={};return e.forEach((function(e){Object.keys(e.stats).length>0&&Object.assign(t,(0,a["default"])({},e.field_name,e.stats))})),t}},{key:"_adaptRenderingContent",value:function(e){var t,i=Object.assign({},this.configuration.renderingContent);return null==(null===(t=i.facetOrdering)||void 0===t||null===(t=t.facets)||void 0===t?void 0:t.order)&&(i.facetOrdering=i.facetOrdering||{},i.facetOrdering.facets=i.facetOrdering.facets||{},i.facetOrdering.facets.order=(0,s["default"])(new Set(e.map((function(e){return e["field_name"]})).concat(this.allTypesenseResponses.map((function(e){return e.facet_counts||[]})).flat().map((function(e){return e["field_name"]})).filter((function(e){return e})))))),i}},{key:"adapt",value:function(){var e=this._adaptRenderingContent(this.typesenseResponse.facet_counts||[]),t=h({hits:this.typesenseResponse.grouped_hits?this._adaptGroupedHits(this.typesenseResponse.grouped_hits):this._adaptHits(this.typesenseResponse.hits),nbHits:this.typesenseResponse.found,page:this.typesenseResponse.page-1,nbPages:this._adaptNumberOfPages(),hitsPerPage:this.typesenseResponse.request_params.per_page,facets:this._adaptFacets(this.typesenseResponse.facet_counts||[]),facets_stats:this._adaptFacetStats(this.typesenseResponse.facet_counts||{}),query:this.typesenseResponse.request_params.q,processingTimeMS:this.typesenseResponse.search_time_ms},Object.keys(e).length>0?{renderingContent:e}:null);return t}}]),e}();t.SearchResponseAdapter=g,Object.assign(g.prototype,d.utils)},53317:(e,t,i)=>{"use strict";var n=i(58846);t.Z=void 0;var o=n(i(65902)),r=n(i(1001)),s=n(i(76325)),a=n(i(97459)),l=i(78164),c=i(86953),d=i(55790),u=i(17753),h=i(97027),g=function(){function e(t){var i=this;(0,s["default"])(this,e),this.updateConfiguration(t),this.searchClient={clearCache:function(){return i.clearCache()},search:function(e){return i.searchTypesenseAndAdapt(e)},searchForFacetValues:function(e){return i.searchTypesenseForFacetValuesAndAdapt(e)}}}return(0,a["default"])(e,[{key:"searchTypesenseAndAdapt",value:function(){var e=(0,r["default"])(o["default"].mark((function e(t){var i,n,r=this;return o["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return i=e.sent,n=i.results.map((function(e,n){r._validateTypesenseResult(e);var o=new u.SearchResponseAdapter(e,t[n],r.configuration,i.results);return o.adapt()})),e.abrupt("return",{results:n});case 8:throw e.prev=8,e.t0=e["catch"](0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"searchTypesenseForFacetValuesAndAdapt",value:function(){var e=(0,r["default"])(o["default"].mark((function e(t){var i,n,r=this;return o["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return i=e.sent,n=i.results.map((function(e,i){r._validateTypesenseResult(e);var n=new h.FacetSearchResponseAdapter(e,t[i],r.configuration);return n.adapt()})),e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e["catch"](0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_adaptAndPerformTypesenseRequest",value:function(){var e=(0,r["default"])(o["default"].mark((function e(t){var i,n;return o["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=new d.SearchRequestAdapter(t,this.typesenseClient,this.configuration),e.next=3,i.request();case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"clearCache",value:function(){return this.typesenseClient=new c.SearchClient(this.configuration.server),this.searchClient}},{key:"updateConfiguration",value:function(e){return this.configuration=new l.Configuration(e),this.configuration.validate(),this.typesenseClient=new c.SearchClient(this.configuration.server),!0}},{key:"_validateTypesenseResult",value:function(e){if(e.error)throw new Error("".concat(e.code," - ").concat(e.error));if(!e.hits&&!e.grouped_hits)throw new Error("Did not find any hits. ".concat(e.code," - ").concat(e.error))}}]),e}();t.Z=g},63627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=void 0;var i={_adaptHighlightTag:function(e,t,i){return e.replace(new RegExp("","g"),t||"").replace(new RegExp("","g"),i||"")},_adaptNumberOfPages:function(){var e=this.typesenseResponse.found/this.typesenseResponse.request_params.per_page;return Number.isFinite(e)?Math.ceil(e):1}};t.utils=i},86953:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Errors=t.SearchClient=t.Client=void 0;var a=s(i(51856));t.Client=a.default;var l=s(i(184));t.SearchClient=l.default;var c=r(i(79856));t.Errors=c,t["default"]={Client:a.default,SearchClient:l.default,Errors:c}},65539:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0},transformResponse:[function(e,t){var i=e;return void 0!==t&&"string"===typeof e&&t["content-type"]&&t["content-type"].startsWith("application/json")&&(i=JSON.parse(e)),i}]},!0!==C&&(b.timeout=1e3*g.connectionTimeoutSeconds),h&&0!==Object.keys(h).length&&(b.params=h),g.sendApiKeyAsQueryParam&&(b.params=b.params||{},b.params["x-typesense-api-key"]=g.apiKey),p&&("string"===typeof p&&0!==p.length||"object"===typeof p&&0!==Object.keys(p).length)&&(b.data=p),v&&(w=s.default.CancelToken,S=w.source(),_=function(){return S.cancel()},v.addEventListener("abort",_),b.cancelToken=S.token),[4,(0,s.default)(b)];case 2:if(x=o.sent(),x.status>=1&&x.status<=499&&g.setNodeHealthcheck(f,d),g.logger.debug("Request #".concat(i,": Request to Node ").concat(f.index," was made. Response Code was ").concat(x.status,".")),x.status>=200&&x.status<300)return[2,{value:Promise.resolve(x.data)}];if(x.status<500)return[2,{value:Promise.reject(g.customErrorForResponse(x,null===(r=x.data)||void 0===r?void 0:r.message))}];throw g.customErrorForResponse(x,null===(a=x.data)||void 0===a?void 0:a.message);case 3:return k=o.sent(),g.setNodeHealthcheck(f,u),n=k,g.logger.warn("Request #".concat(i,": Request to Node ").concat(f.index,' failed due to "').concat(k.code," ").concat(k.message).concat(null==k.response?"":" - "+JSON.stringify(null===(l=k.response)||void 0===l?void 0:l.data),'"')),g.logger.warn("Request #".concat(i,": Sleeping for ").concat(g.retryIntervalSeconds,"s and then retrying request...")),[4,g.timer(g.retryIntervalSeconds)];case 4:return o.sent(),[3,6];case 5:return v&&_&&v.removeEventListener("abort",_),[7];case 6:return[2]}}))},g=this,f=1,b.label=1;case 1:return f<=this.numRetriesPerRequest+1?[5,c(f)]:[3,4];case 2:if(_=b.sent(),"object"===typeof _)return[2,_.value];b.label=3;case 3:return f++,[3,1];case 4:return this.logger.debug("Request #".concat(i,": No retries left. Raising last error")),[2,Promise.reject(n)]}}))}))},e.prototype.getNextNode=function(e){if(void 0===e&&(e=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(e,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(e,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(e,": Nodes Health: ").concat(this.nodes.map((function(e){return"Node ".concat(e.index," is ").concat(!0===e.isHealthy?"Healthy":"Unhealthy")})).join(" || ")));for(var t=this.nodes[0],i=0;i<=this.nodes.length;i++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,t=this.nodes[this.currentNodeIndex],!0===t.isHealthy||this.nodeDueForHealthcheck(t,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(t.index)),t;return this.logger.debug("Request #".concat(e,": No healthy nodes were found. Returning the next node, Node ").concat(t.index)),t},e.prototype.nodeDueForHealthcheck=function(e,t){void 0===t&&(t=0);var i=Date.now()-e.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return i&&this.logger.debug("Request #".concat(t,": Node ").concat(e.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),i},e.prototype.initializeMetadataForNodes=function(){var e=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,d)),this.nodes.forEach((function(t,i){t.index=i,e.setNodeHealthcheck(t,d)}))},e.prototype.setNodeHealthcheck=function(e,t){e.isHealthy=t,e.lastAccessTimestamp=Date.now()},e.prototype.uriFor=function(e,t){return null!=t.url?"".concat(t.url).concat(e):"".concat(t.protocol,"://").concat(t.host,":").concat(t.port).concat(t.path).concat(e)},e.prototype.defaultHeaders=function(){var e={};return this.sendApiKeyAsQueryParam||(e[c]=this.apiKey),e["Content-Type"]="application/json",e},e.prototype.timer=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,1e3*e)}))]}))}))},e.prototype.customErrorForResponse=function(e,t){var i="Request failed with HTTP code ".concat(e.status);"string"===typeof t&&""!==t.trim()&&(i+=" | Server said: ".concat(t));var n=new l.default(i);return n=400===e.status?new a.RequestMalformed(i):401===e.status?new a.RequestUnauthorized(i):404===e.status?new a.ObjectNotFound(i):409===e.status?new a.ObjectAlreadyExists(i):422===e.status?new a.ObjectUnprocessable(i):e.status>=500&&e.status<=599?new a.ServerError(i):new a.HTTPError(i),n.httpStatus=e.status,n},e}();t["default"]=h},51856:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(i(76290)),r=n(i(87994)),s=n(i(22379)),a=n(i(47918)),l=n(i(6846)),c=n(i(65539)),d=n(i(38473)),u=n(i(47895)),h=n(i(6635)),g=n(i(99888)),p=n(i(45634)),f=n(i(54282)),m=n(i(65651)),_=n(i(43194)),v=n(i(48218)),b=n(i(91410)),y=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null!==(t=e.sendApiKeyAsQueryParam)&&void 0!==t&&t,this.configuration=new o.default(e),this.apiCall=new r.default(this.configuration),this.debug=new h.default(this.apiCall),this.metrics=new g.default(this.apiCall),this.health=new p.default(this.apiCall),this.operations=new f.default(this.apiCall),this.multiSearch=new m.default(this.apiCall,this.configuration),this._collections=new s.default(this.apiCall),this.individualCollections={},this._aliases=new l.default(this.apiCall),this.individualAliases={},this._keys=new d.default(this.apiCall),this.individualKeys={},this._presets=new _.default(this.apiCall),this.individualPresets={},this.analytics=new b.default(this.apiCall)}return e.prototype.collections=function(e){return void 0===e?this._collections:(void 0===this.individualCollections[e]&&(this.individualCollections[e]=new a.default(e,this.apiCall,this.configuration)),this.individualCollections[e])},e.prototype.aliases=function(e){return void 0===e?this._aliases:(void 0===this.individualAliases[e]&&(this.individualAliases[e]=new c.default(e,this.apiCall)),this.individualAliases[e])},e.prototype.keys=function(e){return void 0===e?this._keys:(void 0===this.individualKeys[e]&&(this.individualKeys[e]=new u.default(e,this.apiCall)),this.individualKeys[e])},e.prototype.presets=function(e){return void 0===e?this._presets:(void 0===this.individualPresets[e]&&(this.individualPresets[e]=new v.default(e,this.apiCall)),this.individualPresets[e])},e}();t["default"]=y},47918:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0;i--){var n=Math.floor(Math.random()*(i+1));t=[e[n],e[i]],e[i]=t[0],e[n]=t[1]}},e}();t["default"]=c},6635:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0)throw new s.ImportError("".concat(o.length-a.length," documents imported successfully, ").concat(a.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),o);return[2,o]}return[2,n]}}))}))},t.prototype.export=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e)]}))}))},t.prototype.exportStream=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e,{responseType:"stream"})]}))}))},t}(a.SearchOnlyDocuments);t["default"]=l},7554:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},14352:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(t,i){var n=e.call(this,t)||this;return n.importResults=i,n}return n(t,e),t}(r.default);t["default"]=s},84094:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},12862:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},88708:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},12590:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},29463:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},98295:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},92782:function(e,t,i){"use strict";var n=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(i(293)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r.default);t["default"]=s},293:function(e,t){"use strict";var i=this&&this.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){var i=this.constructor,n=e.call(this,t)||this;return n.name=i.name,Object.setPrototypeOf(n,i.prototype),n}return i(t,e),t}(Error);t["default"]=n},79856:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.TypesenseError=t.ServerError=t.RequestUnauthorized=t.RequestMalformed=t.ObjectUnprocessable=t.ObjectNotFound=t.ObjectAlreadyExists=t.MissingConfigurationError=t.HTTPError=void 0;var o=n(i(7554));t.HTTPError=o.default;var r=n(i(84094));t.MissingConfigurationError=r.default;var s=n(i(12862));t.ObjectAlreadyExists=s.default;var a=n(i(88708));t.ObjectNotFound=a.default;var l=n(i(12590));t.ObjectUnprocessable=l.default;var c=n(i(29463));t.RequestMalformed=c.default;var d=n(i(98295));t.RequestUnauthorized=d.default;var u=n(i(92782));t.ServerError=u.default;var h=n(i(14352));t.ImportError=h.default;var g=n(i(293));t.TypesenseError=g.default},45634:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]u,y&&(C=this.responseCache.keys().next().value,this.responseCache.delete(C)),w=this.responsePromiseCache.size>u,w&&(C=this.responsePromiseCache.keys().next().value,this.responsePromiseCache.delete(C)),[2,b]}}))}))},e}();t["default"]=a},184:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(i(76290)),r=n(i(87994)),s=n(i(65651)),a=i(55921),l=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null===(t=e.sendApiKeyAsQueryParam)||void 0===t||t,!0===e.sendApiKeyAsQueryParam&&(e.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),e.sendApiKeyAsQueryParam=!1),this.configuration=new o.default(e),this.apiCall=new r.default(this.configuration),this.multiSearch=new s.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return e.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach((function(e){e[0];var t=e[1];t.documents().clearCache()}))},e.prototype.collections=function(e){if(e)return void 0===this.individualCollections[e]&&(this.individualCollections[e]=new a.SearchOnlyCollection(e,this.apiCall,this.configuration)),this.individualCollections[e];throw new Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},e}();t["default"]=l},55921:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyCollection=void 0;var n=i(96156),o=function(){function e(e,t,i){this.name=e,this.apiCall=t,this.configuration=i,this._documents=new n.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return e.prototype.documents=function(){return this._documents},e}();t.SearchOnlyCollection=o},96156:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(o=2&r[0]?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{e.exports=i(12153)},49042:(e,t,i)=>{"use strict";var n=i(91323),o=i(79664),r=i(60119),s=i(10453),a=i(98617),l=i(80176),c=i(44728),d=i(28967),u=i(14309),h=i(13351);e.exports=function(e){return new Promise((function(t,i){var g,p=e.data,f=e.headers,m=e.responseType;function _(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}n.isFormData(p)&&delete f["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(b+":"+y)}var w=a(e.baseURL,e.url);function C(){if(v){var n="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,r=m&&"text"!==m&&"json"!==m?v.response:v.responseText,s={data:r,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};o((function(e){t(e),_()}),(function(e){i(e),_()}),s),v=null}}if(v.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=C:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(C)},v.onabort=function(){v&&(i(d("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){i(d("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(d(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||c(w))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;S&&(f[e.xsrfHeaderName]=S)}"setRequestHeader"in v&&n.forEach(f,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete f[t]:v.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),m&&"json"!==m&&(v.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){v&&(i(!e||e&&e.type?new h("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),p||(p=null),v.send(p)}))}},12153:(e,t,i)=>{"use strict";var n=i(91323),o=i(89256),r=i(58179),s=i(27639),a=i(94370);function l(e){var t=new r(e),i=o(r.prototype.request,t);return n.extend(i,r.prototype,t),n.extend(i,t),i.create=function(t){return l(s(e,t))},i}var c=l(a);c.Axios=r,c.Cancel=i(13351),c.CancelToken=i(7479),c.isCancel=i(66963),c.VERSION=i(42499).version,c.all=function(e){return Promise.all(e)},c.spread=i(74e3),c.isAxiosError=i(55713),e.exports=c,e.exports["default"]=c},13351:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},7479:(e,t,i)=>{"use strict";var n=i(13351);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},58179:(e,t,i)=>{"use strict";var n=i(91323),o=i(10453),r=i(95272),s=i(86544),a=i(27639),l=i(35758),c=l.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&l.assertOptions(i,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var r,d=[];if(this.interceptors.response.forEach((function(e){d.push(e.fulfilled,e.rejected)})),!o){var u=[s,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(d),r=Promise.resolve(t);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=t;while(n.length){var g=n.shift(),p=n.shift();try{h=g(h)}catch(f){p(f);break}}try{r=s(h)}catch(f){return Promise.reject(f)}while(d.length)r=r.then(d.shift(),d.shift());return r},d.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,i){return this.request(a(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,i,n){return this.request(a(n||{},{method:e,url:t,data:i}))}})),e.exports=d},95272:(e,t,i)=>{"use strict";var n=i(91323);function o(){this.handlers=[]}o.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},98617:(e,t,i)=>{"use strict";var n=i(48077),o=i(61221);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},28967:(e,t,i)=>{"use strict";var n=i(80314);e.exports=function(e,t,i,o,r){var s=new Error(e);return n(s,t,i,o,r)}},86544:(e,t,i)=>{"use strict";var n=i(91323),o=i(46922),r=i(66963),s=i(94370),a=i(13351);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80314:e=>{"use strict";e.exports=function(e,t,i,n,o){return e.config=t,i&&(e.code=i),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},27639:(e,t,i)=>{"use strict";var n=i(91323);e.exports=function(e,t){t=t||{};var i={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function r(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(e[i],t[i])}function s(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function a(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(void 0,t[i])}function l(i){return i in t?o(e[i],t[i]):i in e?o(void 0,e[i]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||r,o=t(e);n.isUndefined(o)&&t!==l||(i[e]=o)})),i}},79664:(e,t,i)=>{"use strict";var n=i(28967);e.exports=function(e,t,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},46922:(e,t,i)=>{"use strict";var n=i(91323),o=i(94370);e.exports=function(e,t,i){var r=this||o;return n.forEach(i,(function(i){e=i.call(r,e,t)})),e}},94370:(e,t,i)=>{"use strict";var n=i(91323),o=i(59374),r=i(80314),s=i(14309),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=i(49042)),e}function d(e,t,i){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(i||JSON.stringify)(e)}var u={transitional:s,adapter:c(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,i=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!i&&"json"===this.responseType;if(s||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw r(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(a)})),e.exports=u},14309:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},42499:e=>{e.exports={version:"0.26.1"}},89256:e=>{"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n{"use strict";var n=i(91323);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var r;if(i)r=i(t);else if(n.isURLSearchParams(t))r=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),r=s.join("&")}if(r){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},61221:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},60119:(e,t,i)=>{"use strict";var n=i(91323);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,i,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},48077:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},55713:(e,t,i)=>{"use strict";var n=i(91323);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},44728:(e,t,i)=>{"use strict";var n=i(91323);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=o(window.location.href),function(t){var i=n.isString(t)?o(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},59374:(e,t,i)=>{"use strict";var n=i(91323);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},80176:(e,t,i)=>{"use strict";var n=i(91323),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,r,s={};return e?(n.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=n.trim(e.substr(0,r)).toLowerCase(),i=n.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}})),s):s}},74e3:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},35758:(e,t,i)=>{"use strict";var n=i(42499).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var r={};function s(e,t,i){if("object"!==typeof e)throw new TypeError("options must be an object");var n=Object.keys(e),o=n.length;while(o-- >0){var r=n[o],s=t[r];if(s){var a=e[r],l=void 0===a||s(a,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==i)throw Error("Unknown option "+r)}}o.transitional=function(e,t,i){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,s){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!r[n]&&(r[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={assertOptions:s,validators:o}},91323:(e,t,i)=>{"use strict";var n=i(89256),o=Object.prototype.toString;function r(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"[object FormData]"===o.call(e)}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function g(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function _(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function b(e){return g(e)&&v(e.pipe)}function y(e){return"[object URLSearchParams]"===o.call(e)}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var i=0,n=e.length;i{"use strict";t.Z=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i}},33100:(e,t,i)=>{"use strict";i.d(t,{MT:()=>ee});var n=i(59835),o=i(60499);function r(){return s().__VUE_DEVTOOLS_GLOBAL_HOOK__}function s(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{}}const a="function"===typeof Proxy,l="devtools-plugin:setup",c="plugin:settings:set";let d,u;function h(){var e;return void 0!==d||("undefined"!==typeof window&&window.performance?(d=!0,u=window.performance):"undefined"!==typeof i.g&&(null===(e=i.g.perf_hooks)||void 0===e?void 0:e.performance)?(d=!0,u=i.g.perf_hooks.performance):d=!1),d}function g(){return h()?u.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const i={};if(e.settings)for(const s in e.settings){const t=e.settings[s];i[s]=t.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},i);try{const e=localStorage.getItem(n),t=JSON.parse(e);Object.assign(o,t)}catch(r){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(r){}o=e},now(){return g()}},t&&t.on(c,((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((i=>{this.targetQueue.push({method:t,args:e,resolve:i})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function f(e,t){const i=e,n=s(),o=r(),c=a&&i.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new p(i,o):null,r=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:i,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit(l,e,t)} /*! * vuex v4.1.0 * (c) 2022 Evan You