diff --git "a/static/_next/static/chunks/2-70c32d541379fb99.js" "b/static/_next/static/chunks/2-70c32d541379fb99.js" new file mode 100644--- /dev/null +++ "b/static/_next/static/chunks/2-70c32d541379fb99.js" @@ -0,0 +1,1735 @@ +(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ + [2], { + 73612: function(e, t, n) { + var r = { + "./apache": 88745, + "./apache.js": 88745, + "./elixir": 72561, + "./elixir.js": 72561, + "./graphql": 7852, + "./graphql.js": 7852, + "./nim": 43003, + "./nim.js": 43003, + "./riscv": 27402, + "./riscv.js": 27402, + "./solidity": 84017, + "./solidity.js": 84017 + }; + + function o(e) { + var t = i(e); + return n(t) + } + + function i(e) { + if (!n.o(r, e)) { + var t = new Error("Cannot find module '" + e + "'"); + throw t.code = "MODULE_NOT_FOUND", t + } + return r[e] + } + o.keys = function() { + return Object.keys(r) + }, o.resolve = i, e.exports = o, o.id = 73612 + }, + 43045: function(e, t, n) { + var r = { + "./apl/apl": 29483, + "./apl/apl.js": 29483, + "./asciiarmor/asciiarmor": 95637, + "./asciiarmor/asciiarmor.js": 95637, + "./asn.1/asn.1": 97922, + "./asn.1/asn.1.js": 97922, + "./asterisk/asterisk": 31881, + "./asterisk/asterisk.js": 31881, + "./brainfuck/brainfuck": 9460, + "./brainfuck/brainfuck.js": 9460, + "./clike/clike": 99762, + "./clike/clike.js": 99762, + "./clojure/clojure": 63693, + "./clojure/clojure.js": 63693, + "./cmake/cmake": 33160, + "./cmake/cmake.js": 33160, + "./cobol/cobol": 65542, + "./cobol/cobol.js": 65542, + "./coffeescript/coffeescript": 90044, + "./coffeescript/coffeescript.js": 90044, + "./commonlisp/commonlisp": 29073, + "./commonlisp/commonlisp.js": 29073, + "./crystal/crystal": 76149, + "./crystal/crystal.js": 76149, + "./css/css": 36629, + "./css/css.js": 36629, + "./cypher/cypher": 88441, + "./cypher/cypher.js": 88441, + "./d/d": 49570, + "./d/d.js": 49570, + "./dart/dart": 20842, + "./dart/dart.js": 20842, + "./diff/diff": 1715, + "./diff/diff.js": 1715, + "./django/django": 75288, + "./django/django.js": 75288, + "./dockerfile/dockerfile": 75258, + "./dockerfile/dockerfile.js": 75258, + "./dtd/dtd": 70655, + "./dtd/dtd.js": 70655, + "./dylan/dylan": 25184, + "./dylan/dylan.js": 25184, + "./ebnf/ebnf": 84134, + "./ebnf/ebnf.js": 84134, + "./ecl/ecl": 60427, + "./ecl/ecl.js": 60427, + "./eiffel/eiffel": 34717, + "./eiffel/eiffel.js": 34717, + "./elm/elm": 78919, + "./elm/elm.js": 78919, + "./erlang/erlang": 76392, + "./erlang/erlang.js": 76392, + "./factor/factor": 27566, + "./factor/factor.js": 27566, + "./fcl/fcl": 15300, + "./fcl/fcl.js": 15300, + "./forth/forth": 88859, + "./forth/forth.js": 88859, + "./fortran/fortran": 44874, + "./fortran/fortran.js": 44874, + "./gas/gas": 28902, + "./gas/gas.js": 28902, + "./gfm/gfm": 42425, + "./gfm/gfm.js": 42425, + "./gherkin/gherkin": 85546, + "./gherkin/gherkin.js": 85546, + "./go/go": 94750, + "./go/go.js": 94750, + "./groovy/groovy": 53123, + "./groovy/groovy.js": 53123, + "./haml/haml": 20147, + "./haml/haml.js": 20147, + "./handlebars/handlebars": 62101, + "./handlebars/handlebars.js": 62101, + "./haskell-literate/haskell-literate": 28510, + "./haskell-literate/haskell-literate.js": 28510, + "./haskell/haskell": 18176, + "./haskell/haskell.js": 18176, + "./haxe/haxe": 19889, + "./haxe/haxe.js": 19889, + "./htmlembedded/htmlembedded": 79820, + "./htmlembedded/htmlembedded.js": 79820, + "./htmlmixed/htmlmixed": 16531, + "./htmlmixed/htmlmixed.js": 16531, + "./http/http": 98411, + "./http/http.js": 98411, + "./idl/idl": 41797, + "./idl/idl.js": 41797, + "./javascript/javascript": 96876, + "./javascript/javascript.js": 96876, + "./jinja2/jinja2": 74670, + "./jinja2/jinja2.js": 74670, + "./jsx/jsx": 71548, + "./jsx/jsx.js": 71548, + "./julia/julia": 68059, + "./julia/julia.js": 68059, + "./livescript/livescript": 14373, + "./livescript/livescript.js": 14373, + "./lua/lua": 57745, + "./lua/lua.js": 57745, + "./markdown/markdown": 49047, + "./markdown/markdown.js": 49047, + "./mathematica/mathematica": 93672, + "./mathematica/mathematica.js": 93672, + "./mbox/mbox": 94377, + "./mbox/mbox.js": 94377, + "./meta": 52539, + "./meta.js": 52539, + "./mirc/mirc": 94268, + "./mirc/mirc.js": 94268, + "./mllike/mllike": 52587, + "./mllike/mllike.js": 52587, + "./modelica/modelica": 24333, + "./modelica/modelica.js": 24333, + "./mscgen/mscgen": 68810, + "./mscgen/mscgen.js": 68810, + "./mumps/mumps": 12875, + "./mumps/mumps.js": 12875, + "./nginx/nginx": 10131, + "./nginx/nginx.js": 10131, + "./nsis/nsis": 42313, + "./nsis/nsis.js": 42313, + "./ntriples/ntriples": 82954, + "./ntriples/ntriples.js": 82954, + "./octave/octave": 15734, + "./octave/octave.js": 15734, + "./oz/oz": 44323, + "./oz/oz.js": 44323, + "./pascal/pascal": 23057, + "./pascal/pascal.js": 23057, + "./pegjs/pegjs": 31472, + "./pegjs/pegjs.js": 31472, + "./perl/perl": 10024, + "./perl/perl.js": 10024, + "./php/php": 36702, + "./php/php.js": 36702, + "./pig/pig": 54763, + "./pig/pig.js": 54763, + "./powershell/powershell": 97196, + "./powershell/powershell.js": 97196, + "./properties/properties": 7999, + "./properties/properties.js": 7999, + "./protobuf/protobuf": 72360, + "./protobuf/protobuf.js": 72360, + "./pug/pug": 75354, + "./pug/pug.js": 75354, + "./puppet/puppet": 20673, + "./puppet/puppet.js": 20673, + "./python/python": 5321, + "./python/python.js": 5321, + "./q/q": 97713, + "./q/q.js": 97713, + "./r/r": 85420, + "./r/r.js": 85420, + "./rpm/rpm": 4344, + "./rpm/rpm.js": 4344, + "./rst/rst": 22968, + "./rst/rst.js": 22968, + "./ruby/ruby": 80853, + "./ruby/ruby.js": 80853, + "./rust/rust": 90911, + "./rust/rust.js": 90911, + "./sas/sas": 16229, + "./sas/sas.js": 16229, + "./sass/sass": 81201, + "./sass/sass.js": 81201, + "./scheme/scheme": 42372, + "./scheme/scheme.js": 42372, + "./shell/shell": 31149, + "./shell/shell.js": 31149, + "./sieve/sieve": 49311, + "./sieve/sieve.js": 49311, + "./slim/slim": 32486, + "./slim/slim.js": 32486, + "./smalltalk/smalltalk": 66690, + "./smalltalk/smalltalk.js": 66690, + "./smarty/smarty": 52889, + "./smarty/smarty.js": 52889, + "./solr/solr": 18715, + "./solr/solr.js": 18715, + "./soy/soy": 61527, + "./soy/soy.js": 61527, + "./sparql/sparql": 63982, + "./sparql/sparql.js": 63982, + "./spreadsheet/spreadsheet": 63138, + "./spreadsheet/spreadsheet.js": 63138, + "./sql/sql": 54086, + "./sql/sql.js": 54086, + "./stex/stex": 80785, + "./stex/stex.js": 80785, + "./stylus/stylus": 60742, + "./stylus/stylus.js": 60742, + "./swift/swift": 37355, + "./swift/swift.js": 37355, + "./tcl/tcl": 25664, + "./tcl/tcl.js": 25664, + "./textile/textile": 43897, + "./textile/textile.js": 43897, + "./tiddlywiki/tiddlywiki": 91046, + "./tiddlywiki/tiddlywiki.js": 91046, + "./tiki/tiki": 17988, + "./tiki/tiki.js": 17988, + "./toml/toml": 47617, + "./toml/toml.js": 47617, + "./tornado/tornado": 66043, + "./tornado/tornado.js": 66043, + "./troff/troff": 20800, + "./troff/troff.js": 20800, + "./ttcn-cfg/ttcn-cfg": 68923, + "./ttcn-cfg/ttcn-cfg.js": 68923, + "./ttcn/ttcn": 71105, + "./ttcn/ttcn.js": 71105, + "./turtle/turtle": 73556, + "./turtle/turtle.js": 73556, + "./twig/twig": 54702, + "./twig/twig.js": 54702, + "./vb/vb": 12660, + "./vb/vb.js": 12660, + "./vbscript/vbscript": 98073, + "./vbscript/vbscript.js": 98073, + "./velocity/velocity": 15912, + "./velocity/velocity.js": 15912, + "./verilog/verilog": 63249, + "./verilog/verilog.js": 63249, + "./vhdl/vhdl": 53140, + "./vhdl/vhdl.js": 53140, + "./vue/vue": 2426, + "./vue/vue.js": 2426, + "./wast/wast": 8632, + "./wast/wast.js": 8632, + "./webidl/webidl": 11015, + "./webidl/webidl.js": 11015, + "./xml/xml": 29589, + "./xml/xml.js": 29589, + "./xquery/xquery": 61484, + "./xquery/xquery.js": 61484, + "./yacas/yacas": 65278, + "./yacas/yacas.js": 65278, + "./yaml-frontmatter/yaml-frontmatter": 98554, + "./yaml-frontmatter/yaml-frontmatter.js": 98554, + "./yaml/yaml": 53631, + "./yaml/yaml.js": 53631, + "./z80/z80": 22245, + "./z80/z80.js": 22245 + }; + + function o(e) { + var t = i(e); + return n(t) + } + + function i(e) { + if (!n.o(r, e)) { + var t = new Error("Cannot find module '" + e + "'"); + throw t.code = "MODULE_NOT_FOUND", t + } + return r[e] + } + o.keys = function() { + return Object.keys(r) + }, o.resolve = i, e.exports = o, o.id = 43045 + }, + 17896: function(e, t, n) { + "use strict"; + n.d(t, { + E: function() { + return a + } + }); + var r = n(67294), + o = n(7851), + i = r.createContext(o.Z); + + function a() { + return r.useContext(i) + } + t.Z = i + }, + 91802: function(e, t, n) { + "use strict"; + n.d(t, { + Z: function() { + return ne + } + }); + var r = n(85893), + o = n(79547), + i = n.n(o), + a = n(67294), + s = n(73935), + c = n(5152), + l = n.n(c), + d = n(47802), + u = n.n(d), + f = n(96344), + p = n.n(f), + m = n(91296), + h = n.n(m), + g = n(57824), + b = n.n(g), + x = n(29656), + y = n(80468), + v = n(13599), + w = n(58299), + k = function() { + return (0, r.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + width: "54", + height: "14", + viewBox: "0 0 54 14", + children: (0, r.jsxs)("g", { + fill: "none", + fillRule: "evenodd", + transform: "translate(1 1)", + children: [(0, r.jsx)("circle", { + cx: "6", + cy: "6", + r: "6", + fill: "#FF5F56", + stroke: "#E0443E", + strokeWidth: ".5" + }), (0, r.jsx)("circle", { + cx: "26", + cy: "6", + r: "6", + fill: "#FFBD2E", + stroke: "#DEA123", + strokeWidth: ".5" + }), (0, r.jsx)("circle", { + cx: "46", + cy: "6", + r: "6", + fill: "#27C93F", + stroke: "#1AAB29", + strokeWidth: ".5" + })] + }) + }) + }, + j = function() { + return (0, r.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + width: "54", + height: "14", + viewBox: "0 0 54 14", + children: (0, r.jsxs)("g", { + fill: "none", + fillRule: "evenodd", + stroke: "#878787", + transform: "translate(1 1)", + children: [(0, r.jsx)("circle", { + cx: "6", + cy: "6", + r: "6" + }), (0, r.jsx)("circle", { + cx: "26", + cy: "6", + r: "6" + }), (0, r.jsx)("circle", { + cx: "46", + cy: "6", + r: "6" + })] + }) + }) + }, + C = function() { + return (0, r.jsxs)("svg", { + width: "58", + height: "14", + viewBox: "0 0 58 14", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + children: [(0, r.jsx)("path", { + d: "M1 7H11", + stroke: "#878787", + strokeLinecap: "round", + strokeLinejoin: "round" + }), (0, r.jsx)("path", { + d: "M35 1H25C24.4477 1 24 1.44772 24 2V12C24 12.5523 24.4477 13 25 13H35C35.5523 13 36 12.5523 36 12V2C36 1.44772 35.5523 1 35 1Z", + stroke: "#878787" + }), (0, r.jsx)("path", { + d: "M47 2L57 12", + stroke: "#878787", + strokeLinecap: "round", + strokeLinejoin: "round" + }), (0, r.jsx)("path", { + d: "M47 12L57 2", + stroke: "#878787", + strokeLinecap: "round", + strokeLinejoin: "round" + })] + }) + }, + z = n(51165), + E = n(15331), + S = a.memo((function(e) { + var t = e.text, + n = (0, v.wc)(t), + o = n.onClick, + a = n.copied; + return (0, r.jsxs)("button", { + onClick: o, + "aria-label": "Copy Button", + className: i().dynamic([ + ["5e70016f67421b2b", [w.DM.SECONDARY]] + ]), + children: [a ? (0, r.jsx)(E.Z, { + color: w.DM.GRAY, + width: 24, + height: 24 + }) : (0, r.jsx)(z.Z, { + size: 24, + color: w.DM.GRAY + }), (0, r.jsx)(i(), { + id: "5e70016f67421b2b", + dynamic: [w.DM.SECONDARY], + children: "button.__jsx-style-dynamic-selector{border:none;cursor:pointer;color:".concat(w.DM.SECONDARY, ";background:transparent}&.__jsx-style-dynamic-selector:active{outline:none}") + })] + }) + })), + A = { + bw: (0, r.jsx)(j, {}), + boxy: (0, r.jsx)(C, {}) + }; + + function _(e) { + var t = e.light, + n = e.value, + o = e.onChange; + return (0, r.jsxs)("div", { + className: i().dynamic([ + ["b87107fa882cc383", [t ? w.DM.BLACK : w.DM.SECONDARY]] + ]), + children: [(0, r.jsx)("input", { + "aria-label": "Image title", + type: "text", + spellCheck: "false", + value: n || "", + onChange: function(e) { + return o(e.target.value) + }, + className: i().dynamic([ + ["b87107fa882cc383", [t ? w.DM.BLACK : w.DM.SECONDARY]] + ]) + }), (0, r.jsx)(i(), { + id: "b87107fa882cc383", + dynamic: [t ? w.DM.BLACK : w.DM.SECONDARY], + children: "div.__jsx-style-dynamic-selector{position:absolute;margin:0px;top:-3px;left:-9px;width:100%;text-align:center}input.__jsx-style-dynamic-selector{width:250px;background:none;outline:none;border:none;text-align:center;max-width:-webkit-calc(100% - 140px);max-width:-moz-calc(100% - 140px);max-width:calc(100% - 140px);font-size:14px;color:".concat(t ? w.DM.BLACK : w.DM.SECONDARY, "}") + })] + }) + } + + function O(e) { + var t = e.theme, + n = e.copyable, + o = e.code, + a = e.light, + s = e.titleBar, + c = e.onTitleBarChange; + return (0, r.jsxs)("div", { + className: i().dynamic([ + ["210675b151459f46", ["bw" === t ? 36 : 34, "bw" === t ? 16 : 14, "boxy" === t ? 16 : 0, "boxy" === t ? "right" : "initial"]] + ]) + " window-controls", + children: [A[t] || (0, r.jsx)(k, {}), (0, r.jsx)(_, { + value: s, + onChange: c, + light: a + }), n && (0, r.jsx)("div", { + className: i().dynamic([ + ["210675b151459f46", ["bw" === t ? 36 : 34, "bw" === t ? 16 : 14, "boxy" === t ? 16 : 0, "boxy" === t ? "right" : "initial"]] + ]) + " copy-button", + children: (0, r.jsx)(S, { + text: o + }) + }), (0, r.jsx)(i(), { + id: "210675b151459f46", + dynamic: ["bw" === t ? 36 : 34, "bw" === t ? 16 : 14, "boxy" === t ? 16 : 0, "boxy" === t ? "right" : "initial"], + children: ".window-controls.__jsx-style-dynamic-selector{margin-top:-24px;position:relative;top:".concat("bw" === t ? 36 : 34, "px;margin-left:").concat("bw" === t ? 16 : 14, "px;margin-right:").concat("boxy" === t ? 16 : 0, "px;z-index:2;text-align:").concat("boxy" === t ? "right" : "initial", "}.copy-button.__jsx-style-dynamic-selector{cursor:pointer;position:absolute;top:0px;right:16px}") + })] + }) + } + var M = w.H8.minWidth, + T = w.H8.maxWidth; + + function q(e) { + var t = e.innerRef, + n = e.onChange, + o = e.onChangeComplete, + s = e.paddingHorizontal, + c = e.paddingVertical, + l = a.useRef(null), + d = a.useRef(null); + return a.useEffect((function() { + var e = function(e) { + if (l.current) { + var t, r, o, i = e.pageX - l.current, + a = d.current + i * window.devicePixelRatio, + s = (o = T, (t = a) < (r = M) ? r : t > o ? o : t); + n(s) + } + }; + return window.addEventListener("mousemove", e), + function() { + return window.removeEventListener("mousemove", e) + } + }), [t, n]), a.useEffect((function() { + var e = function() { + l.current = null, o() + }; + return window.addEventListener("mouseup", e), + function() { + return window.removeEventListener("mouseup", e) + } + }), [o]), (0, r.jsx)("div", { + onMouseDown: function(e) { + l.current = e.pageX, d.current = t.current.clientWidth + }, + role: "separator", + "aria-orientation": "vertical", + "aria-valuemin": M, + "aria-valuemax": T, + className: i().dynamic([ + ["cf20b2641ef5bd11", [w.DM.BLUE, c, c, s]] + ]) + " handler", + children: (0, r.jsx)(i(), { + id: "cf20b2641ef5bd11", + dynamic: [w.DM.BLUE, c, c, s], + children: ".handler.__jsx-style-dynamic-selector{z-index:2;position:absolute;background-color:".concat(w.DM.BLUE, ";top:").concat(c, ";bottom:").concat(c, ";right:").concat(s, ";width:8px;cursor:ew-resize;opacity:0}.handler.__jsx-style-dynamic-selector:hover{opacity:.4}") + }) + }) + } + + function N(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; + return r + } + + function R(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e + } + + function B(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function L(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + + function D(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + + function F(e) { + return (F = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { + return e.__proto__ || Object.getPrototypeOf(e) + })(e) + } + + function H(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" === typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + D(e, t, n[t]) + })) + } + return e + } + + function I(e, t) { + return !t || "object" !== Y(t) && "function" !== typeof t ? R(e) : t + } + + function P(e, t) { + return (P = Object.setPrototypeOf || function(e, t) { + return e.__proto__ = t, e + })(e, t) + } + + function V(e, t) { + return function(e) { + if (Array.isArray(e)) return e + }(e) || function(e, t) { + var n = null == e ? null : "undefined" !== typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; + if (null != n) { + var r, o, i = [], + a = !0, + s = !1; + try { + for (n = n.call(e); !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t); a = !0); + } catch (c) { + s = !0, o = c + } finally { + try { + a || null == n.return || n.return() + } finally { + if (s) throw o + } + } + return i + } + }(e, t) || function(e, t) { + if (!e) return; + if ("string" === typeof e) return N(e, t); + var n = Object.prototype.toString.call(e).slice(8, -1); + "Object" === n && e.constructor && (n = e.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(n); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return N(e, t) + }(e, t) || function() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + }() + } + var Y = function(e) { + return e && "undefined" !== typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e + }; + + function G(e) { + var t = function() { + if ("undefined" === typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ("function" === typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0 + } catch (e) { + return !1 + } + }(); + return function() { + var n, r = F(e); + if (t) { + var o = F(this).constructor; + n = Reflect.construct(r, arguments, o) + } else n = r.apply(this, arguments); + return I(this, n) + } + } + u().registerLanguage("javascript", p()); + var U = l()((function() { + return Promise.all([n.e(758), n.e(939)]).then(n.bind(n, 18939)) + }), { + loadableGenerated: { + webpack: function() { + return [18939] + } + }, + loading: function() { + return null + } + }), + W = l()((function() { + return n.e(376).then(n.bind(n, 46376)) + }), { + loadableGenerated: { + webpack: function() { + return [46376] + } + }, + loading: function() { + return null + } + }); + + function Z(e) { + return w.aP[e] || w.mF[e] || w.Dl[e] + } + + function K() {} + + function $(e) { + switch (e) { + case 1: + return "underline"; + case 2: + return "".concat(w.DM.RED, " wavy underline; text-decoration-skip-ink: none") + } + return "initial" + } + var Q = function(e) { + ! function(e, t) { + if ("function" !== typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + }), t && P(e, t) + }(c, e); + var t, n, o, a = G(c); + + function c() { + var e; + return B(this, c), D(R(e = a.apply(this, arguments)), "state", {}), D(R(e), "handleLanguageChange", h()((function(e, t) { + if ("auto" === t) { + var n = Z(u().highlightAuto(e).language); + if (n) return n.mime || n.mode + } + var r = Z(t); + return r ? r.mime || r.mode : t + }), b()("300ms"), { + leading: !0, + trailing: !0 + })), D(R(e), "onBeforeChange", (function(t, n, r) { + e.props.readOnly || e.props.onChange(r) + })), D(R(e), "onSelection", (function(t, n) { + if (!e.props.readOnly) { + var r = n.ranges[0]; + if (r.head.line === r.anchor.line && r.head.ch === r.anchor.ch) return e.currentSelection = null; + r.head.line + r.head.ch > r.anchor.line + r.anchor.ch ? e.currentSelection = { + from: r.anchor, + to: r.head + } : e.currentSelection = { + from: r.head, + to: r.anchor + } + } + })), D(R(e), "onMouseUp", (function() { + e.currentSelection ? e.setState({ + selectionAt: e.currentSelection + }, (function() { + e.currentSelection = null + })) : e.setState({ + selectionAt: null + }) + })), D(R(e), "onSelectionChange", (function(t) { + if (e.state.selectionAt) { + var n = [null != t.bold && "font-weight: ".concat(t.bold ? "bold" : "initial"), null != t.italics && "font-style: ".concat(t.italics ? "italic" : "initial"), null != t.underline && "text-decoration: ".concat($(t.underline)), null != t.color && "color: ".concat(t.color, " !important")].filter(Boolean).join("; "); + n && e.props.editorRef.current.editor.doc.markText(e.state.selectionAt.from, e.state.selectionAt.to, { + css: n + }) + } + })), e + } + return t = c, (n = [{ + key: "render", + value: function() { + var e = H({}, w.Z, this.props.config), + t = this.handleLanguageChange(this.props.children, e.language && e.language.toLowerCase()), + n = { + screenReaderLabel: "Code editor", + lineNumbers: e.lineNumbers, + firstLineNumber: e.firstLineNumber, + mode: t || "plaintext", + theme: e.theme, + scrollbarStyle: null, + viewportMargin: 1 / 0, + lineWrapping: !0, + smartIndent: !0, + extraKeys: { + "Shift-Tab": "indentLess" + }, + readOnly: this.props.readOnly, + showInvisibles: e.hiddenCharacters, + autoCloseBrackets: !0 + }, + o = this.props.config.backgroundImage && this.props.config.backgroundImageSelection || this.props.config.backgroundImage, + a = this.props.theme || w.a5[e.theme], + c = a && a.light, + l = !this.props.readOnly && !!this.state.selectionAt && document.getElementById("style-editor-button"); + return (0, r.jsxs)("div", { + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " section", + children: [(0, r.jsx)("div", { + ref: this.props.innerRef, + id: "export-container", + onMouseUp: this.onMouseUp, + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " export-container", + children: this.props.loading ? (0, r.jsx)("div", { + style: { + width: 876, + height: 240 + }, + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]), + children: (0, r.jsx)(y.$, {}) + }) : (0, r.jsxs)("div", { + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " container", + children: [e.windowControls ? (0, r.jsx)(O, { + titleBar: this.props.titleBar, + onTitleBarChange: this.props.onTitleBarChange, + theme: e.windowTheme, + code: this.props.children, + copyable: this.props.copyable, + light: c + }) : null, (0, r.jsx)(x.fk, { + ref: this.props.editorRef, + className: "CodeMirror__container window-theme__".concat(e.windowTheme), + value: this.props.children, + options: n, + onBeforeChange: this.onBeforeChange, + onGutterClick: this.props.onGutterClick, + onSelection: this.onSelection + }), e.watermark && (0, r.jsx)(W, { + light: c + }), (0, r.jsxs)("div", { + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " container-bg", + children: [(0, r.jsx)("div", { + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " white eliminateOnRender" + }), (0, r.jsx)("div", { + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " alpha eliminateOnRender" + }), (0, r.jsx)("div", { + className: i().dynamic([ + ["e38644535ae2b763", [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""]] + ]) + " bg" + })] + }), (0, r.jsx)(q, { + innerRef: this.props.innerRef, + onChange: this.props.updateWidth, + onChangeComplete: this.props.updateWidthConfirm, + paddingHorizontal: e.paddingHorizontal, + paddingVertical: e.paddingVertical + })] + }) + }), l && s.createPortal((0, r.jsx)(U, { + onChange: this.onSelectionChange + }), l), (0, r.jsx)(i(), { + id: "e38644535ae2b763", + dynamic: [e.widthAdjustment ? "90px" : "auto", e.widthAdjustment ? "1024px" : "none", e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), e.paddingVertical, e.paddingHorizontal, e.paddingVertical, e.paddingHorizontal, "image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", e.lineNumbers ? "padding-left: 12px;" : "", e.fontFamily, e.fontSize, e.lineHeight, w.DM.SECONDARY, this.props.readOnly ? "hidden" : ""], + children: ".container.__jsx-style-dynamic-selector{position:relative;min-width:".concat(e.widthAdjustment ? "90px" : "auto", ";max-width:").concat(e.widthAdjustment ? "1024px" : "none", ";").concat(e.widthAdjustment ? "" : "width: ".concat(e.width, "px;"), "\n padding: ").concat(e.paddingVertical, " ").concat(e.paddingHorizontal, ";}.container.__jsx-style-dynamic-selector .watermark{fill-opacity:.75;position:absolute;z-index:2;bottom:-webkit-calc(").concat(e.paddingVertical, " + 16px);bottom:-moz-calc(").concat(e.paddingVertical, " + 16px);bottom:calc(").concat(e.paddingVertical, " + 16px);right:-webkit-calc(").concat(e.paddingHorizontal, " + 16px);right:-moz-calc(").concat(e.paddingHorizontal, " + 16px);right:calc(").concat(e.paddingHorizontal, " + 16px)}.container.__jsx-style-dynamic-selector .container-bg.__jsx-style-dynamic-selector{position:absolute;top:0px;right:0px;bottom:0px;left:0px}.container.__jsx-style-dynamic-selector .white.__jsx-style-dynamic-selector{background:#fff;position:absolute;top:0px;right:0px;bottom:0px;left:0px}.container.__jsx-style-dynamic-selector .bg.__jsx-style-dynamic-selector{").concat("image" === this.props.config.backgroundMode ? "background: url(".concat(o, ");\n background-size: cover;\n background-repeat: no-repeat;") : "background: ".concat(this.props.config.backgroundColor || e.backgroundColor, ";\n background-size: auto;\n background-repeat: repeat;"), "\n position: absolute;top:0px;right:0px;bottom:0px;left:0px}.container.__jsx-style-dynamic-selector .alpha.__jsx-style-dynamic-selector{position:absolute;top:0px;right:0px;bottom:0px;left:0px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==)}.container.__jsx-style-dynamic-selector .CodeMirror-gutters{background-color:unset;border-right:none}.container.__jsx-style-dynamic-selector .CodeMirror__container{min-width:inherit;position:relative;z-index:1;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;").concat(e.dropShadow ? "box-shadow: 0 ".concat(e.dropShadowOffsetY, " ").concat(e.dropShadowBlurRadius, " rgba(0, 0, 0, 0.55)") : "", ";}.container.__jsx-style-dynamic-selector .CodeMirror__container .CodeMirror{height:auto;min-width:inherit;padding:18px 18px;padding-left:12px;").concat(e.lineNumbers ? "padding-left: 12px;" : "", " border-radius: 5px;font-family:").concat(e.fontFamily, ",monospace!important;font-size:").concat(e.fontSize, ";line-height:").concat(e.lineHeight, ';-webkit-font-variant-ligatures:contextual;-moz-font-variant-ligatures:contextual;font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt"1;-moz-font-feature-settings:"calt"1;font-feature-settings:"calt"1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container.__jsx-style-dynamic-selector .CodeMirror-scroll,.container.__jsx-style-dynamic-selector .CodeMirror-hscrollbar{overflow:hidden!important}.container.__jsx-style-dynamic-selector .window-theme__sharp>.CodeMirror{-webkit-border-radius:0px;-moz-border-radius:0px;border-radius:0px}.container.__jsx-style-dynamic-selector .window-theme__bw>.CodeMirror{border:2px solid ').concat(w.DM.SECONDARY, "}.container.__jsx-style-dynamic-selector .window-controls+.CodeMirror__container>.CodeMirror{padding-top:48px}.container.__jsx-style-dynamic-selector .CodeMirror-linenumber{cursor:pointer}.container.__jsx-style-dynamic-selector .CodeMirror-cursor{visibility:").concat(this.props.readOnly ? "hidden" : "", '}@media(max-width:768px){.container.__jsx-style-dynamic-selector [contenteditable="true"]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.container.__jsx-style-dynamic-selector{max-width:480px}}.section.__jsx-style-dynamic-selector,.export-container.__jsx-style-dynamic-selector{height:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;max-width:100%}') + })] + }) + } + }]) && L(t.prototype, n), o && L(t, o), c + }(a.PureComponent); + D(Q, "defaultProps", { + onChange: K, + onGutterClick: K + }); + var J = !1; + var X = !1; + + function ee(e, t) { + var n = e.prevLine, + r = e.selected, + o = t.type, + i = t.lineNumber, + a = t.numLines, + s = t.selectedLines, + c = {}; + switch (o) { + case "GROUP": + if (n) + for (var l = Math.min(n, i); l < Math.max(n, i) + 1; l++) c[l] = r[n]; + break; + case "MULTILINE": + for (var d = 0; d < s.length; d++) c[s[d] - 1] = !0; + break; + default: + for (var u = 0; u < a; u++) u != i ? null == n && (c[u] = !1) : c[i] = !0 !== r[i] + } + return { + selected: H({}, r, c), + prevLine: i + } + } + + function te(e, t) { + a.useEffect((function() { + J || (n(55764), w.a2.filter((function(e) { + return e.mode && "auto" !== e.mode && "text" !== e.mode + })).forEach((function(e) { + e.custom ? n(73612)("./".concat(e.mode)) : n(43045)("./".concat(e.mode, "/").concat(e.mode)) + })), J = !0) + }), []), a.useEffect((function() { + X || Promise.all([n.e(910), n.e(913)]).then(n.bind(n, 87913)).then((function(e) { + return e.default.map((function(e) { + return u().registerLanguage(e[0], e[1]) + })) + })).then((function() { + X = !0 + })) + }), []), a.useEffect((function() { + n(94269) + }), []); + var o = a.createRef(), + i = function(e, t) { + var n = V(a.useReducer(ee, { + prevLine: null, + selected: {} + }), 2), + r = n[0], + o = n[1]; + return a.useEffect((function() { + t.current && Object.keys(r.selected).length > 0 && t.current.editor.display.view.forEach((function(e, t) { + e.text && (e.text.style.opacity = !0 === r.selected[t] ? 1 : .5), e.gutter && (e.gutter.style.opacity = !0 === r.selected[t] ? 1 : .5) + })) + }), [r.selected, e.children, e.config, t]), a.useEffect((function() { + e.config.selectedLines && o({ + type: "MULTILINE", + selectedLines: e.config.selectedLines + }) + }), [e.config.selectedLines]), a.useCallback((function(e, t, n, r) { + var i = e.display.view.length, + a = r.shiftKey ? "GROUP" : "LINE"; + o({ + type: a, + lineNumber: t, + numLines: i + }) + }), []) + }(e, o); + return (0, r.jsx)(Q, H({}, e, { + innerRef: t, + editorRef: o, + onGutterClick: i + })) + } + var ne = a.forwardRef(te) + }, + 80468: function(e, t, n) { + "use strict"; + n.d(t, { + $: function() { + return a + } + }); + var r = n(85893), + o = n(79547), + i = n.n(o); + n(67294); + + function a(e) { + var t = e.size, + n = void 0 === t ? 24 : t; + return (0, r.jsxs)("div", { + className: i().dynamic([ + ["9e510eb280591882", [n, n]] + ]) + " bounce", + children: [(0, r.jsx)("div", { + className: i().dynamic([ + ["9e510eb280591882", [n, n]] + ]) + " bounce-dot" + }), (0, r.jsx)("div", { + className: i().dynamic([ + ["9e510eb280591882", [n, n]] + ]) + " bounce-dot" + }), (0, r.jsx)(i(), { + id: "9e510eb280591882", + dynamic: [n, n], + children: ".bounce.__jsx-style-dynamic-selector{width:".concat(n, "px;height:").concat(n, "px;position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.bounce-dot.__jsx-style-dynamic-selector{width:100%;height:100%;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;background-color:rgba(255,255,255,.7);opacity:.6;position:absolute;top:0;left:0;-webkit-animation:bounce 2s infinite cubic-bezier(.455,.03,.515,.955);-moz-animation:bounce 2s infinite cubic-bezier(.455,.03,.515,.955);-o-animation:bounce 2s infinite cubic-bezier(.455,.03,.515,.955);animation:bounce 2s infinite cubic-bezier(.455,.03,.515,.955)}.bounce-dot.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:-1s;-moz-animation-delay:-1s;-o-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes bounce{0%,100%{-webkit-transform:scale(0);transform:scale(0)}45%,55%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes bounce{0%,100%{-moz-transform:scale(0);transform:scale(0)}45%,55%{-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes bounce{0%,100%{-o-transform:scale(0);transform:scale(0)}45%,55%{-o-transform:scale(1);transform:scale(1)}}@keyframes bounce{0%,100%{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0)}45%,55%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}") + })] + }) + } + }, + 15331: function(e, t, n) { + "use strict"; + n.d(t, { + Z: function() { + return o + } + }); + var r = n(85893); + n(67294); + + function o(e) { + var t = e.width, + n = void 0 === t ? 18 : t, + o = e.height, + i = void 0 === o ? 18 : o, + a = e.color, + s = void 0 === a ? "#FFFFFF" : a; + return (0, r.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + width: n, + height: i, + viewBox: "0 0 18 18", + fill: "none", + children: (0, r.jsx)("path", { + d: "M9 0C4.02837 0 0 4.02837 0 9C0 13.9716 4.02837 18 9 18C13.9716 18 18 13.9716 18 9C18 4.02837 13.9716 0 9 0ZM13.6082 6.51202L7.82308 12.3231H7.81875C7.74519 12.3966 7.54615 12.5611 7.31683 12.5611C7.1524 12.5611 6.96635 12.4702 6.81058 12.3144L4.3875 9.89135C4.31827 9.82212 4.31827 9.71394 4.3875 9.64471L5.15769 8.87452C5.19231 8.8399 5.23558 8.8226 5.27885 8.8226C5.32212 8.8226 5.36539 8.8399 5.4 8.87452L7.32115 10.7957L12.6 5.47788C12.6346 5.44327 12.6779 5.42596 12.7212 5.42596C12.7688 5.42596 12.812 5.44327 12.8423 5.47788L13.5995 6.26106C13.6774 6.33462 13.6774 6.44279 13.6082 6.51202Z", + fill: s + }) + }) + } + }, + 51165: function(e, t, n) { + "use strict"; + var r = n(85893), + o = (n(67294), function(e) { + var t = e.size, + n = e.color, + o = .81 * t, + i = t; + return (0, r.jsx)("svg", { + width: o, + height: i, + viewBox: "0 0 13 16", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + children: (0, r.jsx)("path", { + d: "M8 0H3.40385C2.55385 0 1.84615 0.669231 1.84615 1.51923V1.84615H1.55769C0.707692 1.84615 0 2.51538 0 3.36538V14.4423C0 15.2923 0.707692 16 1.55769 16H9.55769C10.4077 16 11.0769 15.2923 11.0769 14.4423V14.1538H11.4038C12.2538 14.1538 12.9231 13.4462 12.9231 12.5962V4.92308L8 0ZM8 1.71538L11.2077 4.92308H8V1.71538ZM9.84615 14.4423C9.84615 14.6231 9.71538 14.7692 9.55769 14.7692H1.55769C1.38846 14.7692 1.23077 14.6115 1.23077 14.4423V3.36538C1.23077 3.20769 1.37692 3.07692 1.55769 3.07692H1.84615V12.9038C1.84615 13.7538 2.24615 14.1538 3.09615 14.1538H9.84615V14.4423ZM11.6923 12.5962C11.6923 12.7769 11.5615 12.9231 11.4038 12.9231H3.40385C3.23462 12.9231 3.07692 12.7654 3.07692 12.5962V1.51923C3.07692 1.36154 3.22308 1.23077 3.40385 1.23077H6.76923V6.15385H11.6923V12.5962Z", + fill: n + }) + }) + }); + o.defaultProps = { + size: 16 + }, t.Z = o + }, + 55764: function(e, t, n) { + "use strict"; + n.r(t); + var r = n(4631), + o = n.n(r), + i = { + pairs: "()[]{}''\"\"", + closeBefore: ")]}'\":;>", + triples: "", + explode: "[]{}" + }, + a = o().Pos; + + function s(e, t) { + return "pairs" == t && "string" == typeof e ? e : "object" == typeof e && null != e[t] ? e[t] : i[t] + } + o().defineOption("autoCloseBrackets", !1, (function(e, t, n) { + n && n != o().Init && (e.removeKeyMap(c), e.state.closeBrackets = null), t && (l(s(t, "pairs")), e.state.closeBrackets = t, e.addKeyMap(c)) + })); + var c = { + Backspace: function(e) { + var t = u(e); + if (!t || e.getOption("disableInput")) return o().Pass; + for (var n = s(t, "pairs"), r = e.listSelections(), i = 0; i < r.length; i++) { + if (!r[i].empty()) return o().Pass; + var c = m(e, r[i].head); + if (!c || n.indexOf(c) % 2 != 0) return o().Pass + } + for (var l = r.length - 1; l >= 0; l--) { + var d = r[l].head; + e.replaceRange("", a(d.line, d.ch - 1), a(d.line, d.ch + 1), "+delete") + } + }, + Enter: function(e) { + var t = u(e), + n = t && s(t, "explode"); + if (!n || e.getOption("disableInput")) return o().Pass; + for (var r = e.listSelections(), i = 0; i < r.length; i++) { + if (!r[i].empty()) return o().Pass; + var a = m(e, r[i].head); + if (!a || n.indexOf(a) % 2 != 0) return o().Pass + } + e.operation((function() { + var t = e.lineSeparator() || "\n"; + e.replaceSelection(t + t, null), f(e, -1), r = e.listSelections(); + for (var n = 0; n < r.length; n++) { + var o = r[n].head.line; + e.indentLine(o, null, !0), e.indentLine(o + 1, null, !0) + } + })) + } + }; + + function l(e) { + for (var t = 0; t < e.length; t++) { + var n = e.charAt(t), + r = "'" + n + "'"; + c[r] || (c[r] = d(n)) + } + } + + function d(e) { + return function(t) { + return function(e, t) { + var n = u(e); + if (!n || e.getOption("disableInput")) return o().Pass; + var r = s(n, "pairs"), + i = r.indexOf(t); + if (-1 == i) return o().Pass; + for (var c, l = s(n, "closeBefore"), d = s(n, "triples"), m = r.charAt(i + 1) == t, g = e.listSelections(), b = i % 2 == 0, x = 0; x < g.length; x++) { + var y = g[x], + v = y.head, + w = void 0, + k = e.getRange(v, a(v.line, v.ch + 1)); + if (b && !y.empty()) w = "surround"; + else if (!m && b || k != t) + if (m && v.ch > 1 && d.indexOf(t) >= 0 && e.getRange(a(v.line, v.ch - 2), v) == t + t) { + if (v.ch > 2 && /\bstring/.test(e.getTokenTypeAt(a(v.line, v.ch - 2)))) return o().Pass; + w = "addFour" + } else if (m) { + var j = 0 == v.ch ? " " : e.getRange(a(v.line, v.ch - 1), v); + if (o().isWordChar(k) || j == t || o().isWordChar(j)) return o().Pass; + w = "both" + } else { + if (!b || !(0 === k.length || /\s/.test(k) || l.indexOf(k) > -1)) return o().Pass; + w = "both" + } else w = m && h(e, v) ? "both" : d.indexOf(t) >= 0 && e.getRange(v, a(v.line, v.ch + 3)) == t + t + t ? "skipThree" : "skip"; + if (c) { + if (c != w) return o().Pass + } else c = w + } + var C = i % 2 ? r.charAt(i - 1) : t, + z = i % 2 ? t : r.charAt(i + 1); + e.operation((function() { + if ("skip" == c) f(e, 1); + else if ("skipThree" == c) f(e, 3); + else if ("surround" == c) { + for (var t = e.getSelections(), n = 0; n < t.length; n++) t[n] = C + t[n] + z; + e.replaceSelections(t, "around"), t = e.listSelections().slice(); + for (var r = 0; r < t.length; r++) t[r] = p(t[r]); + e.setSelections(t) + } else "both" == c ? (e.replaceSelection(C + z, null), e.triggerElectric(C + z), f(e, -1)) : "addFour" == c && (e.replaceSelection(C + C + C + C, "before"), f(e, 1)) + })) + }(t, e) + } + } + + function u(e) { + var t = e.state.closeBrackets; + return !t || t.override ? t : e.getModeAt(e.getCursor()).closeBrackets || t + } + + function f(e, t) { + for (var n = [], r = e.listSelections(), o = 0, i = 0; i < r.length; i++) { + var a = r[i]; + a.head == e.getCursor() && (o = i); + var s = a.head.ch || t > 0 ? { + line: a.head.line, + ch: a.head.ch + t + } : { + line: a.head.line - 1 + }; + n.push({ + anchor: s, + head: s + }) + } + e.setSelections(n, o) + } + + function p(e) { + var t = o().cmpPos(e.anchor, e.head) > 0; + return { + anchor: new a(e.anchor.line, e.anchor.ch + (t ? -1 : 1)), + head: new a(e.head.line, e.head.ch + (t ? 1 : -1)) + } + } + + function m(e, t) { + var n = e.getRange(a(t.line, t.ch - 1), a(t.line, t.ch + 1)); + return 2 == n.length ? n : null + } + + function h(e, t) { + var n = e.getTokenAt(a(t.line, t.ch + 1)); + return /\bstring/.test(n.type) && n.start == t.ch && (0 == t.ch || !/\bstring/.test(e.getTokenTypeAt(t))) + } + l(i.pairs + "`") + }, + 88745: function(e, t, n) { + var r = n(4631); + r.defineMode("apache", (function() { + return { + token: function(e, t) { + var n = e.sol() || t.afterSection, + r = e.eol(); + if (t.afterSection = !1, n && (t.nextMultiline ? (t.inMultiline = !0, t.nextMultiline = !1) : t.position = "def"), r && !t.nextMultiline && (t.inMultiline = !1, t.position = "def"), n) + for (; e.eatSpace();); + var o = e.next(); + if (n && "#" === o) return t.position = "comment", e.skipToEnd(), "comment"; + if ("!" === o && " " !== e.peek()) return "number"; + if (" " === o) return "[" === e.peek() ? (e.skipTo("]") ? e.next() : e.skipToEnd(), "keyword") : "(" === e.peek() ? (e.skipTo(")") ? e.next() : e.skipToEnd(), "string") : (t.position = "unit", "unit"); + if ('"' === o) return e.skipTo('"') ? e.next() : e.skipToEnd(), "quote"; + if (n && "<" === o) return e.skipTo(">") ? e.next() : e.skipToEnd(), "meta"; + if ("%" === o) { + if ("{" === e.peek()) return e.skipTo("}") ? e.next() : e.skipToEnd(), "operator" + } else if ("$" === o) { + if (!isNaN(e.peek()) && " " !== e.peek()) { + for (; !isNaN(e.peek()) && " " !== e.peek();) e.next(); + return "operator" + } + } else if ("\\" === o) { + if ("." === e.peek()) return e.skipTo(" ") ? e.next() : e.skipToEnd(), "string" + } else if ("." === o) { + if ("*" === e.peek()) return e.skipTo(" ") ? e.next() : e.skipToEnd(), "string" + } else if ("^" === o) return e.skipTo(" ") ? e.next() : e.skipToEnd(), "string"; + return t.position + }, + lineComment: "#", + fold: "brace", + startState: function() { + return { + position: "def", + nextMultiline: !1, + inMultiline: !1, + afterSection: !1 + } + } + } + })), r.defineMIME("text/apache", "apache"), r.defineMIME("text/htaccess", "apache") + }, + 72561: function(e, t, n) { + "use strict"; + n.r(t); + n(10167) + }, + 7852: function(e, t, n) { + "use strict"; + n.r(t); + n(59229) + }, + 43003: function(e, t, n) { + var r = n(4631); + r.defineMode("nim", (function(e, t) { + var n = function(e) { + return new RegExp("^((" + e.join(")|(") + "))\\b") + }, + o = function(e, t) { + if (e.sol()) { + var n = t.scopes[0].offset; + if (e.eatSpace()) { + var r = e.indentation(); + return r > n ? h = "indent" : r < n && (h = "dedent"), null + } + n > 0 && s(e, t) + } + if (e.eatSpace()) return null; + if ("#" === e.peek()) return e.skipToEnd(), "comment"; + if (e.match(/^[0-9.]/, !1)) { + var o = !1; + if (e.match(/^\d*\.\d+(e[+-]?\d+)?/i) && (o = !0), e.match(/^\d+\.\d*/) && (o = !0), e.match(/^\.\d+/) && (o = !0), o) return e.eat(/J/i), "number"; + var a = !1; + if (e.match(/^0x[0-9a-f]+/i) && (a = !0), e.match(/^0b[01]+/i) && (a = !0), e.match(/^0o[0-7]+/i) && (a = !0), e.match(/^[1-9]\d*(e[+-]?\d+)?/) && (e.eat(/J/i), a = !0), e.match(/^0(?![\dx])/i) && (a = !0), a) return e.eat(/L/i), "number" + } + return e.match(g) ? (t.tokenize = i(e.current()), t.tokenize(e, t)) : e.match(l) ? "operator" : e.match(p) ? "keyword" : e.match(m) ? "builtin" : e.match(d) ? null != t.lastToken && t.lastToken.match(/proc|iterator|macro|template|class|converter/) ? "def" : "variable" : (e.next(), c) + }, + i = function(e) { + var n = 1 == e.length, + r = "string"; + + function i(i, a) { + for (; !i.eol();) + if (i.eatWhile(/[^'"\\]/), i.eat("\\")) { + if (i.next(), n && i.eol()) return r + } else { + if (i.match(e)) return a.tokenize = o, r; + i.eat(/['"]/) + } + if (n) { + if (t.singleLineStringErrors) return c; + a.tokenize = o + } + return r + } + return i.isString = !0, i + }, + a = function(t, n, r) { + var o = 0; + if ("nim" === (r = r || "nim")) { + if ("nim" !== n.scopes[0].type) return void(n.scopes[0].offset = t.indentation()); + for (var i = 0; i < n.scopes.length; ++i) + if ("nim" === n.scopes[i].type) { + o = n.scopes[i].offset + e.indentUnit; + break + } + } else o = t.column() + t.current().length; + n.scopes.unshift({ + offset: o, + type: r + }) + }, + s = function(e, t, n) { + if (n = n || "nim", 1 != t.scopes.length) { + if ("nim" === t.scopes[0].type) { + for (var r = e.indentation(), o = -1, i = 0; i < t.scopes.length; ++i) + if (r === t.scopes[i].offset) { + o = i; + break + } + if (-1 === o) return !0; + for (; t.scopes[0].offset !== r;) t.scopes.shift(); + return !1 + } + return "nim" === n ? (t.scopes[0].offset = e.indentation(), !1) : t.scopes[0].type != n || (t.scopes.shift(), !1) + } + }, + c = "error", + l = new RegExp(["=", "+", "-", "*", "/", "<", ">", "@", "$", "~", "&", "%", "|", "?", "^", ":", "\\", "[", "]", "(", ")", ",", "{", "}", ".\\.", "."].map((function(e) { + return "\\" + e + })).join("|")), + d = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"), + u = ["addr", "asm", "atomic", "bind", "block", "break", "case", "cast", "const", "continue", "converter", "discard", "distinct", "do", "elif", "else", "end", "enum", "except", "export", "finally", "for", "from", "generic", "if", "import", "include", "interface", "iterator", "lambda", "let", "macro", "method", "mixin", "nil", "object", "out", "proc", "ptr", "raise", "ref", "return", "shared", "static", "template", "try", "tuple", "type", "using", "var", "when", "while", "with", "without", "yield", "shl", "shr", "and", "or", "xor", "not", "div", "mod", "is", "isnot", "in", "as", "of"], + f = ["int", "int8", "int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64", "float", "float32", "float64", "bool", "char", "string", "cstring", "pointer", "range", "array", "openarray", "seq", "set", "Byte", "Natural", "Positive", "TObject", "PObject", "Conversion", "TResult", "TAddress", "BiggestInt", "BiggestFloat", "cchar", "cschar", "cshort", "cint", "csize", "cuchar", "cushort", "clong", "clonglong", "cfloat", "cdouble", "clongdouble", "cuint", "culong", "culonglong", "cchar", "cstringArray", "TEndian", "PFloat32", "PFloat64", "PInt64", "PInt32", "TGC_Strategy", "TFile", "TFileMode", "TFileHandle", "isMainModule", "CompileDate", "CompileTime", "cpuEndian", "hostOS", "hostCPU", "inf", "neginf", "nan", "QuitSuccess", "QuitFailure", "dbgLineHook", "stdin", "stdout", "stderr", "defined", "new", "high", "low", "sizeof", "succ", "pred", "inc", "dec", "newSeq", "len", "incl", "excl", "card", "ord", "chr", "ze", "ze64", "toU8", "toU16", "toU32", "abs", "min", "max", "add", "repr", "contains", "toFloat", "toBiggestFloat", "toInt", "toBiggestInt", "addQuitProc", "copy", "setLen", "newString", "zeroMem", "copyMem", "moveMem", "equalMem", "alloc", "alloc0", "realloc", "dealloc", "setLen", "assert", "swap", "getRefcount", "getCurrentException", "Msg", "getOccupiedMem", "getFreeMem", "getTotalMem", "isNil", "seqToPtr", "find", "pop", "GC_disable", "GC_enable", "GC_fullCollect", "GC_setStrategy", "GC_enableMarkAnd", "Sweep", "GC_disableMarkAnd", "Sweep", "GC_getStatistics", "GC_ref", "GC_ref", "GC_ref", "GC_unref", "GC_unref", "GC_unref", "quit", "OpenFile", "OpenFile", "CloseFile", "EndOfFile", "readChar", "FlushFile", "readFile", "write", "readLine", "writeln", "writeln", "getFileSize", "ReadBytes", "ReadChars", "readBuffer", "writeBytes", "writeChars", "writeBuffer", "setFilePos", "getFilePos", "fileHandle", "countdown", "countup", "items", "lines", "true", "false", "E_Base", "EAsynch", "ESynch", "ESystem", "EIO", "EOS", "ERessourceExhausted", "EArithmetic", "EDivByZero", "EOverflow", "EAccessViolation", "EAssertionFailed", "EControlC", "EInvalidValue", "EOutOfMemory", "EInvalidIndex", "EInvalidField", "EOutOfRange", "EStackOverflow", "ENoExceptionToReraise", "EInvalidObjectAssignment", "EInvalidObject", "EInvalidLibrary", "EInvalidKey", "EInvalidObjectConversion", "EFloatingPoint", "EFloatInvalidOp", "EFloatDivByZero", "EFloatOverflow", "EFloatInexact", "EDeadThrea"]; + void 0 != t.extra_keywords && (u = u.concat(t.extra_keywords)), void 0 != t.extra_builtins && (f = f.concat(t.extra_builtins)); + var p = n(u), + m = n(f), + h = null, + g = new RegExp("^(('{3}|\"{3}|['\"]))", "i"); + return { + startState: function(e) { + return { + tokenize: o, + scopes: [{ + offset: e || 0, + type: "nim" + }], + lastStyle: null, + lastToken: null, + lambda: !1, + dedent: 0 + } + }, + token: function(e, t) { + var n = function(e, t) { + h = null; + var n = t.tokenize(e, t), + r = e.current(); + if ("." === r) return null === (n = e.match(d, !1) ? null : c) && "meta" === t.lastStyle && (n = "meta"), n; + "variable" !== n && "builtin" !== n || "meta" !== t.lastStyle || (n = "meta"), (r.match(/return|break|continue|raise/) || "discard" === r && e.eol()) && (t.dedent += 1), "lambda" !== r && "proc" !== r || (t.lambda = !0); + var o = "[({".indexOf(r); + return -1 !== o ? a(e, t, "])}".slice(o, o + 1)) : e.eol() && r.match(/=|:|import|include|type|const|var|let/) && a(e, t), "dedent" === h && s(e, t) || -1 !== (o = "])}".indexOf(r)) && s(e, t, r) ? c : (t.dedent > 0 && e.eol() && "nim" == t.scopes[0].type && (t.scopes.length > 1 && t.scopes.shift(), t.dedent -= 1), n) + }(e, t); + t.lastStyle = n; + var r = e.current(); + return r && n && (t.lastToken = r), e.eol() && t.lambda && (t.lambda = !1), n + }, + indent: function(e) { + return e.tokenize != o ? e.tokenize.isString ? r.Pass : 0 : e.scopes[0].offset + }, + lineComment: "#", + fold: "indent" + } + })), r.defineMIME("text/x-nim", "nim") + }, + 27402: function(e, t, n) { + var r = n(4631); + r.defineMode("riscv", (function() { + var e = function(e, t) { + return new RegExp("^(?:" + e.join("|") + ")$", t) + }, + t = function(e, t) { + var r = e.next(); + return "#" == r ? (e.skipToEnd(), "comment") : '"' == r || "'" == r ? (t.cur = n(r), t.cur(e, t)) : /\d/.test(r) ? (e.eatWhile(/[\w.%]/), ":" === e.peek() ? "variable" : "number") : /[.\w_]/.test(r) ? (e.eatWhile(/[\w\\\-_.]/), "variable") : null + }, + n = function(e) { + return function(n, r) { + for (var o, i = !1; null != (o = n.next()) && (o != e || i);) i = !i && "\\" == o; + return i || (r.cur = t), "string" + } + }, + r = e(["lb", "lh", "lw", "lbu", "lhu", "ld", "lq", "lwu", "ldu", "sb", "sh", "sw", "sd", "sq", "sll", "slli", "srl", "srli", "sra", "srai", "sllw", "slliw", "srlw", "srliw", "sraw", "sraiw", "slld", "sllid", "srld", "srlid", "srad", "sraid", "add", "addi", "sub", "lui", "auipc", "addw", "addiw", "subw", "addd", "addid", "subd", "xor", "xori", "or", "ori", "and", "andi", "slt", "slti", "sltu", "sltiu", "beq", "bne", "blt", "bge", "bltu", "bgeu", "jal", "jalr", "fence", "fence.i", "scall", "sbreak", "rdcycle", "rdcycleh", "rdtime", "rdtimeh", "rdinstret", "rdinstreth", "csrrw", "csrrs", "csrrc", "csrrwi", "csrrsi", "csrrci", "ecall", "ebreak", "eret", "mrts", "mrth", "hrts", "mul", "mulh", "mulhsu", "mulw", "muld", "div", "divu", "divw", "divd", "rem", "remu", "remw", "remuw", "remd", "remud", "beqz", "bgez", "bgt", "bgtu", "bgtz", "ble", "bleu", "blez", "bltz", "bnez", "call", "j", "jr", "la", "li", "mv", "neg", "nop", "ret", "not", "ret", "seqz", "sgtz", "sltz", "snez", "tail", "seq", "sge", "sgeu", "sgt", "sgtu", "sle", "sleu", "sne", "c.lw", "c.lwsp", "c.ld", "c.ldsp", "c.lq", "c.lqsp", "c.sw", "c.swsp", "c.sd", "c.sdsp", "c.sq", "c.sqsp", "c.add", "c.addw", "c.addi", "c.addiw", "c.addi16sp", "c.addi2spn", "c.li", "c.lui", "c.mv", "c.sub", "c.slli", "c.beqz", "c.bnez", "c.j", "c.jr", "c.jal", "c.jalr", "c.ebreak", "lr.w", "lr.d", "lr.q", "sc.w", "sc.d", "sc.q", "amoswap.w", "amoswap.d", "amoswap.q", "amoadd.w", "amoadd.d", "amoadd.q", "amoxor.w", "amoand.w", "amoor.w", "amoxor.d", "amoand.d", "amoor.d", "amoxor.q", "amoand.q", "amoor.q", "amomin.w", "amomax.w", "amominu.w", "amomax.w", "amomin.d", "amomax.d", "amominu.d", "amomax.d", "amomin.q", "amomax.q", "amominu.q", "amomax.q", "fmv.h.x", "fmv.s.s", "fmv.x.h", "fmv.x.s", "fmv.d.x", "fmv.q.s", "fmv.d.h", "fmv.q.s", "fcvt.h.w", "fcvt.s.w", "fcvt.d.w", "fcvt.q.w", "fcvt.h.wu", "fcvt.s.wu", "fcvt.d.wu", "fcvt.q.wu", "fcvt.w.h", "fcvt.w.s", "fcvt.w.d", "fcvt.w.q", "fcvt.wu.h", "fcvt.w.s", "fcvt.w.d", "fcvt.w.q", "fcvt.h.l", "fcvt.h.t", "fcvt.h.lu", "fcvt.h.tu", "fcvt.s.l", "fcvt.s.t", "fcvt.s.lu", "fcvt.s.tu", "fcvt.d.l", "fcvt.d.t", "fcvt.d.lu", "fcvt.d.tu", "fcvt.q.l", "fcvt.q.t", "fcvt.q.lu", "fcvt.q.tu", "fcvt.l.h", "fcvt.t.h", "fcvt.lu.h", "fcvt.tu.h", "fcvt.l.s", "fcvt.t.s", "fcvt.lu.s", "fcvt.tu.s", "fcvt.l.d", "fcvt.t.d", "fcvt.lu.d", "fcvt.tu.d", "fcvt.l.q", "fcvt.t.q", "fcvt.lu.q", "fcvt.tu.q", "flw", "fld", "flq", "fsw", "fsd", "fsq", "fadd.s", "fsub.s", "fmul.s", "fdiv.s", "fsqrt.s", "fadd.d", "fsub.d", "fmul.d", "fdiv.d", "fsqrt.d", "fadd.q", "fsub.q", "fmul.q", "fdiv.q", "fsqrt.q", "fmadd.d", "fmsub.d", "fnmsub.d", "fnmadd.d", "fmadd.d", "fmsub.d", "fnmsub.d", "fnmadd.d", "fmadd.q", "fmsub.q", "fnmsub.q", "fnmadd.q", "fsgnj.s", "fsgnjn.s", "fsgnjx.s", "fsgnj.d", "fsgnjn.d", "fsgnjx.d", "fsgnj.q", "fsgnjn.q", "fsgnjx.q", "fmin.s", "fmax.s", "fmin.d", "fmax.d", "fmin.q", "fmax.q", "feq.s", "flt.s", "fle.s", "feq.d", "flt.d", "fle.d", "feq.q", "flt.q", "fle.q", "fclass.s", "fclass.d", "fclass.q", "frcsr", "frrm", "frflags", "fscsr", "fsrm", "fsflags", "fsrmi", "fsflagsi"], "i"), + o = e(["x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17", "x18", "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28", "x29", "x30", "x31", "zero", "ra", "sp", "gp", "tp", "t0", "t1", "t2", "s0", "s1", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "t3", "t4", "t5", "t6", "pc"], ""), + i = e([".align", ".file", ".globl", ".local", ".comm", ".common", ".ident", ".section", ".size", ".text", ".data", ".rodata", ".bss", ".string", ".asciz", ".asciiz", ".equ", ".macro", ".endm", ".type", ".option", ".byte", ".2byte", ".half", ".short", ".4byte", ".word", ".long", ".8byte", ".dword", ".quad", ".dtprelword", ".dtpreldword", ".sleb128", ".uleb128", ".p2align", ".balign", ".zero", ".float", ".double"], "i"); + return { + startState: function(e) { + return { + basecol: e || 0, + indentDepth: 0, + cur: t + } + }, + token: function(e, t) { + if (e.eatSpace()) return null; + var n = t.cur(e, t), + a = e.current(); + return "variable" == n && (i.test(a) ? n = "keyword" : r.test(a) ? n = "builtin" : o.test(a) && (n = "variable-2")), n + } + } + })), r.defineMIME("text/riscv", "riscv") + }, + 84017: function(e, t, n) { + "use strict"; + + function r(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + var o = n(4631); + o.defineMode("solidity", (function(e) { + var t, n, i = function(e, t) { + var r = e.next(); + if ('"' == r || "'" == r || "`" == r) return t.tokenize = a(r), t.tokenize(e, t); + if (c(e, t)) return "version"; + if ("." == r && N.some((function(t) { + return e.match("".concat(t)) + }))) return "addressFunction"; + if (l(r, e)) return "number"; + if (/[\[\]{}\(\),;\:\.]/.test(r)) return m(r, t); + if ("/" == r) { + if (e.eat("*")) return t.tokenize = s, s(e, t); + if (e.match(/\/{2}/)) { + for (; r = e.next();) + if ("@" == r) { + e.backUp(1), t.grammar = "doc"; + break + } + return "doc" + } + if (e.eat("/")) return e.skipToEnd(), "comment" + } + if (D.test(r)) return l(e.peek(), e) ? "number" : "operator"; + if (L.test(r)) return e.eatWhile(L), "operator"; + e.eatWhile(/[\w\$_\xa1-\uffff]/); + var o = e.current(); + if ("doc" == t.grammar) return R.some((function(e) { + return o == "@".concat(e) + })) ? "docReserve" : "doc"; + if ("solidity" === o && "pragma" == t.lastToken && (t.lastToken = t.lastToken + " " + o), y.propertyIsEnumerable(o)) return "case" != o && "default" != o || (n = "case"), v.propertyIsEnumerable(o) && (t.lastToken = o), "keyword"; + if (w.propertyIsEnumerable(o)) return "etherUnit"; + if (S.propertyIsEnumerable(o)) return "contractRelated"; + if (O.propertyIsEnumerable(o) || A.propertyIsEnumerable(o) || T.propertyIsEnumerable(o)) return "keyword"; + if (M.propertyIsEnumerable(o) || k.propertyIsEnumerable(o) || d(o) || u(o) || f(o)) return t.lastToken = t.lastToken + "variable", "keyword"; + if (B.propertyIsEnumerable(o)) return "atom"; + if (z.propertyIsEnumerable(o)) return "errorHandling"; + if (E.propertyIsEnumerable(o)) return "mathematicalAndCryptographic"; + if (C.propertyIsEnumerable(o) || j.hasOwnProperty(o) && j[o].some((function(t) { + return e.match(".".concat(t)) + }))) return "variable-2"; + if (q.hasOwnProperty(o) && q[o].some((function(t) { + return e.match(".".concat(t)) + }))) return "abi"; + var i = p(o, e); + return null != i ? i : "functionName(" != t.lastToken && "returns(" != t.lastToken || !_.propertyIsEnumerable(o) ? "function" == t.lastToken ? (t.lastToken = "functionName", null == t.para && (t.grammar = "function", t.para = ""), t.para += "functionName", "functionName") : "functionName(variable" == t.lastToken ? (t.lastToken = "functionName(", "parameterValue") : "returns(variable" == t.lastToken ? (t.lastToken = "returns(", "parameterValue") : ("address" == t.lastToken && "payable" == o && (t.lastToken = "address payable"), "contract" != t.lastToken && "struct" != t.lastToken || (_[o] = !0, t.lastToken = null), "function" == t.grammar ? "parameterValue" : "variable") : (t.lastToken += "variable", "variable") + }, + a = function(e) { + return function(t, n) { + for (var r, o = !1, a = !1; null != (r = t.next());) { + if (r == e && !o) { + a = !0; + break + } + o = !o && "`" != e && "\\" == r + } + return (a || !o && "`" != e) && (n.tokenize = i), "string" + } + }, + s = function(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = i; + break + } + r = "*" == n + } + return "comment" + }, + c = function(e, t) { + if ("pragma solidity" == t.lastToken) return t.lastToken = null, !t.startOfLine && (e.match(/[\^{0}][0-9\.]+/) || e.match(/[\>\=]+?[\s]*[0-9\.]+[\s]*[\<]?[\s]*[0-9\.]+/)) + }, + l = function(e, t) { + if (/[\d\.]/.test(e)) return "." == e ? t.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : "0" == e ? t.match(/^[xX][0-9a-fA-F]+/) || t.match(/^0[0-7]+/) : t.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), !0 + }, + d = function(e) { + if (e.match(/^[u]?int/)) { + if (e.indexOf("t") + 1 == e.length) return !0; + var t = e.substr(e.indexOf("t") + 1, e.length); + return t % 8 === 0 && t <= 256 + } + }, + u = function(e) { + if (e.match(/^bytes/)) return e.indexOf("s") + 1 == e.length || e.substr(e.indexOf("s") + 1, e.length) <= 32 + }, + f = function(e) { + if (e.match(/^[u]?fixed([0-9]+x[0-9]+)?/)) { + if (e.indexOf("d") + 1 == e.length) return !0; + var t = e.substr(e.indexOf("d") + 1, e.length).split("x"); + return t[0] % 8 === 0 && t[0] <= 256 && t[1] <= 80 + } + }, + p = function(e, t) { + if (e.match(/^hex/) && '"' == t.peek()) + for (var n, r = !1, o = ""; n = t.next();) { + if (o += n, '"' == n && r) { + if (o.substring(1, o.length - 1).match(/^[0-9a-fA-F]+$/)) return "number"; + t.backUp(o.length); + break + } + r = r || '"' == n + } + }, + m = function(e, t) { + return "," == e && "functionName(variable" == t.para && (t.para = "functionName("), null != t.para && t.para.startsWith("functionName") && (")" == e ? t.para.endsWith("(") && (t.para = t.para.substr(0, t.para.length - 1), "functionName" == t.para && (t.grammar = "")) : "(" == e && (t.para += e)), "(" == e && "functionName" == t.lastToken ? t.lastToken += e : ")" == e && "functionName(" == t.lastToken ? t.lastToken = null : "(" == e && "returns" == t.lastToken ? t.lastToken += e : ")" != e || "returns(" != t.lastToken && "returns(variable" != t.lastToken || (t.lastToken = null), "(" == e && "address" == t.lastToken && (t.lastToken += e), n = e, null + }, + h = function(e, t, n, r, o) { + this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = o + }, + g = function(e, t, n) { + return e.context = new h(e.indented, t, n, null, e.context) + }, + b = function(e) { + if (e.context.prev) { + var t = e.context.type; + return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev + } + }, + x = e.indentUnit, + y = { + pragma: !0, + solidity: !0, + import: !0, + as: !0, + from: !0, + contract: !0, + constructor: !0, + is: !0, + function: !0, + modifier: !0, + pure: !0, + view: !0, + payable: !0, + constant: !0, + anonymous: !0, + indexed: !0, + returns: !0, + return: !0, + event: !0, + struct: !0, + mapping: !0, + interface: !0, + using: !0, + library: !0, + storage: !0, + memory: !0, + calldata: !0, + public: !0, + private: !0, + external: !0, + internal: !0, + emit: !0, + assembly: !0, + abstract: !0, + after: !0, + catch: !0, + final: !0, + in: !0, + inline: !0, + let: !0, + match: !0, + null: !0, + of: !0, + relocatable: !0, + static: !0, + try: !0, + typeof: !0, + var: !0 + }, + v = { + pragma: !0, + returns: !0, + address: !0, + contract: !0, + function: !0, + struct: !0 + }, + w = { + wei: !0, + szabo: !0, + finney: !0, + ether: !0 + }, + k = { + seconds: !0, + minutes: !0, + hours: !0, + days: !0, + weeks: !0 + }, + j = (r(t = {}, "block", ["coinbase", "difficulty", "gaslimit", "number", "timestamp"]), r(t, "msg", ["data", "sender", "sig", "value"]), r(t, "tx", ["gasprice", "origin"]), t), + C = { + now: !0, + gasleft: !0, + blockhash: !0 + }, + z = { + assert: !0, + require: !0, + revert: !0, + throw: !0 + }, + E = { + addmod: !0, + mulmod: !0, + keccak256: !0, + sha256: !0, + ripemd160: !0, + ecrecover: !0 + }, + S = { + this: !0, + selfdestruct: !0, + super: !0 + }, + A = { + type: !0 + }, + _ = {}, + O = { + if: !0, + else: !0, + while: !0, + do: !0, + for: !0, + break: !0, + continue: !0, + switch: !0, + case: !0, + default: !0 + }, + M = { + bool: !0, + byte: !0, + string: !0, + enum: !0, + address: !0 + }, + T = { + alias: !0, + apply: !0, + auto: !0, + copyof: !0, + define: !0, + immutable: !0, + implements: !0, + macro: !0, + mutable: !0, + override: !0, + partial: !0, + promise: !0, + reference: !0, + sealed: !0, + sizeof: !0, + supports: !0, + typedef: !0, + unchecked: !0 + }, + q = r({}, "abi", ["decode", "encodePacked", "encodeWithSelector", "encodeWithSignature", "encode"]), + N = ["transfer", "send", "balance", "call", "delegatecall", "staticcall"], + R = ["title", "author", "notice", "dev", "param", "return"], + B = { + delete: !0, + new: !0, + true: !0, + false: !0 + }, + L = /[+\-*&^%:=<>!|\/~]/, + D = /[-]/; + return { + startState: function(e) { + return { + tokenize: null, + context: new h((e || 0) - x, 0, "top", !1), + indented: 0, + startOfLine: !0 + } + }, + token: function(e, t) { + var r = t.context; + if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0, "case" == r.type && (r.type = "}"), "doc" == t.grammar && (t.grammar = null)), e.eatSpace()) return null; + n = null; + var o = (t.tokenize || i)(e, t); + return "comment" == o || (null == r.align && (r.align = !0), "{" == n ? g(t, e.column(), "}") : "[" == n ? g(t, e.column(), "]") : "(" == n ? g(t, e.column(), ")") : "case" == n ? r.type = "case" : ("}" == n && "}" == r.type || n == r.type) && b(t), t.startOfLine = !1), o + }, + indent: function(e, t) { + if (e.tokenize != i && null != e.tokenize) return o.Pass; + var n = e.context, + r = t && t.charAt(0); + if ("case" == n.type && /^(?:case|default)\b/.test(t)) return e.context.type = "}", n.indented; + var a = r == n.type; + return n.align ? n.column + (a ? 0 : 1) : n.indented + (a ? 0 : x) + }, + electricChars: "{}):", + closeBrackets: "()[]{}''\"\"``", + fold: "brace", + blockCommentStart: "/*", + blockCommentEnd: "*/", + lineComment: "//" + } + })), o.defineMIME("text/x-solidity", "solidity") + } + } +]); \ No newline at end of file