{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.BBox = void 0;\nvar lengths_js_1 = require(\"./lengths.js\");\nvar BBox = function () {\n function BBox(def) {\n if (def === void 0) {\n def = {\n w: 0,\n h: -lengths_js_1.BIGDIMEN,\n d: -lengths_js_1.BIGDIMEN\n };\n }\n this.w = def.w || 0;\n this.h = 'h' in def ? def.h : -lengths_js_1.BIGDIMEN;\n this.d = 'd' in def ? def.d : -lengths_js_1.BIGDIMEN;\n this.L = this.R = this.ic = this.sk = this.dx = 0;\n this.scale = this.rscale = 1;\n this.pwidth = '';\n }\n BBox.zero = function () {\n return new BBox({\n h: 0,\n d: 0,\n w: 0\n });\n };\n BBox.empty = function () {\n return new BBox();\n };\n BBox.prototype.empty = function () {\n this.w = 0;\n this.h = this.d = -lengths_js_1.BIGDIMEN;\n return this;\n };\n BBox.prototype.clean = function () {\n if (this.w === -lengths_js_1.BIGDIMEN) this.w = 0;\n if (this.h === -lengths_js_1.BIGDIMEN) this.h = 0;\n if (this.d === -lengths_js_1.BIGDIMEN) this.d = 0;\n };\n BBox.prototype.rescale = function (scale) {\n this.w *= scale;\n this.h *= scale;\n this.d *= scale;\n };\n BBox.prototype.combine = function (cbox, x, y) {\n if (x === void 0) {\n x = 0;\n }\n if (y === void 0) {\n y = 0;\n }\n var rscale = cbox.rscale;\n var w = x + rscale * (cbox.w + cbox.L + cbox.R);\n var h = y + rscale * cbox.h;\n var d = rscale * cbox.d - y;\n if (w > this.w) this.w = w;\n if (h > this.h) this.h = h;\n if (d > this.d) this.d = d;\n };\n BBox.prototype.append = function (cbox) {\n var scale = cbox.rscale;\n this.w += scale * (cbox.w + cbox.L + cbox.R);\n if (scale * cbox.h > this.h) {\n this.h = scale * cbox.h;\n }\n if (scale * cbox.d > this.d) {\n this.d = scale * cbox.d;\n }\n };\n BBox.prototype.updateFrom = function (cbox) {\n this.h = cbox.h;\n this.d = cbox.d;\n this.w = cbox.w;\n if (cbox.pwidth) {\n this.pwidth = cbox.pwidth;\n }\n };\n BBox.fullWidth = '100%';\n BBox.StyleAdjust = [['borderTopWidth', 'h'], ['borderRightWidth', 'w'], ['borderBottomWidth', 'd'], ['borderLeftWidth', 'w', 0], ['paddingTop', 'h'], ['paddingRight', 'w'], ['paddingBottom', 'd'], ['paddingLeft', 'w', 0]];\n return BBox;\n}();\nexports.BBox = BBox;","map":{"version":3,"names":["Object","defineProperty","exports","value","BBox","lengths_js_1","require","def","w","h","BIGDIMEN","d","L","R","ic","sk","dx","scale","rscale","pwidth","zero","empty","prototype","clean","rescale","combine","cbox","x","y","append","updateFrom","fullWidth","StyleAdjust"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/util/BBox.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BBox = void 0;\nvar lengths_js_1 = require(\"./lengths.js\");\nvar BBox = (function () {\n function BBox(def) {\n if (def === void 0) { def = { w: 0, h: -lengths_js_1.BIGDIMEN, d: -lengths_js_1.BIGDIMEN }; }\n this.w = def.w || 0;\n this.h = ('h' in def ? def.h : -lengths_js_1.BIGDIMEN);\n this.d = ('d' in def ? def.d : -lengths_js_1.BIGDIMEN);\n this.L = this.R = this.ic = this.sk = this.dx = 0;\n this.scale = this.rscale = 1;\n this.pwidth = '';\n }\n BBox.zero = function () {\n return new BBox({ h: 0, d: 0, w: 0 });\n };\n BBox.empty = function () {\n return new BBox();\n };\n BBox.prototype.empty = function () {\n this.w = 0;\n this.h = this.d = -lengths_js_1.BIGDIMEN;\n return this;\n };\n BBox.prototype.clean = function () {\n if (this.w === -lengths_js_1.BIGDIMEN)\n this.w = 0;\n if (this.h === -lengths_js_1.BIGDIMEN)\n this.h = 0;\n if (this.d === -lengths_js_1.BIGDIMEN)\n this.d = 0;\n };\n BBox.prototype.rescale = function (scale) {\n this.w *= scale;\n this.h *= scale;\n this.d *= scale;\n };\n BBox.prototype.combine = function (cbox, x, y) {\n if (x === void 0) { x = 0; }\n if (y === void 0) { y = 0; }\n var rscale = cbox.rscale;\n var w = x + rscale * (cbox.w + cbox.L + cbox.R);\n var h = y + rscale * cbox.h;\n var d = rscale * cbox.d - y;\n if (w > this.w)\n this.w = w;\n if (h > this.h)\n this.h = h;\n if (d > this.d)\n this.d = d;\n };\n BBox.prototype.append = function (cbox) {\n var scale = cbox.rscale;\n this.w += scale * (cbox.w + cbox.L + cbox.R);\n if (scale * cbox.h > this.h) {\n this.h = scale * cbox.h;\n }\n if (scale * cbox.d > this.d) {\n this.d = scale * cbox.d;\n }\n };\n BBox.prototype.updateFrom = function (cbox) {\n this.h = cbox.h;\n this.d = cbox.d;\n this.w = cbox.w;\n if (cbox.pwidth) {\n this.pwidth = cbox.pwidth;\n }\n };\n BBox.fullWidth = '100%';\n BBox.StyleAdjust = [\n ['borderTopWidth', 'h'],\n ['borderRightWidth', 'w'],\n ['borderBottomWidth', 'd'],\n ['borderLeftWidth', 'w', 0],\n ['paddingTop', 'h'],\n ['paddingRight', 'w'],\n ['paddingBottom', 'd'],\n ['paddingLeft', 'w', 0]\n ];\n return BBox;\n}());\nexports.BBox = BBox;\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,IAAI,GAAG,KAAK,CAAC;AACrB,IAAIC,YAAY,GAAGC,OAAO,CAAC,cAAc,CAAC;AAC1C,IAAIF,IAAI,GAAI,YAAY;EACpB,SAASA,IAAIA,CAACG,GAAG,EAAE;IACf,IAAIA,GAAG,KAAK,KAAK,CAAC,EAAE;MAAEA,GAAG,GAAG;QAAEC,CAAC,EAAE,CAAC;QAAEC,CAAC,EAAE,CAACJ,YAAY,CAACK,QAAQ;QAAEC,CAAC,EAAE,CAACN,YAAY,CAACK;MAAS,CAAC;IAAE;IAC5F,IAAI,CAACF,CAAC,GAAGD,GAAG,CAACC,CAA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