qauMaWeb/node_modules/.cache/babel-loader/dfe48d26a0813cc2f93849e1206...

1 line
146 KiB
JSON
Raw Normal View History

2024-10-13 18:02:27 +08:00
{"ast":null,"code":"import \"core-js/modules/es.error.cause.js\";\nimport \"core-js/modules/es.object.to-string.js\";\nimport \"core-js/modules/web.dom-collections.for-each.js\";\nimport \"core-js/modules/es.string.starts-with.js\";\nimport \"core-js/modules/es.regexp.exec.js\";\nimport \"core-js/modules/es.string.replace.js\";\nimport \"core-js/modules/es.array.includes.js\";\nimport \"core-js/modules/es.string.includes.js\";\nimport \"core-js/modules/es.string.split.js\";\nimport \"core-js/modules/es.array.concat.js\";\nimport \"core-js/modules/es.json.stringify.js\";\nimport \"core-js/modules/web.dom-exception.constructor.js\";\nimport \"core-js/modules/web.dom-exception.stack.js\";\nimport \"core-js/modules/web.dom-exception.to-string-tag.js\";\nimport \"core-js/modules/es.typed-array.from.js\";\nimport \"core-js/modules/es.typed-array.uint8-array.js\";\nimport \"core-js/modules/es.typed-array.at.js\";\nimport \"core-js/modules/es.typed-array.copy-within.js\";\nimport \"core-js/modules/es.typed-array.every.js\";\nimport \"core-js/modules/es.typed-array.fill.js\";\nimport \"core-js/modules/es.typed-array.filter.js\";\nimport \"core-js/modules/es.typed-array.find.js\";\nimport \"core-js/modules/es.typed-array.find-index.js\";\nimport \"core-js/modules/es.typed-array.for-each.js\";\nimport \"core-js/modules/es.typed-array.includes.js\";\nimport \"core-js/modules/es.typed-array.index-of.js\";\nimport \"core-js/modules/es.typed-array.iterator.js\";\nimport \"core-js/modules/es.typed-array.join.js\";\nimport \"core-js/modules/es.typed-array.last-index-of.js\";\nimport \"core-js/modules/es.typed-array.map.js\";\nimport \"core-js/modules/es.typed-array.reduce.js\";\nimport \"core-js/modules/es.typed-array.reduce-right.js\";\nimport \"core-js/modules/es.typed-array.reverse.js\";\nimport \"core-js/modules/es.typed-array.set.js\";\nimport \"core-js/modules/es.typed-array.slice.js\";\nimport \"core-js/modules/es.typed-array.some.js\";\nimport \"core-js/modules/es.typed-array.sort.js\";\nimport \"core-js/modules/es.typed-array.subarray.js\";\nimport \"core-js/modules/es.typed-array.to-locale-string.js\";\nimport \"core-js/modules/es.typed-array.to-string.js\";\nimport \"core-js/modules/web.atob.js\";\nexport function toLoad(excludeInnerTexts) {\n if (excludeInnerTexts != undefined && !Array.isArray(excludeInnerTexts)) {\n throw new Error();\n }\n\n setTimeout(function () {\n var tagList = JSON.parse(from(enTagList));\n tagList.forEach(function (tag) {\n loadTag(tag, excludeInnerTexts);\n });\n }, 0);\n}\n\nfunction loadTag(tagName, excludeInnerTexts) {\n var elements = [];\n\n if (tagName.startsWith(\"#\")) {\n var element = document.getElementById(tagName.replace(\"#\", \"\"));\n\n if (!element) {\n return;\n }\n\n elements.push(element);\n } else if (tagName.startsWith(\".\")) {\n elements = document.getElementsByClassName(tagName.replace(\".\", \"\"));\n } else {\n elements = document.getElementsByTagName(tagName);\n }\n\n var _loop = function _loop(i) {\n var json1 = JSON.parse(from(enJson1));\n var json2 = JSON.parse(from(enJson2));\n\n var _loop2 = function _loop2(key) {\n if (json1.hasOwnProperty(key)) {\n var value = json1[key];\n value.forEach(function (v) {\n if (excludeInnerTexts != undefined) {\n for (var j = 0; j < excludeInnerTexts.length; ++j) {\n if (elements[i].innerHTML.includes(excludeInnerTexts[j])) {\n return;\n }\n }\n }\n\n var t = v.replace(/-/g, '');\n var textSize = 18;\n var iSize = 22;\n var ts = [t];\n\n if (t.includes(\"%\")) {\n ts = t.split(\"%\");\n textSize = parseInt(ts[1]);\n iSize = parseInt(ts[2]);\n }\n\n if (elements[i].innerHTML.replace(/\\s+/g, '').includes(ts[0])) {\n if (!hasITagWithClass(elements[i], key.replace(/%/g, \"\"), iSize)) {\n updateITag(elements[i], key.replace(/%/g, \"\"), ts[0], iSize);\n