2 lines
35 KiB
JavaScript
2 lines
35 KiB
JavaScript
(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[1731],{1731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});const s=n(33390);var r=n(46291);const i=Object.assign(a(Error),{eval:a(EvalError),range:a(RangeError),reference:a(ReferenceError),syntax:a(SyntaxError),type:a(TypeError),uri:a(URIError)});function a(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){const s=t?r(t,...n):t;return new e(s)}}const o={}.hasOwnProperty,l="hljs-";function c(e,t,n={}){let r=n.prefix;if("string"!=typeof e)throw i("Expected `string` for name, got `%s`",e);if(!s.getLanguage(e))throw i("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw i("Expected `string` for value, got `%s`",t);null==r&&(r=l),s.configure({__emitter:g,classPrefix:r});const a=s.highlight(t,{language:e,ignoreIllegals:!0});if(s.configure({}),a.errorRaised)throw a.errorRaised;return a._emitter.root.data.language=a.language,a._emitter.root.data.relevance=a.relevance,a._emitter.root}class g{constructor(e){this.options=e,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(e){if(""===e)return;const t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})}addKeyword(e,t){this.openNode(t),this.addText(e),this.closeNode()}addSublanguage(e,t){const n=this.stack[this.stack.length-1],s=e.root.children;t?n.children.push({type:"element",tagName:"span",properties:{className:[t]},children:s}):n.children.push(...s)}openNode(e){const t={type:"element",tagName:"span",properties:{className:e.split(".").map(((e,t)=>t?e+"_".repeat(t):this.options.classPrefix+e))},children:[]};this.stack[this.stack.length-1].children.push(t),this.stack.push(t)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const u={highlight:c,highlightAuto:function(e,t={}){const n=t.subset||s.listLanguages();let r=t.prefix,a=-1,o={type:"root",data:{language:null,relevance:0},children:[]};if(null==r&&(r=l),"string"!=typeof e)throw i("Expected `string` for value, got `%s`",e);for(;++a<n.length;){const r=n[a];if(!s.getLanguage(r))continue;const i=c(r,e,t);i.data.relevance>o.data.relevance&&(o=i)}return o},registerLanguage:function(e,t){s.registerLanguage(e,t)},registered:function(e){return Boolean(s.getLanguage(e))},listLanguages:function(){return s.listLanguages()},registerAlias:function(e,t){if("string"==typeof e)s.registerAliases(t,{languageName:e});else{let t;for(t in e)o.call(e,t)&&s.registerAliases(e[t],{languageName:t})}}};var d=n(60748);const h={"1c":["1с"],bash:["sh"],c:["h"],cpp:["cc","c++","h++","hpp","hh","hxx","cxx"],csharp:["cs","c#"],css:[],erlang:["erl"],elixir:["ex","exs"],go:["golang"],handlebars:["hbs","html.hbs","html.handlebars","htmlbars"],haskell:["hs"],ini:["toml"],java:["jsp"],javascript:["js","jsx","mjs","cjs"],json:[],kotlin:["kt","kts"],lisp:[],lua:[],makefile:["mk","mak","make"],markdown:["md","mkdown","mkd"],matlab:[],objectivec:["mm","objc","obj-c","obj-c++","objective-c++"],perl:["pl","pm"],php:[],python:["py","gyp","ipython"],r:[],ruby:["rb","gemspec","podspec","thor","irb"],rust:["rs"],scheme:[],scss:[],smalltalk:["st"],sql:[],swift:[],twig:["craftcms"],typelanguage:["tl"],typescript:["ts","tsx"],xml:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],yaml:[]},p=["typelanguage"],f=new Map;async function j(e,t){const s=t.toLowerCase(),r=await async function(e){if(u.registered(e))return!0;const t=(s=e,Object.entries(h).find((e=>{let[t,n]=e;return t===s||n.includes(s)}))?.[0]);var s;if(!t)return!1;if(f.has(t))return await f.get(t),!0;const r=p.includes(t)?function(e){if("typelanguage"===e){const t=n.e(3191).then(n.bind(n,63191));return f.set(e,t),t}}(t):function(e){const t=n(94949)(`./${e}`);return f.set(e,t),t}(t);if(!r)return!1;const i=await r;return u.registerLanguage(t,i.default),"1c"===t&&u.registerAlias("1c","1с"),!0}(s);if(r)return m(u.highlight(s,e))}function m(e){const t=e.children.map((e=>"text"===e.type?e.value:"element"===e.type?m(e):void 0)).filter(Boolean);if("root"===e.type)return d.ZP.createElement("code",{className:"hljs custom-scroll-x"},t);const n=e.tagName,s=e.properties?.className,r=s?.join(" ");return d.ZP.createElement(n,{className:r},t)}},46291:e=>{!function(){var t;function n(e){for(var t,n,s,r,i=1,a=[].slice.call(arguments),o=0,l=e.length,c="",g=!1,u=!1,d=function(){return a[i++]},h=function(){for(var n="";/\d/.test(e[o]);)n+=e[o++],t=e[o];return n.length>0?parseInt(n):null};o<l;++o)if(t=e[o],g)switch(g=!1,"."==t?(u=!1,t=e[++o]):"0"==t&&"."==e[o+1]?(u=!0,t=e[o+=2]):u=!0,r=h(),t){case"b":c+=parseInt(d(),10).toString(2);break;case"c":c+="string"==typeof(n=d())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(d(),10);break;case"f":s=String(parseFloat(d()).toFixed(r||6)),c+=u?s:s.replace(/^0/,"");break;case"j":c+=JSON.stringify(d());break;case"o":c+="0"+parseInt(d(),10).toString(8);break;case"s":c+=d();break;case"x":c+="0x"+parseInt(d(),10).toString(16);break;case"X":c+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?g=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},94949:(e,t,n)=>{var s={"./1c":[30908,908],"./1c.js":[30908,908],"./abnf":[62853,2853],"./abnf.js":[62853,2853],"./accesslog":[35976,5976],"./accesslog.js":[35976,5976],"./actionscript":[55505,5505],"./actionscript.js":[55505,5505],"./ada":[40059,59],"./ada.js":[40059,59],"./angelscript":[72921,2921],"./angelscript.js":[72921,2921],"./apache":[4998,4998],"./apache.js":[4998,4998],"./applescript":[99733,9733],"./applescript.js":[99733,9733],"./arcade":[70149,149],"./arcade.js":[70149,149],"./arduino":[89860,9860],"./arduino.js":[89860,9860],"./armasm":[93138,3138],"./armasm.js":[93138,3138],"./asciidoc":[88699,8699],"./asciidoc.js":[88699,8699],"./aspectj":[59950,9950],"./aspectj.js":[59950,9950],"./autohotkey":[31599,1599],"./autohotkey.js":[31599,1599],"./autoit":[1892,1892],"./autoit.js":[1892,1892],"./avrasm":[53105,3105],"./avrasm.js":[53105,3105],"./awk":[44868,4868],"./awk.js":[44868,4868],"./axapta":[52059,2059],"./axapta.js":[52059,2059],"./bash":[98780,8780],"./bash.js":[98780,8780],"./basic":[80995,995],"./basic.js":[80995,995],"./bnf":[87061,7061],"./bnf.js":[87061,7061],"./brainfuck":[16380,6380],"./brainfuck.js":[16380,6380],"./c":[80612,612],"./c.js":[80612,612],"./cal":[15762,5762],"./cal.js":[15762,5762],"./capnproto":[90614,614],"./capnproto.js":[90614,614],"./ceylon":[33796,3796],"./ceylon.js":[33796,3796],"./clean":[52222,4751],"./clean.js":[52222,4751],"./clojure":[92177,2177],"./clojure-repl":[42012,2012],"./clojure-repl.js":[42012,2012],"./clojure.js":[92177,2177],"./cmake":[35849,5849],"./cmake.js":[35849,5849],"./coffeescript":[95437,5437],"./coffeescript.js":[95437,5437],"./coq":[99087,9087],"./coq.js":[99087,9087],"./cos":[72569,2569],"./cos.js":[72569,2569],"./cpp":[6248,6248],"./cpp.js":[6248,6248],"./crmsh":[77740,7740],"./crmsh.js":[77740,7740],"./crystal":[83147,3147],"./crystal.js":[83147,3147],"./csharp":[63707,3707],"./csharp.js":[63707,3707],"./csp":[89534,9534],"./csp.js":[89534,9534],"./css":[15064,5064],"./css.js":[15064,5064],"./d":[118,118],"./d.js":[118,118],"./dart":[26642,6642],"./dart.js":[26642,6642],"./delphi":[7762,7762],"./delphi.js":[7762,7762],"./diff":[87731,7731],"./diff.js":[87731,7731],"./django":[33189,3189],"./django.js":[33189,3189],"./dns":[31344,1344],"./dns.js":[31344,1344],"./dockerfile":[57360,7360],"./dockerfile.js":[57360,7360],"./dos":[20605,605],"./dos.js":[20605,605],"./dsconfig":[7522,7522],"./dsconfig.js":[7522,7522],"./dts":[11729,1729],"./dts.js":[11729,1729],"./dust":[1450,1450],"./dust.js":[1450,1450],"./ebnf":[13039,3039],"./ebnf.js":[13039,3039],"./elixir":[62543,2543],"./elixir.js":[62543,2543],"./elm":[25658,5658],"./elm.js":[25658,5658],"./erb":[32151,2151],"./erb.js":[32151,2151],"./erlang":[57569,7569],"./erlang-repl":[12282,2282],"./erlang-repl.js":[12282,2282],"./erlang.js":[57569,7569],"./excel":[5817,5817],"./excel.js":[5817,5817],"./fix":[13146,3146],"./fix.js":[13146,3146],"./flix":[93090,3090],"./flix.js":[93090,3090],"./fortran":[13532,3532],"./fortran.js":[13532,3532],"./fsharp":[36652,6652],"./fsharp.js":[36652,6652],"./gams":[47903,7903],"./gams.js":[47903,7903],"./gauss":[45004,5004],"./gauss.js":[45004,5004],"./gcode":[11871,1871],"./gcode.js":[11871,1871],"./gherkin":[16499,6499],"./gherkin.js":[16499,6499],"./glsl":[21942,1942],"./glsl.js":[21942,1942],"./gml":[81921,1921],"./gml.js":[81921,1921],"./go":[92399,2399],"./go.js":[92399,2399],"./golo":[9574,9574],"./golo.js":[9574,9574],"./gradle":[89878,9878],"./gradle.js":[89878,9878],"./graphql":[21738,1738],"./graphql.js":[21738,1738],"./groovy":[54658,4658],"./groovy.js":[54658,4658],"./haml":[21950,1950],"./haml.js":[21950,1950],"./handlebars":[71407,1407],"./handlebars.js":[71407,1407],"./haskell":[67077,7077],"./haskell.js":[67077,7077],"./haxe":[42720,2720],"./haxe.js":[42720,2720],"./hsp":[69662,9662],"./hsp.js":[69662,9662],"./http":[78937,8937],"./http.js":[78937,8937],"./hy":[99358,9358],"./hy.js":[99358,9358],"./inform7":[84458,4458],"./inform7.js":[84458,4458],"./ini":[94762,4762],"./ini.js":[94762,4762],"./irpf90":[60320,320],"./irpf90.js":[60320,320],"./isbl":[14664,4664],"./isbl.js":[14664,4664],"./java":[28257,8257],"./java.js":[28257,8257],"./javascript":[40978,978],"./javascript.js":[40978,978],"./jboss-cli":[84111,4111],"./jboss-cli.js":[84111,4111],"./json":[40014,14],"./json.js":[40014,14],"./julia":[24629,4629],"./julia-repl":[25850,5850],"./julia-repl.js":[25850,5850],"./julia.js":[24629,4629],"./kotlin":[65812,5812],"./kotlin.js":[65812,5812],"./lasso":[73530,3530],"./lasso.js":[73530,3530],"./latex":[47408,7408],"./latex.js":[47408,7408],"./ldif":[57604,7604],"./ldif.js":[57604,7604],"./leaf":[23961,3961],"./leaf.js":[23961,3961],"./less":[44210,4210],"./less.js":[44210,4210],"./lisp":[91943,1943],"./lisp.js":[91943,1943],"./livecodeserver":[82299,2299],"./livecodeserver.js":[82299,2299],"./livescript":[69735,9735],"./livescript.js":[69735,9735],"./llvm":[14972,4972],"./llvm.js":[14972,4972],"./lsl":[37034,7034],"./lsl.js":[37034,7034],"./lua":[4981,4981],"./lua.js":[4981,4981],"./makefile":[97903,8794],"./makefile.js":[97903,8794],"./markdown":[52003,2003],"./markdown.js":[52003,2003],"./mathematica":[8601,8601],"./mathematica.js":[8601,8601],"./matlab":[48009,8009],"./matlab.js":[48009,8009],"./maxima":[27020,7020],"./maxima.js":[27020,7020],"./mel":[67739,7739],"./mel.js":[67739,7739],"./mercury":[44261,4261],"./mercury.js":[44261,4261],"./mipsasm":[74807,4807],"./mipsasm.js":[74807,4807],"./mizar":[49291,9291],"./mizar.js":[49291,9291],"./mojolicious":[8895,8895],"./mojolicious.js":[8895,8895],"./monkey":[9676,9676],"./monkey.js":[9676,9676],"./moonscript":[56486,6486],"./moonscript.js":[56486,6486],"./n1ql":[71414,1414],"./n1ql.js":[71414,1414],"./nestedtext":[5384,5384],"./nestedtext.js":[5384,5384],"./nginx":[94028,4028],"./nginx.js":[94028,4028],"./nim":[45968,5968],"./nim.js":[45968,5968],"./nix":[84802,4802],"./nix.js":[84802,4802],"./node-repl":[69609,9609],"./node-repl.js":[69609,9609],"./nsis":[9968,9968],"./nsis.js":[9968,9968],"./objectivec":[2446,2446],"./objectivec.js":[2446,2446],"./ocaml":[57552,7552],"./ocaml.js":[57552,7552],"./openscad":[6277,6277],"./openscad.js":[6277,6277],"./oxygene":[80136,136],"./oxygene.js":[80136,136],"./parser3":[43412,3412],"./parser3.js":[43412,3412],"./perl":[12482,2482],"./perl.js":[12482,2482],"./pf":[4485,4485],"./pf.js":[4485,4485],"./pgsql":[89814,9814],"./pgsql.js":[89814,9814],"./php":[92656,2656],"./php-template":[35112,5112],"./php-template.js":[35112,5112],"./php.js":[92656,2656],"./plaintext":[62437,2437],"./plaintext.js":[62437,2437],"./pony":[46874,6874],"./pony.js":[46874,6874],"./powershell":[85040,5040],"./powershell.js":[85040,5040],"./processing":[25371,5371],"./processing.js":[25371,5371],"./profile":[73476,3476],"./profile.js":[73476,3476],"./prolog":[63944,3944],"./prolog.js":[63944,3944],"./properties":[17546,7546],"./properties.js":[17546,7546],"./protobuf":[15559,5559],"./protobuf.js":[15559,5559],"./puppet":[93867,3867],"./puppet.js":[93867,3867],"./purebasic":[92938,2938],"./purebasic.js":[92938,2938],"./python":[38245,8245],"./python-repl":[3722,3722],"./python-repl.js":[3722,3722],"./python.js":[38245,8245],"./q":[82623,2623],"./q.js":[82623,2623],"./qml":[23797,3797],"./qml.js":[23797,3797],"./r":[54730,4730],"./r.js":[54730,4730],"./reasonml":[2318,2318],"./reasonml.js":[2318,2318],"./rib":[94820,4820],"./rib.js":[94820,4820],"./roboconf":[41874,1874],"./roboconf.js":[41874,1874],"./routeros":[74005,4005],"./routeros.js":[74005,4005],"./rsl":[92852,2852],"./rsl.js":[92852,2852],"./ruby":[67905,7905],"./ruby.js":[67905,7905],"./ruleslanguage":[32192,2192],"./ruleslanguage.js":[32192,2192],"./rust":[9880,9880],"./rust.js":[9880,9880],"./sas":[93129,3129],"./sas.js":[93129,3129],"./scala":[30729,729],"./scala.js":[30729,729],"./scheme":[82254,2254],"./scheme.js":[82254,2254],"./scilab":[85149,5149],"./scilab.js":[85149,5149],"./scss":[71062,1062],"./scss.js":[71062,1062],"./shell":[7874,7874],"./shell.js":[7874,7874],"./smali":[10943,943],"./smali.js":[10943,943],"./smalltalk":[17659,7659],"./smalltalk.js":[17659,7659],"./sml":[45935,5935],"./sml.js":[45935,5935],"./sqf":[3677,3677],"./sqf.js":[3677,3677],"./sql":[98935,8935],"./sql.js":[98935,8935],"./stan":[50052,52],"./stan.js":[50052,52],"./stata":[60454,454],"./stata.js":[60454,454],"./step21":[37022,7022],"./step21.js":[37022,7022],"./stylus":[88688,8688],"./stylus.js":[88688,8688],"./subunit":[40726,726],"./subunit.js":[40726,726],"./swift":[77690,7690],"./swift.js":[77690,7690],"./taggerscript":[15460,5460],"./taggerscript.js":[15460,5460],"./tap":[30422,422],"./tap.js":[30422,422],"./tcl":[78158,8158],"./tcl.js":[78158,8158],"./thrift":[30906,906],"./thrift.js":[30906,906],"./tp":[6123,6123],"./tp.js":[6123,6123],"./twig":[71973,1973],"./twig.js":[71973,1973],"./typescript":[28987,8987],"./typescript.js":[28987,8987],"./vala":[41462,1462],"./vala.js":[41462,1462],"./vbnet":[27531,7531],"./vbnet.js":[27531,7531],"./vbscript":[4703,4703],"./vbscript-html":[48704,8704],"./vbscript-html.js":[48704,8704],"./vbscript.js":[4703,4703],"./verilog":[54494,4494],"./verilog.js":[54494,4494],"./vhdl":[48110,8110],"./vhdl.js":[48110,8110],"./vim":[53638,3638],"./vim.js":[53638,3638],"./wasm":[81533,1533],"./wasm.js":[81533,1533],"./wren":[68563,8563],"./wren.js":[68563,8563],"./x86asm":[19947,9947],"./x86asm.js":[19947,9947],"./xl":[49338,9338],"./xl.js":[49338,9338],"./xml":[4610,4610],"./xml.js":[4610,4610],"./xquery":[5595,5595],"./xquery.js":[5595,5595],"./yaml":[71392,1392],"./yaml.js":[71392,1392],"./zephir":[42222,2222],"./zephir.js":[42222,2222]};function r(e){if(!n.o(s,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],r=t[0];return n.e(t[1]).then((()=>n.t(r,23)))}r.keys=()=>Object.keys(s),r.id=94949,e.exports=r},33390:e=>{var t={exports:{}};function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var s=e[t];"object"!=typeof s||Object.isFrozen(s)||n(s)})),e}t.exports=n,t.exports.default=n;class s{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const a=e=>!!e.scope||e.sublanguage&&e.language;class o{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=r(e)}openNode(e){if(!a(e))return;let t="";t=e.sublanguage?`language-${e.language}`:((e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const l=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class c{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=l({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{c._collapse(e)})))}}class g extends c{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){return new o(this,this.options).value()}finalize(){return!0}}function u(e){return e?"string"==typeof e?e:e.source:null}function d(e){return f("(?=",e,")")}function h(e){return f("(?:",e,")*")}function p(e){return f("(?:",e,")?")}function f(...e){return e.map((e=>u(e))).join("")}function j(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map((e=>u(e))).join("|")+")"}function m(e){return new RegExp(e.toString()+"|").exec("").length-1}const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function x(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let s=u(e),r="";for(;s.length>0;){const e=b.exec(s);if(!e){r+=s;break}r+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(t)}const y="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",E="\\b\\d+(\\.\\d+)?",v="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",_={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[_]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[_]},S=function(e,t,n={}){const s=i({scope:"comment",begin:e,end:t,contains:[]},n);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=j("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:f(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},M=S("//","$"),R=S("/\\*","\\*/"),A=S("#","$"),I={scope:"number",begin:E,relevance:0},L={scope:"number",begin:v,relevance:0},T={scope:"number",begin:k,relevance:0},B={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[_,{begin:/\[/,end:/\]/,relevance:0,contains:[_]}]}]},P={scope:"title",begin:y,relevance:0},C={scope:"title",begin:w,relevance:0};var D=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:y,UNDERSCORE_IDENT_RE:w,NUMBER_RE:E,C_NUMBER_RE:v,BINARY_NUMBER_RE:k,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=f(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:_,APOS_STRING_MODE:N,QUOTE_STRING_MODE:O,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:S,C_LINE_COMMENT_MODE:M,C_BLOCK_COMMENT_MODE:R,HASH_COMMENT_MODE:A,NUMBER_MODE:I,C_NUMBER_MODE:L,BINARY_NUMBER_MODE:T,REGEXP_MODE:B,TITLE_MODE:P,UNDERSCORE_TITLE_MODE:C,METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function H(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function $(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function U(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=H,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function q(e,t){Array.isArray(e.illegal)&&(e.illegal=j(...e.illegal))}function z(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function K(e,t){void 0===e.relevance&&(e.relevance=1)}const W=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=f(n.beforeMatch,d(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},X=["of","and","for","in","not","or","if","then","parent","list","value"];function F(e,t,n="keyword"){const s=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(s,F(e[n],t,n))})),s;function r(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");s[n[0]]=[e,Z(n[0],n[1])]}))}}function Z(e,t){return t?Number(t):function(e){return X.includes(e.toLowerCase())}(e)?0:1}const G={},J=e=>{console.error(e)},V=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Y=(e,t)=>{G[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),G[`${e}/${t}`]=!0)},Q=new Error;function ee(e,t,{key:n}){let s=0;const r=e[n],i={},a={};for(let e=1;e<=t.length;e++)a[e+s]=r[e],i[e+s]=!0,s+=m(t[e-1]);e[n]=a,e[n]._emit=i,e[n]._multi=!0}function te(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw J("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Q;if("object"!=typeof e.beginScope||null===e.beginScope)throw J("beginScope must be object"),Q;ee(e,e.begin,{key:"beginScope"}),e.begin=x(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw J("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Q;if("object"!=typeof e.endScope||null===e.endScope)throw J("endScope must be object"),Q;ee(e,e.end,{key:"endScope"}),e.end=x(e.end,{joinWith:""})}}(e)}function ne(e){function t(t,n){return new RegExp(u(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=m(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(x(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),s=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,s)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function n(r,a){const o=r;if(r.isCompiled)return o;[$,z,te,W].forEach((e=>e(r,a))),e.compilerExtensions.forEach((e=>e(r,a))),r.__beforeBegin=null,[U,q,K].forEach((e=>e(r,a))),r.isCompiled=!0;let l=null;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),l=r.keywords.$pattern,delete r.keywords.$pattern),l=l||/\w+/,r.keywords&&(r.keywords=F(r.keywords,e.case_insensitive)),o.keywordPatternRe=t(l,!0),a&&(r.begin||(r.begin=/\B|\b/),o.beginRe=t(o.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(o.endRe=t(o.end)),o.terminatorEnd=u(o.end)||"",r.endsWithParent&&a.terminatorEnd&&(o.terminatorEnd+=(r.end?"|":"")+a.terminatorEnd)),r.illegal&&(o.illegalRe=t(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return i(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:se(e)?i(e,{starts:e.starts?i(e.starts):null}):Object.isFrozen(e)?i(e):e}("self"===e?r:e)}))),r.contains.forEach((function(e){n(e,o)})),r.starts&&n(r.starts,a),o.matcher=function(e){const t=new s;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function se(e){return!!e&&(e.endsWithParent||se(e.starts))}class re extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ie=r,ae=i,oe=Symbol("nomatch");var le=function(e){const n=Object.create(null),r=Object.create(null),i=[];let a=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:g};function u(e){return c.noHighlightRe.test(e)}function m(e,t,n){let s="",r="";"object"==typeof t?(s=e,n=t.ignoreIllegals,r=t.language):(Y("10.7.0","highlight(lang, code, ...args) has been deprecated."),Y("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,s=t),void 0===n&&(n=!0);const i={code:s,language:r};N("before:highlight",i);const a=i.result?i.result:b(i.language,i.code,n);return a.code=i.code,N("after:highlight",a),a}function b(e,t,r,i){const l=Object.create(null);function g(){if(!_.keywords)return void O.addText(S);let e=0;_.keywordPatternRe.lastIndex=0;let t=_.keywordPatternRe.exec(S),n="";for(;t;){n+=S.substring(e,t.index);const r=w.case_insensitive?t[0].toLowerCase():t[0],i=(s=r,_.keywords[s]);if(i){const[e,s]=i;if(O.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=7&&(M+=s),e.startsWith("_"))n+=t[0];else{const n=w.classNameAliases[e]||e;O.addKeyword(t[0],n)}}else n+=t[0];e=_.keywordPatternRe.lastIndex,t=_.keywordPatternRe.exec(S)}var s;n+=S.substring(e),O.addText(n)}function u(){null!=_.subLanguage?function(){if(""===S)return;let e=null;if("string"==typeof _.subLanguage){if(!n[_.subLanguage])return void O.addText(S);e=b(_.subLanguage,S,!0,N[_.subLanguage]),N[_.subLanguage]=e._top}else e=x(S,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(M+=e.relevance),O.addSublanguage(e._emitter,e.language)}():g(),S=""}function d(e,t){let n=1;const s=t.length-1;for(;n<=s;){if(!e._emit[n]){n++;continue}const s=w.classNameAliases[e[n]]||e[n],r=t[n];s?O.addKeyword(r,s):(S=r,g(),S=""),n++}}function h(e,t){return e.scope&&"string"==typeof e.scope&&O.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O.addKeyword(S,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),S=""):e.beginScope._multi&&(d(e.beginScope,t),S="")),_=Object.create(e,{parent:{value:_}}),_}function p(e,t,n){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new s(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return p(e.parent,t,n)}function f(e){return 0===_.matcher.regexIndex?(S+=e[0],1):(I=!0,0)}function j(e){const n=e[0],s=t.substring(e.index),r=p(_,e,s);if(!r)return oe;const i=_;_.endScope&&_.endScope._wrap?(u(),O.addKeyword(n,_.endScope._wrap)):_.endScope&&_.endScope._multi?(u(),d(_.endScope,e)):i.skip?S+=n:(i.returnEnd||i.excludeEnd||(S+=n),u(),i.excludeEnd&&(S=n));do{_.scope&&O.closeNode(),_.skip||_.subLanguage||(M+=_.relevance),_=_.parent}while(_!==r.parent);return r.starts&&h(r.starts,e),i.returnEnd?0:n.length}let m={};function y(n,i){const o=i&&i[0];if(S+=n,null==o)return u(),0;if("begin"===m.type&&"end"===i.type&&m.index===i.index&&""===o){if(S+=t.slice(i.index,i.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=m.rule,t}return 1}if(m=i,"begin"===i.type)return function(e){const t=e[0],n=e.rule,r=new s(n),i=[n.__beforeBegin,n["on:begin"]];for(const n of i)if(n&&(n(e,r),r.isMatchIgnored))return f(t);return n.skip?S+=t:(n.excludeBegin&&(S+=t),u(),n.returnBegin||n.excludeBegin||(S=t)),h(n,e),n.returnBegin?0:t.length}(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(_.scope||"<unnamed>")+'"');throw e.mode=_,e}if("end"===i.type){const e=j(i);if(e!==oe)return e}if("illegal"===i.type&&""===o)return 1;if(A>1e5&&A>3*i.index)throw new Error("potential infinite loop, way more iterations than matches");return S+=o,o.length}const w=v(e);if(!w)throw J(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=ne(w);let k="",_=i||E;const N={},O=new c.__emitter(c);!function(){const e=[];for(let t=_;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>O.openNode(e)))}();let S="",M=0,R=0,A=0,I=!1;try{for(_.matcher.considerAll();;){A++,I?I=!1:_.matcher.considerAll(),_.matcher.lastIndex=R;const e=_.matcher.exec(t);if(!e)break;const n=y(t.substring(R,e.index),e);R=e.index+n}return y(t.substring(R)),O.closeAllNodes(),O.finalize(),k=O.toHTML(),{language:e,value:k,relevance:M,illegal:!1,_emitter:O,_top:_}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:e,value:ie(t),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:R,context:t.slice(R-100,R+100),mode:n.mode,resultSoFar:k},_emitter:O};if(a)return{language:e,value:ie(t),illegal:!1,relevance:0,errorRaised:n,_emitter:O,_top:_};throw n}}function x(e,t){t=t||c.languages||Object.keys(n);const s=function(e){const t={value:ie(e),illegal:!1,relevance:0,_top:l,_emitter:new c.__emitter(c)};return t._emitter.addText(e),t}(e),r=t.filter(v).filter(_).map((t=>b(t,e,!1)));r.unshift(s);const i=r.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(v(e.language).supersetOf===t.language)return 1;if(v(t.language).supersetOf===e.language)return-1}return 0})),[a,o]=i,g=a;return g.secondBest=o,g}function y(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=c.languageDetectRe.exec(t);if(n){const t=v(n[1]);return t||(V(o.replace("{}",n[1])),V("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>u(e)||v(e)))}(e);if(u(n))return;if(N("before:highlightElement",{el:e,language:n}),e.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),c.throwUnescapedHTML))throw new re("One of your code blocks includes unescaped HTML.",e.innerHTML);t=e;const s=t.textContent,i=n?m(s,{language:n,ignoreIllegals:!0}):x(s);e.innerHTML=i.value,function(e,t,n){const s=t&&r[t]||n;e.classList.add("hljs"),e.classList.add(`language-${s}`)}(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),N("after:highlightElement",{el:e,result:i,text:s})}let w=!1;function E(){"loading"!==document.readyState?document.querySelectorAll(c.cssSelector).forEach(y):w=!0}function v(e){return e=(e||"").toLowerCase(),n[e]||n[r[e]]}function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{r[e.toLowerCase()]=t}))}function _(e){const t=v(e);return t&&!t.disableAutodetect}function N(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){w&&E()}),!1),Object.assign(e,{highlight:m,highlightAuto:x,highlightAll:E,highlightElement:y,highlightBlock:function(e){return Y("10.7.0","highlightBlock will be removed entirely in v12.0"),Y("10.7.0","Please use highlightElement now."),y(e)},configure:function(e){c=ae(c,e)},initHighlighting:()=>{E(),Y("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){E(),Y("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,s){let r=null;try{r=s(e)}catch(e){if(J("Language definition for '{}' could not be registered.".replace("{}",t)),!a)throw e;J(e),r=l}r.name||(r.name=t),n[t]=r,r.rawDefinition=s.bind(null,e),r.aliases&&k(r.aliases,{languageName:t})},unregisterLanguage:function(e){delete n[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(n)},getLanguage:v,registerAliases:k,autoDetection:_,inherit:ae,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)}}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString="11.7.0",e.regex={concat:f,lookahead:d,either:j,optional:p,anyNumberOfTimes:h};for(const e in D)"object"==typeof D[e]&&t.exports(D[e]);return Object.assign(e,D),e}({});e.exports=le,le.HighlightJS=le,le.default=le}}]);
|
||
//# sourceMappingURL=1731.e9fd83582bca5fa6cbef.js.map
|