1 |
- {"ast":null,"code":"\"use strict\";\n\nvar __values = this && this.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NoUndefinedConfiguration = void 0;\nvar Configuration_js_1 = require(\"../Configuration.js\");\nfunction noUndefined(parser, name) {\n var e_1, _a;\n var textNode = parser.create('text', '\\\\' + name);\n var options = parser.options.noundefined || {};\n var def = {};\n try {\n for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) {\n var id = _c.value;\n if (options[id]) {\n def['math' + id] = options[id];\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n parser.Push(parser.create('node', 'mtext', [], def, textNode));\n}\nexports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', {\n fallback: {\n macro: noUndefined\n },\n options: {\n noundefined: {\n color: 'red',\n background: '',\n size: ''\n }\n },\n priority: 3\n});","map":{"version":3,"names":["__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","Object","defineProperty","exports","NoUndefinedConfiguration","Configuration_js_1","require","noUndefined","parser","name","e_1","_a","textNode","create","options","noundefined","def","_b","_c","id","e_1_1","error","return","Push","Configuration","fallback","macro","color","background","size","priority"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/input/tex/noundefined/NoUndefinedConfiguration.js"],"sourcesContent":["\"use strict\";\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoUndefinedConfiguration = void 0;\nvar Configuration_js_1 = require(\"../Configuration.js\");\nfunction noUndefined(parser, name) {\n var e_1, _a;\n var textNode = parser.create('text', '\\\\' + name);\n var options = parser.options.noundefined || {};\n var def = {};\n try {\n for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) {\n var id = _c.value;\n if (options[id]) {\n def['math' + id] = options[id];\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n parser.Push(parser.create('node', 'mtext', [], def, textNode));\n}\nexports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', {\n fallback: { macro: noUndefined },\n options: {\n noundefined: {\n color: 'red',\n background: '',\n size: ''\n }\n },\n priority: 3\n});\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAI,IAAI,IAAI,IAAI,CAACA,QAAQ,IAAK,UAASC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,OAAOC,MAAM,KAAK,UAAU,IAAIA,MAAM,CAACC,QAAQ;IAAEC,CAAC,GAAGH,CAAC,IAAID,CAAC,CAACC,CAAC,CAAC;IAAEI,CAAC,GAAG,CAAC;EAC7E,IAAID,CAAC,EAAE,OAAOA,CAAC,CAACE,IAAI,CAACN,CAAC,CAAC;EACvB,IAAIA,CAAC,IAAI,OAAOA,CAAC,CAACO,MAAM,KAAK,QAAQ,EAAE,OAAO;IAC1CC,IAAI,EAAE,SAAAA,CAAA,EAAY;MACd,IAAIR,CAAC,IAAIK,CAAC,IAAIL,CAAC,CAACO,MAAM,EAAEP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