|
1
|
|
-(()=>{var e,t={585:(e,t,n)=>{"use strict";const r=window.wp.element,a=window.wp.blockEditor,o=window.wp.blocks,s=window.wp.hooks,i=window.wp.i18n;var c=n(184),l=n.n(c);const u=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"kevinbatdorf/code-block-pro","version":"1.2.0","title":"Code Block Pro","category":"common","description":"Code highlighting powered by the VS Code engine","attributes":{"code":{"type":"string"},"codeHTML":{"type":"string"},"language":{"type":"string"},"theme":{"type":"string"},"align":{"type":"string"},"bgColor":{"type":"string","default":"#282a37"},"textColor":{"type":"string","default":"#f8f8f2"},"fontSize":{"type":"string"},"fontFamily":{"type":"string"},"lineHeight":{"type":"string"},"lineNumbers":{"type":"boolean"},"clampFonts":{"type":"boolean","default":false},"headerType":{"type":"string"},"headerString":{"type":"string"},"disablePadding":{"type":"boolean","default":false},"startingLineNumber":{"type":"number","default":1},"frame":{"type":"boolean"},"renderType":{"type":"string","default":"code"},"label":{"type":"string","default":""},"copyButton":{"type":"boolean"}},"supports":{"html":false,"align":["wide","full"]},"textdomain":"code-block-pro","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./front/front.js"}');var p=n(460),h=n.n(p);const d=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(a!==t){const e=t;t=(null!=r?r:"object"!=typeof a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,o={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,a,o),o};var f=n(196),g=n(798);const{useSyncExternalStoreWithSelector:m}=g,y=e=>{const t="function"==typeof e?(e=>e?d(e):d)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=m(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,f.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n};var v=e=>e?y(e):y;const b=(e,t={})=>(n,r,a)=>{const{enabled:o,anonymousActionType:s,...i}=t;let c;try{c=(null==o||o)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,a);const l=c.connect(i);let u=!0;a.setState=(e,t,a)=>{const o=n(e,t);return u?(l.send(void 0===a?{type:s||"anonymous"}:"string"==typeof a?{type:a}:a,r()),o):o};const p=(...e)=>{const t=u;u=!1,n(...e),u=t},h=e(a.setState,r,a);if(l.init(h),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return l.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):_(e.payload,(e=>{"__setState"!==e.type?a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e):p(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),l.init(a.getState());case"COMMIT":return l.init(a.getState());case"ROLLBACK":return _(e.state,(e=>{p(e),l.init(a.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return _(e.state,(e=>{p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(r),void l.send(null,n)}case"PAUSE_RECORDING":return u=!u}return}})),h},_=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},k=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>k(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>k(t)(e)}}},S=(e,t)=>(n,r,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,c=new Set;let l;try{l=o.getStorage()}catch(e){}if(!l)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=k(o.serialize),p=()=>{const e=o.partialize({...r()});let t;const n=u({state:e,version:o.version}).then((e=>l.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},h=a.setState;a.setState=(e,t)=>{h(e,t),p()};const d=e(((...e)=>{n(...e),p()}),r,a);let f;const g=()=>{var e;if(!l)return;s=!1,i.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return k(l.getItem.bind(l))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=o.merge(e,null!=(t=r())?t:d),n(f,!0),p()})).then((()=>{null==t||t(f,void 0),s=!0,c.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return a.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(l=e.getStorage())},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},g(),f||d},w=v()(S(b((e=>({seenNotices:[],setSeenNotice(t){e((e=>e.seenNotices.includes(t)?e:{seenNotices:[...e.seenNotices,t]}))},previousSettings:{copyButton:!0},setPreviousSettings(t){e((e=>({previousSettings:{...e.previousSettings,...t}})))}})),{name:"Code Block Pro Globals"}),{name:"code-block-pro-last-globals",getStorage:()=>localStorage,partialize:e=>{var t,n;return{seenNotices:null!==(t=null==e?void 0:e.seenNotices)&&void 0!==t?t:[],previousSettings:null!==(n=null==e?void 0:e.previousSettings)&&void 0!==n?n:{}}}})),C=window.wp.apiFetch;var L=n.n(C);const x="/wp/v2/settings",j=async e=>{const t=await L()({path:x});return null==t?void 0:t[e]},P=v()(S(b((e=>({previousTheme:"nord",previousLineHeight:"1.25rem",previousFontFamily:"",previousFontSize:".875rem",previousHeaderType:"headlights",previousClampFonts:!1,previousDisablePadding:!1,updateThemeHistory(t){e((e=>({...e,previousTheme:t.theme,previousLineHeight:t.lineHeight,previousFontFamily:t.fontFamily,previousFontSize:t.fontSize,previousHeaderType:t.headerType,previousClampFonts:t.clampFonts,previousDisablePadding:t.disablePadding})))}})),{name:"Code Block Pro Theme Settings"}),{name:"code_block_pro_settings",getStorage:()=>({getItem:async e=>{const t=await j(e);return JSON.stringify({version:t.version,state:t})},setItem:async(e,t)=>{var n;const{state:r,version:a}=JSON.parse(t),o={[e]:Object.assign(null!==(n=await j(e))&&void 0!==n?n:{},r,a)};await L()({path:x,method:"POST",data:o})},removeItem:async e=>{const t={[e]:null};return await L()({path:x,method:"POST",data:t})}})}));var E=n(930),N=n(190);const T=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","tsx","css","less","sass","scss","stylus"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample"},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json"},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"],embeddedLangs:["ruby","python","applescript","html","markdown"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["json","markdown","pug","haml","liquid","vue-html","sass","scss","less","stylus","postcss","css","typescript","coffee","javascript"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var O,A=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(A||{});class R{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=R.getLanguageId(e),n=R.getTokenType(e),r=R.getFontStyle(e),a=R.getForeground(e),o=R.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:r,foreground:a,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static set(e,t,n,r,a,o){let s=R.getLanguageId(e),i=R.getTokenType(e),c=R.getFontStyle(e),l=R.getForeground(e),u=R.getBackground(e);return 0!==t&&(s=t),0!==n&&(i=8===n?0:n),-1!==r&&(c=r),0!==a&&(l=a),0!==o&&(u=o),(s<<0|i<<8|c<<11|l<<14|u<<23)>>>0}}function I(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function M(e){return e.startsWith("./")?e.slice(2):e}function D(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function F(e){return 10===e||13===e||8232===e||8233===e}function B(e){return e>=48&&e<=57}!function(e){e.DEFAULT={allowTrailingComma:!1}}(O||(O={}));var G=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=O.DEFAULT);var r=null,a=[],o=[];function s(e){Array.isArray(a)?a.push(e):null!==r&&(a[r]=e)}return function(e,t,n){void 0===n&&(n=O.DEFAULT);var r=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,a="",o=0,s=16,i=0,c=0,l=0,u=0,p=0;function h(t,n){for(var a=0,o=0;a<t||!n;){var s=e.charCodeAt(r);if(s>=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}r++,a++}return a<t&&(o=-1),o}function d(){if(a="",p=0,o=r,c=i,u=l,r>=n)return o=n,s=17;var t=e.charCodeAt(r);if(D(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(D(t));return s=15}if(F(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),i++,l=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,a=function(){for(var t="",a=r;;){if(r>=n){t+=e.substring(a,r),p=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(a,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(F(o)){t+=e.substring(a,r),p=2;break}p=6}r++}else{if(t+=e.substring(a,r),++r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=h(4,!0);s>=0?t+=String.fromCharCode(s):p=4;break;default:p=5}a=r}}return t}(),s=10;case 47:var d=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!F(e.charCodeAt(r));)r++;return a=e.substring(d,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;for(var g=n-1,m=!1;r<g;){var y=e.charCodeAt(r);if(42===y&&47===e.charCodeAt(r+1)){r+=2,m=!0;break}r++,F(y)&&(13===y&&10===e.charCodeAt(r)&&r++,i++,l=r)}return m||(r++,p=1),a=e.substring(d,r),s=13}return a+=String.fromCharCode(t),r++,s=16;case 45:if(a+=String.fromCharCode(t),++r===n||!B(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&B(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&B(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&B(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&B(e.charCodeAt(r))){for(r++;r<e.length&&B(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&f(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(a=e.substring(o,r)){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return a+=String.fromCharCode(t),r++,s=16}}function f(e){if(D(e)||F(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,a="",o=0,s=16,p=0},getPosition:function(){return r},scan:t?function(){var e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:function(){return s},getTokenValue:function(){return a},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-u},getTokenError:function(){return p}}}(e,!1);function a(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=a(t.onObjectBegin),i=o(t.onObjectProperty),c=a(t.onObjectEnd),l=a(t.onArrayBegin),u=a(t.onArrayEnd),p=o(t.onLiteralValue),h=o(t.onSeparator),d=a(t.onComment),f=o(t.onError),g=n&&n.disallowComments,m=n&&n.allowTrailingComma;function y(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:v(14);break;case 5:v(15);break;case 3:v(13);break;case 1:g||v(11);break;case 2:v(12);break;case 6:v(16)}switch(e){case 12:case 13:g?v(10):d();break;case 16:v(1);break;case 15:case 14:break;default:return e}}}function v(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),f(e),t.length+n.length>0)for(var a=r.getToken();17!==a;){if(-1!==t.indexOf(a)){y();break}if(-1!==n.indexOf(a))break;a=y()}}function b(e){var t=r.getTokenValue();return e?p(t):i(t),y(),!0}function _(){switch(r.getToken()){case 3:return function(){l(),y();for(var e=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||v(4,[],[]),h(","),y(),4===r.getToken()&&m)break}else e&&v(6,[],[]);_()||v(4,[],[4,5]),e=!0}return u(),4!==r.getToken()?v(8,[4],[]):y(),!0}();case 1:return function(){s(),y();for(var e=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||v(4,[],[]),h(","),y(),2===r.getToken()&&m)break}else e&&v(6,[],[]);(10!==r.getToken()?(v(3,[],[2,5]),!1):(b(!1),6===r.getToken()?(h(":"),y(),_()||v(4,[],[2,5])):v(5,[],[2,5]),!0))||v(4,[],[2,5]),e=!0}return c(),2!==r.getToken()?v(7,[2],[]):y(),!0}();case 10:return b(!0);default:return function(){switch(r.getToken()){case 11:var e=r.getTokenValue(),t=Number(e);isNaN(t)&&(v(2),t=0),p(t);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return y(),!0}()}}y(),17===r.getToken()?!!n.allowEmptyContent||v(4,[],[]):_()?17!==r.getToken()&&v(9,[],[]):v(4,[],[])}(e,{onObjectBegin:function(){var e={};s(e),o.push(a),a=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){a=o.pop()},onArrayBegin:function(){var e=[];s(e),o.push(a),a=e,r=null},onArrayEnd:function(){a=o.pop()},onLiteralValue:s,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),a[0]},H=Object.defineProperty,W=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))z.call(t,n)&&$(e,n,t[n]);if(W)for(var n of W(t))U.call(t,n)&&$(e,n,t[n]);return e};const V="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,K="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,J=V||!K;let Q="",X=null;function Y(e){if(J)return Q||console.warn("[Shiki] no CDN provider found, use `setCDN()` to specify the CDN for loading the resources before calling `getHighlighter()`"),`${Q}${e}`;{const t=n(318);return t.isAbsolute(e)?e:t.resolve("/","..",e)}}async function Z(e){const t=[],r=G(await async function(e){const t=Y(e);if(J)return await fetch(t).then((e=>e.text()));{const e=n(799);return await e.promises.readFile(t,"utf-8")}}(e),t,{allowTrailingComma:!0});if(t.length)throw t[0];return r}async function ee(e){const t=te(await Z(e));if(t.include){const n=await ee(function(...e){return e.map(I).map(M).join("/")}(...function(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors=q(q({},n.colors),t.colors)),delete t.include}return t}function te(e){const t=e.type||"dark",n=q(q({name:e.name,type:t},e),function(e){var t,n,r,a;let o,s,i=e.settings?e.settings:e.tokenColors;const c=i?i.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==c?void 0:c.settings)?void 0:t.foreground)&&(o=c.settings.foreground),(null==(n=null==c?void 0:c.settings)?void 0:n.background)&&(s=c.settings.background),!o&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(o=e.colors["editor.foreground"]),!s&&(null==(a=null==e?void 0:e.colors)?void 0:a["editor.background"])&&(s=e.colors["editor.background"]),o||(o="light"===e.type?ne:re),s||(s="light"===e.type?ae:oe),{fg:o,bg:s}}(e));var r;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(r=n).settings||(r.settings=[]),r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}}),n}const ne="#333333",re="#bbbbbb",ae="#fffffe",oe="#1e1e1e";class se{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await Z(e)}(T.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function ie(e,t){let n=[];for(let r=0,a=t.length;r<a;r++){let a=t.slice(0,r),o=t[r];n[r]={scopeName:o,themeMatches:ue(e,o,a)}}return n}function ce(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function le(e,t,n,r){if(!ce(e,n))return!1;let a=t.length-1,o=r.length-1;for(;a>=0&&o>=0;)ce(t[a],r[o])&&a--,o--;return-1===a}function ue(e,t,n){let r=[],a=0;for(let o=0,s=e.settings.length;o<s;o++){let s,i=e.settings[o];if("string"==typeof i.scope)s=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;s=i.scope}for(let e=0,o=s.length;e<o;e++){let c=s[e].split(/ /);le(c[c.length-1],c.slice(0,c.length-1),t,n)&&(r[a++]=i,e=o)}}return r}var pe=Object.defineProperty,he=Object.defineProperties,de=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,ye=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ve={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};const be={"&":"&","<":"<",">":">",'"':""","'":"'"};class _e extends N.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={}}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await ee(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=te(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=await this.loadGrammar(e.scopeName);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const t of e)this._resolver.addLanguage(t);for(const t of e)await this.loadLanguage(t)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}}function ke(e){return"string"==typeof e?T.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function Se(e){var t,r;const{_languages:a,_themes:o}=function(e){let t=T,n=e.themes||[];return e.langs&&(t=e.langs.map(ke)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n}}(e),s=new se(async function(){if(!X){let e;if(J)e=(0,E.loadWASM)({data:await fetch(Y("dist/onig.wasm")).then((e=>e.arrayBuffer()))});else{const t=n(318).join(930,"../onig.wasm"),r=n(799).readFileSync(t).buffer;e=(0,E.loadWASM)(r)}X=e.then((()=>({createOnigScanner:e=>(0,E.createOnigScanner)(e),createOnigString:e=>(0,E.createOnigString)(e)})))}return X}(),"vscode-oniguruma"),i=new _e(s);(null==(t=e.paths)?void 0:t.themes)&&(i.themesPath=e.paths.themes),(null==(r=e.paths)?void 0:r.languages)&&(s.languagesPath=e.paths.languages);const c=(await i.loadThemes(o))[0];let l;await i.loadLanguages(a);let u={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};function p(e){const t=e?i.getTheme(e):c;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(i.setTheme(t),l=t);const n=i.getColorMap();return"css"===t.type&&function(e,t){e.bg=u[e.bg]||e.bg,e.fg=u[e.fg]||e.fg,t.forEach(((e,n)=>{t[n]=u[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function h(e,t="text",n,r={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:a}=function(e){const t=i.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:s}=p(n);return function(e,t,n,r,a){let o=n.split(/\r\n|\r|\n/),s=N.INITIAL,i=[],c=[];for(let n=0,l=o.length;n<l;n++){let l,u,p,h=o[n];if(""===h){i=[],c.push([]);continue}a.includeExplanation&&(l=r.tokenizeLine(h,s),u=l.tokens,p=0);let d=r.tokenizeLine2(h,s),f=d.tokens.length/2;for(let n=0;n<f;n++){let r=d.tokens[2*n],o=n+1<f?d.tokens[2*n+2]:h.length;if(r===o)continue;let s=d.tokens[2*n+1],c=t[R.getForeground(s)],l=R.getFontStyle(s),g=[];if(a.includeExplanation){let t=0;for(;r+t<o;){let n=u[p],r=h.substring(n.startIndex,n.endIndex);t+=r.length,g.push({content:r,scopes:ie(e,n.scopes)}),p++}}i.push({content:h.substring(r,o),color:c,fontStyle:l,explanation:g})}c.push(i),i=[],s=d.ruleStack}return c}(o,s,e,a,r)}return{codeToThemedTokens:h,codeToHtml:function(e,t="text",n){let r;r="object"==typeof t?t:{lang:t,theme:n};const a=h(e,r.lang,r.theme,{includeExplanation:!1}),{_theme:o}=p(r.theme);return function(e,t={}){var n;const r=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(null!=(n=t.lineOptions)?n:[]),o=t.elements||{};function s(e="",t={},n){const r=o[e]||ve[e];return r?(n=n.filter(Boolean),r(((e,t)=>he(e,de(t)))(((e,t)=>{for(var n in t||(t={}))ge.call(t,n)&&ye(e,n,t[n]);if(fe)for(var n of fe(t))me.call(t,n)&&ye(e,n,t[n]);return e})({},t),{children:"code"===e?n.join("\n"):n.join("")}))):""}return s("pre",{className:"shiki",style:`background-color: ${r}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",s("code",{},e.map(((n,r)=>{var o;const i=r+1,c=function(e){var t;const n=new Set(["line"]);for(const r of e)for(const e of null!=(t=r.classes)?t:[])n.add(e);return Array.from(n)}(null!=(o=a.get(i))?o:[]).join(" ");return s("line",{className:c,lines:e,line:n,index:r},n.map(((e,r)=>{const a=[`color: ${e.color||t.fg}`];return e.fontStyle&A.Italic&&a.push("font-style: italic"),e.fontStyle&A.Bold&&a.push("font-weight: bold"),e.fontStyle&A.Underline&&a.push("text-decoration: underline"),s("token",{style:a.join("; "),tokens:n,token:e,index:r},[(o=e.content,o.replace(/[&<>"']/g,(e=>be[e])))]);var o})))})))])}(a,{fg:o.fg,bg:o.bg,lineOptions:null==r?void 0:r.lineOptions})},getTheme:e=>p(e)._theme,loadTheme:async function(e){await i.loadTheme(e)},loadLanguage:async function(e){const t=ke(e);s.addLanguage(t),await i.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=p(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=p(e);return t.fg},getLoadedThemes:function(){return i.getLoadedThemes()},getLoadedLanguages:function(){return i.getLoadedLanguages()},setColorReplacements:function(e){u=e}}}function we(e,t,n,r){return new(n||(n=Promise))((function(a,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function i(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,i)}c((r=r.apply(e,t||[])).next())}))}function Ce(e,t){var n,r,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}var Le,xe=function(){},je=xe(),Pe=Object,Ee=function(e){return e===je},Ne=function(e){return"function"==typeof e},Te=function(e,t){return Pe.assign({},e,t)},Oe="undefined",Ae=function(){return typeof window!=Oe},Re=new WeakMap,Ie=0,Me=function(e){var t,n,r=typeof e,a=e&&e.constructor,o=a==Date;if(Pe(e)!==e||o||a==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=Re.get(e))return t;if(t=++Ie+"~",Re.set(e,t),a==Array){for(t="@",n=0;n<e.length;n++)t+=Me(e[n])+",";Re.set(e,t)}if(a==Pe){t="#";for(var s=Pe.keys(e).sort();!Ee(n=s.pop());)Ee(e[n])||(t+=n+":"+Me(e[n])+",");Re.set(e,t)}}return t},De=!0,Fe=Ae(),Be=typeof document!=Oe,Ge=Fe&&window.addEventListener?window.addEventListener.bind(window):xe,He=Be?document.addEventListener.bind(document):xe,We=Fe&&window.removeEventListener?window.removeEventListener.bind(window):xe,ze=Be?document.removeEventListener.bind(document):xe,Ue={isOnline:function(){return De},isVisible:function(){var e=Be&&document.visibilityState;return Ee(e)||"hidden"!==e}},$e={initFocus:function(e){return He("visibilitychange",e),Ge("focus",e),function(){ze("visibilitychange",e),We("focus",e)}},initReconnect:function(e){var t=function(){De=!0,e()},n=function(){De=!1};return Ge("online",t),Ge("offline",n),function(){We("online",t),We("offline",n)}}},qe=!Ae()||"Deno"in window,Ve=qe?f.useEffect:f.useLayoutEffect,Ke="undefined"!=typeof navigator&&navigator.connection,Je=!qe&&Ke&&(["slow-2g","2g"].includes(Ke.effectiveType)||Ke.saveData),Qe=function(e){if(Ne(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Me(e):"",t,e?"$swr$"+e:""]},Xe=new WeakMap,Ye=function(e,t,n,r,a,o,s){void 0===s&&(s=!0);var i=Xe.get(e),c=i[0],l=i[1],u=i[3],p=c[t],h=l[t];if(s&&h)for(var d=0;d<h.length;++d)h[d](n,r,a);return o&&(delete u[t],p&&p[0])?p[0](2).then((function(){return e.get(t)})):e.get(t)},Ze=0,et=function(){return++Ze},tt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return we(void 0,void 0,void 0,(function(){var t,n,r,a,o,s,i,c,l,u,p,h,d,f,g,m,y,v,b,_,k;return Ce(this,(function(S){switch(S.label){case 0:if(t=e[0],n=e[1],r=e[2],a=e[3],s=!!Ee((o="boolean"==typeof a?{revalidate:a}:a||{}).populateCache)||o.populateCache,i=!1!==o.revalidate,c=!1!==o.rollbackOnError,l=o.optimisticData,u=Qe(n),p=u[0],h=u[2],!p)return[2];if(d=Xe.get(t),f=d[2],e.length<3)return[2,Ye(t,p,t.get(p),je,je,i,!0)];if(g=r,y=et(),f[p]=[y,0],v=!Ee(l),b=t.get(p),v&&(_=Ne(l)?l(b):l,t.set(p,_),Ye(t,p,_)),Ne(g))try{g=g(t.get(p))}catch(e){m=e}return g&&Ne(g.then)?[4,g.catch((function(e){m=e}))]:[3,2];case 1:if(g=S.sent(),y!==f[p][0]){if(m)throw m;return[2,g]}m&&v&&c&&(s=!0,g=b,t.set(p,b)),S.label=2;case 2:return s&&(m||(Ne(s)&&(g=s(g,b)),t.set(p,g)),t.set(h,Te(t.get(h),{error:m}))),f[p][1]=et(),[4,Ye(t,p,g,m,je,i,!!s)];case 3:if(k=S.sent(),m)throw m;return[2,s?k:g]}}))}))},nt=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},rt=function(e,t){if(!Xe.has(e)){var n=Te($e,t),r={},a=tt.bind(je,e),o=xe;if(Xe.set(e,[r,{},{},{},a]),!qe){var s=n.initFocus(setTimeout.bind(je,nt.bind(je,r,0))),i=n.initReconnect(setTimeout.bind(je,nt.bind(je,r,1)));o=function(){s&&s(),i&&i(),Xe.delete(e)}}return[e,a,o]}return[e,Xe.get(e)[4]]},at=rt(new Map),ot=at[0],st=at[1],it=Te({onLoadingSlow:xe,onSuccess:xe,onError:xe,onErrorRetry:function(e,__,t,n,r){var a=t.errorRetryCount,o=r.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Ee(a)&&o>a||setTimeout(n,s,r)},onDiscarded:xe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Je?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Je?5e3:3e3,compare:function(e,t){return Me(e)==Me(t)},isPaused:function(){return!1},cache:ot,mutate:st,fallback:{}},Ue),ct=function(e,t){var n=Te(e,t);if(t){var r=e.use,a=e.fallback,o=t.use,s=t.fallback;r&&o&&(n.use=r.concat(o)),a&&s&&(n.fallback=Te(a,s))}return n},lt=(0,f.createContext)({}),ut=function(e){return Ne(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},pt=function(){return Te(it,(0,f.useContext)(lt))},ht=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},dt={dedupe:!0},ft=(Pe.defineProperty((function(e){var t=e.value,n=ct((0,f.useContext)(lt),t),r=t&&t.provider,a=(0,f.useState)((function(){return r?rt(r(n.cache||ot),t):je}))[0];return a&&(n.cache=a[0],n.mutate=a[1]),Ve((function(){return a?a[2]:je}),[]),(0,f.createElement)(lt.Provider,Te(e,{value:n}))}),"default",{value:it}),Le=function(e,t,n){var r=n.cache,a=n.compare,o=n.fallbackData,s=n.suspense,i=n.revalidateOnMount,c=n.refreshInterval,l=n.refreshWhenHidden,u=n.refreshWhenOffline,p=Xe.get(r),h=p[0],d=p[1],g=p[2],m=p[3],y=Qe(e),v=y[0],b=y[1],_=y[2],k=(0,f.useRef)(!1),S=(0,f.useRef)(!1),w=(0,f.useRef)(v),C=(0,f.useRef)(t),L=(0,f.useRef)(n),x=function(){return L.current},j=function(){return x().isVisible()&&x().isOnline()},P=function(e){return r.set(_,Te(r.get(_),e))},E=r.get(v),N=Ee(o)?n.fallback[v]:o,T=Ee(E)?N:E,O=r.get(_)||{},A=O.error,R=!k.current,I=function(){return R&&!Ee(i)?i:!x().isPaused()&&(s?!Ee(T)&&n.revalidateIfStale:Ee(T)||n.revalidateIfStale)},M=!(!v||!t)&&(!!O.isValidating||R&&I()),D=function(e,t){var n=(0,f.useState)({})[1],r=(0,f.useRef)(e),a=(0,f.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,f.useCallback)((function(e){var o=!1,s=r.current;for(var i in e){var c=i;s[c]!==e[c]&&(s[c]=e[c],a.current[c]&&(o=!0))}o&&!t.current&&n({})}),[]);return Ve((function(){r.current=e})),[r,a.current,o]}({data:T,error:A,isValidating:M},S),F=D[0],B=D[1],G=D[2],H=(0,f.useCallback)((function(e){return we(void 0,void 0,void 0,(function(){var t,o,s,i,c,l,u,p,h,d,f,y,_;return Ce(this,(function(L){switch(L.label){case 0:if(t=C.current,!v||!t||S.current||x().isPaused())return[2,!1];i=!0,c=e||{},l=!m[v]||!c.dedupe,u=function(){return!S.current&&v===w.current&&k.current},p=function(){var e=m[v];e&&e[1]===s&&delete m[v]},h={isValidating:!1},d=function(){P({isValidating:!1}),u()&&G(h)},P({isValidating:!0}),G({isValidating:!0}),L.label=1;case 1:return L.trys.push([1,3,,4]),l&&(Ye(r,v,F.current.data,F.current.error,!0),n.loadingTimeout&&!r.get(v)&&setTimeout((function(){i&&u()&&x().onLoadingSlow(v,n)}),n.loadingTimeout),m[v]=[t.apply(void 0,b),et()]),_=m[v],o=_[0],s=_[1],[4,o];case 2:return o=L.sent(),l&&setTimeout(p,n.dedupingInterval),m[v]&&m[v][1]===s?(P({error:je}),h.error=je,f=g[v],!Ee(f)&&(s<=f[0]||s<=f[1]||0===f[1])?(d(),l&&u()&&x().onDiscarded(v),[2,!1]):(a(F.current.data,o)?h.data=F.current.data:h.data=o,a(r.get(v),o)||r.set(v,o),l&&u()&&x().onSuccess(o,v,n),[3,4])):(l&&u()&&x().onDiscarded(v),[2,!1]);case 3:return y=L.sent(),p(),x().isPaused()||(P({error:y}),h.error=y,l&&u()&&(x().onError(y,v,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Ne(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&j()&&x().onErrorRetry(y,v,n,H,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return i=!1,d(),u()&&l&&Ye(r,v,h.data,h.error,!1),[2,!0]}}))}))}),[v]),W=(0,f.useCallback)(tt.bind(je,r,(function(){return w.current})),[]);if(Ve((function(){C.current=t,L.current=n})),Ve((function(){if(v){var e=v!==w.current,t=H.bind(je,dt),n=0,r=ht(v,d,(function(e,t,n){G(Te({error:t,isValidating:n},a(F.current.data,e)?je:{data:e}))})),o=ht(v,h,(function(e){if(0==e){var r=Date.now();x().revalidateOnFocus&&r>n&&j()&&(n=r+x().focusThrottleInterval,t())}else if(1==e)x().revalidateOnReconnect&&j()&&t();else if(2==e)return H()}));return S.current=!1,w.current=v,k.current=!0,e&&G({data:T,error:A,isValidating:M}),I()&&(Ee(T)||qe?t():function(e){Ae()&&typeof window.requestAnimationFrame!=Oe?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){S.current=!0,r(),o()}}}),[v,H]),Ve((function(){var e;function t(){var t=Ne(c)?c(T):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F.current.error||!l&&!x().isVisible()||!u&&!x().isOnline()?t():H(dt).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[c,l,u,H]),(0,f.useDebugValue)(T),s&&Ee(T)&&v)throw C.current=t,L.current=n,S.current=!1,Ee(A)?H(dt):A;return{mutate:W,get data(){return B.data=!0,T},get error(){return B.error=!0,A},get isValidating(){return B.isValidating=!0,M}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pt(),r=ut(e),a=r[0],o=r[1],s=r[2],i=ct(n,s),c=Le,l=i.use;if(l)for(var u=l.length;u-- >0;)c=l[u](c);return c(a,o||i.fetcher,i)}),gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},gt.apply(this,arguments)},mt=function(e){return function(e){return"function"==typeof e}(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},yt=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=mt(n),o=a[0],s=a[1],i=a[2],c=(i.use||[]).concat(t);return e(o,s,gt(gt({},i),{use:c}))}}(ft,(function(e){return function(t,n,r){return r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)}}));const vt=e=>{let{theme:t,lang:n,ready:r}=e;if(!r)throw new Error((0,i.__)("Loading...","code-block-pro"));return Se({langs:[n],theme:(0,s.applyFilters)("blocks.codeBlockPro.theme",t)})};let bt=!1;const _t=e=>{let{theme:t,lang:n,ready:r=!0}=e;if(!bt){var a;bt=!0;const e=(null===(a=window.codeBlockPro)||void 0===a?void 0:a.pluginUrl)+"/build/shiki/";o=(0,s.applyFilters)("blocks.codeBlockPro.assetDir",e),Q=o}var o;const{data:i,error:c}=yt({theme:t,lang:n,ready:r},vt);return{highlighter:i,error:c,loading:!i&&!c}},kt=v()(S(b(((e,t)=>({previousLanguage:"javascript",setPreviousLanguage(n){e({previousLanguage:n}),t().addRecentLanguage(n)},recentLanguages:[],addRecentLanguage(t){e((e=>{var n,r;return e.recentLanguages.includes(t)?e:{recentLanguages:[...null!==(n=null===(r=e.recentLanguages)||void 0===r?void 0:r.slice(-2))&&void 0!==n?n:[],t]}}))}})),{name:"Code Block Pro Language"}),{name:"code-block-pro-last-language",getStorage:()=>localStorage,partialize:e=>{var t,n;return{previousLanguage:null!==(t=null==e?void 0:e.previousLanguage)&&void 0!==t?t:null,recentLanguages:null!==(n=null==e?void 0:e.recentLanguages)&&void 0!==n?n:[]}}})),St=e=>{let{attributes:t,setAttributes:n}=e;const{language:a,theme:o,code:i="",bgColor:c,textColor:l,disablePadding:u}=t,p=(0,r.useRef)(null),{previousLanguage:d}=kt(),{highlighter:f,error:g,loading:m}=_t({theme:o,lang:null!=a?a:d});var y;return(e=>{let{attributes:t,setAttributes:n}=e;const{theme:a,fontSize:o,fontFamily:s,lineHeight:i,copyButton:c,headerType:l}=t,{previousSettings:u}=w(),{previousTheme:p,previousFontSize:h,previousFontFamily:d,previousLineHeight:f,previousHeaderType:g}=P();(0,r.useEffect)((()=>{!c&&u.copyButton&&n({copyButton:u.copyButton})}),[u,c,n]),(0,r.useEffect)((()=>{!a&&p&&n({theme:p})}),[p,a,n]),(0,r.useEffect)((()=>{!o&&h&&n({fontSize:h})}),[h,o,n]),(0,r.useEffect)((()=>{!s&&d&&n({fontFamily:d})}),[d,s,n]),(0,r.useEffect)((()=>{!i&&f&&n({lineHeight:f})}),[f,i,n]),(0,r.useEffect)((()=>{!l&&g&&n({headerType:g})}),[g,l,n])})({attributes:t,setAttributes:n}),(0,r.useEffect)((()=>{f&&n({bgColor:f.getBackgroundColor(),textColor:f.getForegroundColor()})}),[o,f,n]),(0,r.useEffect)((()=>{f&&n({codeHTML:(0,s.applyFilters)("blocks.codeBlockPro.codeHTML",f.codeToHtml(i,{lang:null!=a?a:d}),t)})}),[f,i,a,n,d,t]),m&&i||g?(0,r.createElement)("div",{className:"p-8 px-4 text-left",style:{backgroundColor:c,color:l}},null!==(y=null==g?void 0:g.message)&&void 0!==y?y:""):(0,r.createElement)("div",{ref:p},(0,r.createElement)(h(),{value:i,onValueChange:e=>n({code:e}),padding:u?0:16,style:{backgroundColor:c,color:l},onKeyDown:e=>{var t,n;return"Tab"===e.key&&(null===(t=p.current)||void 0===t||null===(n=t.querySelector("textarea"))||void 0===n?void 0:n.focus())},highlight:e=>{var t;return null==f||null===(t=f.codeToHtml(e,{lang:null!=a?a:d}))||void 0===t?void 0:t.replace(/<\/?[pre|code][^>]*>/g,"")}}))},wt=window.wp.components,Ct=window.wp.data,Lt=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"#1e1e1e",strokeWidth:"2"},(0,r.createElement)("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})),xt=JSON.parse('{"abap":"ABAP","actionscript-3":"ActionScript 3","ada":"Ada","apache":"Apache","apex":"Apex","apl":"APL","applescript":"AppleScript","asm":"ASM","astro":"Astro","awk":"Awk","ballerina":"Ballerina","bat":"BAT","batch":"Batch","be":"BE","berry":"Berry","bibtex":"BibTeX","bicep":"BICEP","blade":"Blade","c":"C","cadence":"Cadence","cdc":"CDC","clarity":"Clarity","clj":"Clojure","clojure":"Clojure","cmake":"CMake","cobol":"COBOL","codeql":"CodeQL","ql":"CodeQL","coffee":"CoffeeScript","cpp":"C++","crystal":"Crystal","csharp":"C#","c#":"C#","css":"CSS","cue":"CUE","d":"D","dart":"Dart","diff":"Diff","docker":"Docker","dream-maker":"DreamMaker","elixir":"Elixir","elm":"Elm","erb":"ERB","html-ruby-erb":"ERB","erlang":"Erlang","fish":"Fish","fsharp":"F#","f#":"F#","fsl":"FSL","gherkin":"Gherkin","git-commit":"Git Commit","git-rebase":"Git Rebase","glsl":"GLSL","gnuplot":"Gnuplot","go":"Go","graphql":"GraphQL","groovy":"Groovy","hack":"Hack","haml":"HAML","handlebars":"Handlebars","haskell":"Haskell","hbs":"HBS","hcl":"HCL","hlsl":"HLSL","html":"HTML","ini":"INI","java":"Java","javascript":"JavaScript","js":"JavaScript","jinja-html":"Jinja HTML","json":"JSON","jsonc":"JSONC","jsonnet":"JSONnet","jssm":"JSSM","jsx":"JSX","julia":"Julia","kotlin":"Kotlin","latex":"LaTeX","less":"LESS","liquid":"Liquid","lisp":"Lisp","logo":"Logo","lua":"Lua","make":"Makefile","makefile":"Makefile","markdown":"Markdown","md":"Markdown","marko":"Marko","matlab":"MATLAB","mdx":"MDX","mermaid":"Mermaid","nginx":"Nginx","nim":"Nim","nix":"Nix","objective-c":"Objective-C","objc":"Objective-C","objective-cpp":"Objective-C++","ocaml":"OCaml","pascal":"Pascal","perl":"Perl","php":"PHP","plsql":"PLSQL","postcss":"PostCSS","powershell":"PowerShell","ps":"PowerShell","ps1":"PowerShell","prisma":"Prisma","prolog":"Prolog","pug":"Pug","jade":"Pug","puppet":"Puppet","purescript":"PureScript","python":"Python","py":"Python","r":"R","raku":"Raku","perl6":"Raku","razor":"Razor","rel":"Rel","riscv":"RISC-V","rst":"RST","ruby":"Ruby","rb":"Ruby","rust":"Rust","rs":"Rust","sas":"SAS","sass":"Sass","scala":"Scala","scheme":"Scheme","scss":"SCSS","shaderlab":"ShaderLab","shader":"Shader","shellscript":"ShellScript","bash":"ShellScript","shell":"ShellScript","sh":"ShellScript","zsh":"ShellScript","smalltalk":"Smalltalk","solidity":"Solidity","sparql":"SPARQL","sql":"SQL","ssh-config":"SSH Config","stata":"Stata","stylus":"Stylus","styl":"Stylus","svelte":"Svelte","swift":"Swift","system-verilog":"SystemVerilog","tasl":"TASL","tcl":"TCL","tex":"TeX","toml":"TOML","tsx":"TSX","turtle":"Turtle","twig":"Twig","typescript":"TypeScript","ts":"TypeScript","vb":"VB","cmd":"VB","verilog":"Verilog","vhdl":"VHDL","viml":"VimL","vim":"VimL","vimscript":"VimL","vue-html":"Vue HTML","vue":"Vue","wasm":"WASM","wenyan":"Wenyan","文言":"Wenyan","xml":"XML","xsl":"XSL","yaml":"YAML","zenscript":"ZenScript"}'),jt={"actionscript-3":["as3"],cpp:["arduino"],xml:["coldfusion"],pascal:["delphi"],java:["javafx"],javascript:["jscript","js"],matlab:["matlabkey"],"objective-c":["objc"],bat:["batch"],berry:["be"],cadence:["cdc"],clojure:["clj"],csharp:["c#"],erlang:["erl"],fsharp:["f#"],haskell:["hs"],handlebars:["hbs"],jssm:["fsl"],make:["makefile"],markdown:["md"],powershell:["ps","ps1"],pug:["jade"],python:["py"],raku:["perl6"],ruby:["rb"],rust:["rs"],"html-ruby-erb":["erb"],shaderlab:["shader"],shellscript:["shell","bash","sh","zsh"],stylus:["styl"],typescript:["ts"],vb:["cmd"],viml:["vim","vimscript"],wenyan:["文言"],codeql:["ql"]},Pt=e=>{if(e)return Object.keys(jt).find((t=>jt[t].includes(e)))},Et=(e=>{const t=Object.values(jt).flat();return Object.keys(e).reduce(((n,r)=>(t.includes(r)||(n[r]=e[r]),n)),{})})(xt);function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nt.apply(this,arguments)}const Tt=e=>{let{bgColor:t}=e;return(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:t}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:"#FF5F56",stroke:"#E0443E",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:"#FFBD2E",stroke:"#DEA123",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:"#27C93F",stroke:"#1AAB29",strokeWidth:".5"}))))};var Ot={grad:.9,turn:360,rad:360/(2*Math.PI)},At=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Rt=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},It=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Mt=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Dt=function(e){return{r:It(e.r,0,255),g:It(e.g,0,255),b:It(e.b,0,255),a:It(e.a)}},Ft=function(e){return{r:Rt(e.r),g:Rt(e.g),b:Rt(e.b),a:Rt(e.a,3)}},Bt=/^#([0-9a-f]{3,8})$/i,Gt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ht=function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),i=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(i<0?i+6:i),s:o?s/o*100:0,v:o/255*100,a}},Wt=function(e){var t=e.h,n=e.s,r=e.v,a=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),i=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),l=o%6;return{r:255*[r,i,s,s,c,r][l],g:255*[c,r,r,i,s,s][l],b:255*[s,s,c,r,r,i][l],a}},zt=function(e){return{h:Mt(e.h),s:It(e.s,0,100),l:It(e.l,0,100),a:It(e.a)}},Ut=function(e){return{h:Rt(e.h),s:Rt(e.s),l:Rt(e.l),a:Rt(e.a,3)}},$t=function(e){return Wt((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},qt=function(e){return{h:(t=Ht(e)).h,s:(a=(200-(n=t.s))*(r=t.v)/100)>0&&a<200?n*r/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,r,a},Vt=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kt=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jt=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qt=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xt={string:[[function(e){var t=Bt.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Rt(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Rt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Jt.exec(e)||Qt.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Dt({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Vt.exec(e)||Kt.exec(e);if(!t)return null;var n,r,a=zt({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Ot[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return $t(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=void 0===a?1:a;return At(t)&&At(n)&&At(r)?Dt({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,o=void 0===a?1:a;if(!At(t)||!At(n)||!At(r))return null;var s=zt({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return $t(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,o=void 0===a?1:a;if(!At(t)||!At(n)||!At(r))return null;var s=function(e){return{h:Mt(e.h),s:It(e.s,0,100),v:It(e.v,0,100),a:It(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return Wt(s)},"hsv"]]},Yt=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Zt=function(e,t){var n=qt(e);return{h:n.h,s:It(n.s+100*t,0,100),l:n.l,a:n.a}},en=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},tn=function(e,t){var n=qt(e);return{h:n.h,s:n.s,l:It(n.l+100*t,0,100),a:n.a}},nn=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Yt(e.trim(),Xt.string):"object"==typeof e&&null!==e?Yt(e,Xt.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Rt(en(this.rgba),2)},e.prototype.isDark=function(){return en(this.rgba)<.5},e.prototype.isLight=function(){return en(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Ft(this.rgba)).r,n=e.g,r=e.b,o=(a=e.a)<1?Gt(Rt(255*a)):"","#"+Gt(t)+Gt(n)+Gt(r)+o;var e,t,n,r,a,o},e.prototype.toRgb=function(){return Ft(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Ft(this.rgba)).r,n=e.g,r=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+r+", "+a+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,a},e.prototype.toHsl=function(){return Ut(qt(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ut(qt(this.rgba))).h,n=e.s,r=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+a+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,a},e.prototype.toHsv=function(){return e=Ht(this.rgba),{h:Rt(e.h),s:Rt(e.s),v:Rt(e.v),a:Rt(e.a,3)};var e},e.prototype.invert=function(){return rn({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),rn(Zt(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),rn(Zt(this.rgba,-e))},e.prototype.grayscale=function(){return rn(Zt(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),rn(tn(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),rn(tn(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?rn({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Rt(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=qt(this.rgba);return"number"==typeof e?rn({h:e,s:t.s,l:t.l,a:t.a}):Rt(t.h)},e.prototype.isEqual=function(e){return this.toHex()===rn(e).toHex()},e}(),rn=function(e){return e instanceof nn?e:new nn(e)};const an=e=>{let{textColor:t,bgColor:n}=e;return(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:n}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:rn(t).alpha(.2).toHex(),stroke:rn(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:rn(t).alpha(.2).toHex(),stroke:rn(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:rn(t).alpha(.2).toHex(),stroke:rn(t).alpha(.3).toHex(),strokeWidth:".5"}))))},on=e=>{let{bgColor:t}=e;const n=rn(t),a=n.isDark()?n.lighten(.05):n.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:a.toHex()}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:62,height:20,viewBox:"0 0 62 20"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"8",cy:"8",r:"8",fill:t,stroke:t,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"30",cy:"8",r:"8",fill:t,stroke:t,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"52",cy:"8",r:"8",fill:t,stroke:t,strokeWidth:".5"}))))},sn=e=>{let{language:t,bgColor:n,textColor:a,headerString:o}=e;const s=rn(n),i=s.isDark()?s.lighten(.05):s.darken(.05),c=rn(a),l=c.isDark()?c.lighten(.05):c.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:i.toHex(),color:l.toHex()}},o||Et[t])},cn=e=>{let{attributes:t,onClick:n}=e;const{headerType:a,bgColor:o}=t,s={none:(0,i.__)("None","code-block-pro"),headlights:(0,i.__)("Headlights","code-block-pro"),headlightsMuted:(0,i.__)("Headlights muted","code-block-pro"),headlightsMutedAlt:(0,i.__)("Headlights muted alt","code-block-pro"),simpleString:(0,i.__)("Simple string","code-block-pro")},c={...t};return delete c.headerType,(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(s).map((e=>{let[t,s]=e;return(0,r.createElement)(wt.BaseControl,{id:`code-block-pro-header-${t}`,label:a===t?(0,i.sprintf)((0,i.__)("%s (current)","code-block-pro"),s):s,key:t},(0,r.createElement)("button",{id:`code-block-pro-header-${t}`,type:"button",onClick:()=>n(t),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-scroll"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)(ln,Nt({headerType:t},c)),(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:o}}))))})))},ln=e=>{const{headerType:t}=e;return"headlights"===t?(0,r.createElement)(Tt,e):"headlightsMuted"===t?(0,r.createElement)(an,e):"headlightsMutedAlt"===t?(0,r.createElement)(on,e):"simpleString"===t?(0,r.createElement)(sn,e):null},un=e=>{let{attributes:t,setAttributes:n}=e;const[a,o]=(0,r.useState)(t.language),{previousLanguage:s,setPreviousLanguage:i}=kt();return(0,r.useEffect)((()=>{a||n({language:s})}),[a,s,n]),(0,r.useEffect)((()=>{o(t.language)}),[t.language]),[a,e=>{n({language:e}),o(e),i(e)}]},pn=e=>{let{value:t,onChange:n}=e;return(0,r.createElement)(wt.FontSizePicker,{onChange:e=>{n(null!=e?e:".875rem")},value:t,fontSizes:[{name:"Tiny",size:".75rem",slug:"tiny"},{name:"Small",size:".875rem",slug:"small"},{name:"Normal",size:"1rem",slug:"normal"},{name:"Big",size:"1.125rem",slug:"big"}]})},hn=e=>{let{value:t,onChange:n}=e;return(0,r.createElement)(wt.FontSizePicker,{onChange:e=>{n(null!=e?e:".875rem")},value:t,fontSizes:[{name:"None",size:"1rem",slug:"none"},{name:"Tight",size:"1.25rem",slug:"tight"},{name:"Normal",size:"1.5rem",slug:"normal"},{name:"Relaxed",size:"1.625rem",slug:"relaxed"}]})},dn=e=>{let{value:t,onChange:n}=e;const a={"":(0,i.__)("System Default","code-block-pro"),"Code-Pro-JetBrains-Mono":"JetBrains Mono","Code-Pro-Fira-Code":"Fira Code"};return(0,r.createElement)(wt.SelectControl,{id:"code-block-pro-font-family",label:(0,i.__)("Font Family","code-block-pro"),value:t,onChange:n,options:Object.entries(a).map((e=>{let[t,n]=e;return{label:n,value:t}}))})},fn=()=>{const{seenNotices:e,setSeenNotice:t}=w(),[n,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(""),[i,c]=(0,r.useState)(!1),l=(0,Ct.useSelect)((e=>{const t=e("core").getCurrentUser(),n=e("core").getEntityRecord("root","user",t.id);return null==n?void 0:n.email}));return(0,r.useEffect)((()=>{s(l)}),[l]),(0,r.useEffect)((()=>{if(!i)return;const e=setTimeout((()=>{t("beta-signup")}),4e3);return()=>clearTimeout(e)}),[i,t]),null},gn=JSON.parse('{"dark-plus":"Dark Plus","dracula-soft":"Dracula Soft","dracula":"Dracula","github-dark-dimmed":"GitHub Dark Dimmed","github-dark":"Github Dark","github-light":"Github Light","hc_light":"HC Light","light-plus":"Light Plus","material-darker":"Material Darker","material-default":"Material Default","material-lighter":"Material Lighter","material-ocean":"Material Ocean","material-palenight":"Material Palenight","min-dark":"Min Dark","min-light":"Min Light","monokai":"Monokai","nord":"Nord","one-dark-pro":"One Dark Pro","poimandres":"Poimandres","rose-pine-dawn":"Rose Pine Dawn","rose-pine-moon":"Rose Pine Moon","rose-pine":"Rose Pine","slack-dark":"Slack Dark","slack-ochin":"Slack Ochin","solarized-dark":"Solarized Dark","solarized-light":"Solarized Light","vitesse-dark":"Vitesse Dark","vitesse-light":"Vitesse Light"}'),mn=e=>{let{id:t,theme:n,lang:a,onClick:o,code:s,fontSize:c,lineHeight:l,fontFamily:u}=e;const[p,h]=(0,r.useState)(!1),{highlighter:d,error:f,loading:g}=_t({theme:n,lang:s?a:"c",ready:p}),[m,y]=(0,r.useState)(""),[v,b]=(0,r.useState)("#ffffff"),_=(0,r.useRef)(new IntersectionObserver((e=>{let[t]=e;t.isIntersecting&&(h(!0),_.current.disconnect())}))),k="\nfloat Q_rsqrt( float number )\n{\n long i;\n float x2, y;\n const float threehalfs = 1.5F;\n\n x2 = number * 0.5F;\n y = number;\n i = * ( long * ) &y; // evil floating point bit level hacking\n i = 0x5f3759df - ( i >> 1 ); // what the frack?\n y = * ( float * ) &i;\n y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration\n// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed\n\n return y;\n}".trim();return(0,r.useEffect)((()=>{if(!d)return;const e=s?d.codeToHtml(s,{lang:a}):d.codeToHtml(k,{lang:"c"});y(e),b(d.getBackgroundColor())}),[d,a,s,k]),(0,r.createElement)("button",{id:t,type:"button",onClick:o,className:"p-4 px-3 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-scroll",style:{backgroundColor:v,minHeight:"50px"}},g||f||!p?(0,r.createElement)("span",{id:t,ref:e=>{e&&_.current.observe(e)},style:{minHeight:"200px"},className:"flex items-center justify-center p-6 bg-gray-50"},(null==f?void 0:f.message)||(0,i.__)("Loading...","code-block-pro")):(0,r.createElement)("span",{className:"pointer-events-none",style:{fontSize:c,fontFamily:u,lineHeight:l},dangerouslySetInnerHTML:{__html:m}}))},yn=e=>{let{theme:t,language:n,code:a,fontSize:o,lineHeight:s,fontFamily:c,onClick:l}=e;return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(gn).map((e=>{let[u,p]=e;return(0,r.createElement)(wt.BaseControl,{id:`code-block-pro-theme-${u}`,label:t===u?(0,i.sprintf)((0,i.__)("%s (current)","code-block-pro"),p):p,key:u},(0,r.createElement)(mn,{id:`code-block-pro-theme-${u}`,theme:u,lang:n,fontSize:o,lineHeight:s,fontFamily:c,onClick:()=>{l(u)},code:a}))})))},vn=e=>{var t;let{attributes:n,setAttributes:o}=e;const[s,c]=un({attributes:n,setAttributes:o}),{recentLanguages:l}=kt(),{updateThemeHistory:u}=P(),{setPreviousSettings:p}=w(),h=["simpleString"].includes(n.headerType);return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(wt.PanelBody,{title:(0,i.__)("Settings","code-block-pro"),initialOpen:!0},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(wt.BaseControl,{id:"code-block-pro-language"},(0,r.createElement)(wt.SelectControl,{id:"code-block-pro-language",label:(0,i.__)("Code Language","code-block-pro"),"data-cy-cbp":"language-select",value:s,onChange:c,options:Object.entries(Et).map((e=>{let[t,n]=e;return{label:n,value:t}}))}),(null==l?void 0:l.length)>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"mb-2 block"},(0,i.__)("Recently Used","code-block-pro")),(0,r.createElement)("div",{className:"flex gap-1"},null==l?void 0:l.map((e=>{var t;return(0,r.createElement)(wt.Button,{key:e,className:"bg-gray-100 text-black no-underline p-1 px-2 ",variant:"link",onClick:()=>c(e)},null!==(t=Et[e])&&void 0!==t?t:e)})))):null),h&&(0,r.createElement)(wt.BaseControl,{id:"code-block-pro-header-text"},(0,r.createElement)(wt.TextControl,{id:"code-block-pro-header-text",spellCheck:!1,label:(0,i.__)("Header Text","code-block-pro"),placeholder:Et[s],onChange:e=>{o({headerString:e})},value:null!==(t=n.headerString)&&void 0!==t?t:""})),(0,r.createElement)(fn,null))),(0,r.createElement)(wt.PanelBody,{title:(0,i.__)("Styling","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)("h2",{className:"m-0"},(0,i.__)("Font Size","code-block-pro")),(0,r.createElement)(pn,{value:n.fontSize,onChange:e=>{o({fontSize:e}),u({...n,fontSize:e})}}),(0,r.createElement)("h2",{className:"m-0"},(0,i.__)("Line Height","code-block-pro")),(0,r.createElement)(hn,{value:n.lineHeight,onChange:e=>{o({lineHeight:e}),u({...n,lineHeight:e})}}),(0,r.createElement)(dn,{value:n.fontFamily,onChange:e=>{o({fontFamily:e}),u({...n,fontFamily:e})}}),(0,r.createElement)(wt.CheckboxControl,{label:(0,i.__)("Clamp Values","code-block-pro"),help:(0,i.__)("Check this if your font sizes are unusually large or tiny.","code-block-pro"),checked:n.clampFonts,onChange:e=>{o({clampFonts:e}),u({...n,clampFonts:e})}}))),(0,r.createElement)(wt.PanelBody,{title:(0,i.__)("Header Type","code-block-pro"),initialOpen:!1},(0,r.createElement)(cn,{attributes:n,onClick:e=>{o({headerType:e}),u({...n,headerType:e})}})),(0,r.createElement)(wt.PanelBody,{title:(0,i.__)("Themes","code-block-pro"),initialOpen:!1},(0,r.createElement)(yn,Nt({},n,{onClick:e=>{o({theme:e}),u({...n,theme:e})}}))),(0,r.createElement)(wt.PanelBody,{title:(0,i.__)("Extra Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)(wt.BaseControl,{id:"code-block-pro-show-copy-button"},(0,r.createElement)(wt.CheckboxControl,{label:(0,i.__)("Copy Button","code-block-pro"),help:(0,i.__)("If checked, users will be able to copy your code snippet to their clipboard.","code-block-pro"),checked:n.copyButton,onChange:e=>{p({copyButton:e}),o({copyButton:e})}})),(0,r.createElement)(wt.BaseControl,{id:"code-block-pro-disable-padding"},(0,r.createElement)(wt.CheckboxControl,{label:(0,i.__)("Disable Padding","code-block-pro"),help:(0,i.__)("This is useful if you pick a theme that matches your background color, and want the code to line up to the edge of your content.","code-block-pro"),checked:n.disablePadding,onChange:e=>{o({disablePadding:e}),u({...n,disablePadding:e})}}))))},bn=e=>{let{attributes:t,setAttributes:n}=e;const[o,s]=un({attributes:t,setAttributes:n});return(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(wt.ToolbarGroup,{className:"code-block-pro-editor"},(0,r.createElement)(wt.Dropdown,{renderContent:()=>(0,r.createElement)(kn,{language:o,setLanguage:s}),renderToggle:e=>{var t;let{isOpen:n,onToggle:a}=e;return(0,r.createElement)(wt.Button,{onClick:a,"aria-expanded":n,"aria-haspopup":"true"},null!==(t=Et[o])&&void 0!==t?t:o)}})))},kn=e=>{let{language:t,setLanguage:n}=e;return(0,r.createElement)(wt.NavigableMenu,{orientation:"vertical",role:"menu",style:{minWidth:"200px"}},(0,r.createElement)(wt.MenuGroup,{label:(0,i.__)("Select language","code-block-pro")},Object.entries(Et).map((e=>{let[a,o]=e;return(0,r.createElement)(wt.MenuItem,{key:a,role:"menuitem",style:{width:"100%"},isSelected:t===a,variant:t===a?"primary":void 0,onClick:()=>{n(a)}},o)}))))},Sn=e=>{if(e)return[e,"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","monospace"].join(",")},wn=(e,t)=>{if(e)return t&&parseFloat(e)?`clamp(${16*parseFloat(e)}px, ${e}, ${24*parseFloat(e)}px)`:e},Cn=e=>{var t;let{attributes:n}=e;return(0,r.createElement)("span",{role:"button",tabIndex:0,"data-code":n.code,style:{color:null!==(t=null==n?void 0:n.textColor)&&void 0!==t?t:"inherit",display:"none"},"aria-label":(0,i.__)("Copy","code-block-pro"),className:"code-block-pro-copy-button"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},(0,r.createElement)("path",{className:"with-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}),(0,r.createElement)("path",{className:"without-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})))},Ln=e=>{var t;let{attributes:n}=e;return(0,r.createElement)("div",Nt({},a.useBlockProps.save({className:n.disablePadding?"padding-disabled":void 0}),{"data-code-block-pro-font-family":n.fontFamily,style:{fontSize:wn(n.fontSize,n.clampFonts),fontFamily:Sn(n.fontFamily),lineHeight:wn(n.lineHeight,n.clampFonts)}}),(null===(t=n.code)||void 0===t?void 0:t.length)>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ln,n),n.copyButton&&(0,r.createElement)(Cn,{attributes:n}),(0,r.createElement)(a.RichText.Content,{value:n.codeHTML})):null)};(0,o.registerBlockType)(u.name,{...u,icon:Lt,attributes:{code:{type:"string"},codeHTML:{type:"string"},language:{type:"string"},theme:{type:"string"},align:{type:"string"},bgColor:{type:"string",default:"#282a37"},textColor:{type:"string",default:"#f8f8f2"},fontSize:{type:"string"},fontFamily:{type:"string"},lineHeight:{type:"string"},clampFonts:{type:"boolean",default:!1},lineNumbers:{type:"boolean"},headerType:{type:"string"},headerString:{type:"string"},disablePadding:{type:"boolean",default:!1},startingLineNumber:{type:"number",default:1},frame:{type:"boolean"},renderType:{type:"string",default:"code"},label:{type:"string",default:""},copyButton:{type:"boolean"}},supports:{html:!1,align:["wide","full"]},title:(0,i.__)("Code Pro","code-block-pro"),edit:e=>{let{attributes:t,setAttributes:n}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(vn,{attributes:t,setAttributes:n}),(0,r.createElement)(bn,{attributes:t,setAttributes:n}),(0,r.createElement)("div",(0,a.useBlockProps)({className:l()("code-block-pro-editor",{"padding-disabled":t.disablePadding}),style:{fontSize:wn(t.fontSize,t.clampFonts),fontFamily:Sn(t.fontFamily),lineHeight:wn(t.lineHeight,t.clampFonts)}}),(0,r.createElement)(ln,t),(0,r.createElement)(St,{attributes:t,setAttributes:n})))},save:e=>{let{attributes:t}=e;return(0,r.createElement)(Ln,{attributes:t})},transforms:{from:[{type:"block",blocks:["core/code","syntaxhighlighter/code"],transform:e=>{const{content:t,language:n}=e;return(0,o.createBlock)(u.name,{code:t?(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(t):void 0,language:Pt(n)})}}]}}),(0,s.addFilter)("editor.BlockEdit",u.name,(e=>t=>((e,t)=>{const{attributes:n,clientId:s}=t,{previousLanguage:c}=kt(),l=(0,Ct.useSelect)((e=>{const t=e(a.store).getBlock(s);return["core/code","syntaxhighlighter/code"].includes(t.name)}),[s]),{replaceBlock:p}=(0,Ct.useDispatch)(a.store),h=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value};return l?(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(e,t),(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(wt.ToolbarGroup,null,(0,r.createElement)(wt.ToolbarButton,{icon:Lt,label:(0,i.__)("Convert to Code Pro","code-block-pro"),onClick:()=>{var e;const t=(0,o.createBlock)(u.name,{code:null!=n&&n.content?h(n.content):void 0,language:null!==(e=Pt(null==n?void 0:n.language))&&void 0!==e?e:c});p(s,[t])}})))):(0,r.createElement)(e,t)})(e,t)))},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=a.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},460:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(196)),p=90,h=219,d=222,f=192,g=100,m="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),y="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),v="npm__react-simple-code-editor__textarea",b="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(v,":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .").concat(v," {\n color: transparent !important;\n }\n\n .").concat(v,"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,r=e.selectionStart,a=e.selectionEnd;t._recordChange({value:n,selectionStart:r,selectionEnd:a})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var r,a,s;void 0===n&&(n=!1);var i=t._history,c=i.stack,l=i.offset;if(c.length&&l>-1){t._history.stack=c.slice(0,l+1);var u=t._history.stack.length;if(u>g){var p=u-g;t._history.stack=c.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var f=/[^a-z0-9]([a-z0-9]+)$/i,m=null===(r=t._getLines(d.value,d.selectionStart).pop())||void 0===r?void 0:r.match(f),y=null===(a=t._getLines(e.value,e.selectionStart).pop())||void 0===a?void 0:a.match(f);if((null==m?void 0:m[1])&&(null===(s=null==y?void 0:y[1])||void 0===s?void 0:s.startsWith(m[1])))return void(t._history.stack[t._history.offset]=o(o({},e),{timestamp:h}))}}t._history.stack.push(o(o({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=o(o({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,r=e.offset,a=n[r-1];a&&(t._updateInput(a),t._history.offset=Math.max(r-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,a=n[r+1];a&&(t._updateInput(a),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,a=n.insertSpaces,o=n.ignoreTabKey,s=n.onKeyDown;if(!s||(s(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,c=i.value,l=i.selectionStart,u=i.selectionEnd,g=(a?" ":"\t").repeat(r);if(9===e.keyCode&&!o&&t.state.capture)if(e.preventDefault(),e.shiftKey){var v=(S=t._getLines(c,l)).length-1,b=t._getLines(c,u).length-1,_=c.split("\n").map((function(e,t){return t>=v&&t<=b&&e.startsWith(g)?e.substring(g.length):e})).join("\n");if(c!==_){var k=S[v];t._applyEdits({value:_,selectionStart:(null==k?void 0:k.startsWith(g))?l-g.length:l,selectionEnd:u-(c.length-_.length)})}}else if(l!==u){var S,w=(S=t._getLines(c,l)).length-1,C=t._getLines(c,u).length-1;k=S[w],t._applyEdits({value:c.split("\n").map((function(e,t){return t>=w&&t<=C?g+e:e})).join("\n"),selectionStart:k&&/\S/.test(k)?l+g.length:l,selectionEnd:u+g.length*(C-w+1)})}else{var L=l+g.length;t._applyEdits({value:c.substring(0,l)+g+c.substring(u),selectionStart:L,selectionEnd:L})}else if(8===e.keyCode){var x=l!==u;c.substring(0,l).endsWith(g)&&!x&&(e.preventDefault(),L=l-g.length,t._applyEdits({value:c.substring(0,l-g.length)+c.substring(u),selectionStart:L,selectionEnd:L}))}else if(13===e.keyCode){if(l===u){var j=t._getLines(c,l).pop(),P=null==j?void 0:j.match(/^\s+/);if(null==P?void 0:P[0]){e.preventDefault();var E="\n"+P[0];L=l+E.length,t._applyEdits({value:c.substring(0,l)+E+c.substring(u),selectionStart:L,selectionEnd:L})}}}else if(57===e.keyCode||e.keyCode===h||e.keyCode===d||e.keyCode===f){var N=void 0;57===e.keyCode&&e.shiftKey?N=["(",")"]:e.keyCode===h?N=e.shiftKey?["{","}"]:["[","]"]:e.keyCode===d?N=e.shiftKey?['"','"']:["'","'"]:e.keyCode!==f||e.shiftKey||(N=["`","`"]),l!==u&&N&&(e.preventDefault(),t._applyEdits({value:c.substring(0,l)+N[0]+c.substring(l,u)+N[1]+c.substring(u),selectionStart:l,selectionEnd:u+2}))}else!(y?e.metaKey&&e.keyCode===p:e.ctrlKey&&e.keyCode===p)||e.shiftKey||e.altKey?(y?e.metaKey&&e.keyCode===p&&e.shiftKey:m?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&e.keyCode===p&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||y&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value,a=n.selectionStart,o=n.selectionEnd;t._recordChange({value:r,selectionStart:a,selectionEnd:o},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return a(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,a=t.padding,s=t.highlight,i=t.textareaId,c=t.textareaClassName,p=t.autoFocus,h=t.disabled,d=t.form,f=t.maxLength,g=t.minLength,m=t.name,y=t.placeholder,_=t.readOnly,S=t.required,w=t.onClick,C=t.onFocus,L=t.onBlur,x=t.onKeyUp,j=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),P=l(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),E={paddingTop:"object"==typeof a?a.top:a,paddingRight:"object"==typeof a?a.right:a,paddingBottom:"object"==typeof a?a.bottom:a,paddingLeft:"object"==typeof a?a.left:a},N=s(n);return u.createElement("div",o({},P,{style:o(o({},k.container),r)}),u.createElement("pre",o({className:j,"aria-hidden":"true",style:o(o(o({},k.editor),k.highlight),E)},"string"==typeof N?{dangerouslySetInnerHTML:{__html:N+"<br />"}}:{children:N})),u.createElement("textarea",{ref:function(t){return e._input=t},style:o(o(o({},k.editor),k.textarea),E),className:v+(c?" ".concat(c):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:w,onKeyUp:x,onFocus:C,onBlur:L,disabled:h,form:d,maxLength:f,minLength:g,name:m,placeholder:y,readOnly:_,required:S,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:b}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=_;var k={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},250:(e,t,n)=>{"use strict";var r=n(196),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,i=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return i((function(){a.value=n,a.getSnapshot=t,l(a)&&u({inst:a})}),[e,n,t]),s((function(){return l(a)&&u({inst:a}),e((function(){l(a)&&u({inst:a})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(196),a=n(688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=a.useSyncExternalStore,i=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var p=i(null);if(null===p.current){var h={hasValue:!1,value:null};p.current=h}else h=p.current;p=l((function(){function e(e){if(!c){if(c=!0,s=e,e=r(e),void 0!==a&&h.hasValue){var t=h.value;if(a(t,e))return i=t}return i=e}if(t=i,o(s,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(s=e,i=n)}var s,i,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,a]);var d=s(e,p[0],p[1]);return c((function(){h.hasValue=!0,h.value=d}),[d]),u(d),d}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},930:function(e){var t,n;e.exports=(t={770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const a=r(n(418));let o=null,s=!1;class i{constructor(e){const t=e.length,n=i._utf8ByteLength(e),r=n!==t,a=r?new Uint32Array(t+1):null;r&&(a[t]=n);const o=r?new Uint32Array(n+1):null;r&&(o[n]=t);const s=new Uint8Array(n);let c=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let l=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}r&&(a[n]=c,u&&(a[n+1]=c),l<=127?o[c+0]=n:l<=2047?(o[c+0]=n,o[c+1]=n):l<=65535?(o[c+0]=n,o[c+1]=n,o[c+2]=n):(o[c+0]=n,o[c+1]=n,o[c+2]=n,o[c+3]=n)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(1984&l)>>>6,s[c++]=128|(63&l)>>>0):l<=65535?(s[c++]=224|(61440&l)>>>12,s[c++]=128|(4032&l)>>>6,s[c++]=128|(63&l)>>>0):(s[c++]=240|(1835008&l)>>>18,s[c++]=128|(258048&l)>>>12,s[c++]=128|(4032&l)>>>6,s[c++]=128|(63&l)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const a=e.charCodeAt(n);let o=a,s=!1;if(a>=55296&&a<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=65536+(a-55296<<10)|t-56320,s=!0)}t+=o<=127?1:o<=2047?2:o<=65535?3:4,s&&n++}return t}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!o)throw new Error("Must invoke loadWASM first.");this._onigBinding=o,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=o._omalloc(1e4)),c._sharedPtrInUse=!0,o.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(o)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!o)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let r=0,a=e.length;r<a;r++){const a=new i(e[r]);t[r]=a.createString(o),n[r]=a.utf8Length}const r=o._omalloc(4*e.length);o.HEAPU32.set(t,r/4);const a=o._omalloc(4*e.length);o.HEAPU32.set(n,a/4);const s=o._createOnigScanner(r,a,e.length);for(let n=0,r=e.length;n<r;n++)o._ofree(t[n]);o._ofree(a),o._ofree(r),0===s&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(o),this._onigBinding=o,this._ptr=s}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=s,a=0;if("number"==typeof n?(8&n&&(r=!0),a=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new c(e);const n=this._findNextMatchSync(e,t,r,a);return e.dispose(),n}return this._findNextMatchSync(e,t,r,a)}_findNextMatchSync(e,t,n,r){const a=this._onigBinding;let o;if(o=n?a._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):a._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===o)return null;const s=a.HEAPU32;let i=o/4;const c=s[i++],l=s[i++];let u=[];for(let t=0;t<l;t++){const n=e.convertUtf8OffsetToUtf16(s[i++]),r=e.convertUtf8OffsetToUtf16(s[i++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,r,s;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return p=new Promise(((e,t)=>{r=e,s=t})),function(e,t,n,r){a.default({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{o=e,n()}))}(t,n,r,s),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){s=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,r=void 0!==(e=e||{})?e:{};r.ready=new Promise((function(e,r){t=e,n=r}));var a,o={};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);var s,i=[],c=!1,l=!1,u="";function p(e){return r.locateFile?r.locateFile(e,u):u+e}s=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(v("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?i=scriptArgs:void 0!==arguments&&(i=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var h=r.print||console.log.bind(console),d=r.printErr||console.warn.bind(console);for(a in o)o.hasOwnProperty(a)&&(r[a]=o[a]);o=null,r.arguments&&(i=r.arguments),r.thisProgram&&r.thisProgram,r.quit&&r.quit;var f,g,m=function(e){};r.wasmBinary&&(f=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&z("no native wasm support detected");var y=!1;function v(e,t){e||z("Assertion failed: "+t)}var b,_,k,S="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function w(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.subarray&&S)return S.decode(e.subarray(t,a));for(var o="";t<a;){var s=e[t++];if(128&s){var i=63&e[t++];if(192!=(224&s)){var c=63&e[t++];if((s=224==(240&s)?(15&s)<<12|i<<6|c:(7&s)<<18|i<<12|c<<6|63&e[t++])<65536)o+=String.fromCharCode(s);else{var l=s-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&s)<<6|i)}else o+=String.fromCharCode(s)}return o}function C(e,t){return e?w(_,e,t):""}function L(e,t){return e%t>0&&(e+=t-e%t),e}function x(e){b=e,r.HEAP8=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAP32=k=new Int32Array(e),r.HEAPU8=_=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le"),r.INITIAL_MEMORY;var j,P=[],E=[],N=[],T=[];function O(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)M(r.preRun.shift());Y(P)}function A(){Y(E)}function R(){Y(N)}function I(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)D(r.postRun.shift());Y(T)}function M(e){P.unshift(e)}function D(e){T.unshift(e)}E.push({func:function(){ce()}});var F=0,B=null,G=null;function H(e){F++,r.monitorRunDependencies&&r.monitorRunDependencies(F)}function W(e){if(F--,r.monitorRunDependencies&&r.monitorRunDependencies(F),0==F&&(null!==B&&(clearInterval(B),B=null),G)){var t=G;G=null,t()}}function z(e){r.onAbort&&r.onAbort(e),d(e+=""),y=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}function U(e,t){return String.prototype.startsWith?e.startsWith(t):0===e.indexOf(t)}r.preloadedImages={},r.preloadedAudios={};var $="data:application/octet-stream;base64,";function q(e){return U(e,$)}var V,K="onig.wasm";function J(e){try{if(e==K&&f)return new Uint8Array(f);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){z(e)}}function Q(){return f||!c&&!l||"function"!=typeof fetch?Promise.resolve().then((function(){return J(K)})):fetch(K,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+K+"'";return e.arrayBuffer()})).catch((function(){return J(K)}))}function X(){var e={env:ie,wasi_snapshot_preview1:ie};function t(e,t){var n=e.exports;r.asm=n,x((g=r.asm.memory).buffer),j=r.asm.__indirect_function_table,W()}function a(e){t(e.instance)}function o(t){return Q().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){d("failed to asynchronously prepare wasm: "+e),z(e)}))}if(H(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return d("Module.instantiateWasm callback failed with error: "+e),!1}return(f||"function"!=typeof WebAssembly.instantiateStreaming||q(K)||"function"!=typeof fetch?o(a):fetch(K,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(a,(function(e){return d("wasm streaming compile failed: "+e),d("falling back to ArrayBuffer instantiation"),o(a)}))}))).catch(n),{}}function Y(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?j.get(n)():j.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function Z(e,t,n){_.copyWithin(e,t,t+n)}function ee(){return _.length}function te(e){try{return g.grow(e-b.byteLength+65535>>>16),x(g.buffer),1}catch(e){}}function ne(e){var t=ee(),n=2147483648;if(e>n)return!1;for(var r=1;r<=4;r*=2){var a=t*(1+.2/r);if(a=Math.min(a,e+100663296),te(Math.min(n,L(Math.max(e,a),65536))))return!0}return!1}q(K)||(K=p(K)),V="undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var re={mappings:{},buffers:[null,[],[]],printChar:function(e,t){var n=re.buffers[e];0===t||10===t?((1===e?h:d)(w(n,0)),n.length=0):n.push(t)},varargs:void 0,get:function(){return re.varargs+=4,k[re.varargs-4>>2]},getStr:function(e){return C(e)},get64:function(e,t){return e}};function ae(e,t,n,r){for(var a=0,o=0;o<n;o++){for(var s=k[t+8*o>>2],i=k[t+(8*o+4)>>2],c=0;c<i;c++)re.printChar(e,_[s+c]);a+=i}return k[r>>2]=a,0}function oe(e){m(0|e)}var se,ie={emscripten_get_now:V,emscripten_memcpy_big:Z,emscripten_resize_heap:ne,fd_write:ae,setTempRet0:oe},ce=(X(),r.___wasm_call_ctors=function(){return(ce=r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)});function le(e){function n(){se||(se=!0,r.calledRun=!0,y||(A(),R(),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),I()))}e=e||i,F>0||(O(),F>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),n()}),1)):n()))}if(r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=C,G=function e(){se||le(),se||(G=e)},r.run=le,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return le(),e.ready});e.exports=t}},n={},function e(r){var a=n[r];if(void 0!==a)return a.exports;var o=n[r]={exports:{}};return t[r].call(o.exports,o,o.exports,e),o.exports}(770))},190:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},527:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t.StackElement=t.ScopeListElement=t.StackElementMetadata=t.Grammar=t.ScopeMetadata=t.ScopeDependencyProcessor=t.ScopeDependencyCollector=t.PartialScopeDependency=t.FullScopeDependency=t.createGrammar=void 0;var r=n(878),a=n(792),o=n(736),s=n(350),i="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()};t.createGrammar=function(e,t,n,r,a,o,s){return new k(e,t,n,r,a,o,s)};var c=function(e){this.scopeName=e};t.FullScopeDependency=c;var l=function(){function e(e,t){this.scopeName=e,this.include=t}return e.prototype.toKey=function(){return this.scopeName+"#"+this.include},e}();t.PartialScopeDependency=l;var u=function(){function e(){this.full=[],this.partial=[],this.visitedRule=new Set,this._seenFull=new Set,this._seenPartial=new Set}return e.prototype.add=function(e){e instanceof c?this._seenFull.has(e.scopeName)||(this._seenFull.add(e.scopeName),this.full.push(e)):this._seenPartial.has(e.toKey())||(this._seenPartial.add(e.toKey()),this.partial.push(e))},e}();function p(e,t,n,a,o){for(var s=0,i=a;s<i.length;s++){var u=i[s];if(!e.visitedRule.has(u)){e.visitedRule.add(u);var h=u.repository?r.mergeObjects({},o,u.repository):o;Array.isArray(u.patterns)&&p(e,t,n,u.patterns,h);var d=u.include;if(d)if("$base"===d||d===t.scopeName)g(e,t,t);else if("$self"===d||d===n.scopeName)g(e,t,n);else if("#"===d.charAt(0))f(e,t,n,d.substring(1),h);else{var m=d.indexOf("#");if(m>=0){var y=d.substring(0,m),v=d.substring(m+1);y===t.scopeName?f(e,t,t,v,h):y===n.scopeName?f(e,t,n,v,h):e.add(new l(y,d.substring(m+1)))}else e.add(new c(d))}}}}t.ScopeDependencyCollector=u;var h=function(){function e(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new c(this.initialScopeName)]}return e.prototype.processQueue=function(){var e=this.Q;this.Q=[];for(var t=new u,n=0,r=e;n<r.length;n++){var a=r[n];d(this.repo,this.initialScopeName,t,a)}for(var o=0,s=t.full;o<s.length;o++)a=s[o],this.seenFullScopeRequests.has(a.scopeName)||(this.seenFullScopeRequests.add(a.scopeName),this.Q.push(a));for(var i=0,c=t.partial;i<c.length;i++)a=c[i],this.seenFullScopeRequests.has(a.scopeName)||this.seenPartialScopeRequests.has(a.toKey())||(this.seenPartialScopeRequests.add(a.toKey()),this.Q.push(a))},e}();function d(e,t,n,r){var a=e.lookup(r.scopeName);if(a){r instanceof c?g(n,e.lookup(t),a):f(n,e.lookup(t),a,r.include);var o=e.injections(r.scopeName);if(o)for(var s=0,i=o;s<i.length;s++){var l=i[s];n.add(new c(l))}}else if(r.scopeName===t)throw new Error("No grammar provided for <"+t+">")}function f(e,t,n,r,a){void 0===a&&(a=n.repository),a&&a[r]&&p(e,t,n,[a[r]],a)}function g(e,t,n){if(n.patterns&&Array.isArray(n.patterns)&&p(e,t,n,n.patterns,n.repository),n.injections){var r=[];for(var a in n.injections)r.push(n.injections[a]);p(e,t,n,r,n.repository)}}function m(e,t){if(!e)return!1;if(e===t)return!0;var n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}function y(e,t){if(t.length<e.length)return!1;var n=0;return e.every((function(e){for(var r=n;r<t.length;r++)if(m(t[r],e))return n=r+1,!0;return!1}))}function v(e,t,n,r,s){for(var i=o.createMatchers(t,y),c=a.RuleFactory.getCompiledRuleId(n,r,s.repository),l=0,u=i;l<u.length;l++){var p=u[l];e.push({debugSelector:t,matcher:p.matcher,ruleId:c,grammar:s,priority:p.priority})}}t.ScopeDependencyProcessor=h;var b=function(e,t,n,r){this.scopeName=e,this.languageId=t,this.tokenType=n,this.themeData=r};t.ScopeMetadata=b;var _=function(){function e(t,n,r){if(this._initialLanguage=t,this._themeProvider=n,this._cache=new Map,this._defaultMetaData=new b("",this._initialLanguage,0,[this._themeProvider.getDefaults()]),this._embeddedLanguages=Object.create(null),r)for(var a=Object.keys(r),o=0,s=a.length;o<s;o++){var i=a[o],c=r[i];"number"==typeof c&&0!==c?this._embeddedLanguages[i]=c:console.warn("Invalid embedded language found at scope "+i+": <<"+c+">>")}var l=Object.keys(this._embeddedLanguages).map((function(t){return e._escapeRegExpCharacters(t)}));0===l.length?this._embeddedLanguagesRegex=null:(l.sort(),l.reverse(),this._embeddedLanguagesRegex=new RegExp("^(("+l.join(")|(")+"))($|\\.)",""))}return e.prototype.onDidChangeTheme=function(){this._cache=new Map,this._defaultMetaData=new b("",this._initialLanguage,0,[this._themeProvider.getDefaults()])},e.prototype.getDefaultMetadata=function(){return this._defaultMetaData},e._escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},e.prototype.getMetadataForScope=function(t){if(null===t)return e._NULL_SCOPE_METADATA;var n=this._cache.get(t);return n||(n=this._doGetMetadataForScope(t),this._cache.set(t,n),n)},e.prototype._doGetMetadataForScope=function(e){var t=this._scopeToLanguage(e),n=this._toStandardTokenType(e),r=this._themeProvider.themeMatch(e);return new b(e,t,n,r)},e.prototype._scopeToLanguage=function(e){if(!e)return 0;if(!this._embeddedLanguagesRegex)return 0;var t=e.match(this._embeddedLanguagesRegex);return t&&(this._embeddedLanguages[t[1]]||0)||0},e.prototype._toStandardTokenType=function(t){var n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 0;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 8}throw new Error("Unexpected match for standard token type!")},e._NULL_SCOPE_METADATA=new b("",0,0,null),e.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/,e}(),k=function(){function e(e,t,n,r,a,s,i){if(this._scopeName=e,this._scopeMetadataProvider=new _(n,s,r),this._onigLib=i,this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=w(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(var c=0,l=Object.keys(a);c<l.length;c++)for(var u=l[c],p=0,h=o.createMatchers(u,y);p<h.length;p++){var d=h[p];this._tokenTypeMatchers.push({matcher:d.matcher,type:a[u]})}}return e.prototype.dispose=function(){for(var e=0,t=this._ruleId2desc;e<t.length;e++){var n=t[e];n&&n.dispose()}},e.prototype.createOnigScanner=function(e){return this._onigLib.createOnigScanner(e)},e.prototype.createOnigString=function(e){return this._onigLib.createOnigString(e)},e.prototype.onDidChangeTheme=function(){this._scopeMetadataProvider.onDidChangeTheme()},e.prototype.getMetadataForScope=function(e){return this._scopeMetadataProvider.getMetadataForScope(e)},e.prototype._collectInjections=function(){var e=this,t={lookup:function(t){return t===e._scopeName?e._grammar:e.getExternalGrammar(t)},injections:function(t){return e._grammarRepository.injections(t)}},n=new h(t,this._scopeName),r=[];return n.seenFullScopeRequests.forEach((function(n){var a=t.lookup(n);if(a){var o=a.injections;if(o)for(var s in o)v(r,s,o[s],e,a);if(e._grammarRepository){var i=e._grammarRepository.injections(n);i&&i.forEach((function(t){var n=e.getExternalGrammar(t);if(n){var a=n.injectionSelector;a&&v(r,a,n,e,n)}}))}}})),r.sort((function(e,t){return e.priority-t.priority})),r},e.prototype.getInjections=function(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log("Grammar "+this._scopeName+" contains the following injections:");for(var e=0,t=this._injections;e<t.length;e++){var n=t[e];console.log(" - "+n.debugSelector)}}return this._injections},e.prototype.registerRule=function(e){var t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n},e.prototype.getRule=function(e){return this._ruleId2desc[e]},e.prototype.getExternalGrammar=function(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){var n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=w(n,t&&t.$base),this._includedGrammars[e]}},e.prototype.tokenizeLine=function(e,t,n){void 0===n&&(n=0);var r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}},e.prototype.tokenizeLine2=function(e,t,n){void 0===n&&(n=0);var r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}},e.prototype._tokenize=function(e,t,n,r){var o;if(-1===this._rootId&&(this._rootId=a.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==A.NULL)o=!1,t.reset();else{o=!0;var s=this._scopeMetadataProvider.getDefaultMetadata(),i=s.themeData[0],c=T.set(0,s.languageId,s.tokenType,i.fontStyle,i.foreground,i.background),l=this.getRule(this._rootId).getName(null,null),u=this._scopeMetadataProvider.getMetadataForScope(l),p=O.mergeMetadata(c,null,u),h=new O(null,null===l?"unknown":l,p);t=new A(null,this._rootId,-1,-1,!1,null,h,h)}e+="\n";var d=this.createOnigString(e),f=d.content.length,g=new I(n,e,this._tokenTypeMatchers),m=N(this,d,o,0,t,g,!0,r);return S(d),{lineLength:f,lineTokens:g,ruleStack:m.stack,stoppedEarly:m.stoppedEarly}},e}();function S(e){"function"==typeof e.dispose&&e.dispose()}function w(e,t){return(e=r.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}function C(e,t,n,r,a,o,s){if(0!==o.length){for(var i=t.content,c=Math.min(o.length,s.length),l=[],u=s[0].end,p=0;p<c;p++){var h=o[p];if(null!==h){var d=s[p];if(0!==d.length){if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)a.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?a.produceFromScopes(l[l.length-1].scopes,d.start):a.produce(r,d.start),h.retokenizeCapturedWithRuleId){var f=h.getName(i,s),g=r.contentNameScopesList.push(e,f),m=h.getContentName(i,s),y=g.push(e,m),v=r.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,g,y),b=e.createOnigString(i.substring(0,d.end));N(e,b,n&&0===d.start,d.start,v,a,!1,0),S(b)}else{var _=h.getName(i,s);if(null!==_){var k=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).push(e,_);l.push(new R(k,d.end))}}}}}for(;l.length>0;)a.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}}function L(e){for(var t=[],n=0,r=e.rules.length;n<r;n++)t.push(" - "+e.rules[n]+": "+e.debugRegExps[n]);return t.join("\n")}function x(e,t){var n=0;return e||(n|=1),t||(n|=4),n}function j(e,t,n,r,a){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:x(r,a)}:{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function P(e,t,n,r,a){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:x(r,a)}:{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}t.Grammar=k;var E=function(e,t){this.stack=e,this.stoppedEarly=t};function N(e,t,n,r,o,c,l,u){var p=t.content.length,h=!1,d=-1;if(l){var f=function(e,t,n,r,o,i){for(var c=o.beginRuleCapturedEOL?0:-1,l=[],u=o;u;u=u.pop()){var p=u.getRule(e);p instanceof a.BeginWhileRule&&l.push({rule:p,stack:u})}for(var h=l.pop();h;h=l.pop()){var d=P(h.rule,e,h.stack.endRule,n,r===c),f=d.ruleScanner,g=d.findOptions,m=f.scanner.findNextMatchSync(t,r,g);if(s.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(L(f))),!m){s.DebugFlags.InDebugMode&&console.log(" popping "+h.rule.debugName+" - "+h.rule.debugWhileRegExp),o=h.stack.pop();break}if(-2!==f.rules[m.index]){o=h.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(h.stack,m.captureIndices[0].start),C(e,t,n,h.stack,i,h.rule.whileCaptures,m.captureIndices),i.produce(h.stack,m.captureIndices[0].end),c=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:c,isFirstLine:n}}(e,t,n,r,o,c);o=f.stack,r=f.linePos,n=f.isFirstLine,d=f.anchorPosition}for(var g=Date.now();!h;){if(0!==u&&Date.now()-g>u)return new E(o,!0);m()}return new E(o,!1);function m(){s.DebugFlags.InDebugMode&&(console.log(""),console.log("@@scanNext "+r+": |"+t.content.substr(r).replace(/\n$/,"\\n")+"|"));var l=function(e,t,n,r,a,o){var c=function(e,t,n,r,a,o){var c=a.getRule(e),l=j(c,e,a.endRule,n,r===o),u=l.ruleScanner,p=l.findOptions,h=0;s.DebugFlags.InDebugMode&&(h=i());var d=u.scanner.findNextMatchSync(t,r,p);if(s.DebugFlags.InDebugMode){var f=i()-h;f>5&&console.warn("Rule "+c.debugName+" ("+c.id+") matching took "+f+" against '"+t+"'"),console.log(" scanning for (linePos: "+r+", anchorPosition: "+o+")"),console.log(L(u)),d&&console.log("matched rule id: "+u.rules[d.index]+" from "+d.captureIndices[0].start+" to "+d.captureIndices[0].end)}return d?{captureIndices:d.captureIndices,matchedRuleId:u.rules[d.index]}:null}(e,t,n,r,a,o),l=e.getInjections();if(0===l.length)return c;var u=function(e,t,n,r,a,o,i){for(var c,l=Number.MAX_VALUE,u=null,p=0,h=o.contentNameScopesList.generateScopes(),d=0,f=e.length;d<f;d++){var g=e[d];if(g.matcher(h)){var m=j(t.getRule(g.ruleId),t,null,r,a===i),y=m.ruleScanner,v=m.findOptions,b=y.scanner.findNextMatchSync(n,a,v);if(b){s.DebugFlags.InDebugMode&&(console.log(" matched injection: "+g.debugSelector),console.log(L(y)));var _=b.captureIndices[0].start;if(!(_>=l)&&(l=_,u=b.captureIndices,c=y.rules[b.index],p=g.priority,l===a))break}}}return u?{priorityMatch:-1===p,captureIndices:u,matchedRuleId:c}:null}(l,e,t,n,r,a,o);if(!u)return c;if(!c)return u;var p=c.captureIndices[0].start,h=u.captureIndices[0].start;return h<p||u.priorityMatch&&h===p?u:c}(e,t,n,r,o,d);if(!l)return s.DebugFlags.InDebugMode&&console.log(" no more matches."),c.produce(o,p),void(h=!0);var u=l.captureIndices,f=l.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>r;if(-1===f){var m=o.getRule(e);s.DebugFlags.InDebugMode&&console.log(" popping "+m.debugName+" - "+m.debugEndRegExp),c.produce(o,u[0].start),o=o.setContentNameScopesList(o.nameScopesList),C(e,t,n,o,c,m.endCaptures,u),c.produce(o,u[0].end);var y=o;if(o=o.pop(),d=y.getAnchorPos(),!g&&y.getEnterPos()===r)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),o=y,c.produce(o,p),void(h=!0)}else{var v=e.getRule(f);c.produce(o,u[0].start);var b=o,_=v.getName(t.content,u),k=o.contentNameScopesList.push(e,_);if(o=o.push(f,r,d,u[0].end===p,null,k,k),v instanceof a.BeginEndRule){var S=v;s.DebugFlags.InDebugMode&&console.log(" pushing "+S.debugName+" - "+S.debugBeginRegExp),C(e,t,n,o,c,S.beginCaptures,u),c.produce(o,u[0].end),d=u[0].end;var w=S.getContentName(t.content,u),x=k.push(e,w);if(o=o.setContentNameScopesList(x),S.endHasBackReferences&&(o=o.setEndRule(S.getEndWithResolvedBackReferences(t.content,u))),!g&&b.hasSameRuleAs(o))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),o=o.pop(),c.produce(o,p),void(h=!0)}else if(v instanceof a.BeginWhileRule){if(S=v,s.DebugFlags.InDebugMode&&console.log(" pushing "+S.debugName),C(e,t,n,o,c,S.beginCaptures,u),c.produce(o,u[0].end),d=u[0].end,w=S.getContentName(t.content,u),x=k.push(e,w),o=o.setContentNameScopesList(x),S.whileHasBackReferences&&(o=o.setEndRule(S.getWhileWithResolvedBackReferences(t.content,u))),!g&&b.hasSameRuleAs(o))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),o=o.pop(),c.produce(o,p),void(h=!0)}else{var P=v;if(s.DebugFlags.InDebugMode&&console.log(" matched "+P.debugName+" - "+P.debugMatchRegExp),C(e,t,n,o,c,P.captures,u),c.produce(o,u[0].end),o=o.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),o=o.safePop(),c.produce(o,p),void(h=!0)}}u[0].end>r&&(r=u[0].end,n=!1)}}var T=function(){function e(){}return e.toBinaryStr=function(e){for(var t=e.toString(2);t.length<32;)t="0"+t;return t},e.printMetadata=function(t){var n=e.getLanguageId(t),r=e.getTokenType(t),a=e.getFontStyle(t),o=e.getForeground(t),s=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:s})},e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(768&e)>>>8},e.getFontStyle=function(e){return(15360&e)>>>10},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.set=function(t,n,r,a,o,s){var i=e.getLanguageId(t),c=e.getTokenType(t),l=e.getFontStyle(t),u=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(i=n),0!==r&&(c=8===r?0:r),-1!==a&&(l=a),0!==o&&(u=o),0!==s&&(p=s),(i<<0|c<<8|l<<10|u<<14|p<<23)>>>0},e}();t.StackElementMetadata=T;var O=function(){function e(e,t,n){this.parent=e,this.scope=t,this.metadata=n}return e._equals=function(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scope!==t.scope||e.metadata!==t.metadata)return!1;e=e.parent,t=t.parent}},e.prototype.equals=function(t){return e._equals(this,t)},e._matchesScope=function(e,t,n){return t===e||e.substring(0,n.length)===n},e._matches=function(e,t){if(null===t)return!0;for(var n=t.length,r=0,a=t[r],o=a+".";e;){if(this._matchesScope(e.scope,a,o)){if(++r===n)return!0;o=(a=t[r])+"."}e=e.parent}return!1},e.mergeMetadata=function(e,t,n){if(null===n)return e;var r=-1,a=0,o=0;if(null!==n.themeData)for(var s=0,i=n.themeData.length;s<i;s++){var c=n.themeData[s];if(this._matches(t,c.parentScopes)){r=c.fontStyle,a=c.foreground,o=c.background;break}}return T.set(e,n.languageId,n.tokenType,r,a,o)},e._push=function(t,n,r){for(var a=0,o=r.length;a<o;a++){var s=r[a],i=n.getMetadataForScope(s),c=e.mergeMetadata(t.metadata,t,i);t=new e(t,s,c)}return t},e.prototype.push=function(t,n){return null===n?this:n.indexOf(" ")>=0?e._push(this,t,n.split(/ /g)):e._push(this,t,[n])},e._generateScopes=function(e){for(var t=[],n=0;e;)t[n++]=e.scope,e=e.parent;return t.reverse(),t},e.prototype.generateScopes=function(){return e._generateScopes(this)},e}();t.ScopeListElement=O;var A=function(){function e(e,t,n,r,a,o,s,i){this._stackElementBrand=void 0,this.parent=e,this.depth=this.parent?this.parent.depth+1:1,this.ruleId=t,this._enterPos=n,this._anchorPos=r,this.beginRuleCapturedEOL=a,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=i}return e._structuralEquals=function(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}},e._equals=function(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)},e.prototype.clone=function(){return this},e.prototype.equals=function(t){return null!==t&&e._equals(this,t)},e._reset=function(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent},e.prototype.reset=function(){e._reset(this)},e.prototype.pop=function(){return this.parent},e.prototype.safePop=function(){return this.parent?this.parent:this},e.prototype.push=function(t,n,r,a,o,s,i){return new e(this,t,n,r,a,o,s,i)},e.prototype.getEnterPos=function(){return this._enterPos},e.prototype.getAnchorPos=function(){return this._anchorPos},e.prototype.getRule=function(e){return e.getRule(this.ruleId)},e.prototype._writeString=function(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]="("+this.ruleId+", TODO-"+this.nameScopesList+", TODO-"+this.contentNameScopesList+")",t},e.prototype.toString=function(){var e=[];return this._writeString(e,0),"["+e.join(",")+"]"},e.prototype.setContentNameScopesList=function(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)},e.prototype.setEndRule=function(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)},e.prototype.hasSameRuleAs=function(e){for(var t=this;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1},e.NULL=new e(null,0,0,0,!1,null,null,null),e}();t.StackElement=A;var R=function(e,t){this.scopes=e,this.endPos=t};t.LocalStackElement=R;var I=function(){function e(e,t,n){this._emitBinaryTokens=e,this._tokenTypeOverrides=n,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}return e.prototype.produce=function(e,t){this.produceFromScopes(e.contentNameScopesList,t)},e.prototype.produceFromScopes=function(e,t){if(!(this._lastTokenEndIndex>=t)){if(this._emitBinaryTokens){var n=e.metadata;if(this._tokenTypeOverrides.length>0)for(var r=e.generateScopes(),a=0,o=this._tokenTypeOverrides;a<o.length;a++){var i=o[a];i.matcher(r)&&(n=T.set(n,0,M(i.type),-1,0,0))}if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){var c=e.generateScopes();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(var l=0;l<c.length;l++)console.log(" * "+c[l])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}var u=e.generateScopes();if(s.DebugFlags.InDebugMode)for(console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|"),l=0;l<u.length;l++)console.log(" * "+u[l]);this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:u}),this._lastTokenEndIndex=t}},e.prototype.getResult=function(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens},e.prototype.getBinaryResult=function(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);for(var n=new Uint32Array(this._binaryTokens.length),r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n},e}();function M(e){switch(e){case 3:return 3;case 2:return 2;case 1:return 1;default:return 8}}},25:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;var r=n(69),a=n(350),o=n(974);t.parseRawGrammar=function(e,t){return void 0===t&&(t=null),null!==t&&/\.json$/.test(t)?(n=e,s=t,a.DebugFlags.InDebugMode?o.parse(n,s,!0):JSON.parse(n)):function(e,t){return a.DebugFlags.InDebugMode?r.parseWithLocation(e,t,"$vscodeTextmateLocation"):r.parse(e)}(e,t);var n,s}},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,t.parse=function(e,t,s){var i=new r(e),c=new a,l=0,u=null,p=[],h=[];function d(){p.push(l),h.push(u)}function f(){l=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;o(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},s&&(u.$vscodeTextmateLocation=c.toLocation(t)),d(),l=1;continue}if(2===c.type){u=[],d(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){f();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){f();continue}if(1===c.type){var m=c.value;if(o(i,c)&&6===c.type||g("expected colon"),o(i,c)||g("expected value"),l=2,1===c.type){u[m]=c.value;continue}if(8===c.type){u[m]=null;continue}if(9===c.type){u[m]=!0;continue}if(10===c.type){u[m]=!1;continue}if(11===c.type){u[m]=parseFloat(c.value);continue}if(2===c.type){var y=[];u[m]=y,d(),l=4,u=y;continue}if(3===c.type){var v={};s&&(v.$vscodeTextmateLocation=c.toLocation(t)),u[m]=v,d(),l=1,u=v;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){f();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){f();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){y=[],u.push(y),d(),l=4,u=y;continue}if(3===c.type){v={},s&&(v.$vscodeTextmateLocation=c.toLocation(t)),u.push(v),d(),l=1,u=v;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};var r=function(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0},a=function(){function e(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}return e.prototype.toLocation=function(e){return{filename:e,line:this.line,char:this.char}},e}();function o(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;for(var r,a=e.source,o=e.pos,s=e.len,i=e.line,c=e.char;;){if(o>=s)return!1;if(32!==(r=a.charCodeAt(o))&&9!==r&&13!==r){if(10!==r)break;o++,i++,c=0}else o++,c++}if(t.offset=o,t.line=i,t.char=c,34===r){for(t.type=1,o++,c++;;){if(o>=s)return!1;if(r=a.charCodeAt(o),o++,c++,92!==r){if(34===r)break}else o++,c++}t.value=a.substring(t.offset+1,o-1).replace(/\\u([0-9A-Fa-f]{4})/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/\\(.)/g,(function(t,r){switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,o++,c++;else if(123===r)t.type=3,o++,c++;else if(93===r)t.type=4,o++,c++;else if(125===r)t.type=5,o++,c++;else if(58===r)t.type=6,o++,c++;else if(44===r)t.type=7,o++,c++;else if(110===r){if(t.type=8,o++,c++,117!==(r=a.charCodeAt(o)))return!1;if(o++,c++,108!==(r=a.charCodeAt(o)))return!1;if(o++,c++,108!==(r=a.charCodeAt(o)))return!1;o++,c++}else if(116===r){if(t.type=9,o++,c++,114!==(r=a.charCodeAt(o)))return!1;if(o++,c++,117!==(r=a.charCodeAt(o)))return!1;if(o++,c++,101!==(r=a.charCodeAt(o)))return!1;o++,c++}else if(102===r){if(t.type=10,o++,c++,97!==(r=a.charCodeAt(o)))return!1;if(o++,c++,108!==(r=a.charCodeAt(o)))return!1;if(o++,c++,115!==(r=a.charCodeAt(o)))return!1;if(o++,c++,101!==(r=a.charCodeAt(o)))return!1;o++,c++}else for(t.type=11;;){if(o>=s)return!1;if(!(46===(r=a.charCodeAt(o))||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;o++,c++}return t.len=o-t.offset,null===t.value&&(t.value=a.substr(t.offset,t.len)),e.pos=o,e.line=i,e.char=c,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function i(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,i)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;var i=n(652),c=n(25),l=n(583),u=n(527);a(n(42),t);var p=function(){function e(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}return e.prototype.dispose=function(){this._syncRegistry.dispose()},e.prototype.setTheme=function(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))},e.prototype.getColorMap=function(){return this._syncRegistry.getColorMap()},e.prototype.loadGrammarWithEmbeddedLanguages=function(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})},e.prototype.loadGrammarWithConfiguration=function(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes)},e.prototype.loadGrammar=function(e){return this._loadGrammar(e,0,null,null)},e.prototype._doLoadSingleGrammar=function(e){return o(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return[4,this._options.loadGrammar(e)];case 1:return(t=r.sent())&&(n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0,this._syncRegistry.addGrammar(t,n)),[2]}}))}))},e.prototype._loadSingleGrammar=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),[2,this._ensureGrammarCache.get(e)]}))}))},e.prototype._loadGrammar=function(e,t,n,r){return o(this,void 0,void 0,(function(){var a,o=this;return s(this,(function(s){switch(s.label){case 0:a=new u.ScopeDependencyProcessor(this._syncRegistry,e),s.label=1;case 1:return a.Q.length>0?[4,Promise.all(a.Q.map((function(e){return o._loadSingleGrammar(e.scopeName)})))]:[3,3];case 2:return s.sent(),a.processQueue(),[3,1];case 3:return[2,this.grammarForScopeName(e,t,n,r)]}}))}))},e.prototype.addGrammar=function(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=0),void 0===r&&(r=null),o(this,void 0,void 0,(function(){return s(this,(function(a){switch(a.label){case 0:return this._syncRegistry.addGrammar(e,t),[4,this.grammarForScopeName(e.scopeName,n,r)];case 1:return[2,a.sent()]}}))}))},e.prototype.grammarForScopeName=function(e,t,n,r){return void 0===t&&(t=0),void 0===n&&(n=null),void 0===r&&(r=null),this._syncRegistry.grammarForScopeName(e,t,n,r)},e}();t.Registry=p,t.INITIAL=u.StackElement.NULL,t.parseRawGrammar=c.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){for(var r,a,o,s=[],i=(o=(a=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r=e),{next:function(){if(!o)return null;var e=o[0];return o=a.exec(r),e}}),c=i.next();null!==c;){var l=0;if(2===c.length&&":"===c.charAt(1)){switch(c.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log("Unknown priority "+c+" in scope selector")}c=i.next()}var u=h();if(s.push({matcher:u,priority:l}),","!==c)break;c=i.next()}return s;function p(){if("-"===c){c=i.next();var e=p();return function(t){return!!e&&!e(t)}}if("("===c){c=i.next();var r=function(){for(var e=[],t=h();t&&(e.push(t),"|"===c||","===c);){do{c=i.next()}while("|"===c||","===c);t=h()}return function(t){return e.some((function(e){return e(t)}))}}();return")"===c&&(c=i.next()),r}if(n(c)){var a=[];do{a.push(c),c=i.next()}while(n(c));return function(e){return t(a,e)}}return null}function h(){for(var e=[],t=p();t;)e.push(t),t=p();return function(t){return e.every((function(e){return e(t)}))}}}},69:(e,t)=>{function n(e,t,n){var r=e.length,a=0,o=1,s=0;function i(t){if(null===n)a+=t;else for(;t>0;)10===e.charCodeAt(a)?(a++,o++,s=0):(a++,s++),t--}function c(e){null===n?a=e:i(e-a)}function l(){for(;a<r;){var t=e.charCodeAt(a);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(a,t.length)===t&&(i(t.length),!0)}function p(t){var n=e.indexOf(t,a);c(-1!==n?n+t.length:r)}function h(t){var n=e.indexOf(t,a);if(-1!==n){var o=e.substring(a,n);return c(n+t.length),o}return o=e.substr(a),c(r),o}r>0&&65279===e.charCodeAt(0)&&(a=1);var d=0,f=null,g=[],m=[],y=null;function v(e,t){g.push(d),m.push(f),d=e,f=t}function b(){if(0===g.length)return _("illegal state stack");d=g.pop(),f=m.pop()}function _(t){throw new Error("Near offset "+a+": "+t+" ~~~"+e.substr(a,50)+"~~~")}var k,S,w,C,L,x=function(){if(null===y)return _("missing <key>");var e={};null!==n&&(e[n]={filename:t,line:o,char:s}),f[y]=e,y=null,v(1,e)},j=function(){if(null===y)return _("missing <key>");var e=[];f[y]=e,y=null,v(2,e)};function P(){if(1!==d)return _("unexpected </dict>");b()}function E(){return 1===d||2!==d?_("unexpected </array>"):void b()}function N(e){if(1===d){if(null===y)return _("missing <key>");f[y]=e,y=null}else 2===d?f.push(e):f=e}function T(e){if(isNaN(e))return _("cannot parse float");if(1===d){if(null===y)return _("missing <key>");f[y]=e,y=null}else 2===d?f.push(e):f=e}function O(e){if(isNaN(e))return _("cannot parse integer");if(1===d){if(null===y)return _("missing <key>");f[y]=e,y=null}else 2===d?f.push(e):f=e}function A(e){if(1===d){if(null===y)return _("missing <key>");f[y]=e,y=null}else 2===d?f.push(e):f=e}function R(e){if(1===d){if(null===y)return _("missing <key>");f[y]=e,y=null}else 2===d?f.push(e):f=e}function I(e){if(1===d){if(null===y)return _("missing <key>");f[y]=e,y=null}else 2===d?f.push(e):f=e}function M(e){if(e.isClosed)return"";var t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}for(;a<r&&(l(),!(a>=r));){var D=e.charCodeAt(a);if(i(1),60!==D)return _("expected <");if(a>=r)return _("unexpected end of input");var F=e.charCodeAt(a);if(63!==F)if(33!==F){if(47===F){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),P();continue}if(u("array")){p(">"),E();continue}return _("unexpected closed tag")}var B=(S=void 0,w=void 0,w=!1,47===(S=h(">")).charCodeAt(S.length-1)&&(w=!0,S=S.substring(0,S.length-1)),{name:S.trim(),isClosed:w});switch(B.name){case"dict":1===d?x():2===d?(L=void 0,L={},null!==n&&(L[n]={filename:t,line:o,char:s}),f.push(L),v(1,L)):(f={},null!==n&&(f[n]={filename:t,line:o,char:s}),v(1,f)),B.isClosed&&P();continue;case"array":1===d?j():2===d?(void 0,C=[],f.push(C),v(2,C)):v(2,f=[]),B.isClosed&&E();continue;case"key":k=M(B),1!==d?_("unexpected <key>"):null!==y?_("too many <key>"):y=k;continue;case"string":N(M(B));continue;case"real":T(parseFloat(M(B)));continue;case"integer":O(parseInt(M(B),10));continue;case"date":A(new Date(M(B)));continue;case"data":R(M(B));continue;case"true":M(B),I(!0);continue;case"false":M(B),I(!1);continue}if(!/^plist/.test(B.name))return _("unexpected opened tag "+B.name)}else{if(i(1),u("--")){p("--\x3e");continue}p(">")}else i(1),p("?>")}return f}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parse=function(e){return n(e,null,null)}},652:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function i(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,i)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;var o=n(527),s=function(){function e(e,t){this._theme=e,this._grammars={},this._rawGrammars={},this._injectionGrammars={},this._onigLibPromise=t}return e.prototype.dispose=function(){for(var e in this._grammars)this._grammars.hasOwnProperty(e)&&this._grammars[e].dispose()},e.prototype.setTheme=function(e){var t=this;this._theme=e,Object.keys(this._grammars).forEach((function(e){t._grammars[e].onDidChangeTheme()}))},e.prototype.getColorMap=function(){return this._theme.getColorMap()},e.prototype.addGrammar=function(e,t){this._rawGrammars[e.scopeName]=e,t&&(this._injectionGrammars[e.scopeName]=t)},e.prototype.lookup=function(e){return this._rawGrammars[e]},e.prototype.injections=function(e){return this._injectionGrammars[e]},e.prototype.getDefaults=function(){return this._theme.getDefaults()},e.prototype.themeMatch=function(e){return this._theme.match(e)},e.prototype.grammarForScopeName=function(e,t,n,s){return r(this,void 0,void 0,(function(){var r,i,c,l,u;return a(this,(function(a){switch(a.label){case 0:return this._grammars[e]?[3,2]:(r=this._rawGrammars[e])?(i=this._grammars,c=e,l=o.createGrammar,u=[e,r,t,n,s,this],[4,this._onigLibPromise]):[2,null];case 1:i[c]=l.apply(void 0,u.concat([a.sent()])),a.label=2;case 2:return[2,this._grammars[e]]}}))}))},e}();t.SyncRegistry=s},792:function(e,t,n){var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.RegExpSourceList=t.RegExpSource=t.CaptureRule=t.Rule=t.CompiledRule=void 0;var o=n(878),s=/\\(\d+)/,i=/\\(\d+)/g,c=function(){function e(e,t,n){this.debugRegExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}return e.prototype.dispose=function(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()},e}();t.CompiledRule=c;var l=function(){function e(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=o.RegexSource.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=o.RegexSource.hasCaptures(this._contentName)}return Object.defineProperty(e.prototype,"debugName",{get:function(){var e=this.$location?o.basename(this.$location.filename)+":"+this.$location.line:"unknown";return this.constructor.name+"#"+this.id+" @ "+e},enumerable:!1,configurable:!0}),e.prototype.getName=function(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?o.RegexSource.replaceCaptures(this._name,e,t):this._name},e.prototype.getContentName=function(e,t){return this._contentNameIsCapturing&&null!==this._contentName?o.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName},e}();t.Rule=l;var u=function(e){function t(t,n,r,a,o){var s=e.call(this,t,n,r,a)||this;return s.retokenizeCapturedWithRuleId=o,s}return a(t,e),t.prototype.dispose=function(){},t.prototype.collectPatternsRecursive=function(e,t,n){throw new Error("Not supported!")},t.prototype.compile=function(e,t){throw new Error("Not supported!")},t.prototype.compileAG=function(e,t,n,r){throw new Error("Not supported!")},t}(l);t.CaptureRule=u;var p=function(){function e(e,t,n){if(void 0===n&&(n=!0),n)if(e){for(var r=e.length,a=0,o=[],i=!1,c=0;c<r;c++)if("\\"===e.charAt(c)&&c+1<r){var l=e.charAt(c+1);"z"===l?(o.push(e.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):"A"!==l&&"G"!==l||(i=!0),c++}this.hasAnchor=i,0===a?this.source=e:(o.push(e.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=s.test(this.source)}return e.prototype.clone=function(){return new e(this.source,this.ruleId,!0)},e.prototype.setSource=function(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))},e.prototype.resolveBackReferences=function(e,t){var n=t.map((function(t){return e.substring(t.start,t.end)}));return i.lastIndex=0,this.source.replace(i,(function(e,t){return(n[parseInt(t,10)]||"").replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}))},e.prototype._buildAnchorCache=function(){var e,t,n,r,a=[],o=[],s=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),a[e]=n,o[e]=n,s[e]=n,i[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(a[e+1]="",o[e+1]="",s[e+1]="A",i[e+1]="A"):"G"===r?(a[e+1]="",o[e+1]="G",s[e+1]="",i[e+1]="G"):(a[e+1]=r,o[e+1]=r,s[e+1]=r,i[e+1]=r),e++);return{A0_G0:a.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:i.join("")}},e.prototype.resolveAnchors=function(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source},e}();t.RegExpSource=p;var h=function(){function e(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}return e.prototype.dispose=function(){this._disposeCaches()},e.prototype._disposeCaches=function(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)},e.prototype.push=function(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor},e.prototype.unshift=function(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor},e.prototype.length=function(){return this._items.length},e.prototype.setSource=function(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))},e.prototype.compile=function(e){if(!this._cached){var t=this._items.map((function(e){return e.source}));this._cached=new c(e,t,this._items.map((function(e){return e.ruleId})))}return this._cached},e.prototype.compileAG=function(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)},e.prototype._resolveAnchors=function(e,t,n){var r=this._items.map((function(e){return e.resolveAnchors(t,n)}));return new c(e,r,this._items.map((function(e){return e.ruleId})))},e}();t.RegExpSourceList=h;var d=function(e){function t(t,n,r,a,o){var s=e.call(this,t,n,r,null)||this;return s._match=new p(a,s.id),s.captures=o,s._cachedCompiledPatterns=null,s}return a(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},Object.defineProperty(t.prototype,"debugMatchRegExp",{get:function(){return""+this._match.source},enumerable:!1,configurable:!0}),t.prototype.collectPatternsRecursive=function(e,t,n){t.push(this._match)},t.prototype.compile=function(e,t){return this._getCachedCompiledPatterns(e).compile(e)},t.prototype.compileAG=function(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)},t.prototype._getCachedCompiledPatterns=function(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new h,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns},t}(l);t.MatchRule=d;var f=function(e){function t(t,n,r,a,o){var s=e.call(this,t,n,r,a)||this;return s.patterns=o.patterns,s.hasMissingPatterns=o.hasMissingPatterns,s._cachedCompiledPatterns=null,s}return a(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},t.prototype.collectPatternsRecursive=function(e,t,n){var r,a;for(r=0,a=this.patterns.length;r<a;r++)e.getRule(this.patterns[r]).collectPatternsRecursive(e,t,!1)},t.prototype.compile=function(e,t){return this._getCachedCompiledPatterns(e).compile(e)},t.prototype.compileAG=function(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)},t.prototype._getCachedCompiledPatterns=function(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new h,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns},t}(l);t.IncludeOnlyRule=f;var g=function(e){function t(t,n,r,a,o,s,i,c,l,u){var h=e.call(this,t,n,r,a)||this;return h._begin=new p(o,h.id),h.beginCaptures=s,h._end=new p(i||"",-1),h.endHasBackReferences=h._end.hasBackReferences,h.endCaptures=c,h.applyEndPatternLast=l||!1,h.patterns=u.patterns,h.hasMissingPatterns=u.hasMissingPatterns,h._cachedCompiledPatterns=null,h}return a(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},Object.defineProperty(t.prototype,"debugBeginRegExp",{get:function(){return""+this._begin.source},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugEndRegExp",{get:function(){return""+this._end.source},enumerable:!1,configurable:!0}),t.prototype.getEndWithResolvedBackReferences=function(e,t){return this._end.resolveBackReferences(e,t)},t.prototype.collectPatternsRecursive=function(e,t,n){if(n){var r,a=void 0;for(a=0,r=this.patterns.length;a<r;a++)e.getRule(this.patterns[a]).collectPatternsRecursive(e,t,!1)}else t.push(this._begin)},t.prototype.compile=function(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)},t.prototype.compileAG=function(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)},t.prototype._getCachedCompiledPatterns=function(e,t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new h,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0),this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)),this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns},t}(l);t.BeginEndRule=g;var m=function(e){function t(t,n,r,a,o,s,i,c,l){var u=e.call(this,t,n,r,a)||this;return u._begin=new p(o,u.id),u.beginCaptures=s,u.whileCaptures=c,u._while=new p(i,-2),u.whileHasBackReferences=u._while.hasBackReferences,u.patterns=l.patterns,u.hasMissingPatterns=l.hasMissingPatterns,u._cachedCompiledPatterns=null,u._cachedCompiledWhilePatterns=null,u}return a(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)},Object.defineProperty(t.prototype,"debugBeginRegExp",{get:function(){return""+this._begin.source},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugWhileRegExp",{get:function(){return""+this._while.source},enumerable:!1,configurable:!0}),t.prototype.getWhileWithResolvedBackReferences=function(e,t){return this._while.resolveBackReferences(e,t)},t.prototype.collectPatternsRecursive=function(e,t,n){if(n){var r,a=void 0;for(a=0,r=this.patterns.length;a<r;a++)e.getRule(this.patterns[a]).collectPatternsRecursive(e,t,!1)}else t.push(this._begin)},t.prototype.compile=function(e,t){return this._getCachedCompiledPatterns(e).compile(e)},t.prototype.compileAG=function(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)},t.prototype._getCachedCompiledPatterns=function(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new h,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns},t.prototype.compileWhile=function(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)},t.prototype.compileWhileAG=function(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)},t.prototype._getCachedCompiledWhilePatterns=function(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new h,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns},t}(l);t.BeginWhileRule=m;var y=function(){function e(){}return e.createCaptureRule=function(e,t,n,r,a){return e.registerRule((function(e){return new u(t,e,n,r,a)}))},e.getCompiledRuleId=function(t,n,r){return t.id||n.registerRule((function(a){if(t.id=a,t.match)return new d(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=o.mergeObjects({},r,t.repository));var s=t.patterns;return void 0===s&&t.include&&(s=[{include:t.include}]),new f(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(s,n,r))}return t.while?new m(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new g(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))})),t.id},e._compileCaptures=function(t,n,r){var a=[];if(t){var o=0;for(var s in t)"$vscodeTextmateLocation"!==s&&(c=parseInt(s,10))>o&&(o=c);for(var i=0;i<=o;i++)a[i]=null;for(var s in t)if("$vscodeTextmateLocation"!==s){var c=parseInt(s,10),l=0;t[s].patterns&&(l=e.getCompiledRuleId(t[s],n,r)),a[c]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return a},e._compilePatterns=function(t,n,r){var a=[];if(t)for(var o=0,s=t.length;o<s;o++){var i=t[o],c=-1;if(i.include)if("#"===i.include.charAt(0)){var l=r[i.include.substr(1)];l&&(c=e.getCompiledRuleId(l,n,r))}else if("$base"===i.include||"$self"===i.include)c=e.getCompiledRuleId(r[i.include],n,r);else{var u=null,p=null,h=i.include.indexOf("#");h>=0?(u=i.include.substring(0,h),p=i.include.substring(h+1)):u=i.include;var d=n.getExternalGrammar(u,r);if(d)if(p){var y=d.repository[p];y&&(c=e.getCompiledRuleId(y,n,d.repository))}else c=e.getCompiledRuleId(d.repository.$self,n,d.repository)}else c=e.getCompiledRuleId(i,n,r);if(-1!==c){var v=n.getRule(c),b=!1;if((v instanceof f||v instanceof g||v instanceof m)&&v.hasMissingPatterns&&0===v.patterns.length&&(b=!0),b)continue;a.push(c)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}},e}();t.RuleFactory=y},583:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.strArrCmp=t.strcmp=t.Theme=t.ColorMap=t.parseTheme=t.ParsedThemeRule=void 0;var n=function(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o};function r(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function a(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];for(var t=e.settings,a=[],o=0,s=0,i=t.length;s<i;s++){var c=t[s];if(c.settings){var l=void 0;l="string"==typeof c.scope?c.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(","):Array.isArray(c.scope)?c.scope:[""];var u=-1;if("string"==typeof c.settings.fontStyle){u=0;for(var p=0,h=(g=c.settings.fontStyle.split(" ")).length;p<h;p++)switch(g[p]){case"italic":u|=1;break;case"bold":u|=2;break;case"underline":u|=4;break;case"strikethrough":u|=8}}var d=null;"string"==typeof c.settings.foreground&&r(c.settings.foreground)&&(d=c.settings.foreground);var f=null;for("string"==typeof c.settings.background&&r(c.settings.background)&&(f=c.settings.background),p=0,h=l.length;p<h;p++){var g,m=(g=l[p].trim().split(" "))[g.length-1],y=null;g.length>1&&(y=g.slice(0,g.length-1)).reverse(),a[o++]=new n(m,y,s,u,d,f)}}}return a}t.ParsedThemeRule=n,t.parseTheme=a;var o=function(){function e(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(var t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}return e.prototype.getId=function(e){if(null===e)return 0;e=e.toUpperCase();var t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error("Missing color in color map - "+e);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}();t.ColorMap=o;var s=function(){function e(e,t,n){this._colorMap=e,this._root=n,this._defaults=t,this._cache={}}return e.createFromRawTheme=function(e,t){return this.createFromParsedTheme(a(e),t)},e.createFromParsedTheme=function(e,t){return function(e,t){e.sort((function(e,t){var n=i(e.scope,t.scope);return 0!==n||0!==(n=c(e.parentScopes,t.parentScopes))?n:e.index-t.index}));for(var n=0,r="#000000",a="#ffffff";e.length>=1&&""===e[0].scope;){var p=e.shift();-1!==p.fontStyle&&(n=p.fontStyle),null!==p.foreground&&(r=p.foreground),null!==p.background&&(a=p.background)}for(var h=new o(t),d=new l(0,null,n,h.getId(r),h.getId(a)),f=new u(new l(0,null,-1,0,0),[]),g=0,m=e.length;g<m;g++){var y=e[g];f.insert(0,y.scope,y.parentScopes,y.fontStyle,h.getId(y.foreground),h.getId(y.background))}return new s(h,d,f)}(e,t)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype.getDefaults=function(){return this._defaults},e.prototype.match=function(e){return this._cache.hasOwnProperty(e)||(this._cache[e]=this._root.match(e)),this._cache[e]},e}();function i(e,t){return e<t?-1:e>t?1:0}function c(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;var n=e.length,r=t.length;if(n===r){for(var a=0;a<n;a++){var o=i(e[a],t[a]);if(0!==o)return o}return 0}return n-r}t.Theme=s,t.strcmp=i,t.strArrCmp=c;var l=function(){function e(e,t,n,r,a){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=a}return e.prototype.clone=function(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)},e.cloneArr=function(e){for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t},e.prototype.acceptOverwrite=function(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)},e}();t.ThemeTrieElementRule=l;var u=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={}),this._mainRule=e,this._rulesWithParentScopes=t,this._children=n}return e._sortBySpecificity=function(e){return 1===e.length||e.sort(this._cmpBySpecificity),e},e._cmpBySpecificity=function(e,t){if(e.scopeDepth===t.scopeDepth){var n=e.parentScopes,r=t.parentScopes,a=null===n?0:n.length,o=null===r?0:r.length;if(a===o)for(var s=0;s<a;s++){var i=n[s].length,c=r[s].length;if(i!==c)return c-i}return o-a}return t.scopeDepth-e.scopeDepth},e.prototype.match=function(t){if(""===t)return e._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));var n,r,a=t.indexOf(".");return-1===a?(n=t,r=""):(n=t.substring(0,a),r=t.substring(a+1)),this._children.hasOwnProperty(n)?this._children[n].match(r):e._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))},e.prototype.insert=function(t,n,r,a,o,s){if(""!==n){var i,c,u,p=n.indexOf(".");-1===p?(i=n,c=""):(i=n.substring(0,p),c=n.substring(p+1)),this._children.hasOwnProperty(i)?u=this._children[i]:(u=new e(this._mainRule.clone(),l.cloneArr(this._rulesWithParentScopes)),this._children[i]=u),u.insert(t+1,c,r,a,o,s)}else this._doInsertHere(t,r,a,o,s)},e.prototype._doInsertHere=function(e,t,n,r,a){if(null!==t){for(var o=0,s=this._rulesWithParentScopes.length;o<s;o++){var i=this._rulesWithParentScopes[o];if(0===c(i.parentScopes,t))return void i.acceptOverwrite(e,n,r,a)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new l(e,t,n,r,a))}else this._mainRule.acceptOverwrite(e,n,r,a)},e}();t.ThemeTrieElement=u},42:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){for(var t=[],r=0,a=e.length;r<a;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){var t={};for(var r in e)t[r]=n(e[r]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)e[n]=t[n]})),e},t.basename=function e(t){var n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};var r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,a=function(){function e(){}return e.hasCaptures=function(e){return null!==e&&(r.lastIndex=0,r.test(e))},e.replaceCaptures=function(e,t,n){return e.replace(r,(function(e,r,a,o){var s=n[parseInt(r||a,10)];if(!s)return e;for(var i=t.substring(s.start,s.end);"."===i[0];)i=i.substring(1);switch(o){case"downcase":return i.toLowerCase();case"upcase":return i.toUpperCase();default:return i}}))},e}();t.RegexSource=a}},t={};return function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(787)})()},196:e=>{"use strict";e.exports=window.React},799:()=>{},318:()=>{}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,a,o)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){n=e[u][0],a=e[u][1],o=e[u][2];for(var i=!0,c=0;c<n.length;c++)(!1&o||s>=o)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(i=!1,o<s&&(s=o));if(i){e.splice(u--,1);var l=a();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,a,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={826:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var a,o,s=n[0],i=n[1],c=n[2],l=0;if(s.some((t=>0!==e[t]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(c)var u=c(r)}for(t&&t(n);l<s.length;l++)o=s[l],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=self.webpackChunkcode_block_pro=self.webpackChunkcode_block_pro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=r.O(void 0,[431],(()=>r(585)));a=r.O(a)})(); |
|
1
|
+(()=>{var e,t={11:(e,t,n)=>{"use strict";const r=window.wp.element,o=window.wp.blockEditor,a=window.wp.blocks,s=window.wp.hooks,i=window.wp.i18n;var l=n(184),c=n.n(l);const u=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"kevinbatdorf/code-block-pro","version":"1.13.0","title":"Code Block Pro - Beautiful syntax highlighting","category":"common","description":"Code highlighting powered by the VS Code engine. No overhead.","attributes":{"code":{"type":"string"},"codeHTML":{"type":"string"},"language":{"type":"string"},"theme":{"type":"string"},"align":{"type":"string"},"bgColor":{"type":"string","default":"#282a37"},"textColor":{"type":"string","default":"#f8f8f2"},"fontSize":{"type":"string"},"fontFamily":{"type":"string"},"lineHeight":{"type":"string"},"lineNumbers":{"type":"boolean"},"clampFonts":{"type":"boolean"},"editorHeight":{"type":"string"},"headerType":{"type":"string"},"footerType":{"type":"string"},"headerString":{"type":"string"},"disablePadding":{"type":"boolean"},"footerString":{"type":"string"},"footerLink":{"type":"string"},"enableMaxHeight":{"type":"boolean"},"seeMoreType":{"type":"string"},"seeMoreString":{"type":"string"},"seeMoreAfterLine":{"type":"string"},"seeMoreTransition":{"type":"boolean"},"footerLinkTarget":{"type":"boolean"},"startingLineNumber":{"type":"number","default":1},"lineNumbersWidth":{"type":"number"},"enableHighlighting":{"type":"boolean"},"lineHighlights":{"type":"string"},"lineHighlightColor":{"type":"string"},"enableBlurring":{"type":"boolean"},"lineBlurs":{"type":"string"},"removeBlurOnHover":{"type":"boolean"},"frame":{"type":"boolean"},"renderType":{"type":"string","default":"code"},"label":{"type":"string","default":""},"copyButton":{"type":"boolean"}},"supports":{"html":false,"align":["wide","full"]},"textdomain":"code-block-pro","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./front/front.js"}'),d=window.wp.escapeHtml,p=window.wp.htmlEntities;var h={grad:.9,turn:360,rad:360/(2*Math.PI)},g=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},m=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},f=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},b=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},y=function(e){return{r:f(e.r,0,255),g:f(e.g,0,255),b:f(e.b,0,255),a:f(e.a)}},v=function(e){return{r:m(e.r),g:m(e.g),b:m(e.b),a:m(e.a,3)}},_=/^#([0-9a-f]{3,8})$/i,k=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},S=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),i=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(i<0?i+6:i),s:a?s/a*100:0,v:a/255*100,a:o}},C=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),i=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),c=a%6;return{r:255*[r,i,s,s,l,r][c],g:255*[l,r,r,i,s,s][c],b:255*[s,s,l,r,r,i][c],a:o}},w=function(e){return{h:b(e.h),s:f(e.s,0,100),l:f(e.l,0,100),a:f(e.a)}},x=function(e){return{h:m(e.h),s:m(e.s),l:m(e.l),a:m(e.a,3)}},E=function(e){return C((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},L=function(e){return{h:(t=S(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},N=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,T=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,P=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,A={string:[[function(e){var t=_.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?m(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?m(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=j.exec(e)||P.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:y({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=N.exec(e)||T.exec(e);if(!t)return null;var n,r,o=w({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(h[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return E(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=void 0===o?1:o;return g(t)&&g(n)&&g(r)?y({r:Number(t),g:Number(n),b:Number(r),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,a=void 0===o?1:o;if(!g(t)||!g(n)||!g(r))return null;var s=w({h:Number(t),s:Number(n),l:Number(r),a:Number(a)});return E(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,a=void 0===o?1:o;if(!g(t)||!g(n)||!g(r))return null;var s=function(e){return{h:b(e.h),s:f(e.s,0,100),v:f(e.v,0,100),a:f(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(a)});return C(s)},"hsv"]]},O=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},R=function(e,t){var n=L(e);return{h:n.h,s:f(n.s+100*t,0,100),l:n.l,a:n.a}},I=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},B=function(e,t){var n=L(e);return{h:n.h,s:n.s,l:f(n.l+100*t,0,100),a:n.a}},M=function(){function e(e){this.parsed=function(e){return"string"==typeof e?O(e.trim(),A.string):"object"==typeof e&&null!==e?O(e,A.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return m(I(this.rgba),2)},e.prototype.isDark=function(){return I(this.rgba)<.5},e.prototype.isLight=function(){return I(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=v(this.rgba)).r,n=e.g,r=e.b,a=(o=e.a)<1?k(m(255*o)):"","#"+k(t)+k(n)+k(r)+a;var e,t,n,r,o,a},e.prototype.toRgb=function(){return v(this.rgba)},e.prototype.toRgbString=function(){return t=(e=v(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return x(L(this.rgba))},e.prototype.toHslString=function(){return t=(e=x(L(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=S(this.rgba),{h:m(e.h),s:m(e.s),v:m(e.v),a:m(e.a,3)};var e},e.prototype.invert=function(){return F({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),F(R(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),F(R(this.rgba,-e))},e.prototype.grayscale=function(){return F(R(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),F(B(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),F(B(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?F({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):m(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=L(this.rgba);return"number"==typeof e?F({h:e,s:t.s,l:t.l,a:t.a}):m(t.h)},e.prototype.isEqual=function(e){return this.toHex()===F(e).toHex()},e}(),F=function(e){return e instanceof M?e:new M(e)},D=n(460),H=n.n(D);const G=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),n.clear()}};return t=e(r,o,a),a};var $=n(196),W=n(798);const{useSyncExternalStoreWithSelector:z}=W,U=e=>{"function"!=typeof e&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');const t="function"==typeof e?(e=>e?G(e):G)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=z(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,$.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n};var q=e=>(console.warn("[DEPRECATED] default export is deprecated, instead import { create } from'zustand'"),(e=>e?U(e):U)(e));const V=new Map,K=e=>{const t=V.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},J=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:s,store:i,...l}=t;let c;try{c=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=V.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return V.set(n.name,o),{type:"tracked",store:e,...o}})(i,c,l);let p=!0;o.setState=(e,t,a)=>{const c=n(e,t);if(!p)return c;const d=void 0===a?{type:s||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===i?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${i}/${d.type}`},{...K(l.name),[i]:o.getState()}),c)};const h=(...e)=>{const t=p;p=!1,n(...e),p=t},g=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(g):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?g:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Q(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===i)return void h(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[i];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&h(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(g),void 0===i?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(K(l.name));case"COMMIT":return void 0===i?void(null==u||u.init(o.getState())):null==u?void 0:u.init(K(l.name));case"ROLLBACK":return Q(e.state,(e=>{if(void 0===i)return h(e),void(null==u||u.init(o.getState()));h(e[i]),null==u||u.init(K(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Q(e.state,(e=>{void 0!==i?JSON.stringify(o.getState())!==JSON.stringify(e[i])&&h(e[i]):h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(void 0===i?r:r[i]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}})),g},Q=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function X(e){let t;try{t=e()}catch(e){return}const n={getItem:e=>{var n;const r=e=>null===e?null:JSON.parse(e),o=null!=(n=t.getItem(e))?n:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n)),removeItem:e=>t.removeItem(e)};return n}const Y=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Y(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Y(t)(e)}}},Z=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Please use `storage` option instead."),((e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,l=new Set;let c;try{c=a.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=Y(a.serialize),d=()=>{const e=a.partialize({...r()});let t;const n=u({state:e,version:a.version}).then((e=>c.setItem(a.name,e))).catch((e=>{t=e}));if(t)throw t;return n},p=o.setState;o.setState=(e,t)=>{p(e,t),d()};const h=e(((...e)=>{n(...e),d()}),r,o);let g;const m=()=>{var e;if(!c)return;s=!1,i.forEach((e=>e(r())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return Y(c.getItem.bind(c))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return g=a.merge(e,null!=(t=r())?t:h),n(g,!0),d()})).then((()=>{null==t||t(g,void 0),s=!0,l.forEach((e=>e(g)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),g||h})(e,t)):((e,t)=>(n,r,o)=>{let a={storage:X((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const i=new Set,l=new Set;let c=a.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=()=>{const e=a.partialize({...r()});return c.setItem(a.name,{state:e,version:a.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const p=e(((...e)=>{n(...e),u()}),r,o);let h;const g=()=>{var e;if(!c)return;s=!1,i.forEach((e=>e(r())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return Y(c.getItem.bind(c))(a.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=a.merge(e,null!=(t=r())?t:p),n(h,!0),u()})).then((()=>{null==t||t(h,void 0),s=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{a={...a,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},g(),h||p})(e,t),ee=q()(Z(J((e=>({previousSettings:{copyButton:!0},setPreviousSettings(t){e((e=>({previousSettings:{...e.previousSettings,...t}})))}})),{name:"Code Block Pro Globals"}),{name:"code-block-pro-last-globals",getStorage:()=>localStorage,partialize:e=>{var t;return{previousSettings:null!==(t=e?.previousSettings)&&void 0!==t?t:{}}}})),te=window.wp.apiFetch;var ne=n.n(te);const re="/wp/v2/settings",oe=async e=>(await ne()({path:re}))?.[e],ae=q()(Z(J((e=>({previousTheme:"nord",previousLineHeight:"1.25rem",previousFontFamily:void 0,previousFontSize:".875rem",previousHeaderType:"headlights",previousFooterType:void 0,previousClampFonts:void 0,previousDisablePadding:void 0,previousLineNumbers:void 0,updateThemeHistory(t){e((e=>({...e,previousTheme:t.theme,previousLineHeight:t.lineHeight,previousFontFamily:t.fontFamily,previousFontSize:t.fontSize,previousHeaderType:t.headerType,previousFooterType:t.footerType,previousClampFonts:t.clampFonts,previousDisablePadding:t.disablePadding,previousLineNumbers:t.lineNumbers})))}})),{name:"Code Block Pro Theme Settings"}),{name:"code_block_pro_settings",getStorage:()=>({getItem:async e=>{var t;const n=await oe(e);return JSON.stringify({version:null!==(t=n?.version)&&void 0!==t?t:0,state:n})},setItem:async(e,t)=>{var n;const{state:r,version:o}=JSON.parse(t),a={[e]:Object.assign(null!==(n=await oe(e))&&void 0!==n?n:{},r,o)};await ne()({path:re,method:"POST",data:a})},removeItem:async e=>{const t={[e]:null};return await ne()({path:re,method:"POST",data:t})}})}));var se=n(930),ie=n(190);const le=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",samplePath:"hcl.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["bash","console","sh","shell","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",samplePath:"wgsl.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var ce,ue,de,pe,he=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(he||{});class ge{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=ge.getLanguageId(e),n=ge.getTokenType(e),r=ge.getFontStyle(e),o=ge.getForeground(e),a=ge.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:r,foreground:o,background:a})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,a){let s=ge.getLanguageId(e),i=ge.getTokenType(e),l=ge.getFontStyle(e),c=ge.getForeground(e),u=ge.getBackground(e);return 0!==t&&(s=t),0!==n&&(i=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==a&&(u=a),(s<<0|i<<8|l<<11|(ge.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function me(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function fe(e){return e.startsWith("./")?e.slice(2):e}function be(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function ye(...e){return e.map(me).map(fe).join("/")}function ve(e){return 32===e||9===e}function _e(e){return 10===e||13===e}function ke(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(ce||(ce={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ue||(ue={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(de||(de={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(pe||(pe={}));const Se=function(e,t=[],n=ue.DEFAULT){let r=null,o=[];const a=[];function s(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}return function(e,t,n=ue.DEFAULT){const r=function(e,t=!1){const n=e.length;let r=0,o="",a=0,s=16,i=0,l=0,c=0,u=0,d=0;function p(t,n){let o=0,a=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=16*a+t-48;else if(t>=65&&t<=70)a=16*a+t-65+10;else{if(!(t>=97&&t<=102))break;a=16*a+t-97+10}r++,o++}return o<t&&(a=-1),a}function h(){if(o="",d=0,a=r,l=i,u=c,r>=n)return a=n,s=17;let t=e.charCodeAt(r);if(ve(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(ve(t));return s=15}if(_e(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),i++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),d=2;break}const a=e.charCodeAt(r);if(34===a){t+=e.substring(o,r),r++;break}if(92!==a){if(a>=0&&a<=31){if(_e(a)){t+=e.substring(o,r),d=2;break}d=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=p(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}o=r}}return t}(),s=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!_e(e.charCodeAt(r));)r++;return o=e.substring(l,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let a=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,a=!0;break}r++,_e(t)&&(13===t&&10===e.charCodeAt(r)&&r++,i++,c=r)}return a||(r++,d=1),o=e.substring(l,r),s=13}return o+=String.fromCharCode(t),r++,s=16;case 45:if(o+=String.fromCharCode(t),r++,r===n||!ke(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&ke(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&ke(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&ke(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&ke(e.charCodeAt(r))){for(r++;r<e.length&&ke(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&g(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(o=e.substring(a,r),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(t),r++,s=16}}function g(e){if(ve(e)||_e(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",a=0,s=16,d=0},getPosition:()=>r,scan:t?function(){let e;do{e=h()}while(e>=12&&e<=15);return e}:h,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>l,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}(e,!1),o=[];function a(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>o.slice())):()=>!0}function i(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>o.slice())):()=>!0}const c=s(t.onObjectBegin),u=l(t.onObjectProperty),d=a(t.onObjectEnd),p=s(t.onArrayBegin),h=a(t.onArrayEnd),g=l(t.onLiteralValue),m=i(t.onSeparator),f=a(t.onComment),b=i(t.onError),y=n&&n.disallowComments,v=n&&n.allowTrailingComma;function _(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:y||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:y?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(b(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){_();break}if(-1!==n.indexOf(e))break;e=_()}}}function S(e){const t=r.getTokenValue();return e?g(t):(u(t),o.push(t)),_(),!0}function C(){switch(r.getToken()){case 3:return function(){p(),_();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||k(4,[],[]),m(","),_(),4===r.getToken()&&v)break}else t&&k(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,C()||k(4,[],[4,5]),t=!0}return h(),e||o.pop(),4!==r.getToken()?k(8,[4],[]):_(),!0}();case 1:return function(){c(),_();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||k(4,[],[]),m(","),_(),2===r.getToken()&&v)break}else e&&k(6,[],[]);(10!==r.getToken()?(k(3,[],[2,5]),!1):(S(!1),6===r.getToken()?(m(":"),_(),C()||k(4,[],[2,5])):k(5,[],[2,5]),o.pop(),!0))||k(4,[],[2,5]),e=!0}return d(),2!==r.getToken()?k(7,[2],[]):_(),!0}();case 10:return S(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return _(),!0}()}}_(),17===r.getToken()?!!n.allowEmptyContent||k(4,[],[]):C()?17!==r.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};s(e),a.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=a.pop()},onArrayBegin:()=>{const e=[];s(e),a.push(o),o=e,r=null},onArrayEnd:()=>{o=a.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),o[0]};var Ce;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(Ce||(Ce={}));const we="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,xe="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,Ee=we||!xe;let Le="",Ne="";let Te=null;function je(e){if(Ee)return`${Le}${e}`;{const t=n(318);return t.isAbsolute(e)?e:t.resolve("/","..",e)}}async function Pe(e){const t=[],r=Se(await async function(e){const t=je(e);if(Ee)return await fetch(t).then((e=>e.text()));{const e=n(799);return await e.promises.readFile(t,"utf-8")}}(e),t,{allowTrailingComma:!0});if(t.length)throw t[0];return r}async function Ae(e){const t=Oe(await Pe(e));if(t.include){const n=await Ae(ye(...be(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function Oe(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...Re(e)};var r;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(r=n).settings||(r.settings=[]),r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}}),n}function Re(e){let t,n,r=e.settings?e.settings:e.tokenColors;const o=r?r.find((e=>!e.name&&!e.scope)):void 0;return o?.settings?.foreground&&(t=o.settings.foreground),o?.settings?.background&&(n=o.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?"#333333":"#bbbbbb"),n||(n="light"===e.type?"#fffffe":"#1e1e1e"),{fg:t,bg:n}}class Ie{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await Pe(e)}(le.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function Be(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let o=t.slice(0,r),a=t[r];n[r]={scopeName:a,themeMatches:De(e,a,o)}}return n}function Me(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function Fe(e,t,n,r){if(!Me(e,n))return!1;let o=t.length-1,a=r.length-1;for(;o>=0&&a>=0;)Me(t[o],r[a])&&o--,a--;return-1===o}function De(e,t,n){let r=[],o=0;for(let a=0,s=e.settings.length;a<s;a++){let s,i=e.settings[a];if("string"==typeof i.scope)s=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;s=i.scope}for(let e=0,a=s.length;e<a;e++){let l=s[e].split(/ /);Fe(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[o++]=i,e=a)}}return r}var He=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ge={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function $e(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function We(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ze(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)Ge[r]&&t.push({type:"setDecoration",value:Ge[r]});else if(r<=29){const e=Ge[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:He[r-30]}});else if(38===r){const n=We(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:He[r-40]}});else if(48===r){const n=We(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:He[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:He[r-100+8]}})}return t}var Ue={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function qe(e=Ue){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return function(e){return function(){if(r)return r;r=[];for(let e=0;e<He.length;e++)r.push(t(He[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let o=0;o<6;o++)for(let a=0;a<6;a++)r.push(n([e[t],e[o],e[a]]));let o=8;for(let e=0;e<24;e++,o+=10)r.push(n([o,o,o]));return r}()[e]}(e.index)}}}}const Ve={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Ke(e,t={}){const n=t.bg||"#fff",r=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),o=t.elements||{};function a(e="",t={},n){const r=o[e]||Ve[e];return r?(n=n.filter(Boolean),r({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return a("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",a("code",{},e.map(((n,o)=>{const s=o+1;return a("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(r.get(s)??[]).join(" "),lines:e,line:n,index:o},n.map(((e,r)=>{const o=[`color: ${e.color||t.fg}`];return e.fontStyle&he.Italic&&o.push("font-style: italic"),e.fontStyle&he.Bold&&o.push("font-weight: bold"),e.fontStyle&he.Underline&&o.push("text-decoration: underline"),a("token",{style:o.join("; "),tokens:n,token:e,index:r},[(s=e.content,s.replace(/[&<>"']/g,(e=>Je[e])))]);var s})))})))])}const Je={"&":"&","<":"<",">":">",'"':""","'":"'"};class Qe extends ie.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=le.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await Ae(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=Oe(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function Xe(e){return"string"==typeof e?le.find((t=>t.id===e||t.aliases?.includes(e))):e}async function Ye(e){const{_languages:t,_themes:r,_wasmPath:o}=function(e){let t=le,n=e.themes||[],r=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(Xe)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:r}}(e),a=new Ie(async function(e){if(!Te){let t;if(Ee)t="string"==typeof Ne?(0,se.loadWASM)({data:await fetch(je(ye(...be(e),"onig.wasm")))}):(0,se.loadWASM)({data:Ne});else{const e=n(318).join(930,"../onig.wasm"),r=n(799).readFileSync(e).buffer;t=(0,se.loadWASM)(r)}Te=t.then((()=>({createOnigScanner:e=>(0,se.createOnigScanner)(e),createOnigString:e=>(0,se.createOnigString)(e)})))}return Te}(o),"vscode-oniguruma"),s=new Qe(a);e.paths?.themes&&(s.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(a.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await s.loadThemes(r))[0];let l;await s.loadLanguages(t);let c={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};function u(e){const t=e?s.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(s.setTheme(t),l=t);const n=s.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function d(e,t="text",n,r={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:o}=function(e){const t=s.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:a,_colorMap:i}=u(n);return function(e,t,n,r,o){let a=n.split(/\r\n|\r|\n/),s=ie.INITIAL,i=[],l=[];for(let n=0,c=a.length;n<c;n++){let c,u,d,p=a[n];if(""===p){i=[],l.push([]);continue}o.includeExplanation&&(c=r.tokenizeLine(p,s),u=c.tokens,d=0);let h=r.tokenizeLine2(p,s),g=h.tokens.length/2;for(let n=0;n<g;n++){let r=h.tokens[2*n],a=n+1<g?h.tokens[2*n+2]:p.length;if(r===a)continue;let s=h.tokens[2*n+1],l=t[ge.getForeground(s)],c=ge.getFontStyle(s),m=[];if(o.includeExplanation){let t=0;for(;r+t<a;){let n=u[d],r=p.substring(n.startIndex,n.endIndex);t+=r.length,m.push({content:r,scopes:Be(e,n.scopes)}),d++}}i.push({content:p.substring(r,a),color:l,fontStyle:c,explanation:m})}l.push(i),i=[],s=h.ruleStack}return l}(a,i,e,o,r)}function p(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),r=qe(Object.fromEntries(He.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const s=$e(r,a),i=s.sequence?r.substring(a,s.startPosition):r.substring(a);if(i.length>0&&o.push({value:i,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const r=ze(s.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}a=s.position}while(a<r.length);return o}}}();return n.map((t=>o.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}return e}(n));let o=he.None;return t.decorations.has("bold")&&(o|=he.Bold),t.decorations.has("italic")&&(o|=he.Italic),t.decorations.has("underline")&&(o|=he.Underline),{content:t.value,color:n,fontStyle:o}}))))}(n,e)}return{codeToThemedTokens:d,codeToHtml:function(e,t="text",n){let r;r="object"==typeof t?t:{lang:t,theme:n};const o=d(e,r.lang,r.theme,{includeExplanation:!1}),{_theme:a}=u(r.theme);return Ke(o,{fg:a.fg,bg:a.bg,lineOptions:r?.lineOptions,themeName:a.name})},ansiToThemedTokens:p,ansiToHtml:function(e,t){const n=p(e,t?.theme),{_theme:r}=u(t?.theme);return Ke(n,{fg:r.fg,bg:r.bg,lineOptions:t?.lineOptions,themeName:r.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await s.loadTheme(e)},loadLanguage:async function(e){const t=Xe(e);a.addLanguage(t),await s.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return s.getLoadedThemes()},getLoadedLanguages:function(){return s.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var Ze=n(688);const et=new WeakMap,tt={},nt={},rt=()=>{},ot=rt(),at=Object,st=e=>e===ot,it=e=>"function"==typeof e,lt=(e,t)=>({...e,...t}),ct="undefined",ut=typeof window!=ct,dt=typeof document!=ct,pt=(e,t)=>{const n=et.get(e);return[()=>e.get(t)||tt,r=>{if(!st(t)){const o=e.get(t);t in nt||(nt[t]=o),n[5](t,lt(o,r),o||tt)}},n[6],()=>!st(t)&&t in nt?nt[t]:e.get(t)||tt]},ht=new WeakMap;let gt=0;const mt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(at(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=ht.get(e),o)return o;if(o=++gt+"~",ht.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=mt(e[a])+",";ht.set(e,o)}if(n==at){o="#";const t=at.keys(e).sort();for(;!st(a=t.pop());)st(e[a])||(o+=a+":"+mt(e[a])+",");ht.set(e,o)}}return o};let ft=!0;const[bt,yt]=ut&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rt,rt],vt={isOnline:()=>ft,isVisible:()=>{const e=dt&&document.visibilityState;return st(e)||"hidden"!==e}},_t={initFocus:e=>(dt&&document.addEventListener("visibilitychange",e),bt("focus",e),()=>{dt&&document.removeEventListener("visibilitychange",e),yt("focus",e)}),initReconnect:e=>{const t=()=>{ft=!0,e()},n=()=>{ft=!1};return bt("online",t),bt("offline",n),()=>{yt("online",t),yt("offline",n)}}},kt=!$.useId,St=!ut||"Deno"in window,Ct=St?$.useEffect:$.useLayoutEffect,wt="undefined"!=typeof navigator&&navigator.connection,xt=!St&&wt&&(["slow-2g","2g"].includes(wt.effectiveType)||wt.saveData),Et=e=>{if(it(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?mt(e):"",t]};let Lt=0;const Nt=()=>++Lt;async function Tt(...e){const[t,n,r,o]=e,a=lt({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=a.populateCache;const i=a.rollbackOnError;let l=a.optimisticData;const c=!1!==a.revalidate,u=a.throwOnError;if(it(n)){const e=n,r=[],o=t.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!o.startsWith("$inf$")&&e(t.get(o)._k)&&r.push(o)}return Promise.all(r.map(d))}return d(n);async function d(n){const[o]=Et(n);if(!o)return;const[a,d]=pt(t,o),[p,h,g]=et.get(t),m=p[o],f=()=>c&&(delete g[o],m&&m[0])?m[0](2).then((()=>a().data)):a().data;if(e.length<3)return f();let b,y=r;const v=Nt();h[o]=[v,0];const _=!st(l),k=a(),S=k.data,C=k._c,w=st(C)?S:C;if(_&&(l=it(l)?l(w):l,d({data:l,_c:w})),it(y))try{y=y(w)}catch(e){b=e}if(y&&it(y.then)){if(y=await y.catch((e=>{b=e})),v!==h[o][0]){if(b)throw b;return y}b&&_&&(e=>"function"==typeof i?i(e):!1!==i)(b)&&(s=!0,y=w,d({data:y,_c:ot}))}s&&(b||(it(s)&&(y=s(y,w)),d({data:y,_c:ot}))),h[o][1]=Nt();const x=await f();if(d({_c:ot}),!b)return s?x:y;if(u)throw b}}const jt=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Pt=(e,t)=>{if(!et.has(e)){const n=lt(_t,t),r={},o=Tt.bind(ot,e);let a=rt;const s={},i=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(let e=o.length;e--;)o[e](n,r)},c=()=>{if(!et.has(e)&&(et.set(e,[r,{},{},{},o,l,i]),!St)){const t=n.initFocus(setTimeout.bind(ot,jt.bind(ot,r,0))),o=n.initReconnect(setTimeout.bind(ot,jt.bind(ot,r,1)));a=()=>{t&&t(),o&&o(),et.delete(e)}}};return c(),[e,o,c,a]}return[e,et.get(e)[4]]},[At,Ot]=Pt(new Map),Rt=lt({onLoadingSlow:rt,onSuccess:rt,onError:rt,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,a=r.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!st(o)&&a>o||setTimeout(n,s,r)},onDiscarded:rt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:xt?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:xt?5e3:3e3,compare:(e,t)=>mt(e)==mt(t),isPaused:()=>!1,cache:At,mutate:Ot,fallback:{}},vt),It=(e,t)=>{const n=lt(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:s}=t;r&&a&&(n.use=r.concat(a)),o&&s&&(n.fallback=lt(o,s))}return n},Bt=(0,$.createContext)({}),Mt=ut&&window.__SWR_DEVTOOLS_USE__,Ft=Mt?window.__SWR_DEVTOOLS_USE__:[],Dt=e=>it(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Ht=Ft.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const r=Et(t)[0],[,,,o]=et.get(At),a=o[r];return a?(delete o[r],a):n(...e)}),r)));Mt&&(window.__SWR_DEVTOOLS_REACT__=$);const Gt={dedupe:!0};at.defineProperty((e=>{const{value:t}=e,n=(0,$.useContext)(Bt),r=it(t),o=(0,$.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,$.useMemo)((()=>r?o:It(n,o)),[r,n,o]),s=o&&o.provider,[i]=(0,$.useState)((()=>s?Pt(s(a.cache||At),o):ot));return i&&(a.cache=i[0],a.mutate=i[1]),Ct((()=>{if(i)return i[2]&&i[2](),i[3]}),[]),(0,$.createElement)(Bt.Provider,lt(e,{value:a}))}),"defaultValue",{value:Rt});var $t,Wt=($t=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:s,revalidateOnMount:i,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p}=n,[h,g,m]=et.get(r),[f,b]=Et(e),y=(0,$.useRef)(!1),v=(0,$.useRef)(!1),_=(0,$.useRef)(f),k=(0,$.useRef)(t),S=(0,$.useRef)(n),C=()=>S.current,w=()=>C().isVisible()&&C().isOnline(),[x,E,L,N]=pt(r,f),T=(0,$.useRef)({}).current,j=st(s)?n.fallback[f]:s,P=(e,t)=>{let n=!0;for(const r in T){const a=r;"data"===a?o(t[a],e[a])||st(e[a])&&o(t[a],H)||(n=!1):t[a]!==e[a]&&(n=!1)}return n},A=(0,$.useMemo)((()=>{const e=!!f&&!!t&&(st(i)?!C().isPaused()&&!a&&(!!st(l)||l):i),n=t=>{const n=lt(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n};let r=n(x());const o=n(N());return[()=>{const e=n(x());return P(e,r)?r:r=e},()=>o]}),[r,f]),O=(0,Ze.useSyncExternalStore)((0,$.useCallback)((e=>L(f,((t,n)=>{P(n,t)||e()}))),[r,f]),A[0],A[1]),R=!y.current,I=h[f]&&h[f].length>0,B=O.data,M=st(B)?j:B,F=O.error,D=(0,$.useRef)(M),H=p?st(B)?D.current:B:M,G=!(I&&!st(F))&&(R&&!st(i)?i:!C().isPaused()&&(a?!st(M)&&l:st(M)||l)),W=!!(f&&t&&R&&G),z=st(O.isValidating)?W:O.isValidating,U=st(O.isLoading)?W:O.isLoading,q=(0,$.useCallback)((async e=>{const t=k.current;if(!f||!t||v.current||C().isPaused())return!1;let r,a,s=!0;const i=e||{},l=!m[f]||!i.dedupe,c=()=>kt?!v.current&&f===_.current&&y.current:f===_.current,u={isValidating:!1,isLoading:!1},d=()=>{E(u)},p=()=>{const e=m[f];e&&e[1]===a&&delete m[f]},h={isValidating:!0};st(x().data)&&(h.isLoading=!0);try{if(l&&(E(h),n.loadingTimeout&&st(x().data)&&setTimeout((()=>{s&&c()&&C().onLoadingSlow(f,n)}),n.loadingTimeout),m[f]=[t(b),Nt()]),[r,a]=m[f],r=await r,l&&setTimeout(p,n.dedupingInterval),!m[f]||m[f][1]!==a)return l&&c()&&C().onDiscarded(f),!1;u.error=ot;const e=g[f];if(!st(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return d(),l&&c()&&C().onDiscarded(f),!1;const i=x().data;u.data=o(i,r)?i:r,l&&c()&&C().onSuccess(r,f,n)}catch(e){p();const t=C(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,f,t),(!0===n||it(n)&&n(e))&&w()&&t.onErrorRetry(e,f,t,q,{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return s=!1,d(),!0}),[f,r]),V=(0,$.useCallback)(((...e)=>Tt(r,_.current,...e)),[]);if(Ct((()=>{k.current=t,S.current=n,st(B)||(D.current=B)})),Ct((()=>{if(!f)return;const e=q.bind(ot,Gt);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(f,h,(n=>{if(0==n){const n=Date.now();C().revalidateOnFocus&&n>t&&w()&&(t=n+C().focusThrottleInterval,e())}else if(1==n)C().revalidateOnReconnect&&w()&&e();else if(2==n)return q()}));return v.current=!1,_.current=f,y.current=!0,E({_k:b}),G&&(st(M)||St?e():(e=>{ut&&typeof window.requestAnimationFrame!=ct?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{v.current=!0,n()}}),[f]),Ct((()=>{let e;function t(){const t=it(c)?c(M):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){x().error||!u&&!C().isVisible()||!d&&!C().isOnline()?t():q(Gt).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,u,d,f]),(0,$.useDebugValue)(H),a&&st(M)&&f){if(!kt&&St)throw new Error("Fallback data is required when using suspense in SSR.");throw k.current=t,S.current=n,v.current=!1,st(F)?q(Gt):F}return{mutate:V,get data(){return T.data=!0,H},get error(){return T.error=!0,F},get isValidating(){return T.isValidating=!0,z},get isLoading(){return T.isLoading=!0,U}}},function(...e){const t=lt(Rt,(0,$.useContext)(Bt)),[n,r,o]=Dt(e),a=It(t,o);let s=$t;const{use:i}=a,l=(i||[]).concat(Ht);for(let e=l.length;e--;)s=l[e](s);return s(n,r||a.fetcher||null,a)}),zt=((e,t)=>(...n)=>{const[r,o,a]=Dt(n),s=(a.use||[]).concat(t);return e(r,o,{...a,use:s})})(Wt,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))));const Ut=JSON.parse('{"dark-plus":{"name":"Dark Plus"},"dracula-soft":{"name":"Dracula Soft"},"dracula":{"name":"Dracula"},"github-dark-dimmed":{"name":"GitHub Dark Dimmed"},"github-dark":{"name":"Github Dark"},"github-light":{"name":"Github Light"},"light-plus":{"name":"Light Plus"},"material-darker":{"name":"Material Darker","alias":"material-theme-darker"},"material-default":{"name":"Material Default","alias":"material-theme"},"material-lighter":{"name":"Material Lighter","alias":"material-theme-lighter"},"material-ocean":{"name":"Material Ocean","alias":"material-theme-ocean"},"material-palenight":{"name":"Material Palenight","alias":"material-theme-palenight"},"min-dark":{"name":"Min Dark"},"min-light":{"name":"Min Light"},"monokai":{"name":"Monokai"},"nord":{"name":"Nord"},"one-dark-pro":{"name":"One Dark Pro"},"poimandres":{"name":"Poimandres"},"rose-pine-dawn":{"name":"Rose Pine Dawn"},"rose-pine-moon":{"name":"Rose Pine Moon"},"rose-pine":{"name":"Rose Pine"},"slack-dark":{"name":"Slack Dark"},"slack-ochin":{"name":"Slack Ochin"},"solarized-dark":{"name":"Solarized Dark"},"solarized-light":{"name":"Solarized Light"},"vitesse-dark":{"name":"Vitesse Dark"},"vitesse-light":{"name":"Vitesse Light"}}'),qt=JSON.parse('{"abap":"ABAP","actionscript-3":"ActionScript 3","ada":"Ada","ansi":"ANSI","apache":"Apache","apex":"Apex","apl":"APL","applescript":"AppleScript","ara":"Ara","asm":"ASM","astro":"Astro","awk":"Awk","ballerina":"Ballerina","bat":"BAT","batch":"Batch","be":"BE","berry":"Berry","bibtex":"BibTeX","bicep":"BICEP","blade":"Blade","c":"C","cadence":"Cadence","cdc":"CDC","clarity":"Clarity","clj":"Clojure","clojure":"Clojure","cmake":"CMake","cobol":"COBOL","codeql":"CodeQL","ql":"CodeQL","coffee":"CoffeeScript","cpp":"C++","crystal":"Crystal","csharp":"C#","c#":"C#","css":"CSS","cue":"CUE","d":"D","dart":"Dart","dax":"DAX","diff":"Diff","docker":"Docker","dream-maker":"DreamMaker","elixir":"Elixir","elm":"Elm","erb":"ERB","html-ruby-erb":"ERB","erlang":"Erlang","fish":"Fish","fsharp":"F#","f#":"F#","fsl":"FSL","gherkin":"Gherkin","git-commit":"Git Commit","git-rebase":"Git Rebase","glsl":"GLSL","gnuplot":"Gnuplot","go":"Go","graphql":"GraphQL","groovy":"Groovy","hack":"Hack","haml":"HAML","handlebars":"Handlebars","haskell":"Haskell","hbs":"HBS","hcl":"HCL","hlsl":"HLSL","html":"HTML","http":"HTTP","ini":"INI","java":"Java","javascript":"JavaScript","js":"JavaScript","jinja-html":"Jinja HTML","json":"JSON","jsonc":"JSONC","jsonnet":"JSONnet","jssm":"JSSM","jsx":"JSX","julia":"Julia","kotlin":"Kotlin","latex":"LaTeX","less":"LESS","liquid":"Liquid","lisp":"Lisp","logo":"Logo","lua":"Lua","make":"Makefile","makefile":"Makefile","markdown":"Markdown","md":"Markdown","marko":"Marko","matlab":"MATLAB","mdx":"MDX","mermaid":"Mermaid","nginx":"Nginx","nim":"Nim","nix":"Nix","objective-c":"Objective-C","objc":"Objective-C","objective-cpp":"Objective-C++","ocaml":"OCaml","pascal":"Pascal","powerquery":"Power Query","perl":"Perl","php":"PHP","plsql":"PLSQL","postcss":"PostCSS","powershell":"PowerShell","ps":"PowerShell","ps1":"PowerShell","prisma":"Prisma","prolog":"Prolog","pug":"Pug","jade":"Pug","puppet":"Puppet","purescript":"PureScript","python":"Python","py":"Python","r":"R","raku":"Raku","perl6":"Raku","razor":"Razor","rel":"Rel","riscv":"RISC-V","rst":"RST","ruby":"Ruby","rb":"Ruby","rust":"Rust","rs":"Rust","sas":"SAS","sass":"Sass","scala":"Scala","scheme":"Scheme","scss":"SCSS","shaderlab":"ShaderLab","shader":"Shader","shellscript":"ShellScript","bash":"ShellScript","shell":"ShellScript","sh":"ShellScript","zsh":"ShellScript","smalltalk":"Smalltalk","solidity":"Solidity","sparql":"SPARQL","sql":"SQL","ssh-config":"SSH Config","stata":"Stata","stylus":"Stylus","styl":"Stylus","svelte":"Svelte","swift":"Swift","system-verilog":"SystemVerilog","tasl":"TASL","tcl":"TCL","tex":"TeX","toml":"TOML","tsx":"TSX","turtle":"Turtle","twig":"Twig","typescript":"TypeScript","ts":"TypeScript","vb":"VB","cmd":"VB","verilog":"Verilog","vhdl":"VHDL","viml":"VimL","vim":"VimL","vimscript":"VimL","vue-html":"Vue HTML","vue":"Vue","wasm":"WASM","wenyan":"Wenyan","文言":"Wenyan","xml":"XML","xsl":"XSL","yaml":"YAML","zenscript":"ZenScript"}'),Vt={"actionscript-3":["as3"],bat:["batch"],berry:["be"],cadence:["cdc"],clojure:["clj"],codeql:["ql"],cpp:["arduino"],csharp:["c#","cs"],erlang:["erl"],fsharp:["f#"],haskell:["hs"],handlebars:["hbs"],"html-ruby-erb":["erb"],java:["javafx"],javascript:["jscript","js"],jssm:["fsl"],make:["makefile"],markdown:["md"],matlab:["matlabkey"],"objective-c":["objc"],pascal:["delphi"],powershell:["ps","ps1"],pug:["jade"],python:["py"],raku:["perl6"],ruby:["rb"],rust:["rs"],shaderlab:["shader"],shellscript:["shell","bash","sh","zsh"],stylus:["styl"],typescript:["ts"],vb:["cmd"],viml:["vim","vimscript"],wenyan:["文言"],xml:["coldfusion"],yaml:["yml"]},Kt=e=>{if(e)return Object.keys(Vt).find((t=>Vt[t].includes(e)))},Jt=(e=>{const t=Object.values(Vt).flat();return Object.keys(e).reduce(((n,r)=>(t.includes(r)||(n[r]=e[r]),n)),{})})(qt),Qt=e=>"ansi"===e?"shellscript":e,Xt=e=>{let{theme:t,lang:n,ready:r}=e;if(!r)throw new Error;const o=(0,s.applyFilters)("blocks.codeBlockPro.theme",t),a=Ut?.[o]?.alias;return Ye({langs:[Qt(n)],theme:null!=a?a:o})};let Yt=!1;const Zt=e=>{let{theme:t,lang:n,ready:o=!0}=e;const[a,i]=(0,r.useState)(!1);if(!Yt){Yt=!0;const e=window.codeBlockPro?.pluginUrl+"build/shiki/";l=(0,s.applyFilters)("blocks.codeBlockPro.assetDir",e),Le=l.endsWith("/")?l:l+"/"}var l;const{data:c,error:u}=zt({theme:t,lang:n,ready:o&&a},Xt);return(0,r.useEffect)((()=>{const e=window.codeBlockPro?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{Ne=e,i(!0)}))}),[]),{highlighter:c,error:u,loading:!c&&!u||!a}},en=q()(Z(J(((e,t)=>({previousLanguage:"javascript",setPreviousLanguage(n){e({previousLanguage:n}),t().addRecentLanguage(n)},recentLanguages:[],addRecentLanguage(t){e((e=>{var n;return e.recentLanguages.includes(t)?e:{recentLanguages:[...null!==(n=e.recentLanguages?.slice(-2))&&void 0!==n?n:[],t]}}))}})),{name:"Code Block Pro Language"}),{name:"code-block-pro-last-language",getStorage:()=>localStorage,partialize:e=>{var t,n;return{previousLanguage:null!==(t=e?.previousLanguage)&&void 0!==t?t:null,recentLanguages:null!==(n=e?.recentLanguages)&&void 0!==n?n:[]}}})),tn=(e,t)=>{try{return JSON.parse(`[${null!=e?e:""}]`).map((e=>{const n=isNaN(Number(t))?0:Math.max(Number(t)-1,0);return"number"==typeof e?e-n:Array.from({length:e[1]-e[0]+1},((t,r)=>e[0]+r-n))})).filter((e=>!Array.isArray(e)||e?.length>0)).flat().filter((e=>e>=0))}catch(e){return[]}},nn=e=>{const t=JSON.parse(`[${null!=e?e:""}]`).filter((e=>Array.isArray(e))),n=t.some((e=>e.some((e=>Array.isArray(e)))));if(n)throw new Error("Nested arrays not allowed");if(t.some((e=>e[0]>=e[1])))throw new Error("Nested arrays must be in order");return!0},rn=e=>{let{attributes:t,setAttributes:n}=e;const{language:o,theme:a,code:l="",bgColor:c,textColor:u,disablePadding:h,lineNumbersWidth:g,lineNumbers:m,startingLineNumber:f,footerType:b,fontSize:y,fontFamily:v,lineHeight:_,lineBlurs:k,lineHighlights:S,enableBlurring:C,enableHighlighting:w,seeMoreAfterLine:x,seeMoreTransition:E,enableMaxHeight:L,editorHeight:N}=t,T=(0,r.useRef)(null),{previousLanguage:j}=en(),{highlighter:P,error:A,loading:O}=Zt({theme:a,lang:null!=o?o:j}),R=b&&"none"!==b;(e=>{let{attributes:t,setAttributes:n}=e;const{theme:o,fontSize:a,fontFamily:s,lineHeight:i,copyButton:l,headerType:c,footerType:u,clampFonts:d,disablePadding:p,lineNumbers:h}=t,{previousSettings:g}=ee(),{previousTheme:m,previousFontSize:f,previousFontFamily:b,previousLineHeight:y,previousHeaderType:v,previousFooterType:_,previousClampFonts:k,previousDisablePadding:S,previousLineNumbers:C}=ae(),w=(0,r.useRef)(!1);(0,r.useEffect)((()=>{w.current||void 0===l&&g.copyButton&&n({copyButton:g.copyButton})}),[g,l,n]),(0,r.useEffect)((()=>{w.current||!o&&m&&n({theme:m})}),[m,o,n]),(0,r.useEffect)((()=>{w.current||!a&&f&&n({fontSize:f})}),[f,a,n]),(0,r.useEffect)((()=>{w.current||s||""===s||void 0===b||n({fontFamily:b})}),[b,s,n]),(0,r.useEffect)((()=>{w.current||!i&&y&&n({lineHeight:y})}),[y,i,n]),(0,r.useEffect)((()=>{w.current||!c&&v&&n({headerType:v})}),[v,c,n]),(0,r.useEffect)((()=>{w.current||void 0===u&&void 0!==_&&n({footerType:_})}),[_,u,n]),(0,r.useEffect)((()=>{w.current||void 0===d&&void 0!==k&&n({clampFonts:k})}),[k,d,n]),(0,r.useEffect)((()=>{w.current||void 0===p&&void 0!==S&&n({disablePadding:S})}),[S,p,n]),(0,r.useEffect)((()=>{w.current||void 0===h&&void 0!==C&&n({lineNumbers:C})}),[C,h,n]),(0,r.useEffect)((()=>{requestAnimationFrame((()=>{w.current=!0}))}),[])})({attributes:t,setAttributes:n});const I=(0,r.useCallback)((()=>w?tn(S,f).map((e=>({line:e,classes:["cbp-line-highlight"]}))):[]),[w,S,f]),B=(0,r.useCallback)((()=>C?tn(k,f).map((e=>({line:e,classes:["cbp-no-blur"]}))):[]),[C,k,f]);return(0,r.useEffect)((()=>{P&&n({bgColor:P.getBackgroundColor(),textColor:P.getForegroundColor()})}),[a,P,n]),(0,r.useEffect)((()=>{if(!P)return;const e=null!=o?o:j,r=Qt(e),a=(0,p.decodeEntities)(l),i=[...I(),...B(),L&&!Number.isNaN(x)?{line:Number(x),classes:["cbp-see-more-line",E?"cbp-see-more-transition":""]}:{}],c="ansi"===e?P.ansiToHtml(a,{lineOptions:i}):P.codeToHtml(a,{lang:r,lineOptions:i}),d=(0,s.applyFilters)("blocks.codeBlockPro.codeHTML",c,t),h=F(u).saturate(.5).alpha(.2).toRgbString();n({codeHTML:d,lineHighlightColor:h})}),[P,x,E,u,l,L,o,n,j,t,S,k,B,I]),(0,r.useLayoutEffect)((()=>{var e,t,r;if(!T.current)return;if(!m)return void n({lineNumbersWidth:void 0});const o=Array.from(null!==(e=T?.current?.querySelectorAll(".line"))&&void 0!==e?e:[])?.at(-1);o?.classList?.add("cbp-line-number-width-forced");const a=null!==(t=o?.getBoundingClientRect()?.width)&&void 0!==t?t:0;o?.classList.add("cbp-line-number-disabled");const s=null!==(r=o?.getBoundingClientRect()?.width)&&void 0!==r?r:0;o?.classList.remove("cbp-line-number-disabled"),o?.classList?.remove("cbp-line-number-width-forced"),a-s>0&&n({lineNumbersWidth:a-s-12})}),[m,f,l,O,A,T,n,y,v,_]),O||P?O&&l||A?(0,r.createElement)("div",{className:"p-6 px-4 text-left",style:{backgroundColor:c,color:u}},null!==(M=A?.message)&&void 0!==M?M:""):(0,r.createElement)("div",{ref:T,style:{maxHeight:Number(N)?Number(N):void 0,overflow:Number(N)?"auto":void 0}},(0,r.createElement)(H(),{value:(0,p.decodeEntities)(l),onValueChange:e=>n({code:(0,d.escapeHTML)(e)}),padding:{top:h?0:16,bottom:h||R?0:16,left:!m&&h?0:m?h?(null!=g?g:0)+16:(null!=g?g:0)+32:16,right:0},style:{backgroundColor:c,color:u},onKeyDown:e=>"Tab"===e.key&&T.current?.querySelector("textarea")?.focus(),highlight:e=>P?.codeToHtml((0,p.decodeEntities)(e),{lang:Qt(null!=o?o:j),lineOptions:[...I(),...B()]})?.replace(/<\/?[pre|code][^>]*>/g,"")})):(0,r.createElement)("div",{className:"p-8 px-4 text-left",style:{backgroundColor:c,color:u}},(0,i.sprintf)((0,i.__)("Theme %s not found. Please select a different theme.","code-block-pro"),a));var M},on=window.wp.components,an=window.wp.data,sn=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"#1e1e1e",strokeWidth:"2"},(0,r.createElement)("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}));function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ln.apply(this,arguments)}const cn=e=>{let{language:t,bgColor:n,textColor:o,footerString:a,footerLink:s,footerLinkTarget:i,disablePadding:l}=e;const c=F(n),u=F(o),d=u.isDark()?u.lighten(.05):u.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"flex-end",padding:l?"10px 0 0 0":"10px",width:"100%",justifyContent:"flex-end",backgroundColor:c.toHex(),color:d.toHex(),fontSize:"12px",lineHeight:"1",position:"relative"}},(0,r.createElement)(un,{text:a||Jt[t],color:d.toHex(),link:s,linkTarget:i}))},un=e=>{let{text:t,color:n,link:o,linkTarget:a}=e;if(!o)return(0,r.createElement)(r.Fragment,null,t);const s={color:n,textDecoration:"none",fontWeight:"normal",border:"none",background:"none",borderRadius:"0",padding:"0",margin:"0"};return a?(0,r.createElement)("a",{className:"cbp-footer-link",href:o,style:s,target:"_blank",rel:"noopener noreferrer"},t):(0,r.createElement)("a",{className:"cbp-footer-link",href:o,style:s},t)},dn=e=>{let{language:t,bgColor:n,textColor:o,footerString:a,footerLink:s,footerLinkTarget:i,disablePadding:l}=e;const c=F(n),u=F(o),d=u.isDark()?u.lighten(.05):u.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"flex-end",padding:l?"10px 0 0 0":"10px",width:"100%",justifyContent:"flex-start",backgroundColor:c.toHex(),color:d.toHex(),fontSize:"12px",lineHeight:"1",position:"relative"}},(0,r.createElement)(pn,{text:a||Jt[t],color:d.toHex(),link:s,linkTarget:i}))},pn=e=>{let{text:t,color:n,link:o,linkTarget:a}=e;if(!o)return(0,r.createElement)(r.Fragment,null,t);const s={color:n,textDecoration:"none",fontWeight:"normal",border:"none",background:"none",borderRadius:"0",padding:"0",margin:"0"};return a?(0,r.createElement)("a",{className:"cbp-footer-link",href:o,style:s,target:"_blank",rel:"noopener noreferrer"},t):(0,r.createElement)("a",{className:"cbp-footer-link",href:o,style:s},t)},hn=e=>{let{attributes:t,onClick:n}=e;const{footerType:o,...a}=t,{bgColor:s}=t,l={none:(0,i.__)("None","code-block-pro"),simpleStringEnd:(0,i.__)("Simple string end","code-block-pro"),simpleStringStart:(0,i.__)("Simple string start","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(l).map((e=>{let[t,l]=e;return(0,r.createElement)(on.BaseControl,{id:`code-block-pro-footer-${t}`,label:o===t?(0,i.sprintf)((0,i.__)("%s (current)","code-block-pro"),l):l,help:["simpleStringEnd","simpleStringStart"].includes(t)?(0,i.__)("Update extras in the Settings panel","code-block-pro"):void 0,key:t},(0,r.createElement)("button",{id:`code-block-pro-footer-${t}`,type:"button",onClick:()=>n(t),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:s}}),(0,r.createElement)(gn,ln({footerType:t},a)))))})))},gn=e=>{const{footerType:t}=e;return"simpleStringEnd"===t?(0,r.createElement)(cn,e):"simpleStringStart"===t?(0,r.createElement)(dn,e):null},mn=e=>{let{bgColor:t}=e;return(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:t}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:"#FF5F56",stroke:"#E0443E",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:"#FFBD2E",stroke:"#DEA123",strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:"#27C93F",stroke:"#1AAB29",strokeWidth:".5"}))))},fn=e=>{let{textColor:t,bgColor:n}=e;return(0,r.createElement)("span",{style:{display:"block",padding:"16px 0 0 16px",marginBottom:"-1px",width:"100%",textAlign:"left",backgroundColor:n}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:54,height:14,viewBox:"0 0 54 14"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"6",cy:"6",r:"6",fill:F(t).alpha(.2).toHex(),stroke:F(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"26",cy:"6",r:"6",fill:F(t).alpha(.2).toHex(),stroke:F(t).alpha(.3).toHex(),strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"46",cy:"6",r:"6",fill:F(t).alpha(.2).toHex(),stroke:F(t).alpha(.3).toHex(),strokeWidth:".5"}))))},bn=e=>{let{bgColor:t}=e;const n=F(t),o=n.isDark()?n.lighten(.05):n.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:o.toHex()}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:62,height:20,viewBox:"0 0 62 20"},(0,r.createElement)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},(0,r.createElement)("circle",{cx:"8",cy:"8",r:"8",fill:t,stroke:t,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"30",cy:"8",r:"8",fill:t,stroke:t,strokeWidth:".5"}),(0,r.createElement)("circle",{cx:"52",cy:"8",r:"8",fill:t,stroke:t,strokeWidth:".5"}))))},yn=e=>{let{language:t,bgColor:n,textColor:o,headerString:a}=e;const s=F(n),i=s.isDark()?s.lighten(.05):s.darken(.05),l=F(o),c=l.isDark()?l.lighten(.05):l.darken(.05);return(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",padding:"10px 0px 10px 16px",marginBottom:"-2px",width:"100%",textAlign:"left",backgroundColor:i.toHex(),color:c.toHex()}},a||Jt[t])},vn=e=>{let{attributes:t,onClick:n}=e;const{headerType:o,...a}=t,{bgColor:s}=t,l={none:(0,i.__)("None","code-block-pro"),headlights:(0,i.__)("Headlights","code-block-pro"),headlightsMuted:(0,i.__)("Headlights muted","code-block-pro"),headlightsMutedAlt:(0,i.__)("Headlights muted alt","code-block-pro"),simpleString:(0,i.__)("Simple string","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(l).map((e=>{let[t,l]=e;return(0,r.createElement)(on.BaseControl,{id:`code-block-pro-header-${t}`,label:o===t?(0,i.sprintf)((0,i.__)("%s (current)","code-block-pro"),l):l,help:["simpleString"].includes(t)?(0,i.__)("Update extras in the Settings panel","code-block-pro"):void 0,key:t},(0,r.createElement)("button",{id:`code-block-pro-header-${t}`,type:"button",onClick:()=>n(t),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)(kn,ln({headerType:t},a)),(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:s}}))))})))},kn=e=>{const{headerType:t}=e;return"headlights"===t?(0,r.createElement)(mn,e):"headlightsMuted"===t?(0,r.createElement)(fn,e):"headlightsMutedAlt"===t?(0,r.createElement)(bn,e):"simpleString"===t?(0,r.createElement)(yn,e):null},Sn=e=>{let{bgColor:t,textColor:n,seeMoreString:o,disablePadding:a,context:s,footerType:l}=e;const c=F(t).toHex(),u=F(n),d=u.isDark()?u.lighten(.05).toHex():u.darken(.05).toHex(),p="none"!==l,h="editor"===s;return(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===s?"none":"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",backgroundColor:"transparent",fontSize:"12px",lineHeight:"1",position:"relative",marginBottom:p||h?0:"-16px",height:p&&!h?"16px":"32px"}},(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:d,backgroundColor:c,padding:a?"10px 0 0":"10px 16px",cursor:"default"}},o||(0,i.__)("Expand","code-block-pro")))},Cn=e=>{let{bgColor:t,textColor:n,seeMoreString:o,disablePadding:a,context:s,footerType:l}=e;const c=F(t).toHex(),u=F(n),d=u.isDark()?u.lighten(.05).toHex():u.darken(.05).toHex(),p="none"!==l,h="editor"===s;return(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===s?"none":"flex",flexDirection:"column",alignItems:"flex-end",width:"100%",backgroundColor:"transparent",fontSize:"12px",lineHeight:"1",position:"relative",marginBottom:p||h?0:"-16px",height:p&&!h?"16px":"32px"}},(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:d,backgroundColor:c,padding:a?"10px 0 0":"10px 16px",cursor:"default"}},o||(0,i.__)("Expand","code-block-pro")))},wn=e=>{let{bgColor:t,textColor:n,seeMoreString:o,context:a,footerType:s}=e;const l=F(t),c=F(n),u=l.isDark()?c.lighten(.15).toHex():c.darken(.15).toHex(),d=l.isDark()?l.lighten(.1):l.darken(.1),p="none"!==s,h="editor"===a;return(0,r.createElement)("div",{className:"cbp-see-more-container",style:{display:"front"===a?"none":"flex",flexDirection:"column",alignItems:"center",width:"100%",fontSize:"12px",lineHeight:"1",position:"relative",paddingTop:p?0:"4px",marginBottom:p||h?0:"-16px",height:p&&!h?0:"32px"}},!p&&(0,r.createElement)("div",{style:{backgroundColor:l.toHex(),height:"50%",position:"absolute",top:0,left:0,right:0},"aria-hidden":"true"}),(0,r.createElement)("span",{role:h?"presentation":"button",tabIndex:h?-1:0,className:"cbp-see-more-simple-btn cbp-see-more-simple-btn-hover",style:{color:u,backgroundColor:d.toHex(),padding:"6px 14px",cursor:"default",position:"relative",borderRadius:"6px",transform:p?"translateY(-50%)":void 0}},o||(0,i.__)("Expand","code-block-pro")))},xn=e=>{let{attributes:t,onClick:n}=e;const{seeMoreType:o,...a}=t,{bgColor:s}=t,l={none:(0,i.__)("None","code-block-pro"),roundCenter:(0,i.__)("See more center","code-block-pro"),blockLeft:(0,i.__)("See more left","code-block-pro"),blockRight:(0,i.__)("See more right","code-block-pro")};return(0,r.createElement)("div",{className:"code-block-pro-editor"},Object.entries(l).map((e=>{let[t,l]=e;return(0,r.createElement)(on.BaseControl,{id:`code-block-pro-see-more-${t}`,label:o!==t&&o?l:(0,i.sprintf)((0,i.__)("%s (current)","code-block-pro"),l),key:t},(0,r.createElement)("button",{id:`code-block-pro-see-more-${t}`,type:"button",onClick:()=>n(t),className:"p-0 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto"},(0,r.createElement)("span",{className:"pointer-events-none w-full"},(0,r.createElement)("span",{className:"block w-full h-8",style:{backgroundColor:s}}),(0,r.createElement)(En,ln({seeMoreType:t,context:"editor"},a)))))})))},En=e=>{const{seeMoreType:t,enableMaxHeight:n,context:o}=e;return n?"roundCenter"===t?(0,r.createElement)(wn,ln({},e,{context:o})):"blockLeft"===t?(0,r.createElement)(Sn,ln({},e,{context:o})):"blockRight"===t?(0,r.createElement)(Cn,ln({},e,{context:o})):null:null},Ln=e=>{let{attributes:t,setAttributes:n}=e;const[o,a]=(0,r.useState)(t.language),{previousLanguage:s,setPreviousLanguage:i}=en();return(0,r.useEffect)((()=>{o||n({language:s})}),[o,s,n]),(0,r.useEffect)((()=>{a(t.language)}),[t.language]),[o,e=>{n({language:e}),a(e),i(e)}]},Nn=e=>{let{value:t,onChange:n}=e;return(0,r.createElement)(on.FontSizePicker,{onChange:e=>{n(null!=e?e:".875rem")},value:t,fontSizes:[{name:"Tiny",size:".75rem",slug:"tiny"},{name:"Small",size:".875rem",slug:"small"},{name:"Normal",size:"1rem",slug:"normal"},{name:"Big",size:"1.125rem",slug:"big"}]})},Tn=e=>{let{value:t,onChange:n}=e;return(0,r.createElement)(on.FontSizePicker,{onChange:e=>{n(null!=e?e:".875rem")},value:t,fontSizes:[{name:"None",size:"1rem",slug:"none"},{name:"Tight",size:"1.25rem",slug:"tight"},{name:"Normal",size:"1.5rem",slug:"normal"},{name:"Relaxed",size:"1.625rem",slug:"relaxed"}]})},jn=e=>{let{value:t,onChange:n}=e;const o={"":(0,i.__)("System Default","code-block-pro"),"Code-Pro-JetBrains-Mono":"JetBrains Mono","Code-Pro-Fira-Code":"Fira Code"};return(0,r.createElement)(on.SelectControl,{id:"code-block-pro-font-family",label:(0,i.__)("Font Family","code-block-pro"),help:(0,i.__)("Fonts only render on the frontend.","code-block-pro"),value:t,onChange:n,options:Object.entries(o).map((e=>{let[t,n]=e;return{label:n,value:t}}))})},Pn=e=>{var t,n,o,a,s;let{attributes:l,setAttributes:c}=e;const[u,d]=(0,r.useState)(null!==(t=l?.editorHeight)&&void 0!==t&&t),[p,h]=(0,r.useState)(null!==(n=l?.enableMaxHeight)&&void 0!==n&&n),[g,m]=(0,r.useState)(null!==(o=l?.seeMoreString)&&void 0!==o?o:""),[f,b]=(0,r.useState)(null!==(a=l?.seeMoreAfterLine)&&void 0!==a?a:""),[y,v]=(0,r.useState)(null!==(s=l?.seeMoreTransition)&&void 0!==s&&s),_=(0,r.useRef)(Number(l?.editorHeight)>0);return(0,r.useEffect)((()=>{c({editorHeight:u,seeMoreString:g,seeMoreAfterLine:f,seeMoreTransition:y,enableMaxHeight:p})}),[u,g,f,y,c,p]),(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Max Height","code-block-pro"),initialOpen:_.current},(0,r.createElement)(on.BaseControl,{id:"code-block-pro-editor-height"},(0,r.createElement)(on.TextControl,{spellCheck:!1,autoComplete:"off","data-cy-cbp":"editor-height",type:"number",label:(0,i.__)("Max editor height","code-block-pro"),help:(0,i.__)("Admin only. Set to 0 to disable.","code-block-pro"),placeholder:"0",onChange:d,value:u})),(0,r.createElement)(on.BaseControl,{id:"code-block-pro-see-more-enabled"},(0,r.createElement)(on.CheckboxControl,{label:(0,i.__)("Enable max height","code-block-pro"),"data-cy":"enable-max-height",checked:p,onChange:h})),p&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(on.BaseControl,{id:"code-block-pro-see-more-text"},(0,r.createElement)(on.TextControl,{"data-cy":"see-more-text",spellCheck:!1,autoComplete:"off",label:(0,i.__)("See more text","code-block-pro"),placeholder:(0,i.__)("Expand","code-block-pro"),onChange:m,value:null!=g?g:""})),(0,r.createElement)(on.BaseControl,{id:"code-block-pro-see-more-line"},(0,r.createElement)(on.TextControl,{"data-cy":"see-more-line",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Hide after line","code-block-pro"),help:(0,i.__)("Enter the last visible line number.","code-block-pro"),onChange:b,value:f})),(0,r.createElement)(on.BaseControl,{id:"code-block-pro-see-more-transition"},(0,r.createElement)(on.CheckboxControl,{label:(0,i.__)("Animate height transition","code-block-pro"),checked:y,onChange:v})),(0,r.createElement)(xn,{attributes:l,onClick:e=>{c({seeMoreType:e})}})))},An="/wp/v2/settings",On=async e=>(await ne()({path:An}))?.[e],Rn=q()(Z(J((e=>({seenNotices:[],hiddenThemes:[],setSeenNotice(t){e((e=>e.seenNotices.includes(t)?e:{seenNotices:[...e.seenNotices,t]}))},toggleHiddenTheme(t){e((e=>({hiddenThemes:e.hiddenThemes.includes(t)?e.hiddenThemes.filter((e=>e!==t)):[...e.hiddenThemes,t]})))}})),{name:"Code Block Pro Settings"}),{name:"code_block_pro_settings_2",getStorage:()=>({getItem:async e=>{var t;const n=await On(e);return JSON.stringify({version:null!==(t=n?.version)&&void 0!==t?t:0,state:n})},setItem:async(e,t)=>{var n;const{state:r,version:o}=JSON.parse(t),a={[e]:Object.assign(null!==(n=await On(e))&&void 0!==n?n:{},r,o)};await ne()({path:An,method:"POST",data:a})},removeItem:async e=>{const t={[e]:null};return await ne()({path:An,method:"POST",data:t})}})})),In=()=>Object.entries((0,s.applyFilters)("blocks.codeBlockPro.themes",Ut)).map((e=>{let[t,{name:n,priority:r}]=e;return{name:n,slug:t,priority:r}})),Bn=()=>In().filter((e=>{let{priority:t}=e;return t})),Mn=e=>{let{search:t,setSearch:n}=e;const[o,a]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(on.BaseControl,{id:"code-block-pro-filter-themes"},(0,r.createElement)(on.TextControl,{id:"code-block-pro-search-themes",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Search themes","code-block-pro"),onChange:n,value:t}),(0,r.createElement)(on.Button,{className:"block -mt-4 mb-4","data-cy":"manage-themes",variant:"link",onClick:()=>a(!0)},(0,i.__)("Manage themes","code-block-pro")))),o&&(0,r.createElement)(Fn,{closeModal:()=>a(!1)}))},Fn=e=>{let{closeModal:t}=e;const{hiddenThemes:n,toggleHiddenTheme:o}=Rn(),a=Bn();return(0,r.createElement)(on.Modal,{title:(0,i.__)("Manage Themes","code-block-pro"),onRequestClose:t,className:"code-block-pro-editor"},(0,r.createElement)("div",{id:"code-block-pro-theme-manager",className:"flex flex-col gap-4"},a?.length>0?(0,r.createElement)("div",{className:"flex flex-col gap-4 bg-gray-100 p-4"},(0,r.createElement)("h2",{className:"m-0 my-2 text-center"},(0,i.__)("Priority themes","code-block-pro")),(0,r.createElement)("div",{className:"md:grid gap-3 grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},a.map((e=>{let{name:t,slug:a}=e;return(0,r.createElement)(on.ToggleControl,{key:a,checked:!n.includes(a),label:t,onChange:()=>o(a)})})))):null,(0,r.createElement)("div",{className:c()("md:grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",{"p-4":a?.length>0})},In().filter((e=>{let{priority:t}=e;return!t})).map((e=>{let{name:t,slug:a}=e;return(0,r.createElement)(on.ToggleControl,{key:a,checked:!n.includes(a),label:t,onChange:()=>o(a)})}))),a?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(on.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=manage-themes"},(0,i.__)("Get 25+ more themes here","code-block-pro")))))},Dn=e=>{if(e)return[e,"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","monospace"].join(",")},Hn=(e,t)=>{if(e)return t&&parseFloat(e)?`clamp(${16*parseFloat(e)}px, ${e}, ${24*parseFloat(e)}px)`:e},Gn=e=>{let{id:t,theme:n,lang:o,onClick:a,code:s,fontSize:l,lineHeight:c,fontFamily:u,clampFonts:d}=e;const[h,g]=(0,r.useState)(!1),{highlighter:m,error:f,loading:b}=Zt({theme:n,lang:s?o:"c",ready:h}),[y,v]=(0,r.useState)(""),[_,k]=(0,r.useState)("#ffffff"),S=(0,r.useRef)(new IntersectionObserver((e=>{let[t]=e;t.isIntersecting&&(g(!0),S.current.disconnect())}))),C="\nfloat Q_rsqrt( float number )\n{\n long i;\n float x2, y;\n const float threehalfs = 1.5F;\n\n x2 = number * 0.5F;\n y = number;\n i = * ( long * ) &y; // evil floating point bit level hacking\n i = 0x5f3759df - ( i >> 1 ); // what the frack?\n y = * ( float * ) &i;\n y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration\n// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed\n\n return y;\n}".trim();return(0,r.useEffect)((()=>{if(!m)return;if("ansi"===o&&s)return v(m.ansiToHtml(s)),void k(m.getBackgroundColor());const e=s?m.codeToHtml((0,p.decodeEntities)(s),{lang:o}):m.codeToHtml((0,p.decodeEntities)(C),{lang:"c"});v(e),k(m.getBackgroundColor())}),[m,o,s,C]),(0,r.createElement)("button",{id:t,type:"button",onClick:a,className:"cbp-theme-preview p-4 px-3 border flex items-start w-full text-left outline-none cursor-pointer no-underline ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp overflow-x-auto max-h-80 overflow-y-hidden",style:{backgroundColor:_,minHeight:"50px"}},b||f||!h?(0,r.createElement)("span",{id:t,ref:e=>{e&&S.current.observe(e)},style:{minHeight:"200px"},className:"flex items-center justify-center p-6 w-full"},f?.message||(0,i.__)("Loading...","code-block-pro")):(0,r.createElement)("span",{className:"pointer-events-none",style:{fontSize:Hn(l,d),fontFamily:Dn(u),lineHeight:Hn(c,d)},dangerouslySetInnerHTML:{__html:y}}))},$n=e=>{const{hiddenThemes:t}=Rn(),n=(0,s.applyFilters)("blocks.codeBlockPro.themes",Ut),o=Object.entries(n).filter((e=>{let[n]=e;return!t.includes(n)})).filter((t=>{let[n]=t;return n.includes(e.search.toLocaleLowerCase())})).map((e=>{let[t,{name:n,priority:r}]=e;return{name:n,slug:t,priority:r}})).sort(((e,t)=>e.priority===t.priority?0:e.priority?-1:1)),a=Bn();return(0,r.createElement)("div",{className:"code-block-pro-editor"},e.search?.length>0?(0,r.createElement)(on.BaseControl,{id:"add-on-themes"},a?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(on.ExternalLink,{href:"https://code-block-pro.com/?utm_campaign=notice&utm_source=search"},(0,i.__)("Get 25+ more themes here","code-block-pro")))):null,o.slice(0,9).map((t=>{let{name:n,slug:o}=t;return(0,r.createElement)(Wn,ln({key:o,slug:o,name:n},e))})),e.search?.length>0?null:(0,r.createElement)(on.BaseControl,{id:"add-on-themes"},a?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(on.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=mid-themes"},(0,i.__)("Get 25+ more themes here","code-block-pro")))),o.slice(9).map((t=>{let{name:n,slug:o}=t;return(0,r.createElement)(Wn,ln({key:o,slug:o,name:n},e))})),e.search?.length>0?null:(0,r.createElement)(on.BaseControl,{id:"add-on-themes"},a?.length>0?null:(0,r.createElement)("div",{className:"font-semibold text-base"},(0,r.createElement)(on.ExternalLink,{href:"https://code-block-pro.com/themes?utm_campaign=notice&utm_source=below-themes"},(0,i.__)("Get 25+ more themes here","code-block-pro")))))},Wn=e=>{let{slug:t,name:n,theme:o,language:a,code:s,fontSize:l,lineHeight:c,fontFamily:u,clampFonts:d,onClick:p}=e;return(0,r.createElement)(on.BaseControl,{id:`code-block-pro-theme-${t}`,label:o===t?(0,i.sprintf)((0,i.__)("%s (current)","code-block-pro"),n):n},(0,r.createElement)(Gn,{id:`code-block-pro-theme-${t}`,theme:t,lang:a,fontSize:l,lineHeight:c,fontFamily:u,clampFonts:d,onClick:()=>{p(t)},code:s}))},zn=e=>{let{attributes:t,setAttributes:n}=e;const{updateThemeHistory:o}=ae(),[a,s]=(0,r.useState)(""),l=(()=>{const[e,t]=(0,r.useState)(Rn.persist.hasHydrated);return(0,r.useEffect)((()=>{const e=Rn.persist.onFinishHydration((()=>t(!0)));return()=>{e()}}),[]),e})();return(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Themes","code-block-pro"),initialOpen:!1},l&&(0,r.createElement)(Mn,{search:a,setSearch:s}),l&&(0,r.createElement)($n,ln({},t,{search:a,onClick:e=>{n({theme:e}),o({...t,theme:e})}})))},Un=e=>{var t,n,o;let{attributes:a,setAttributes:s}=e;const l=(0,r.useRef)(null);return(0,r.useEffect)((()=>{try{nn(a.lineBlurs),l.current?.querySelector("input")?.classList.remove("cbp-input-error")}catch(e){console.error(e),l.current?.querySelector("input")?.classList.add("cbp-input-error")}}),[a.lineBlurs]),(0,r.createElement)(on.BaseControl,{id:"code-block-pro-show-blurring"},(0,r.createElement)(on.CheckboxControl,{"data-cy":"enable-blur",label:(0,i.__)("Enable blur emphesis","code-block-pro"),help:(0,i.__)("Blur surrounding code to focus on specific lines.","code-block-pro"),checked:null!==(t=a.enableBlurring)&&void 0!==t&&t,onChange:e=>{s({enableBlurring:e})}}),a.enableBlurring&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-show-blurred-lines"},(0,r.createElement)("div",{ref:l},(0,r.createElement)(on.TextControl,{id:"code-block-pro-show-blurred-lines",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Focus on the following","code-block-pro"),help:(0,i.sprintf)((0,i.__)("Try %1$s or %2$s for a range.","code-block-pro"),"1,5","1,[3,5]"),onChange:e=>{s({lineBlurs:e})},value:null!==(n=a?.lineBlurs)&&void 0!==n?n:""})),(0,r.createElement)(on.CheckboxControl,{label:(0,i.__)("Remove blur on hover","code-block-pro"),checked:null!==(o=a.removeBlurOnHover)&&void 0!==o&&o,onChange:e=>{s({removeBlurOnHover:e})}})))},qn=e=>{var t,n;let{attributes:o,setAttributes:a}=e;const s=(0,r.useRef)(null);return(0,r.useEffect)((()=>{try{nn(o.lineHighlights),s.current?.querySelector("input")?.classList.remove("cbp-input-error")}catch(e){console.error(e),s.current?.querySelector("input")?.classList.add("cbp-input-error")}}),[o.lineHighlights]),(0,r.createElement)(on.BaseControl,{id:"code-block-pro-show-highlighting"},(0,r.createElement)(on.CheckboxControl,{"data-cy":"enable-highlighting",label:(0,i.__)("Enable line highlighting","code-block-pro"),help:(0,i.__)("Highlight individual lines to bring attention to specific code.","code-block-pro"),checked:null!==(t=o.enableHighlighting)&&void 0!==t&&t,onChange:e=>{a({enableHighlighting:e})}}),o.enableHighlighting&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-show-highlighted-lines"},(0,r.createElement)("div",{ref:s},(0,r.createElement)(on.TextControl,{id:"code-block-pro-show-highlighted-lines",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Highlight the following","code-block-pro"),help:(0,i.sprintf)((0,i.__)("Try %1$s or %2$s for a range.","code-block-pro"),"1,5","1,[3,5]"),onChange:e=>{a({lineHighlights:e})},value:null!==(n=o?.lineHighlights)&&void 0!==n?n:""}))))},Vn=e=>{var t,n,a;let{attributes:s,setAttributes:l}=e;const[c,u]=Ln({attributes:s,setAttributes:l}),{recentLanguages:d}=en(),{updateThemeHistory:p}=ae(),{setPreviousSettings:h}=ee(),{headerType:g,footerType:m}=s,f=["simpleStringEnd","simpleStringStart"],b=["simpleString"].includes(g),y=f.includes(m),v=f.includes(m),_=f.includes(m);return(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Settings","code-block-pro"),initialOpen:!0},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(on.BaseControl,{id:"code-block-pro-language"},(0,r.createElement)(on.SelectControl,{id:"code-block-pro-language",label:(0,i.__)("Code Language","code-block-pro"),"data-cy-cbp":"language-select",value:c,onChange:u,help:"ansi"===c?(0,i.__)("Some code themes may not render ANSI correctly. Control sequences render only on the front.","code-block-pro"):null,options:Object.entries(Jt).map((e=>{let[t,n]=e;return{label:n.replace("ANSI","ANSI (experimental)"),value:t}}))}),d?.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"mb-2 block"},(0,i.__)("Recently Used","code-block-pro")),(0,r.createElement)("div",{className:"flex gap-1"},d?.map((e=>{var t;return(0,r.createElement)(on.Button,{key:e,className:"bg-gray-100 text-black no-underline p-1 px-2 ",variant:"link",onClick:()=>u(e)},null!==(t=Jt[e])&&void 0!==t?t:e)})))):null),b&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-header-text"},(0,r.createElement)(on.TextControl,{id:"code-block-pro-header-text",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Header Text","code-block-pro"),placeholder:Jt[c],onChange:e=>{l({headerString:e})},value:null!==(t=s.headerString)&&void 0!==t?t:""})),y&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-footer-text"},(0,r.createElement)(on.TextControl,{id:"code-block-pro-footer-text",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Footer Text","code-block-pro"),placeholder:Jt[c],onChange:e=>{l({footerString:e})},value:null!==(n=s.footerString)&&void 0!==n?n:""})),v&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-footer-link"},(0,r.createElement)(on.TextControl,{id:"code-block-pro-footer-link",spellCheck:!1,type:"url",autoComplete:"off",label:(0,i.__)("Footer Link","code-block-pro"),placeholder:"https://example.com",help:(0,i.__)("Leave blank to disable","code-block-pro"),onChange:e=>{l({footerLink:e})},value:null!==(a=s.footerLink)&&void 0!==a?a:""})),_&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-footer-link-target"},(0,r.createElement)(on.CheckboxControl,{id:"code-block-pro-footer-link-target",label:(0,i.__)("Open in new tab?","code-block-pro"),checked:s.footerLinkTarget,onChange:e=>{l({footerLinkTarget:e}),p({...s,footerLinkTarget:e})}})))),(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Line Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor"},(0,r.createElement)(on.BaseControl,{id:"code-block-pro-show-line-numbers"},(0,r.createElement)(on.CheckboxControl,{"data-cy":"show-line-numbers",label:(0,i.__)("Enable line numbers","code-block-pro"),help:(0,i.__)("Enable line numbers and set a starting number.","code-block-pro"),checked:s.lineNumbers,onChange:e=>{l({lineNumbers:e}),p({...s,lineNumbers:e})}}),s.lineNumbers&&(0,r.createElement)(on.BaseControl,{id:"code-block-pro-line-number-start"},(0,r.createElement)(on.TextControl,{id:"code-block-pro-line-number-start",spellCheck:!1,autoComplete:"off",label:(0,i.__)("Start from","code-block-pro"),onChange:e=>{l({startingLineNumber:e})},value:s.startingLineNumber}))),(0,r.createElement)(qn,{attributes:s,setAttributes:l}),(0,r.createElement)(Un,{attributes:s,setAttributes:l}))),(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Header Type","code-block-pro"),initialOpen:!1},(0,r.createElement)(vn,{attributes:s,onClick:e=>{l({headerType:e}),p({...s,headerType:e})}})),(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Footer Type","code-block-pro"),initialOpen:!1},(0,r.createElement)(hn,{attributes:s,onClick:e=>{l({footerType:e}),p({...s,footerType:e})}})),(0,r.createElement)(zn,{attributes:s,setAttributes:l}),(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Styling","code-block-pro"),initialOpen:!1},(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-size-select"},(0,r.createElement)("h2",{className:"m-0"},(0,i.__)("Font Size","code-block-pro")),(0,r.createElement)(Nn,{value:s.fontSize,onChange:e=>{l({fontSize:e}),p({...s,fontSize:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-line-height-select"},(0,r.createElement)("h2",{className:"m-0"},(0,i.__)("Line Height","code-block-pro")),(0,r.createElement)(Tn,{value:s.lineHeight,onChange:e=>{l({lineHeight:e}),p({...s,lineHeight:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"font-family-select"},(0,r.createElement)(jn,{value:s.fontFamily,onChange:e=>{l({fontFamily:e}),p({...s,fontFamily:e})}})),(0,r.createElement)("div",{className:"code-block-pro-editor","data-cy":"clamp-fonts"},(0,r.createElement)("div",{className:"mt-6"},(0,r.createElement)(on.CheckboxControl,{label:(0,i.__)("Clamp Values","code-block-pro"),help:(0,i.__)("Check this if your font sizes are unusually large or tiny.","code-block-pro"),checked:s.clampFonts,onChange:e=>{l({clampFonts:e}),p({...s,clampFonts:e})}})))),(0,r.createElement)(Pn,{attributes:s,setAttributes:l}),(0,r.createElement)(on.PanelBody,{title:(0,i.__)("Extra Settings","code-block-pro"),initialOpen:!1},(0,r.createElement)(on.BaseControl,{id:"code-block-pro-show-copy-button"},(0,r.createElement)(on.CheckboxControl,{"data-cy":"copy-button",label:(0,i.__)("Copy Button","code-block-pro"),help:(0,i.__)("If checked, users will be able to copy your code snippet to their clipboard.","code-block-pro"),checked:s.copyButton,onChange:e=>{h({copyButton:e}),l({copyButton:e})}})),(0,r.createElement)(on.BaseControl,{id:"code-block-pro-disable-padding"},(0,r.createElement)(on.CheckboxControl,{"data-cy":"disable-padding",label:(0,i.__)("Disable Padding","code-block-pro"),help:(0,i.__)("This is useful if you pick a theme that matches your background color, and want the code to line up to the edge of your content. You maybe need to add your own padding with CSS.","code-block-pro"),checked:s.disablePadding,onChange:e=>{l({disablePadding:e}),p({...s,disablePadding:e})}}))))},Kn=e=>{let{attributes:t,setAttributes:n}=e;const[a,s]=Ln({attributes:t,setAttributes:n});return(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(on.ToolbarGroup,{className:"code-block-pro-editor"},(0,r.createElement)(on.Dropdown,{renderContent:()=>(0,r.createElement)(Jn,{language:a,setLanguage:s}),renderToggle:e=>{var t;let{isOpen:n,onToggle:o}=e;return(0,r.createElement)(on.Button,{onClick:o,"aria-expanded":n,"aria-haspopup":"true"},(null!==(t=Jt[a])&&void 0!==t?t:a).replace("ANSI","ANSI (experimental)"))}})))},Jn=e=>{let{language:t,setLanguage:n}=e;return(0,r.createElement)(on.NavigableMenu,{orientation:"vertical",role:"menu",style:{minWidth:"200px"}},(0,r.createElement)(on.MenuGroup,{label:(0,i.__)("Select language","code-block-pro")},Object.entries(Jt).map((e=>{let[o,a]=e;return(0,r.createElement)(on.MenuItem,{key:o,role:"menuitem",style:{width:"100%"},isSelected:t===o,variant:t===o?"primary":void 0,onClick:()=>{n(o)}},a)}))))};function Qn(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),"")}const Xn=e=>{var t,n;let{attributes:o}=e;return(0,r.createElement)("span",{role:"button",tabIndex:0,"data-code":Qn(null!==(t=o.code)&&void 0!==t?t:""),style:{color:null!==(n=o?.textColor)&&void 0!==n?n:"inherit",display:"none"},"aria-label":(0,i.__)("Copy","code-block-pro"),className:"code-block-pro-copy-button"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:24,height:24},fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},(0,r.createElement)("path",{className:"with-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}),(0,r.createElement)("path",{className:"without-check",strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})))},Yn=e=>{let{attributes:t}=e;return(0,r.createElement)("div",ln({},o.useBlockProps.save({className:c()({"padding-disabled":t.disablePadding,"padding-bottom-disabled":t?.footerType&&"none"!==t?.footerType,"cbp-has-line-numbers":t.lineNumbers,"cbp-blur-enabled":t.enableBlurring,"cbp-unblur-on-hover":t.removeBlurOnHover})}),{"data-code-block-pro-font-family":t.fontFamily,style:{fontSize:Hn(t.fontSize,t.clampFonts),fontFamily:Dn(t.fontFamily),"--cbp-line-number-color":t?.lineNumbers?t.textColor:void 0,"--cbp-line-number-start":Number(t?.startingLineNumber)>1?t.startingLineNumber:void 0,"--cbp-line-number-width":t.lineNumbersWidth?`${t.lineNumbersWidth}px`:void 0,"--cbp-line-highlight-color":t?.enableHighlighting?t.lineHighlightColor:void 0,lineHeight:Hn(t.lineHeight,t.clampFonts)}}),t.code?.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(kn,t),t.copyButton&&(0,r.createElement)(Xn,{attributes:t}),(0,r.createElement)(o.RichText.Content,{value:t.codeHTML}),(0,r.createElement)(gn,t),(0,r.createElement)(En,t)):null)};(0,a.registerBlockType)(u.name,{...u,icon:sn,attributes:{code:{type:"string"},codeHTML:{type:"string"},language:{type:"string"},theme:{type:"string"},align:{type:"string"},bgColor:{type:"string",default:"#282a37"},textColor:{type:"string",default:"#f8f8f2"},fontSize:{type:"string"},fontFamily:{type:"string"},lineHeight:{type:"string"},clampFonts:{type:"boolean"},editorHeight:{type:"string"},lineNumbers:{type:"boolean"},headerType:{type:"string"},headerString:{type:"string"},disablePadding:{type:"boolean"},footerType:{type:"string"},footerString:{type:"string"},footerLink:{type:"string"},footerLinkTarget:{type:"boolean"},enableMaxHeight:{type:"boolean"},seeMoreType:{type:"string"},seeMoreString:{type:"string"},seeMoreAfterLine:{type:"string"},seeMoreTransition:{type:"boolean"},startingLineNumber:{type:"string"},lineNumbersWidth:{type:"number"},enableHighlighting:{type:"boolean"},lineHighlights:{type:"string"},lineHighlightColor:{type:"string"},enableBlurring:{type:"boolean"},lineBlurs:{type:"string"},removeBlurOnHover:{type:"boolean"},frame:{type:"boolean"},renderType:{type:"string",default:"code"},label:{type:"string",default:""},copyButton:{type:"boolean"}},supports:{html:!1,align:["wide","full"]},title:(0,i.__)("Code Pro","code-block-pro"),edit:e=>{let{attributes:t,setAttributes:n}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Vn,{attributes:t,setAttributes:n}),(0,r.createElement)(Kn,{attributes:t,setAttributes:n}),(0,r.createElement)("div",(0,o.useBlockProps)({className:c()("code-block-pro-editor",{"padding-disabled":t.disablePadding,"padding-bottom-disabled":t?.footerType&&"none"!==t?.footerType,"cbp-has-line-numbers":t.lineNumbers,"cbp-blur-enabled":t.enableBlurring,"cbp-unblur-on-hover":t.removeBlurOnHover}),style:{fontSize:Hn(t.fontSize,t.clampFonts),"--cbp-line-number-color":t?.lineNumbers?t.textColor:void 0,"--cbp-line-number-start":Number(t?.startingLineNumber)>1?t.startingLineNumber:void 0,"--cbp-line-number-width":t.lineNumbersWidth?`${t.lineNumbersWidth}px`:void 0,"--cbp-line-highlight-color":t?.enableHighlighting?t.lineHighlightColor:void 0,"--cbp-line-height":t.lineHeight,fontFamily:Dn(""),lineHeight:Hn(t.lineHeight,t.clampFonts)}}),(0,r.createElement)(kn,t),t.copyButton&&(0,r.createElement)(Xn,{attributes:t}),(0,r.createElement)(rn,{attributes:t,setAttributes:n}),(0,r.createElement)(gn,t),(0,r.createElement)(En,t)))},save:e=>{let{attributes:t}=e;return(0,r.createElement)(Yn,{attributes:t})},transforms:{from:[{type:"block",blocks:["core/code","syntaxhighlighter/code"],transform:e=>{const{content:t,language:n}=e;return(0,a.createBlock)(u.name,{code:t?(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(t):void 0,language:Kt(n)})}}]}}),(0,s.addFilter)("editor.BlockEdit",u.name,(e=>t=>((e,t)=>{const{attributes:n,clientId:s}=t,{previousLanguage:l}=en(),c=(0,an.useSelect)((e=>{const t=e(o.store).getBlock(s);return["core/code","syntaxhighlighter/code"].includes(t.name)}),[s]),{replaceBlock:d}=(0,an.useDispatch)(o.store),p=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value};return c?(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(e,t),(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(on.ToolbarGroup,null,(0,r.createElement)(on.ToolbarButton,{icon:sn,label:(0,i.__)("Convert to Code Pro","code-block-pro"),onClick:()=>{var e;const t=(0,a.createBlock)(u.name,{code:n?.content?p(n.content):void 0,language:null!==(e=Kt(n?.language))&&void 0!==e?e:l});d(s,[t])}})))):(0,r.createElement)(e,t)})(e,t)))},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},460:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(196)),d=90,p=219,h=222,g=192,m=100,f="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),b="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),y="npm__react-simple-code-editor__textarea",v="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(y,":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .").concat(y," {\n color: transparent !important;\n }\n\n .").concat(y,"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,r=e.selectionStart,o=e.selectionEnd;t._recordChange({value:n,selectionStart:r,selectionEnd:o})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var r,o,s;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>m){var d=u-m;t._history.stack=l.slice(d,u),t._history.offset=Math.max(t._history.offset-d,0)}}var p=Date.now();if(n){var h=t._history.stack[t._history.offset];if(h&&p-h.timestamp<3e3){var g=/[^a-z0-9]([a-z0-9]+)$/i,f=null===(r=t._getLines(h.value,h.selectionStart).pop())||void 0===r?void 0:r.match(g),b=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(g);if((null==f?void 0:f[1])&&(null===(s=null==b?void 0:b[1])||void 0===s?void 0:s.startsWith(f[1])))return void(t._history.stack[t._history.offset]=a(a({},e),{timestamp:p}))}}t._history.stack.push(a(a({},e),{timestamp:p})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=a(a({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r-1];o&&(t._updateInput(o),t._history.offset=Math.max(r-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,a=n.ignoreTabKey,s=n.onKeyDown;if(!s||(s(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,m=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!a&&t.state.capture)if(e.preventDefault(),e.shiftKey){var y=(S=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1,_=l.split("\n").map((function(e,t){return t>=y&&t<=v&&e.startsWith(m)?e.substring(m.length):e})).join("\n");if(l!==_){var k=S[y];t._applyEdits({value:_,selectionStart:(null==k?void 0:k.startsWith(m))?c-m.length:c,selectionEnd:u-(l.length-_.length)})}}else if(c!==u){var S,C=(S=t._getLines(l,c)).length-1,w=t._getLines(l,u).length-1;k=S[C],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=C&&t<=w?m+e:e})).join("\n"),selectionStart:k&&/\S/.test(k)?c+m.length:c,selectionEnd:u+m.length*(w-C+1)})}else{var x=c+m.length;t._applyEdits({value:l.substring(0,c)+m+l.substring(u),selectionStart:x,selectionEnd:x})}else if(8===e.keyCode){var E=c!==u;l.substring(0,c).endsWith(m)&&!E&&(e.preventDefault(),x=c-m.length,t._applyEdits({value:l.substring(0,c-m.length)+l.substring(u),selectionStart:x,selectionEnd:x}))}else if(13===e.keyCode){if(c===u){var L=t._getLines(l,c).pop(),N=null==L?void 0:L.match(/^\s+/);if(null==N?void 0:N[0]){e.preventDefault();var T="\n"+N[0];x=c+T.length,t._applyEdits({value:l.substring(0,c)+T+l.substring(u),selectionStart:x,selectionEnd:x})}}}else if(57===e.keyCode||e.keyCode===p||e.keyCode===h||e.keyCode===g){var j=void 0;57===e.keyCode&&e.shiftKey?j=["(",")"]:e.keyCode===p?j=e.shiftKey?["{","}"]:["[","]"]:e.keyCode===h?j=e.shiftKey?['"','"']:["'","'"]:e.keyCode!==g||e.shiftKey||(j=["`","`"]),c!==u&&j&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+j[0]+l.substring(c,u)+j[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(b?e.metaKey&&e.keyCode===d:e.ctrlKey&&e.keyCode===d)||e.shiftKey||e.altKey?(b?e.metaKey&&e.keyCode===d&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&e.keyCode===d&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||b&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value,o=n.selectionStart,a=n.selectionEnd;t._recordChange({value:r,selectionStart:o,selectionEnd:a},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,s=t.highlight,i=t.textareaId,l=t.textareaClassName,d=t.autoFocus,p=t.disabled,h=t.form,g=t.maxLength,m=t.minLength,f=t.name,b=t.placeholder,_=t.readOnly,S=t.required,C=t.onClick,w=t.onFocus,x=t.onBlur,E=t.onKeyUp,L=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),N=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),T={paddingTop:"object"==typeof o?o.top:o,paddingRight:"object"==typeof o?o.right:o,paddingBottom:"object"==typeof o?o.bottom:o,paddingLeft:"object"==typeof o?o.left:o},j=s(n);return u.createElement("div",a({},N,{style:a(a({},k.container),r)}),u.createElement("pre",a({className:L,"aria-hidden":"true",style:a(a(a({},k.editor),k.highlight),T)},"string"==typeof j?{dangerouslySetInnerHTML:{__html:j+"<br />"}}:{children:j})),u.createElement("textarea",{ref:function(t){return e._input=t},style:a(a(a({},k.editor),k.textarea),T),className:y+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:C,onKeyUp:E,onFocus:w,onBlur:x,disabled:p,form:h,maxLength:g,minLength:m,name:f,placeholder:b,readOnly:_,required:S,autoFocus:d,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:v}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=_;var k={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},250:(e,t,n)=>{"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,i=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return i((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(196),o=n(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,i=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return i=t}return i=e}if(t=i,a(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(s=e,i=n)}var s,i,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var h=s(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},930:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=r(n(418));let a=null,s=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let a=o,s=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=65536+(o-55296<<10)|t-56320,s=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,s&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const s=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}r&&(o[n]=l,u&&(o[n+1]=l),c<=127?a[l+0]=n:c<=2047?(a[l+0]=n,a[l+1]=n):c<=65535?(a[l+0]=n,a[l+1]=n,a[l+2]=n):(a[l+0]=n,a[l+1]=n,a[l+2]=n,a[l+3]=n)),c<=127?s[l++]=c:c<=2047?(s[l++]=192|(1984&c)>>>6,s[l++]=128|(63&c)>>>0):c<=65535?(s[l++]=224|(61440&c)>>>12,s[l++]=128|(4032&c)>>>6,s[l++]=128|(63&c)>>>0):(s[l++]=240|(1835008&c)>>>18,s[l++]=128|(258048&c)>>>12,s[l++]=128|(4032&c)>>>6,s[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!a)throw new Error("Must invoke loadWASM first.");this._onigBinding=a,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=a._omalloc(1e4)),l._sharedPtrInUse=!0,a.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(a)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!a)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let r=0,o=e.length;r<o;r++){const o=new i(e[r]);t[r]=o.createString(a),n[r]=o.utf8Length}const r=a._omalloc(4*e.length);a.HEAPU32.set(t,r/4);const o=a._omalloc(4*e.length);a.HEAPU32.set(n,o/4);const s=a._createOnigScanner(r,o,e.length);for(let n=0,r=e.length;n<r;n++)a._ofree(t[n]);a._ofree(o),a._ofree(r),0===s&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(a),this._onigBinding=a,this._ptr=s}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=s,o=0;if("number"==typeof n?(8&n&&(r=!0),o=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,r,o);return e.dispose(),n}return this._findNextMatchSync(e,t,r,o)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding;let a;if(a=n?o._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):o._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===a)return null;const s=o.HEAPU32;let i=a/4;const l=s[i++],c=s[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(s[i++]),r=e.convertUtf8OffsetToUtf16(s[i++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,d=null;t.loadWASM=function(e){if(u)return d;let t,n,r,s;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return d=new Promise(((e,t)=>{r=e,s=t})),function(e,t,n,r){(0,o.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{a=e,n()}))}(t,n,r,s),d},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){s=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,r=void 0!==(e=e||{})?e:{};r.ready=new Promise((function(e,r){t=e,n=r}));var o,a=Object.assign({},r),s=[],i=!1,l=!1,c=!0,u="";function d(e){return r.locateFile?r.locateFile(e,u):u+e}c&&(o=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),b("object"==typeof t),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print));var p,h,g=r.print||console.log.bind(console),m=r.printErr||console.warn.bind(console);Object.assign(r,a),a=null,r.arguments&&(s=r.arguments),r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(p=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&D("no native wasm support detected");var f=!1;function b(e,t){e||D(t)}var y,v,_,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function S(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&k)return k.decode(e.subarray(t,o));for(var a="";t<o;){var s=e[t++];if(128&s){var i=63&e[t++];if(192!=(224&s)){var l=63&e[t++];if((s=224==(240&s)?(15&s)<<12|i<<6|l:(7&s)<<18|i<<12|l<<6|63&e[t++])<65536)a+=String.fromCharCode(s);else{var c=s-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&s)<<6|i)}else a+=String.fromCharCode(s)}return a}function C(e,t){return e?S(v,e,t):""}function w(e){y=e,r.HEAP8=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAP32=new Int32Array(e),r.HEAPU8=v=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=_=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}r.INITIAL_MEMORY;var x=[],E=[],L=[];function N(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)P(r.preRun.shift());V(x)}function T(){V(E)}function j(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)O(r.postRun.shift());V(L)}function P(e){x.unshift(e)}function A(e){E.unshift(e)}function O(e){L.unshift(e)}var R=0,I=null,B=null;function M(e){R++,r.monitorRunDependencies&&r.monitorRunDependencies(R)}function F(e){if(R--,r.monitorRunDependencies&&r.monitorRunDependencies(R),0==R&&(null!==I&&(clearInterval(I),I=null),B)){var t=B;B=null,t()}}function D(e){r.onAbort&&r.onAbort(e),m(e="Aborted("+e+")"),f=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var H,G,$="data:application/octet-stream;base64,";function W(e){return e.startsWith($)}function z(e){try{if(e==H&&p)return new Uint8Array(p);if(o)return o(e);throw"both async and sync fetching of the wasm failed"}catch(e){D(e)}}function U(){return p||!i&&!l||"function"!=typeof fetch?Promise.resolve().then((function(){return z(H)})):fetch(H,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+H+"'";return e.arrayBuffer()})).catch((function(){return z(H)}))}function q(){var e={env:te,wasi_snapshot_preview1:te};function t(e,t){var n=e.exports;r.asm=n,w((h=r.asm.memory).buffer),r.asm.__indirect_function_table,A(r.asm.__wasm_call_ctors),F()}function o(e){t(e.instance)}function a(t){return U().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){m("failed to asynchronously prepare wasm: "+e),D(e)}))}if(M(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){m("Module.instantiateWasm callback failed with error: "+e),n(e)}return(p||"function"!=typeof WebAssembly.instantiateStreaming||W(H)||"function"!=typeof fetch?a(o):fetch(H,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(o,(function(e){return m("wasm streaming compile failed: "+e),m("falling back to ArrayBuffer instantiation"),a(o)}))}))).catch(n),{}}function V(e){for(;e.length>0;)e.shift()(r)}function K(e,t,n){v.copyWithin(e,t,t+n)}function J(e){try{return h.grow(e-y.byteLength+65535>>>16),w(h.buffer),1}catch(e){}}function Q(e){var t,n=v.length,r=2147483648;if((e>>>=0)>r)return!1;for(var o=1;o<=4;o*=2){var a=n*(1+.2/o);if(a=Math.min(a,e+100663296),J(Math.min(r,(t=Math.max(e,a))+(65536-t%65536)%65536)))return!0}return!1}W(H="onig.wasm")||(H=d(H)),G="undefined"!=typeof dateNow?dateNow:()=>performance.now();var X=[null,[],[]];function Y(e,t){var n=X[e];0===t||10===t?((1===e?g:m)(S(n,0)),n.length=0):n.push(t)}function Z(e,t,n,r){for(var o=0,a=0;a<n;a++){var s=_[t>>2],i=_[t+4>>2];t+=8;for(var l=0;l<i;l++)Y(e,v[s+l]);o+=i}return _[r>>2]=o,0}var ee,te={emscripten_get_now:G,emscripten_memcpy_big:K,emscripten_resize_heap:Q,fd_write:Z};function ne(e){function n(){ee||(ee=!0,r.calledRun=!0,f||(T(),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),j()))}e=e||s,R>0||(N(),R>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),n()}),1)):n()))}if(q(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=C,B=function e(){ee||ne(),ee||(B=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return ne(),e.ready});e.exports=t}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}(770);var e,t},e.exports=t()},190:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),r=n.getTokenType(e),o=n.getFontStyle(e),a=n.getForeground(e),s=n.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:o,foreground:a,background:s})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,a,s,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),p=n.getForeground(e),h=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==a&&(d=a),0!==s&&(p=s),0!==i&&(h=i),(l<<0|c<<8|u<<10|d<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class a{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new s(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?a._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(a.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=a,a._NULL_SCOPE_METADATA=new o(0,0),a.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class s{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const r=n(350),o=n(36),a=n(736),s=n(44),i=n(792),l=n(583),c=n(878),u=n(996),d=n(47);function p(e,t,n,r,o){const s=a.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(n,r,o.repository);for(const n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:o,priority:n.priority})}function h(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(g(t[r],e))return n=r+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,r,o,a,s,i){return new m(e,t,n,r,o,a,s,i)};class m{constructor(e,t,n,r,o,s,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const e of Object.keys(o)){const t=a.createMatchers(e,h);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:o[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)p(e,t,r[t],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&p(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),r.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(` - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let a;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)a=!1,t.reset();else{a=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=o.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);let i;i=s?b.createRootAndLookUpScopeName(s,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new v(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=d._tokenizeString(this,l,a,0,t,u,!0,r);return s.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=m;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new l.ScopeStack(null,e),a=n.themeProvider.themeMatch(o),s=b.mergeAttributes(t,r,a);return new b(null,o,s)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,a=0,s=0;return null!==n&&(r=n.fontStyle,a=n.foregroundId,s=n.backgroundId),o.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,a,s)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const e of n)r=b._pushAttributed(r,e,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),a=n.themeProvider.themeMatch(o),s=b.mergeAttributes(e.tokenAttributes,r,a);return new b(e,o,s)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,o,a,s,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,a,s){return new y(this,e,t,n,r,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):a.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>a.createMatchers(e,h).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class v{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,r.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=o.EncodedTokenAttributes.set(n,0,o.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(t))}if(a&&(n=o.EncodedTokenAttributes.set(n,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log(" * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(r.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log(" * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=v},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const r=n(878);class o{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=o;class a{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=a;class s{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof o?c({baseGrammar:s,selfGrammar:a},r):l(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const i=n.injections(e.scopeName);if(i)for(const e of i)r.add(new o(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const s of e){if(n.visitedRule.has(s))continue;n.visitedRule.add(s);const e=s.repository?r.mergeObjects({},t.repository,s.repository):t.repository;Array.isArray(s.patterns)&&u(s.patterns,{...t,repository:e},n);const i=s.include;if(!i)continue;const d=f(i);switch(d.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(d.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const o={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===d.kind?l(d.ruleName,o,n):c(o,n)}else 4===d.kind?n.add(new a(d.scopeName,d.ruleName)):n.add(new o(d.scopeName))}}}t.ExternalReferenceCollector=s,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new o(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new s;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof o){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class d{constructor(){this.kind=0}}t.BaseReference=d;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class m{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new d;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new m(n,r)}}t.TopLevelRepositoryReference=m,t.parseInclude=f},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const r=n(350),o=n(44),a=n(792),s=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,o,l,d,h,g){const m=t.content.length;let f=!1,b=-1;if(h){const s=function(e,t,n,o,s,i){let l=s.beginRuleCapturedEOL?0:-1;const c=[];for(let t=s;t;t=t.pop()){const n=t.getRule(e);n instanceof a.BeginWhileRule&&c.push({rule:n,stack:t})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:h}=u(d.rule,e,d.stack.endRule,n,o===l),g=c.findNextMatchSync(t,o,h);if(r.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(c.toString())),!g){r.DebugFlags.InDebugMode&&console.log(" popping "+d.rule.debugName+" - "+d.rule.debugWhileRegExp),s=d.stack.pop();break}if(g.ruleId!==a.whileRuleId){s=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(d.stack,g.captureIndices[0].start),p(e,t,n,d.stack,i,d.rule.whileCaptures,g.captureIndices),i.produce(d.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>o&&(o=g.captureIndices[0].end,n=!1))}return{stack:s,linePos:o,anchorPosition:l,isFirstLine:n}}(e,t,n,o,l,d);l=s.stack,o=s.linePos,n=s.isFirstLine,b=s.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);v()}return new i(l,!1);function v(){r.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${o}: |${t.content.substr(o).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,o,a,i){const l=function(e,t,n,o,a,i){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=c(l,e,a.endRule,n,o===i);let p=0;r.DebugFlags.InDebugMode&&(p=s.performanceNow());const h=u.findNextMatchSync(t,o,d);if(r.DebugFlags.InDebugMode){const e=s.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(` scanning for (linePos: ${o}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,n,o,a,i),u=e.getInjections();if(0===u.length)return l;const d=function(e,t,n,o,a,s,i){let l,u=Number.MAX_VALUE,d=null,p=0;const h=s.contentNameScopesList.getScopeNames();for(let s=0,g=e.length;s<g;s++){const g=e[s];if(!g.matcher(h))continue;const m=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(m,t,null,o,a===i),y=f.findNextMatchSync(n,a,b);if(!y)continue;r.DebugFlags.InDebugMode&&(console.log(` matched injection: ${g.debugSelector}`),console.log(f.toString()));const v=y.captureIndices[0].start;if(!(v>=u)&&(u=v,d=y.captureIndices,l=y.ruleId,p=g.priority,u===a))break}return d?{priorityMatch:-1===p,captureIndices:d,matchedRuleId:l}:null}(u,e,t,n,o,a,i);if(!d)return l;if(!l)return d;const p=l.captureIndices[0].start,h=d.captureIndices[0].start;return h<p||d.priorityMatch&&h===p?d:l}(e,t,n,o,l,b);if(!i)return r.DebugFlags.InDebugMode&&console.log(" no more matches."),d.produce(l,m),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>o;if(h===a.endRuleId){const a=l.getRule(e);r.DebugFlags.InDebugMode&&console.log(" popping "+a.debugName+" - "+a.debugEndRegExp),d.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,n,l,d,a.endCaptures,u),d.produce(l,u[0].end);const s=l;if(l=l.parent,b=s.getAnchorPos(),!g&&s.getEnterPos()===o)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=s,d.produce(l,m),void(f=!0)}else{const s=e.getRule(h);d.produce(l,u[0].start);const i=l,c=s.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,o,b,u[0].end===m,null,y,y),s instanceof a.BeginEndRule){const o=s;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName+" - "+o.debugBeginRegExp),p(e,t,n,l,d,o.beginCaptures,u),d.produce(l,u[0].end),b=u[0].end;const a=o.getContentName(t.content,u),c=y.pushAttributed(a,e);if(l=l.withContentNameScopesList(c),o.endHasBackReferences&&(l=l.withEndRule(o.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),d.produce(l,m),void(f=!0)}else if(s instanceof a.BeginWhileRule){const o=s;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName),p(e,t,n,l,d,o.beginCaptures,u),d.produce(l,u[0].end),b=u[0].end;const a=o.getContentName(t.content,u),c=y.pushAttributed(a,e);if(l=l.withContentNameScopesList(c),o.whileHasBackReferences&&(l=l.withEndRule(o.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),d.produce(l,m),void(f=!0)}else{const o=s;if(r.DebugFlags.InDebugMode&&console.log(" matched "+o.debugName+" - "+o.debugMatchRegExp),p(e,t,n,l,d,o.captures,u),d.produce(l,u[0].end),l=l.pop(),!g)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),d.produce(l,m),void(f=!0)}}u[0].end>o&&(o=u[0].end,n=!1)}}function c(e,t,n,o,a){return r.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:d(o,a)}:{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function u(e,t,n,o,a){return r.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:d(o,a)}:{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function d(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function p(e,t,n,r,a,s,i){if(0===s.length)return;const c=t.content,u=Math.min(s.length,i.length),d=[],p=i[0].end;for(let t=0;t<u;t++){const u=s[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=g.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,g.start):a.produce(r,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),s=r.contentNameScopesList.pushAttributed(t,e),d=u.getContentName(c,i),p=s.pushAttributed(d,e),h=r.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,s,p),m=e.createOnigString(c.substring(0,g.end));l(e,m,n&&0===g.start,g.start,h,a,!1,0),o.disposeOnigString(m);continue}const m=u.getName(c,i);if(null!==m){const t=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);d.push(new h(t,g.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,s){let i=new r(e),l=new o,c=0,u=null,d=[],p=[];function h(){d.push(c),p.push(u)}function g(){c=d.pop(),u=p.pop()}function m(e){n(i,e)}for(;a(i,l);){if(0===c){if(null!==u&&m("too many constructs in root"),3===l.type){u={},s&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}m("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}m("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(a(i,l)&&6===l.type||m("expected colon"),a(i,l)||m("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let n={};s&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,h(),c=1,u=n;continue}}m("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}m("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};s&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}m("unexpected token in array")}m("unknown state")}return 0!==p.length&&m("unclosed constructs"),u};class r{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class o{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function a(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,a=e.pos,s=e.len,i=e.line,l=e.char;for(;;){if(a>=s)return!1;if(r=o.charCodeAt(a),32!==r&&9!==r&&13!==r){if(10!==r)break;a++,i++,l=0}else a++,l++}if(t.offset=a,t.line=i,t.char=l,34===r){for(t.type=1,a++,l++;;){if(a>=s)return!1;if(r=o.charCodeAt(a),a++,l++,92!==r){if(34===r)break}else a++,l++}t.value=o.substring(t.offset+1,a-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,a++,l++;else if(123===r)t.type=3,a++,l++;else if(93===r)t.type=4,a++,l++;else if(125===r)t.type=5,a++,l++;else if(58===r)t.type=6,a++,l++;else if(44===r)t.type=7,a++,l++;else if(110===r){if(t.type=8,a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;a++,l++}else if(116===r){if(t.type=9,a++,l++,r=o.charCodeAt(a),114!==r)return!1;if(a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else if(102===r){if(t.type=10,a++,l++,r=o.charCodeAt(a),97!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),115!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else for(t.type=11;;){if(a>=s)return!1;if(r=o.charCodeAt(a),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;a++,l++}return t.len=a-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=a,e.line=i,e.char=l,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const a=n(391),s=n(50),i=n(652),l=n(583),c=n(965);o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new a.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const a=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;a.Q.length>0;)await Promise.all(a.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),a.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=a.StateStack.NULL,t.parseRawGrammar=s.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const r=[],o=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let a=o.next();for(;null!==a;){let e=0;if(2===a.length&&":"===a.charAt(1)){switch(a.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let t=i();if(r.push({matcher:t,priority:e}),","!==a)break;a=o.next()}return r;function s(){if("-"===a){a=o.next();const e=s();return t=>!!e&&!e(t)}if("("===a){a=o.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===a||","===a);){do{a=o.next()}while("|"===a||","===a);t=i()}return t=>e.some((e=>e(t)))}();return")"===a&&(a=o.next()),e}if(n(a)){const e=[];do{e.push(a),a=o.next()}while(n(a));return n=>t(e,n)}return null}function i(){const e=[];let t=s();for(;t;)e.push(t),t=s();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),a=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,s=t,o.DebugFlags.InDebugMode?a.parseJSON(n,s,!0):JSON.parse(n)):function(e,t){return o.DebugFlags.InDebugMode?r.parseWithLocation(e,t,"$vscodeTextmateLocation"):r.parsePLIST(e)}(e,t);var n,s}},69:(e,t)=>{function n(e,t,n){const r=e.length;let o=0,a=1,s=0;function i(t){if(null===n)o+=t;else for(;t>0;)10===e.charCodeAt(o)?(o++,a++,s=0):(o++,s++),t--}function l(e){null===n?o=e:i(e-o)}function c(){for(;o<r;){let t=e.charCodeAt(o);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(o,t.length)===t&&(i(t.length),!0)}function d(t){let n=e.indexOf(t,o);l(-1!==n?n+t.length:r)}function p(t){let n=e.indexOf(t,o);if(-1!==n){let r=e.substring(o,n);return l(n+t.length),r}{let t=e.substr(o);return l(r),t}}r>0&&65279===e.charCodeAt(0)&&(o=1);let h=0,g=null,m=[],f=[],b=null;function y(e,t){m.push(h),f.push(g),h=e,g=t}function v(){if(0===m.length)return _("illegal state stack");h=m.pop(),g=f.pop()}function _(t){throw new Error("Near offset "+o+": "+t+" ~~~"+e.substr(o,50)+"~~~")}const k=function(){if(null===b)return _("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:a,char:s}),g[b]=e,b=null,y(1,e)},S=function(){if(null===b)return _("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},C=function(){let e={};null!==n&&(e[n]={filename:t,line:a,char:s}),g.push(e),y(1,e)},w=function(){let e=[];g.push(e),y(2,e)};function x(){if(1!==h)return _("unexpected </dict>");v()}function E(){return 1===h||2!==h?_("unexpected </array>"):void v()}function L(e){if(1===h){if(null===b)return _("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function N(e){if(isNaN(e))return _("cannot parse float");if(1===h){if(null===b)return _("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(isNaN(e))return _("cannot parse integer");if(1===h){if(null===b)return _("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function j(e){if(1===h){if(null===b)return _("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function P(e){if(1===h){if(null===b)return _("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return _("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function O(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function R(e){if(e.isClosed)return"";let t=p("</");return d(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}for(;o<r&&(c(),!(o>=r));){const l=e.charCodeAt(o);if(i(1),60!==l)return _("expected <");if(o>=r)return _("unexpected end of input");const p=e.charCodeAt(o);if(63===p){i(1),d("?>");continue}if(33===p){if(i(1),u("--")){d("--\x3e");continue}d(">");continue}if(47===p){if(i(1),c(),u("plist")){d(">");continue}if(u("dict")){d(">"),x();continue}if(u("array")){d(">"),E();continue}return _("unexpected closed tag")}let m=O();switch(m.name){case"dict":1===h?k():2===h?C():(g={},null!==n&&(g[n]={filename:t,line:a,char:s}),y(1,g)),m.isClosed&&x();continue;case"array":1===h?S():2===h?w():(g=[],y(2,g)),m.isClosed&&E();continue;case"key":I=R(m),1!==h?_("unexpected <key>"):null!==b?_("too many <key>"):b=I;continue;case"string":L(R(m));continue;case"real":N(parseFloat(R(m)));continue;case"integer":T(parseInt(R(m),10));continue;case"date":j(new Date(R(m)));continue;case"data":P(R(m));continue;case"true":R(m),A(!0);continue;case"false":R(m),A(!1);continue}if(!/^plist/.test(m.name))return _("unexpected opened tag "+m.name)}var I;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,r.createGrammar(e,s,t,n,o,a,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),a=/\\(\d+)/,s=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new g(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new m,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new m,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class d extends i{constructor(e,t,n,r,o,a,s,i,l,c){super(e,t,n,r),this._begin=new g(o,this.id),this.beginCaptures=a,this._end=new g(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new m;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=d;class p extends i{constructor(e,n,r,o,a,s,i,l,c){super(e,n,r,o),this._begin=new g(a,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new m;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new m,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(o,t,n))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,n),h._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,h._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const o in e){if("$vscodeTextmateLocation"===o)continue;const a=parseInt(o,10);let s=0;e[o].patterns&&(s=h.getCompiledRuleId(e[o],t,n)),r[a]=h.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,s)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let a=0,s=e.length;a<s;a++){const s=e[a];let i=-1;if(s.include){const e=o.parseInclude(s.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(n[s.include],t,n);break;case 2:let r=n[e.ruleName];r&&(i=h.getCompiledRuleId(r,t,n));break;case 3:case 4:const o=e.scopeName,a=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(o,n);if(l)if(a){let e=l.repository[a];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(s,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof d||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(i)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let n=0,r=[],o=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):"A"!==t&&"G"!==t||(o=!0),a++}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=a.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return s.lastIndex=0,this.source.replace(s,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],a=[],s=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,a[e]=n,s[e]=n,i[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(o[e+1]="",a[e+1]="",s[e+1]="A",i[e+1]="A"):"G"===r?(o[e+1]="",a[e+1]="G",s[e+1]="",i[e+1]="G"):(o[e+1]=r,a[e+1]=r,s[e+1]=r,i[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class m{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=m;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const r=n(878);class o{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new r.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=r.strcmp(e.scope,t.scope);return 0!==n?n:(n=r.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,a="#000000",s="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(a=t.foreground),null!==t.background&&(s=t.background)}let l=new u(t),c=new i(n,l.getId(a),l.getId(s)),h=new p(new d(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];h.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new o(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,r=t[n];for(;e;){if(s(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=o;class a{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new a(t,e[n]);return t}push(e){return new a(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function s(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=a;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let e=0,a=t.length;e<a;e++){let a,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),a=e.split(",")}else a=Array.isArray(s.scope)?s.scope:[""];let i=-1;if("string"==typeof s.settings.fontStyle){i=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof s.settings.foreground&&r.isValidHexColor(s.settings.foreground)&&(l=s.settings.foreground);let u=null;"string"==typeof s.settings.background&&r.isValidHexColor(s.settings.background)&&(u=s.settings.background);for(let t=0,r=a.length;t<r;t++){let r=a[t].trim().split(" "),s=r[r.length-1],d=null;r.length>1&&(d=r.slice(0,r.length-1),d.reverse()),n[o++]=new c(s,d,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,r,o,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=a}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class d{constructor(e,t,n,r,o){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new d(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class p{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,a=null===r?0:r.length;if(o===a)for(let e=0;e<o;e++){const t=n[e].length,o=r[e].length;if(t!==o)return o-t}return a-o}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,o,a){if(""===t)return void this._doInsertHere(e,n,r,o,a);let s,i,l,c=t.indexOf(".");-1===c?(s=t,i=""):(s=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(s)?l=this._children[s]:(l=new p(this._mainRule.clone(),d.cloneArr(this._rulesWithParentScopes)),this._children[s]=l),l.insert(e+1,i,n,r,o,a)}_doInsertHere(e,t,n,o,a){if(null!==t){for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let i=this._rulesWithParentScopes[s];if(0===r.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,o,a)}-1===n&&(n=this._mainRule.fontStyle),0===o&&(o=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new d(e,t,n,o,a))}else this._mainRule.acceptOverwrite(e,n,o,a)}}t.ThemeTrieElement=p},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){let t={};for(let r in e)t[r]=n(e[r]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function o(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(r.lastIndex=0,r.test(e))}static replaceCaptures(e,t,n){return e.replace(r,((e,r,o,a)=>{let s=n[parseInt(r||o,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=o,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=o(e[r],t[r]);if(0!==n)return n}return 0}return n-r},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}(787)})()},196:e=>{"use strict";e.exports=window.React},799:()=>{},318:()=>{}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],a=e[u][2];for(var i=!0,l=0;l<n.length;l++)(!1&a||s>=a)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(i=!1,a<s&&(s=a));if(i){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,o,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={826:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,s=n[0],i=n[1],l=n[2],c=0;if(s.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(l)var u=l(r)}for(t&&t(n);c<s.length;c++)a=s[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(u)},n=self.webpackChunkcode_block_pro=self.webpackChunkcode_block_pro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[431],(()=>r(11)));o=r.O(o)})(); |