Repository: swc-project/swc (language: rust)

Issue:
Optimize: a ? 0 : 1 into +!a
### Describe the feature

Ternary expressions which resolve to 0 and 1 respectively, can be minified to `+!thing`/`+!!thing`.

Example:
```js
// input:
console.log(thing ? 1 : 0, thing ? 0 : 1)

// current output:
console.log(thing?1:0,thing?0:1);

// better output:
console.log(+!!thing,+!thing);
```

### Babel plugin or link to the feature description

_No response_

### Additional context

[Playground link](https://play.swc.rs/?version=1.10.7&code=H4sIAAAAAAAAA0vOzyvOz0nVy8lP1yjJyMxLV7BXMFSwUjDQUYBxDYBcQ00AIdd9JikAAAA%3D&config=H4sIAAAAAAAAA41VQY7bMAy85xWBz3toD1sUfUBvfYOgWJTDVJYMkcomWOTvpRV7N5tQQS9BPEOa5nAovW%2B22%2B5Affdr%2By5%2F5WGymSB%2FPAtC58j2JEgH%2FWipzzhx97KyB5opbwNBhS5XpmObB%2BCaRa9LeBdSIljDF2zEiP58W7BP45SB6AYTVN5XRog8w5wLvNxSOb0p%2BC6lADY%2BYYwlg5FhgKxE9SkEOxGYo9XpUdRCSlqFmSwMzkw5TSofHTKmKFI8sg6sM31yoFCYoWc8gpYmtSQtknT3VeZP2sGuDEMd8V02HG0olpWacKoDka995PYJiY0vmghXrqHAldSlRW8ycMlKvUPC2Mj6CyDtB0sU7Vj1uVegRnixUivbP83E6MWtfFZ4sbbWZIRBFDWIXpF1FgYyozbKDK70MOvat9lFhvtvIXRgwHvxiZJLb8j9XqvJ5wmSVwgZrtUauOKmtX8LPa9Cm%2F0tHbLqrCVgtLxvknQed0nboDUZeJ9cm5cRcGqyWQ6G09SkS3QghgCnRRTS8Hk52XAyoR6OD4aQlZAXmiGknXowTGLuOrrXBbt8nMSjjUNd%2B5tDk9MU4AihZej%2FWJanrHzwcfb3uuL3QQg%2FNX9aWUH8%2Fu3LxSGtbNbf2lQ3JlduGqr2vF4oP7rPoPX6WIXqkP6siTO2ufwDL9%2FWSOUGAAA%3D)

A bit of context: in our case, 0 and 1 are actually enums and this is parsing a boolean output to one. imagine:
```ts
enum State {
  ON,
  OFF,
  Indeterminate
}

function parseFromBool(x: boolean) {
  return x ? State.ON : State.OFF;
}
```


Discussion / hints:

Fix patch:
diff --git a/crates/swc_ecma_minifier/src/compress/pure/conds.rs b/crates/swc_ecma_minifier/src/compress/pure/conds.rs
index 4fed4ee81b05..6772a9246d0c 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/conds.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/conds.rs
@@ -15,10 +15,11 @@ impl Pure<'_> {
     /// - `!foo ? true : bar` => `!foo || bar`
     /// - `foo ? false : bar` => `!foo && bar`
     pub(super) fn compress_conds_as_logical(&mut self, e: &mut Expr) {
-        let cond = match e {
-            Expr::Cond(cond) => cond,
-            _ => return,
-        };
+        if !self.options.conditionals {
+            return;
+        }
+
+        let Expr::Cond(cond) = e else { return };
 
         let lt = cond.cons.get_type();
         if let Value::Known(Type::Bool) = lt {
@@ -100,10 +101,7 @@ impl Pure<'_> {
             return;
         }
 
-        let cond = match e {
-            Expr::Cond(v) => v,
-            _ => return,
-        };
+        let Expr::Cond(cond) = e else { return };
 
         match (&mut *cond.cons, &mut *cond.alt) {
             (Expr::Bin(cons @ BinExpr { op: op!("||"), .. }), alt)
@@ -132,6 +130,58 @@ impl Pure<'_> {
         }
     }
 
+    ///
+    /// - `foo ? num : 0` => `num * !!foo`
+    /// - `foo ? 0 : num` => `num * !foo`
+    pub(super) fn compress_conds_as_arithmetic(&mut self, e: &mut Expr) {
+        if !self.options.conditionals {
+            return;
+        }
+
+        let Expr::Cond(cond) = e else { return };
+        let span = cond.span;
+
+        match (&mut *cond.cons, &mut *cond.alt) {
+            (
+                Expr::Lit(Lit::Num(Number { value, .. })),
+                Expr::Lit(Lit::Num(Number { value: 0.0, .. })),
+            ) if *value > 0.0 => {
+                report_change!("conditionals: `foo ? num : 0` => `num * !!foo`");
+                self.changed = true;
+
+                let left = cond.cons.take();
+                let mut right = cond.test.take();
+                self.negate_twice(&mut right, false);
+
+                *e = Expr::Bin(BinExpr {
+                    span,
+                    op: op!("*"),
+                    left,
+                    right,
+                })
+            }
+            (
+                Expr::Lit(Lit::Num(Number { value: 0.0, .. })),
+                Expr::Lit(Lit::Num(Number { value, .. })),
+            ) if *value > 0.0 => {
+                report_change!("conditionals: `foo ? 0 : num` => `num * !foo`");
+                self.changed = true;
+
+                let left = cond.alt.take();
+                let mut right = cond.test.take();
+                self.negate(&mut right, false, false);
+
+                *e = Expr::Bin(BinExpr {
+                    span,
+                    op: op!("*"),
+                    left,
+                    right,
+                })
+            }
+            _ => (),
+        }
+    }
+
     pub(super) fn negate_cond_expr(&mut self, cond: &mut CondExpr) {
         if negate_cost(&self.expr_ctx, &cond.test, true, false) >= 0 {
             return;
diff --git a/crates/swc_ecma_minifier/src/compress/pure/mod.rs b/crates/swc_ecma_minifier/src/compress/pure/mod.rs
index 8544cdebf20d..a5f17e43d146 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/mod.rs
@@ -476,6 +476,8 @@ impl VisitMut for Pure<'_> {
             debug_assert_valid(e);
         }
 
+        self.compress_conds_as_arithmetic(e);
+
         self.lift_seqs_of_bin(e);
 
         if e.is_seq() {


Test patch:
diff --git a/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js
index 8dd334a222e1..5341ec8ad999 100644
--- a/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js
+++ b/crates/swc/tests/tsc-references/parserRealSource14.2.minified.js
@@ -167,7 +167,7 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
         }, ctx = new AstPathContext();
         return TypeScript.getAstWalkerFactory().walk(script, function(cur, parent, walker) {
             if (isValidAstNode(cur)) {
-                var inclusive = hasFlag(options, 1) || cur.nodeType === TypeScript.NodeType.Name || pos === script.limChar, minChar = cur.minChar, limChar = cur.limChar + (inclusive ? 1 : 0);
+                var inclusive = hasFlag(options, 1) || cur.nodeType === TypeScript.NodeType.Name || pos === script.limChar, minChar = cur.minChar, limChar = cur.limChar + +!!inclusive;
                 if (pos >= minChar && pos < limChar) {
                     var previous = ctx.path.ast();
                     (null == previous || cur.minChar >= previous.minChar && cur.limChar <= previous.limChar) && ctx.path.push(cur);
diff --git a/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js b/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js
index cffa17ebdd7d..89851f4d7b6b 100644
--- a/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js
+++ b/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js
@@ -187,7 +187,7 @@ export default function v(e) {
             if (!e || "Z" in a || (a.Z = 0), "p" in a && (a.H = a.H % 12 + 12 * a.p), void 0 === a.m && (a.m = "q" in a ? a.q : 0), "V" in a) {
                 if (a.V < 1 || a.V > 53) return null;
                 "w" in a || (a.w = 1), "Z" in a ? (c = (o = (c = s(h(a.y, 0, 1))).getUTCDay()) > 4 || 0 === o ? f.ceil(c) : f(c), c = i.offset(c, (a.V - 1) * 7), a.y = c.getUTCFullYear(), a.m = c.getUTCMonth(), a.d = c.getUTCDate() + (a.w + 6) % 7) : (c = (o = (c = g(h(a.y, 0, 1))).getDay()) > 4 || 0 === o ? r.ceil(c) : r(c), c = t.offset(c, (a.V - 1) * 7), a.y = c.getFullYear(), a.m = c.getMonth(), a.d = c.getDate() + (a.w + 6) % 7);
-            } else ("W" in a || "U" in a) && ("w" in a || (a.w = "u" in a ? a.u % 7 : "W" in a ? 1 : 0), o = "Z" in a ? s(h(a.y, 0, 1)).getUTCDay() : g(h(a.y, 0, 1)).getDay(), a.m = 0, a.d = "W" in a ? (a.w + 6) % 7 + 7 * a.W - (o + 5) % 7 : a.w + 7 * a.U - (o + 6) % 7);
+            } else ("W" in a || "U" in a) && ("w" in a || (a.w = "u" in a ? a.u % 7 : +("W" in a)), o = "Z" in a ? s(h(a.y, 0, 1)).getUTCDay() : g(h(a.y, 0, 1)).getDay(), a.m = 0, a.d = "W" in a ? (a.w + 6) % 7 + 7 * a.W - (o + 5) % 7 : a.w + 7 * a.U - (o + 6) % 7);
             return "Z" in a ? (a.H += a.Z / 100 | 0, a.M += a.Z % 100, s(a)) : g(a);
         };
     }
diff --git a/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js b/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js
index 22be45364caf..f6b565783cec 100644
--- a/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js
+++ b/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js
@@ -25,7 +25,7 @@ var f = function(e) {
     return e.props.indexId === t;
 }, h = function(e, t) {
     var r = p(e), a = p(t);
-    return r && !a ? -1 : !r && a ? 1 : 0;
+    return r && !a ? -1 : +(!r && !!a);
 };
 export default function S(u) {
     var o, l, S = u.indexName, v = u.initialState, x = u.searchClient, _ = u.resultsState, y = u.stalledSearchDelay, w = s(x, S, t({}, c));
diff --git a/crates/swc_ecma_minifier/tests/benches-full/d3.js b/crates/swc_ecma_minifier/tests/benches-full/d3.js
index ca369e3dc07f..899b4f52e77c 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/d3.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/d3.js
@@ -3841,10 +3841,10 @@ function(global, factory) {
             ];
         }
         _edgecode(x, y) {
-            return (x === this.xmin ? 0b0001 : x === this.xmax ? 0b0010 : 0b0000) | (y === this.ymin ? 0b0100 : y === this.ymax ? 0b1000 : 0b0000);
+            return (x === this.xmin ? 0b0001 : 0b0010 * (x === this.xmax)) | (y === this.ymin ? 0b0100 : 0b1000 * (y === this.ymax));
         }
         _regioncode(x, y) {
-            return (x < this.xmin ? 0b0001 : x > this.xmax ? 0b0010 : 0b0000) | (y < this.ymin ? 0b0100 : y > this.ymax ? 0b1000 : 0b0000);
+            return (x < this.xmin ? 0b0001 : 0b0010 * (x > this.xmax)) | (y < this.ymin ? 0b0100 : 0b1000 * (y > this.ymax));
         }
     }
     const tau$3 = 2 * Math.PI, pow = Math.pow;
@@ -5192,7 +5192,7 @@ function(global, factory) {
             else stream.point(to[0], to[1]);
         }
         function corner(p, direction) {
-            return 1e-6 > abs$2(p[0] - x0) ? direction > 0 ? 0 : 3 : 1e-6 > abs$2(p[0] - x1) ? direction > 0 ? 2 : 1 : 1e-6 > abs$2(p[1] - y0) ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon
+            return 1e-6 > abs$2(p[0] - x0) ? 3 * !(direction > 0) : 1e-6 > abs$2(p[0] - x1) ? direction > 0 ? 2 : 1 : 1e-6 > abs$2(p[1] - y0) ? +(direction > 0) : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon
         }
         function compareIntersection(a, b) {
             return comparePoint(a.x, b.x);
@@ -7459,7 +7459,7 @@ function(global, factory) {
                 if (!Z || "Z" in d || (d.Z = 0), "p" in d && (d.H = d.H % 12 + 12 * d.p), void 0 === d.m && (d.m = "q" in d ? d.q : 0), "V" in d) {
                     if (d.V < 1 || d.V > 53) return null;
                     "w" in d || (d.w = 1), "Z" in d ? (week = (day$1 = (week = utcDate(newDate(d.y, 0, 1))).getUTCDay()) > 4 || 0 === day$1 ? utcMonday.ceil(week) : utcMonday(week), week = utcDay.offset(week, (d.V - 1) * 7), d.y = week.getUTCFullYear(), d.m = week.getUTCMonth(), d.d = week.getUTCDate() + (d.w + 6) % 7) : (week = (day$1 = (week = localDate(newDate(d.y, 0, 1))).getDay()) > 4 || 0 === day$1 ? monday.ceil(week) : monday(week), week = day.offset(week, (d.V - 1) * 7), d.y = week.getFullYear(), d.m = week.getMonth(), d.d = week.getDate() + (d.w + 6) % 7);
-                } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0), day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day$1 + 5) % 7 : d.w + 7 * d.U - (day$1 + 6) % 7);
+                } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : +("W" in d)), day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day$1 + 5) % 7 : d.w + 7 * d.U - (day$1 + 6) % 7);
                 return(// If a time zone is specified, all fields are interpreted as UTC and then
                 // offset according to the specified time zone.
                 "Z" in d ? (d.H += d.Z / 100 | 0, d.M += d.Z % 100, utcDate(d)) : localDate(d));
diff --git a/crates/swc_ecma_minifier/tests/benches-full/echarts.js b/crates/swc_ecma_minifier/tests/benches-full/echarts.js
index be9f19ec495b..eb45588050b7 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/echarts.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/echarts.js
@@ -693,7 +693,7 @@
             ]
         ], detCache = {}, det = determinant(mA, 8, 0, 0, 0, detCache);
         if (0 !== det) {
-            for(var vh = [], i = 0; i < 8; i++)for(var j = 0; j < 8; j++)null == vh[j] && (vh[j] = 0), vh[j] += ((i + j) % 2 ? -1 : 1) * determinant(mA, 7, 0 === i ? 1 : 0, 1 << i, 1 << j, detCache) / det * dest[i];
+            for(var vh = [], i = 0; i < 8; i++)for(var j = 0; j < 8; j++)null == vh[j] && (vh[j] = 0), vh[j] += ((i + j) % 2 ? -1 : 1) * determinant(mA, 7, +(0 === i), 1 << i, 1 << j, detCache) / det * dest[i];
             return function(out, srcPointX, srcPointY) {
                 var pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;
                 out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk, out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;
@@ -785,7 +785,7 @@
             e.zrDelta = wheelDelta ? wheelDelta / 120 : -(e.detail || 0) / 3;
         }
         var button = e.button;
-        return null == e.which && void 0 !== button && MOUSE_EVENT_REG.test(e.type) && (e.which = 1 & button ? 1 : 2 & button ? 3 : 4 & button ? 2 : 0), e;
+        return null == e.which && void 0 !== button && MOUSE_EVENT_REG.test(e.type) && (e.which = 1 & button ? 1 : 2 & button ? 3 : 2 * !!(4 & button)), e;
     }
     function addEventListener(el, name, handler, opt) {
         isDomLevel2 ? el.addEventListener(name, handler, opt) : el.attachEvent('on' + name, handler);
@@ -2950,7 +2950,7 @@
                 255,
                 1
             ]);
-            for(var alpha = colorArr[3], isDark = this.__zr.isDarkMode(), i = 0; i < 3; i++)colorArr[i] = colorArr[i] * alpha + (isDark ? 0 : 255) * (1 - alpha);
+            for(var alpha = colorArr[3], isDark = this.__zr.isDarkMode(), i = 0; i < 3; i++)colorArr[i] = colorArr[i] * alpha + 255 * !isDark * (1 - alpha);
             return colorArr[3] = 1, stringify(colorArr, 'rgba');
         }, Element.prototype.traverse = function(cb, context) {}, Element.prototype.attrKV = function(key, value) {
             'textConfig' === key ? this.setTextConfig(value) : 'textContent' === key ? this.setTextContent(value) : 'clipPath' === key ? this.setClipPath(value) : 'extra' === key ? (this.extra = this.extra || {}, extend(this.extra, value)) : this[key] = value;
@@ -5303,7 +5303,7 @@
         }, PathProxy.prototype.arc = function(cx, cy, r, startAngle, endAngle, anticlockwise) {
             tmpAngles[0] = startAngle, tmpAngles[1] = endAngle, normalizeArcAngles(tmpAngles, anticlockwise), startAngle = tmpAngles[0];
             var delta = (endAngle = tmpAngles[1]) - startAngle;
-            return this.addData(CMD.A, cx, cy, r, r, startAngle, delta, 0, anticlockwise ? 0 : 1), this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise), this._xi = mathCos$1(endAngle) * r + cx, this._yi = mathSin$1(endAngle) * r + cy, this;
+            return this.addData(CMD.A, cx, cy, r, r, startAngle, delta, 0, +!anticlockwise), this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise), this._xi = mathCos$1(endAngle) * r + cx, this._yi = mathSin$1(endAngle) * r + cy, this;
         }, PathProxy.prototype.arcTo = function(x1, y1, x2, y2, radius) {
             return this._ctx && this._ctx.arcTo(x1, y1, x2, y2, radius), this;
         }, PathProxy.prototype.rect = function(x, y, w, h) {
@@ -6013,7 +6013,7 @@
             var originX = inputShape.x, originY = inputShape.y, originWidth = inputShape.width, originHeight = inputShape.height;
             outputShape.x = originX, outputShape.y = originY, outputShape.width = originWidth, outputShape.height = originHeight;
             var lineWidth = style && style.lineWidth;
-            return lineWidth && (outputShape.x = subPixelOptimize(originX, lineWidth, !0), outputShape.y = subPixelOptimize(originY, lineWidth, !0), outputShape.width = Math.max(subPixelOptimize(originX + originWidth, lineWidth, !1) - outputShape.x, 0 === originWidth ? 0 : 1), outputShape.height = Math.max(subPixelOptimize(originY + originHeight, lineWidth, !1) - outputShape.y, 0 === originHeight ? 0 : 1)), outputShape;
+            return lineWidth && (outputShape.x = subPixelOptimize(originX, lineWidth, !0), outputShape.y = subPixelOptimize(originY, lineWidth, !0), outputShape.width = Math.max(subPixelOptimize(originX + originWidth, lineWidth, !1) - outputShape.x, +(0 !== originWidth)), outputShape.height = Math.max(subPixelOptimize(originY + originHeight, lineWidth, !1) - outputShape.y, +(0 !== originHeight))), outputShape;
         }
     }
     function subPixelOptimize(position, lineWidth, positiveOrNegative) {
@@ -8524,7 +8524,7 @@
             case 'year':
                 return date[fullYearGetterName(isUTC)]();
             case 'half-year':
-                return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;
+                return +(date[monthGetterName(isUTC)]() >= 6);
             case 'quarter':
                 return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);
             case 'month':
@@ -10337,7 +10337,7 @@
                 'auto' === sourceHeader || null == sourceHeader ? arrayRowsTravelFirst(function(val) {
                     // '-' is regarded as null/undefined.
                     null != val && '-' !== val && (isString(val) ? null == startIndex && (startIndex = 1) : startIndex = 0); // 10 is an experience number, avoid long loop.
-                }, seriesLayoutBy, data, 10) : startIndex = isNumber(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0, dimensionsDefine || 1 !== startIndex || (dimensionsDefine = [], arrayRowsTravelFirst(function(val, index) {
+                }, seriesLayoutBy, data, 10) : startIndex = isNumber(sourceHeader) ? sourceHeader : +!!sourceHeader, dimensionsDefine || 1 !== startIndex || (dimensionsDefine = [], arrayRowsTravelFirst(function(val, index) {
                     dimensionsDefine[index] = null != val ? val + '' : '';
                 }, seriesLayoutBy, data, 1 / 0)), dimensionsDetectedCount = dimensionsDefine ? dimensionsDefine.length : 'row' === seriesLayoutBy ? data.length : data[0] ? data[0].length : null;
             } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) dimensionsDefine || (dimensionsDefine = function(data) {
@@ -11392,8 +11392,8 @@
                     getBuilder(subBlock).planLayout(subBlock);
                     var subGapLevel = subBlock.__gapLevelBetweenSubBlocks; // If the some of the sub-blocks have some gaps (like 10px) inside, this block
                     // should use a larger gap (like 20px) to distinguish those sub-blocks.
-                    subGapLevel >= thisGapLevelBetweenSubBlocks && (thisGapLevelBetweenSubBlocks = subGapLevel + (!thisBlockHasInnerGap || subGapLevel // If no header, always keep the sub gap level. Otherwise
-                     && ('section' !== subBlock.type || subBlock.noHeader) ? 0 : 1));
+                    subGapLevel >= thisGapLevelBetweenSubBlocks && (thisGapLevelBetweenSubBlocks = subGapLevel + +(!!thisBlockHasInnerGap && (!subGapLevel // If no header, always keep the sub gap level. Otherwise
+                     || 'section' === subBlock.type && !subBlock.noHeader)));
                 }), fragment.__gapLevelBetweenSubBlocks = thisGapLevelBetweenSubBlocks;
             },
             build: function(ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {
@@ -13611,7 +13611,7 @@
         var prevEl = scope.prevEl;
         prevEl || (forceSetStyle = forceSetTransform = !0);
         var canBatchPath = el instanceof Path && el.autoBatch && (hasFill = styleHasFill(style = el.style), hasStroke = styleHasStroke(style), !(style.lineDash || !(+hasFill ^ +hasStroke) || hasFill && 'string' != typeof style.fill || hasStroke && 'string' != typeof style.stroke || style.strokePercent < 1 || style.strokeOpacity < 1 || style.fillOpacity < 1));
-        !forceSetTransform && (m1 = prevEl.transform, m && m1 ? m[0] === m1[0] && m[1] === m1[1] && m[2] === m1[2] && m[3] === m1[3] && m[4] === m1[4] && m[5] === m1[5] : m || m1 ? 0 : 1) ? canBatchPath || flushPathDrawn(ctx, scope) : (flushPathDrawn(ctx, scope), setContextTransform(ctx, el));
+        !forceSetTransform && (m1 = prevEl.transform, m && m1 ? m[0] === m1[0] && m[1] === m1[1] && m[2] === m1[2] && m[3] === m1[3] && m[4] === m1[4] && m[5] === m1[5] : +(!m && !m1)) ? canBatchPath || flushPathDrawn(ctx, scope) : (flushPathDrawn(ctx, scope), setContextTransform(ctx, el));
         var style1 = getStyle(el, scope.inHover);
         el instanceof Path ? (1 !== scope.lastDrawType && (forceSetStyle = !0, scope.lastDrawType = 1), bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope), canBatchPath && (scope.batchFill || scope.batchStroke) || ctx.beginPath(), function(ctx, el, style, inBatch) {
             var hasStroke = styleHasStroke(style), hasFill = styleHasFill(style), strokePercent = style.strokePercent, strokePart = strokePercent < 1, firstDraw = !el.path;
@@ -16349,7 +16349,7 @@
         }).start('circularInOut'), arc.animateShape(!0).when(1000, {
             startAngle: 3 * PI$3 / 2
         }).delay(300).start('circularInOut'), group.add(arc)), group.resize = function() {
-            var textWidth = textContent.getBoundingRect().width, r = opts.showSpinner ? opts.spinnerRadius : 0, cx = (api.getWidth() - 2 * r - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2 - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2 // only show the text
+            var textWidth = textContent.getBoundingRect().width, r = opts.showSpinner ? opts.spinnerRadius : 0, cx = (api.getWidth() - 2 * r - 10 * (!!opts.showSpinner && !!textWidth) - textWidth) / 2 - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2 // only show the text
             ) + (opts.showSpinner ? 0 : textWidth / 2 // only show the spinner
             ) + (textWidth ? 0 : r), cy = api.getHeight() / 2;
             opts.showSpinner && arc.setShape({
@@ -18277,7 +18277,7 @@
         plan: createRenderPlanner(),
         reset: function(seriesModel) {
             if (isOnCartesian(seriesModel) && isInLargeMode(seriesModel)) {
-                var data = seriesModel.getData(), cartesian = seriesModel.coordinateSystem, coordLayout = cartesian.master.getRect(), baseAxis = cartesian.getBaseAxis(), valueAxis = cartesian.getOtherAxis(baseAxis), valueDim = data.mapDimension(valueAxis.dim), baseDim = data.mapDimension(baseAxis.dim), valueAxisHorizontal = valueAxis.isHorizontal(), valueDimIdx = valueAxisHorizontal ? 0 : 1, barWidth = retrieveColumnLayout(makeColumnLayout([
+                var data = seriesModel.getData(), cartesian = seriesModel.coordinateSystem, coordLayout = cartesian.master.getRect(), baseAxis = cartesian.getBaseAxis(), valueAxis = cartesian.getOtherAxis(baseAxis), valueDim = data.mapDimension(valueAxis.dim), baseDim = data.mapDimension(baseAxis.dim), valueAxisHorizontal = valueAxis.isHorizontal(), valueDimIdx = +!valueAxisHorizontal, barWidth = retrieveColumnLayout(makeColumnLayout([
                     seriesModel
                 ]), baseAxis, seriesModel).width;
                 return barWidth > 0.5 || // jshint ignore:line
@@ -18305,7 +18305,7 @@
         return seriesModel.pipelineContext && seriesModel.pipelineContext.large;
     } // See cases in `test/bar-start.html` and `#7412`, `#8747`.
     function getValueAxisStart(baseAxis, valueAxis, stacked) {
-        return valueAxis.toGlobalCoord(valueAxis.dataToCoord('log' === valueAxis.type ? 1 : 0));
+        return valueAxis.toGlobalCoord(valueAxis.dataToCoord(+('log' === valueAxis.type)));
     }
     var bisect = function(a, x, lo, hi) {
         for(; lo < hi;){
@@ -19350,7 +19350,7 @@
         }, /**
        * Get width of band
        */ Axis.prototype.getBandWidth = function() {
-            var axisExtent = this._extent, dataExtent = this.scale.getExtent(), len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0);
+            var axisExtent = this._extent, dataExtent = this.scale.getExtent(), len = dataExtent[1] - dataExtent[0] + +!!this.onBand;
             return 0 === len && (len = 1), Math.abs(Math.abs(axisExtent[1] - axisExtent[0])) / len;
         }, /**
        * Only be called in category axis.
@@ -19363,7 +19363,7 @@
      * should be implemented in axis.
      */ function(axis) {
                 var labelModel, params = (labelModel = axis.getLabelModel(), {
-                    axisRotate: axis.getRotate ? axis.getRotate() : axis.isHorizontal && !axis.isHorizontal() ? 90 : 0,
+                    axisRotate: axis.getRotate ? axis.getRotate() : 90 * (!!axis.isHorizontal && !axis.isHorizontal()),
                     labelRotate: labelModel.get('rotate') || 0,
                     font: labelModel.getFont()
                 }), labelFormatter = makeLabelFormatter(axis), rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI, ordinalScale = axis.scale, ordinalExtent = ordinalScale.getExtent(), tickCount = ordinalScale.count();
@@ -20345,7 +20345,7 @@
             var prevLayer = null, incrementalLayerCount = 0;
             for(i = 0; i < list.length; i++){
                 var el = list[i], zlevel = el.zlevel, layer = void 0;
-                prevZlevel !== zlevel && (prevZlevel = zlevel, incrementalLayerCount = 0), el.incremental ? ((layer = this.getLayer(zlevel + 0.001, this._needsManuallyCompositing)).incremental = !0, incrementalLayerCount = 1) : layer = this.getLayer(zlevel + (incrementalLayerCount > 0 ? 0.01 : 0), this._needsManuallyCompositing), layer.__builtin__ || logError('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id), layer !== prevLayer && (layer.__used = !0, layer.__startIndex !== i && (layer.__dirty = !0), layer.__startIndex = i, layer.incremental ? layer.__drawIndex = -1 : layer.__drawIndex = i, updatePrevLayer(i), prevLayer = layer), el.__dirty & Element.REDARAW_BIT && !el.__inHover && (layer.__dirty = !0, layer.incremental && layer.__drawIndex < 0 && (layer.__drawIndex = i));
+                prevZlevel !== zlevel && (prevZlevel = zlevel, incrementalLayerCount = 0), el.incremental ? ((layer = this.getLayer(zlevel + 0.001, this._needsManuallyCompositing)).incremental = !0, incrementalLayerCount = 1) : layer = this.getLayer(zlevel + 0.01 * (incrementalLayerCount > 0), this._needsManuallyCompositing), layer.__builtin__ || logError('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id), layer !== prevLayer && (layer.__used = !0, layer.__startIndex !== i && (layer.__dirty = !0), layer.__startIndex = i, layer.incremental ? layer.__drawIndex = -1 : layer.__drawIndex = i, updatePrevLayer(i), prevLayer = layer), el.__dirty & Element.REDARAW_BIT && !el.__inHover && (layer.__dirty = !0, layer.incremental && layer.__drawIndex < 0 && (layer.__drawIndex = i));
             }
             updatePrevLayer(i), this.eachBuiltinLayer(function(layer, z) {
                 !layer.__used && layer.getElementCount() > 0 && (layer.__dirty = !0, layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0), layer.__dirty && layer.__drawIndex < 0 && (layer.__drawIndex = layer.__startIndex);
@@ -20834,7 +20834,7 @@
         }, SymbolDraw);
     }();
     function prepareDataCoordInfo(coordSys, data, valueOrigin) {
-        var valueStart, extent, baseAxis = coordSys.getBaseAxis(), valueAxis = coordSys.getOtherAxis(baseAxis), valueStart1 = (valueStart = 0, extent = valueAxis.scale.getExtent(), 'start' === valueOrigin ? valueStart = extent[0] : 'end' === valueOrigin ? valueStart = extent[1] : extent[0] > 0 ? valueStart = extent[0] : extent[1] < 0 && (valueStart = extent[1]), valueStart), baseAxisDim = baseAxis.dim, valueAxisDim = valueAxis.dim, valueDim = data.mapDimension(valueAxisDim), baseDim = data.mapDimension(baseAxisDim), baseDataOffset = 'x' === valueAxisDim || 'radius' === valueAxisDim ? 1 : 0, dims = map(coordSys.dimensions, function(coordDim) {
+        var valueStart, extent, baseAxis = coordSys.getBaseAxis(), valueAxis = coordSys.getOtherAxis(baseAxis), valueStart1 = (valueStart = 0, extent = valueAxis.scale.getExtent(), 'start' === valueOrigin ? valueStart = extent[0] : 'end' === valueOrigin ? valueStart = extent[1] : extent[0] > 0 ? valueStart = extent[0] : extent[1] < 0 && (valueStart = extent[1]), valueStart), baseAxisDim = baseAxis.dim, valueAxisDim = valueAxis.dim, valueDim = data.mapDimension(valueAxisDim), baseDim = data.mapDimension(baseAxisDim), baseDataOffset = +('x' === valueAxisDim || 'radius' === valueAxisDim), dims = map(coordSys.dimensions, function(coordDim) {
             return data.mapDimension(coordDim);
         }), stacked = !1, stackResultDim = data.getCalculationInfo('stackResultDimension');
         return isDimensionStacked(data, dims[0]) && (// jshint ignore:line
@@ -21119,10 +21119,10 @@
         return Math.max(Math.abs(min1[0] - min2[0]), Math.abs(min1[1] - min2[1]), Math.abs(max1[0] - max2[0]), Math.abs(max1[1] - max2[1]));
     }
     function getSmooth(smooth) {
-        return 'number' == typeof smooth ? smooth : smooth ? 0.5 : 0;
+        return 'number' == typeof smooth ? smooth : 0.5 * !!smooth;
     }
     function turnPointsIntoStep(points, coordSys, stepTurnAt) {
-        for(var baseAxis = coordSys.getBaseAxis(), baseIndex = 'x' === baseAxis.dim || 'radius' === baseAxis.dim ? 0 : 1, stepPoints = [], i = 0, stepPt = [], pt = [], nextPt = []; i < points.length - 2; i += 2)switch(nextPt[0] = points[i + 2], nextPt[1] = points[i + 3], pt[0] = points[i], pt[1] = points[i + 1], stepPoints.push(pt[0], pt[1]), stepTurnAt){
+        for(var baseAxis = coordSys.getBaseAxis(), baseIndex = +('x' !== baseAxis.dim && 'radius' !== baseAxis.dim), stepPoints = [], i = 0, stepPt = [], pt = [], nextPt = []; i < points.length - 2; i += 2)switch(nextPt[0] = points[i + 2], nextPt[1] = points[i + 3], pt[0] = points[i], pt[1] = points[i + 1], stepPoints.push(pt[0], pt[1]), stepTurnAt){
             case 'end':
                 stepPt[baseIndex] = nextPt[baseIndex], stepPt[1 - baseIndex] = pt[1 - baseIndex], stepPoints.push(stepPt[0], stepPt[1]);
                 break;
@@ -21193,7 +21193,7 @@
                         var axisExtent = categoryAxis.getExtent(), availSize = Math.abs(axisExtent[1] - axisExtent[0]) / categoryAxis.scale.count();
                         isNaN(availSize) && (availSize = 0); // 0/0 is NaN.
                         for(var dataLen = data.count(), step = Math.max(1, Math.round(dataLen / 5)), dataIndex = 0; dataIndex < dataLen; dataIndex += step)if (1.5 * Symbol.getSymbolSize(data, dataIndex // Only for cartesian, where `isHorizontal` exists.
-                        )[categoryAxis.isHorizontal() ? 1 : 0] // Empirical number
+                        )[+!!categoryAxis.isHorizontal()] // Empirical number
                          > availSize) return !1;
                         return !0;
                     }(categoryAxis, data))) {
@@ -21452,7 +21452,7 @@
                 // The label is not prepared at this time.
                 percent < 1 && null == animationRecord.originalX && (animationRecord.originalX = endLabel.x, animationRecord.originalY = endLabel.y);
                 var points = data.getLayout('points'), seriesModel = data.hostModel, connectNulls = seriesModel.get('connectNulls'), precision = endLabelModel.get('precision'), distance = endLabelModel.get('distance') || 0, baseAxis = coordSys.getBaseAxis(), isHorizontal = baseAxis.isHorizontal(), isBaseInversed = baseAxis.inverse, clipShape = clipRect.shape, xOrY = isBaseInversed ? isHorizontal ? clipShape.x : clipShape.y + clipShape.height : isHorizontal ? clipShape.x + clipShape.width : clipShape.y, distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1), distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1), dim = isHorizontal ? 'x' : 'y', dataIndexRange = function(points, xOrY, dim) {
-                    for(var a, b, len = points.length / 2, dimIdx = 'x' === dim ? 0 : 1, prevIndex = 0, nextIndex = -1, i = 0; i < len; i++)if (!(isNaN(b = points[2 * i + dimIdx]) || isNaN(points[2 * i + 1 - dimIdx]))) {
+                    for(var a, b, len = points.length / 2, dimIdx = +('x' !== dim), prevIndex = 0, nextIndex = -1, i = 0; i < len; i++)if (!(isNaN(b = points[2 * i + dimIdx]) || isNaN(points[2 * i + 1 - dimIdx]))) {
                         if (0 === i) {
                             a = b;
                             continue;
@@ -21736,7 +21736,7 @@
             var coordSys = this.coordinateSystem;
             if (coordSys) {
                 // PENDING if clamp ?
-                var pt = coordSys.dataToPoint(coordSys.clampData(value)), data = this.getData(), offset = data.getLayout('offset'), size = data.getLayout('size'), offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;
+                var pt = coordSys.dataToPoint(coordSys.clampData(value)), data = this.getData(), offset = data.getLayout('offset'), size = data.getLayout('size'), offsetIndex = +!coordSys.getBaseAxis().isHorizontal();
                 return pt[offsetIndex] += offset + size / 2, pt;
             }
             return [
@@ -22164,7 +22164,7 @@
     }(Path);
     function createLarge(seriesModel, group, incremental) {
         // TODO support polar
-        var globalStyle, data = seriesModel.getData(), startPoint = [], baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;
+        var globalStyle, data = seriesModel.getData(), startPoint = [], baseDimIdx = +!!data.getLayout('valueAxisHorizontal');
         startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');
         var largeDataIndices = data.getLayout('largeDataIndices'), barWidth = data.getLayout('barWidth'), backgroundModel = seriesModel.getModel('backgroundStyle');
         if (seriesModel.get('showBackground', !0)) {
@@ -23414,7 +23414,7 @@
             var ret = this.getExtent();
             return ret[0] = this.toGlobalCoord(ret[0]), ret[1] = this.toGlobalCoord(ret[1]), asc && ret[0] > ret[1] && ret.reverse(), ret;
         }, Axis2D.prototype.pointToData = function(point, clamp) {
-            return this.coordToData(this.toLocalCoord(point['x' === this.dim ? 0 : 1]), clamp);
+            return this.coordToData(this.toLocalCoord(point[+('x' !== this.dim)]), clamp);
         }, /**
        * Set ordinalSortInfo
        * @param info new OrdinalSortInfo
@@ -23453,7 +23453,7 @@
         layout.position = [
             'y' === axisDim ? posBound[idx[axisPosition]] : rectBound[0],
             'x' === axisDim ? posBound[idx[axisPosition]] : rectBound[3]
-        ], layout.rotation = Math.PI / 2 * ('x' === axisDim ? 0 : 1), layout.labelDirection = layout.tickDirection = layout.nameDirection = ({
+        ], layout.rotation = Math.PI / 2 * +('x' !== axisDim), layout.labelDirection = layout.tickDirection = layout.nameDirection = ({
             top: -1,
             bottom: 1,
             left: -1,
@@ -23523,7 +23523,7 @@
                     ] : [
                         0,
                         gridRect.height
-                    ], idx = axis.inverse ? 1 : 0;
+                    ], idx = +!!axis.inverse;
                     axis.setExtent(extent[idx], extent[1 - idx]), coordBase = isHorizontal ? gridRect.x : gridRect.y, axisExtentSum = (axisExtent = axis.getExtent())[0] + axisExtent[1], axis.toGlobalCoord = 'x' === axis.dim ? function(coord) {
                         return coord + coordBase;
                     } : function(coord) {
@@ -25407,7 +25407,7 @@
                             },
                             silent: !0,
                             // Do not overlap the first series, on which labels are displayed.
-                            z2: 8 + (offset ? 0 : 11)
+                            z2: 8 + 11 * !offset
                         });
                         // But consider the case:
                         // series: [
@@ -26304,7 +26304,7 @@
                 ctx.moveTo(parentPoint[0], parentPoint[1]), ctx.lineTo(firstChildPos[0], firstChildPos[1]);
                 return;
             }
-            var orient = shape.orient, forkDim = 'TB' === orient || 'BT' === orient ? 0 : 1, otherDim = 1 - forkDim, forkPosition = parsePercent$1(shape.forkPosition, 1), tmpPoint = [];
+            var orient = shape.orient, forkDim = +('TB' !== orient && 'BT' !== orient), otherDim = 1 - forkDim, forkPosition = parsePercent$1(shape.forkPosition, 1), tmpPoint = [];
             tmpPoint[forkDim] = parentPoint[forkDim], tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition, ctx.moveTo(parentPoint[0], parentPoint[1]), ctx.lineTo(tmpPoint[0], tmpPoint[1]), ctx.moveTo(firstChildPos[0], firstChildPos[1]), tmpPoint[forkDim] = firstChildPos[forkDim], ctx.lineTo(tmpPoint[0], tmpPoint[1]), tmpPoint[forkDim] = lastChildPos[forkDim], ctx.lineTo(tmpPoint[0], tmpPoint[1]), ctx.lineTo(lastChildPos[0], lastChildPos[1]);
             for(var i = 1; i < childLen - 1; i++){
                 var point = childPoints[i];
@@ -28601,7 +28601,7 @@
         // wh[idx0WhenH] means: when horizontal,
         //      wh[idx0WhenH] => wh[0] => 'width'.
         //      xy[idx1WhenH] => xy[1] => 'y'.
-        var idx0WhenH = rowFixedLength === rect.width ? 0 : 1, idx1WhenH = 1 - idx0WhenH, xy = [
+        var idx0WhenH = +(rowFixedLength !== rect.width), idx1WhenH = 1 - idx0WhenH, xy = [
             'x',
             'y'
         ], wh = [
@@ -28790,11 +28790,11 @@
          // if totalLen is Longer createCurveness
         var totalLen = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel) + getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel);
         createCurveness(seriesModel, totalLen), edge.lineStyle = edge.lineStyle || {};
-        var curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel), curvenessList = seriesModel.__curvenessList, parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1;
+        var curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel), curvenessList = seriesModel.__curvenessList, parityCorrection = isArrayParam ? 0 : +!(totalLen % 2);
         if (edgeArray.isForward) return curvenessList[parityCorrection + edgeIndex];
         var len = getEdgeMapLengthWithKey(getOppositeKey(curKey), seriesModel), resValue = curvenessList[edgeIndex + len + parityCorrection];
         return needReverse ? // set as array may make the parity handle with the len of opposite
-        isArrayParam ? autoCurvenessParams && 0 === autoCurvenessParams[0] ? (len + parityCorrection) % 2 ? resValue : -resValue : ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue : (len + parityCorrection) % 2 ? resValue : -resValue : curvenessList[edgeIndex + len + parityCorrection];
+        isArrayParam ? autoCurvenessParams && 0 === autoCurvenessParams[0] ? (len + parityCorrection) % 2 ? resValue : -resValue : (+!(len % 2) + parityCorrection) % 2 ? resValue : -resValue : (len + parityCorrection) % 2 ? resValue : -resValue : curvenessList[edgeIndex + len + parityCorrection];
     }
     function simpleLayout(seriesModel) {
         var coordSys = seriesModel.coordinateSystem;
@@ -30303,7 +30303,7 @@
             var anchorModel = seriesModel.getModel('anchor');
             if (anchorModel.get('show')) {
                 var anchorSize = anchorModel.get('size'), anchorType = anchorModel.get('icon'), offsetCenter = anchorModel.get('offsetCenter'), anchorKeepAspect = anchorModel.get('keepAspect'), anchor = createSymbol(anchorType, posInfo.cx - anchorSize / 2 + parsePercent$1(offsetCenter[0], posInfo.r), posInfo.cy - anchorSize / 2 + parsePercent$1(offsetCenter[1], posInfo.r), anchorSize, anchorSize, null, anchorKeepAspect);
-                anchor.z2 = anchorModel.get('showAbove') ? 1 : 0, anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle()), this.group.add(anchor);
+                anchor.z2 = +!!anchorModel.get('showAbove'), anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle()), this.group.add(anchor);
             }
         }, GaugeView.prototype._renderTitleAndDetail = function(seriesModel, ecModel, api, getColor, posInfo) {
             var _this = this, data = seriesModel.getData(), valueDim = data.mapDimension('value'), minVal = +seriesModel.get('min'), maxVal = +seriesModel.get('max'), contentGroup = new Group(), newTitleEls = [], newDetailEls = [], hasAnimation = seriesModel.isAnimationEnabled();
@@ -31354,7 +31354,7 @@
             ], wh = [
                 'width',
                 'height'
-            ], layout = parallelModel.get('layout'), pixelDimIndex = 'horizontal' === layout ? 0 : 1, layoutLength = rect[wh[pixelDimIndex]], layoutExtent = [
+            ], layout = parallelModel.get('layout'), pixelDimIndex = +('horizontal' !== layout), layoutLength = rect[wh[pixelDimIndex]], layoutExtent = [
                 0,
                 layoutLength
             ], axisCount = this.dimensions.length, axisExpandWidth = restrict$1(parallelModel.get('axisExpandWidth'), layoutExtent), axisExpandCount = restrict$1(parallelModel.get('axisExpandCount') || 0, [
@@ -31391,7 +31391,7 @@
                 var axisExtent = [
                     0,
                     layoutInfo.axisLength
-                ], idx = axis.inverse ? 1 : 0;
+                ], idx = +!!axis.inverse;
                 axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);
             }), each(dimensions, function(dim, idx) {
                 var posInfo = (layoutInfo.axisExpandable ? function(axisIndex, layoutInfo) {
@@ -32822,7 +32822,7 @@
             var coordDims = [
                 'x',
                 'y'
-            ], baseAxisDimIndex = 'horizontal' === option.layout ? 0 : 1, baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex], otherAxisDim = coordDims[1 - baseAxisDimIndex], axisModels = [
+            ], baseAxisDimIndex = +('horizontal' !== option.layout), baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex], otherAxisDim = coordDims[1 - baseAxisDimIndex], axisModels = [
                 xAxisModel,
                 yAxisModel
             ], baseAxisType = axisModels[baseAxisDimIndex].get('type'), otherAxisType = axisModels[1 - baseAxisDimIndex].get('type'), data = option.data;
@@ -32937,7 +32937,7 @@
         return __extends(BoxplotView, _super), BoxplotView.prototype.render = function(seriesModel, ecModel, api) {
             var data = seriesModel.getData(), group = this.group, oldData = this._data;
             this._data || group.removeAll();
-            var constDim = 'horizontal' === seriesModel.get('layout') ? 1 : 0;
+            var constDim = +('horizontal' === seriesModel.get('layout'));
             data.diff(oldData).add(function(newIdx) {
                 if (data.hasValue(newIdx)) {
                     var symbolEl = createNormalBox(data.getItemLayout(newIdx), data, newIdx, constDim, !0);
@@ -33076,7 +33076,7 @@
                 /**
      * Calculate points location for each series.
      */ (function(seriesModel, offset, boxWidth) {
-                    var coordSys = seriesModel.coordinateSystem, data = seriesModel.getData(), halfWidth = boxWidth / 2, cDimIdx = 'horizontal' === seriesModel.get('layout') ? 0 : 1, vDimIdx = 1 - cDimIdx, coordDims = [
+                    var coordSys = seriesModel.coordinateSystem, data = seriesModel.getData(), halfWidth = boxWidth / 2, cDimIdx = +('horizontal' !== seriesModel.get('layout')), vDimIdx = 1 - cDimIdx, coordDims = [
                         'x',
                         'y'
                     ], cDim = data.mapDimension(coordDims[cDimIdx]), vDims = data.mapDimensionsAll(coordDims[vDimIdx]);
@@ -35870,7 +35870,7 @@
             var resultPaths = [];
             if (separateCount <= 0) return resultPaths;
             if (1 === separateCount) return duplicateShape(path, separateCount);
-            if (path instanceof Rect) for(var toPathShape = path.shape, splitPropIdx = toPathShape.height > toPathShape.width ? 1 : 0, propWH = PROP_WH[splitPropIdx], propXY = PROP_XY[splitPropIdx], subWH = toPathShape[propWH] / separateCount, xyCurr = toPathShape[propXY], i = 0; i < separateCount; i++, xyCurr += subWH){
+            if (path instanceof Rect) for(var toPathShape = path.shape, splitPropIdx = +(toPathShape.height > toPathShape.width), propWH = PROP_WH[splitPropIdx], propXY = PROP_XY[splitPropIdx], subWH = toPathShape[propWH] / separateCount, xyCurr = toPathShape[propXY], i = 0; i < separateCount; i++, xyCurr += subWH){
                 var subShape = {
                     x: toPathShape.x,
                     y: toPathShape.y,
@@ -37462,7 +37462,7 @@
         }, /**
        * @override
        */ CartesianAxisPointer.prototype.updateHandleTransform = function(transform, delta, axisModel, axisPointerModel) {
-            var axis = axisModel.axis, grid = axis.grid, axisExtent = axis.getGlobalExtent(!0), otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent(), dimIndex = 'x' === axis.dim ? 0 : 1, currPosition = [
+            var axis = axisModel.axis, grid = axis.grid, axisExtent = axis.getGlobalExtent(!0), otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent(), dimIndex = +('x' !== axis.dim), currPosition = [
                 transform.x,
                 transform.y
             ];
@@ -37520,7 +37520,7 @@
         }
     };
     function getAxisDimIndex(axis) {
-        return 'x' === axis.dim ? 0 : 1;
+        return +('x' !== axis.dim);
     }
     var AxisPointerModel = /** @class */ function(_super) {
         function AxisPointerModel() {
@@ -37671,7 +37671,7 @@
         if (seriesModel.getTooltipPosition) point = seriesModel.getTooltipPosition(dataIndex) || [];
         else if (coordSys && coordSys.dataToPoint) {
             if (finder.isStacked) {
-                var baseAxis = coordSys.getBaseAxis(), valueAxisDim = coordSys.getOtherAxis(baseAxis).dim, baseAxisDim = baseAxis.dim, baseDataOffset = 'x' === valueAxisDim || 'radius' === valueAxisDim ? 1 : 0, baseDim = data.mapDimension(baseAxisDim), stackedData = [];
+                var baseAxis = coordSys.getBaseAxis(), valueAxisDim = coordSys.getOtherAxis(baseAxis).dim, baseAxisDim = baseAxis.dim, baseDataOffset = +('x' === valueAxisDim || 'radius' === valueAxisDim), baseDim = data.mapDimension(baseAxisDim), stackedData = [];
                 stackedData[baseDataOffset] = data.get(baseDim, dataIndex), stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex), point = coordSys.dataToPoint(stackedData) || [];
             } else point = coordSys.dataToPoint(data.getValues(map(coordSys.dimensions, function(dim) {
                 return data.mapDimension(dim);
@@ -38178,7 +38178,7 @@
             return _super.call(this, 'radius', scale, radiusExtent) || this;
         }
         return __extends(RadiusAxis, _super), RadiusAxis.prototype.pointToData = function(point, clamp) {
-            return this.polar.pointToData(point, clamp)['radius' === this.dim ? 0 : 1];
+            return this.polar.pointToData(point, clamp)[+('radius' !== this.dim)];
         }, RadiusAxis;
     }(Axis);
     RadiusAxis.prototype.dataToRadius = Axis.prototype.dataToCoord, RadiusAxis.prototype.radiusToData = Axis.prototype.coordToData;
@@ -38190,7 +38190,7 @@
             ]) || this;
         }
         return __extends(AngleAxis, _super), AngleAxis.prototype.pointToData = function(point, clamp) {
-            return this.polar.pointToData(point, clamp)['radius' === this.dim ? 0 : 1];
+            return this.polar.pointToData(point, clamp)[+('radius' !== this.dim)];
         }, /**
        * Only be called in category axis.
        * Angle axis uses text height to decide interval
@@ -38412,7 +38412,7 @@
         };
     }
     function getRadiusIdx(polar) {
-        return polar.getRadiusAxis().inverse ? 0 : 1;
+        return +!polar.getRadiusAxis().inverse;
     } // Remove the last tick which will overlap the first tick
     function fixAngleOverlap(list) {
         var firstItem = list[0], lastItem = list[list.length - 1];
@@ -38443,7 +38443,7 @@
             var shape, lineStyleModel = angleAxisModel.getModel([
                 'axisLine',
                 'lineStyle'
-            ]), rId = getRadiusIdx(polar), r0Id = rId ? 0 : 1; // extent id of the axis radius (r0 and r)
+            ]), rId = getRadiusIdx(polar), r0Id = +!rId; // extent id of the axis radius (r0 and r)
             (shape = 0 === radiusExtent[r0Id] ? new Circle({
                 shape: {
                     cx: polar.cx,
@@ -39030,7 +39030,7 @@
             ] : [
                 0,
                 rect.height
-            ], idx = axis.reverse ? 1 : 0;
+            ], idx = +!!axis.reverse;
             axis.setExtent(extent[idx], extent[1 - idx]), this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);
         }, Single.prototype._updateAxisTransform = function(axis, coordBase) {
             var axisExtent = axis.getExtent(), extentSum = axisExtent[0] + axisExtent[1], isHorizontal = axis.isHorizontal();
@@ -39071,13 +39071,13 @@
         }, Single.prototype.pointToData = function(point) {
             var axis = this.getAxis();
             return [
-                axis.coordToData(axis.toLocalCoord(point['horizontal' === axis.orient ? 0 : 1]))
+                axis.coordToData(axis.toLocalCoord(point[+('horizontal' !== axis.orient)]))
             ];
         }, /**
        * Convert the series data to concrete point.
        * Can be [val] | val
        */ Single.prototype.dataToPoint = function(val) {
-            var axis = this.getAxis(), rect = this.getRect(), pt = [], idx = 'horizontal' === axis.orient ? 0 : 1;
+            var axis = this.getAxis(), rect = this.getRect(), pt = [], idx = +('horizontal' !== axis.orient);
             return val instanceof Array && (val = val[0]), pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val)), pt[1 - idx] = 0 === idx ? rect.y + rect.height / 2 : rect.x + rect.width / 2, pt;
         }, Single.prototype.convertToPixel = function(ecModel, finder, value) {
             return getCoordSys$3(finder) === this ? this.dataToPoint(value) : null;
@@ -39191,7 +39191,7 @@
         }
     };
     function getPointDimIndex(axis) {
-        return axis.isHorizontal() ? 0 : 1;
+        return +!axis.isHorizontal();
     }
     function getGlobalExtent(coordSys, dimIndex) {
         var rect = coordSys.getRect();
@@ -39401,7 +39401,7 @@
             var rs = [
                 points[0].slice(),
                 points[points.length - 1].slice()
-            ], idx = 'horizontal' === orient ? 0 : 1;
+            ], idx = +('horizontal' !== orient);
             return rs[0][idx] = rs[0][idx] - lineWidth / 2, rs[1][idx] = rs[1][idx] + lineWidth / 2, rs;
         }, CalendarView.prototype._drawSplitline = function(points, lineStyle, group) {
             var poyline = new Polyline({
@@ -39459,7 +39459,7 @@
                 var points = [
                     this._tlpoints[this._tlpoints.length - 1],
                     this._blpoints[0]
-                ], xc = (points[0][0] + points[1][0]) / 2, yc = (points[0][1] + points[1][1]) / 2, idx = 'horizontal' === orient ? 0 : 1, posPoints = {
+                ], xc = (points[0][0] + points[1][0]) / 2, yc = (points[0][1] + points[1][1]) / 2, idx = +('horizontal' !== orient), posPoints = {
                     top: [
                         xc,
                         points[idx][1]
@@ -39506,7 +39506,7 @@
                     this._blpoints
                 ];
                 isString(nameMap) && (nameMap = MONTH_TEXT[nameMap.toUpperCase()] || []);
-                var idx = 'start' === pos ? 0 : 1, axis = 'horizontal' === orient ? 0 : 1;
+                var idx = +('start' !== pos), axis = +('horizontal' !== orient);
                 margin = 'start' === pos ? -margin : margin;
                 for(var isCenter = 'center' === align, i = 0; i < termPoints[idx].length - 1; i++){
                     var tmp = termPoints[idx][i].slice(), firstDay = this._firstDayOfMonth[i];
@@ -43531,10 +43531,10 @@
             var labelPosOpt = layoutInfo.labelPosOpt;
             if (null == labelPosOpt || isString(labelPosOpt)) {
                 // '+' or '-'
-                var mainBoundIdx = '+' === labelPosOpt ? 0 : 1;
+                var mainBoundIdx = +('+' !== labelPosOpt);
                 toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx), toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);
             } else {
-                var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;
+                var mainBoundIdx = +!(labelPosOpt >= 0);
                 toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx), labelsPosition[1] = mainPosition[1] + labelPosOpt;
             }
             function setOrigin(targetGroup) {
@@ -44070,7 +44070,7 @@
                 !isNaN(val) && (sum_1 += val, count_1++);
             }), sum_1 / count_1;
         }
-        return 'median' === type ? data.getMedian(valueDataDim) : data.getDataExtent(valueDataDim)['max' === type ? 1 : 0];
+        return 'median' === type ? data.getMedian(valueDataDim) : data.getDataExtent(valueDataDim)[+('max' === type)];
     }
     var inner$h = makeInner(), MarkerView = /** @class */ function(_super) {
         function MarkerView() {
@@ -44225,7 +44225,7 @@
                     var valueDataDim = getStackedDimension(data, axisInfo.valueDataDim);
                     value = numCalculate(data, valueDataDim, mlType);
                 }
-                var valueIndex = 'x' === valueAxis.dim ? 0 : 1, baseIndex = 1 - valueIndex, mlFrom = clone(item), mlTo = {
+                var valueIndex = +('x' !== valueAxis.dim), baseIndex = 1 - valueIndex, mlFrom = clone(item), mlTo = {
                     coord: []
                 };
                 mlFrom.type = null, mlFrom.coord = [], mlFrom.coord[baseIndex] = -1 / 0, mlTo.coord[baseIndex] = 1 / 0;
@@ -44292,7 +44292,7 @@
             if (isCoordinateSystemType(coordSys, 'cartesian2d')) {
                 // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug
                 var xAxis = coordSys.getAxis('x'), yAxis = coordSys.getAxis('y'), dims = coordSys.dimensions;
-                isInifinity(data.get(dims[0], idx)) ? point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]) : isInifinity(data.get(dims[1], idx)) && (point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]));
+                isInifinity(data.get(dims[0], idx)) ? point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[+!isFrom]) : isInifinity(data.get(dims[1], idx)) && (point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[+!isFrom]));
             } // Use x, y if has any
             isNaN(xPx) || (point[0] = xPx), isNaN(yPx) || (point[1] = yPx);
         } else point = [
@@ -44356,10 +44356,10 @@
                 null == style.fill && (style.fill = getVisualFromData(seriesData, 'color')), data.setItemVisual(idx, {
                     symbolKeepAspect: itemModel.get('symbolKeepAspect'),
                     // `0` should be considered as a valid value, so use `retrieve2` instead of `||`
-                    symbolOffset: retrieve2(itemModel.get('symbolOffset'), symbolOffset[isFrom ? 0 : 1]),
-                    symbolRotate: retrieve2(itemModel.get('symbolRotate', !0), symbolRotate[isFrom ? 0 : 1]),
-                    symbolSize: retrieve2(itemModel.get('symbolSize'), symbolSize[isFrom ? 0 : 1]),
-                    symbol: retrieve2(itemModel.get('symbol', !0), symbolType[isFrom ? 0 : 1]),
+                    symbolOffset: retrieve2(itemModel.get('symbolOffset'), symbolOffset[+!isFrom]),
+                    symbolRotate: retrieve2(itemModel.get('symbolRotate', !0), symbolRotate[+!isFrom]),
+                    symbolSize: retrieve2(itemModel.get('symbolSize'), symbolSize[+!isFrom]),
+                    symbol: retrieve2(itemModel.get('symbol', !0), symbolType[+!isFrom]),
                     style: style
                 });
             }
@@ -44485,7 +44485,7 @@
             if (isCoordinateSystemType(coordSys, 'cartesian2d')) {
                 // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug
                 var xAxis = coordSys.getAxis('x'), yAxis = coordSys.getAxis('y'), x = data.get(dims[0], idx), y = data.get(dims[1], idx);
-                isInifinity$1(x) ? point[0] = xAxis.toGlobalCoord(xAxis.getExtent()['x0' === dims[0] ? 0 : 1]) : isInifinity$1(y) && (point[1] = yAxis.toGlobalCoord(yAxis.getExtent()['y0' === dims[1] ? 0 : 1]));
+                isInifinity$1(x) ? point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[+('x0' !== dims[0])]) : isInifinity$1(y) && (point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[+('y0' !== dims[1])]));
             } // Use x, y if has any
             isNaN(xPx) || (point[0] = xPx), isNaN(yPx) || (point[1] = yPx);
         } else point = [
@@ -44939,7 +44939,7 @@
                             itemStyle[visualName] = itemVisualStyle[visualName];
                     }
                     else 'auto' === value && 'lineWidth' === visualName ? // If lineStyle.width is 'auto', it is set to be 2 if series has border
-                    itemStyle.lineWidth = itemVisualStyle.lineWidth > 0 ? 2 : 0 : itemStyle[visualName] = value;
+                    itemStyle.lineWidth = 2 * (itemVisualStyle.lineWidth > 0) : itemStyle[visualName] = value;
                 } // lineStyle
                 for(var legendLineModel = legendModel.getModel('lineStyle'), lineProperties = LINE_STYLE_KEY_MAP.concat([
                     [
@@ -44951,11 +44951,11 @@
                 ]), lineStyle = {}, i = 0; i < lineProperties.length; ++i){
                     var propName = lineProperties[i][1], visualName = lineProperties[i][0], value = legendLineModel.getShallow(propName);
                     'inherit' === value ? lineStyle[visualName] = lineVisualStyle[visualName] : 'auto' === value && 'lineWidth' === visualName ? // If lineStyle.width is 'auto', it is set to be 2 if series has border
-                    lineStyle.lineWidth = lineVisualStyle.lineWidth > 0 ? 2 : 0 : lineStyle[visualName] = value;
+                    lineStyle.lineWidth = 2 * (lineVisualStyle.lineWidth > 0) : lineStyle[visualName] = value;
                 } // Fix auto color to real color
                 if ('auto' === itemStyle.fill && (itemStyle.fill = itemVisualStyle.fill), 'auto' === itemStyle.stroke && (itemStyle.stroke = itemVisualStyle.fill), 'auto' === lineStyle.stroke && (lineStyle.stroke = itemVisualStyle.fill), !isSelected) {
                     var borderWidth = legendModel.get('inactiveBorderWidth'), visualHasBorder = itemStyle[symbolType.indexOf('empty') > -1 ? 'fill' : 'stroke'];
-                    itemStyle.lineWidth = 'auto' === borderWidth ? itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0 : itemStyle.lineWidth, itemStyle.fill = legendModel.get('inactiveColor'), itemStyle.stroke = legendModel.get('inactiveBorderColor'), lineStyle.stroke = legendLineStyle.get('inactiveColor'), lineStyle.lineWidth = legendLineStyle.get('inactiveWidth');
+                    itemStyle.lineWidth = 'auto' === borderWidth ? 2 * (itemVisualStyle.lineWidth > 0 && !!visualHasBorder) : itemStyle.lineWidth, itemStyle.fill = legendModel.get('inactiveColor'), itemStyle.stroke = legendModel.get('inactiveBorderColor'), lineStyle.stroke = legendLineStyle.get('inactiveColor'), lineStyle.lineWidth = legendLineStyle.get('inactiveWidth');
                 }
                 return {
                     itemStyle: itemStyle,
@@ -45348,7 +45348,7 @@
        *  pageNextDataIndex: number, null when no next page.
        * }
        */ ScrollableLegendView.prototype._getPageInfo = function(legendModel) {
-            var scrollDataIndex = legendModel.get('scrollDataIndex', !0), contentGroup = this.getContentGroup(), containerRectSize = this._containerGroup.__rectSize, orientIdx = legendModel.getOrient().index, wh = WH$1[orientIdx], xy = XY$1[orientIdx], targetItemIndex = this._findTargetItemIndex(scrollDataIndex), children = contentGroup.children(), targetItem = children[targetItemIndex], itemCount = children.length, pCount = itemCount ? 1 : 0, result = {
+            var scrollDataIndex = legendModel.get('scrollDataIndex', !0), contentGroup = this.getContentGroup(), containerRectSize = this._containerGroup.__rectSize, orientIdx = legendModel.getOrient().index, wh = WH$1[orientIdx], xy = XY$1[orientIdx], targetItemIndex = this._findTargetItemIndex(scrollDataIndex), children = contentGroup.children(), targetItem = children[targetItemIndex], itemCount = children.length, pCount = +!!itemCount, result = {
                 contentPosition: [
                     contentGroup.x,
                     contentGroup.y
@@ -45801,7 +45801,7 @@
                 // Why using 'right', because right should be used in vertical,
                 // and it is better to be consistent for dealing with position param merge.
                 right: ecSize.width - coordRect.x - coordRect.width,
-                top: ecSize.height - 30 - 7 - (showMoveHandle ? 7 : 0),
+                top: ecSize.height - 30 - 7 - 7 * !!showMoveHandle,
                 width: coordRect.width,
                 height: 30
             } : {
@@ -46849,7 +46849,7 @@
         for(var ecSize = {
             width: api.getWidth(),
             height: api.getHeight()
-        }, realIndex = 'horizontal' === modelOption.orient ? 1 : 0, reals = paramsSet[realIndex], fakeValue = [
+        }, realIndex = +('horizontal' === modelOption.orient), reals = paramsSet[realIndex], fakeValue = [
             0,
             null,
             10
@@ -46866,7 +46866,7 @@
                 0
             ]
         ][realIndex], rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);
-        return reals[(rect.margin[rParam[2]] || 0) + rect[rParam[0]] + 0.5 * rect[rParam[1]] < 0.5 * ecSize[rParam[1]] ? 0 : 1];
+        return reals[+!((rect.margin[rParam[2]] || 0) + rect[rParam[0]] + 0.5 * rect[rParam[1]] < 0.5 * ecSize[rParam[1]])];
     }
     /**
      * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and
diff --git a/crates/swc_ecma_minifier/tests/benches-full/jquery.js b/crates/swc_ecma_minifier/tests/benches-full/jquery.js
index f21765f073b6..9111d660aa38 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/jquery.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/jquery.js
@@ -658,7 +658,7 @@
                 // Support: IE 11+, Edge 17 - 18+
                 // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
                 // two documents; shallow comparisons work.
-                /* eslint-disable eqeqeq */ ap[i] == preferredDoc ? -1 : bp[i] == preferredDoc ? 1 : /* eslint-enable eqeqeq */ 0;
+                /* eslint-disable eqeqeq */ ap[i] == preferredDoc ? -1 : +(bp[i] == preferredDoc);
             }), document;
         }, Sizzle.matches = function(expr, elements) {
             return Sizzle(expr, null, null, elements);
@@ -1088,7 +1088,7 @@
             var bySet, byElement, superMatcher, i, setMatchers = [], elementMatchers = [], cached = compilerCache[selector + " "];
             if (!cached) {
                 for(match || (match = tokenize(selector)), i = match.length; i--;)(cached = function matcherFromTokens(tokens) {
-                    for(var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s)
+                    for(var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i = +!!leadingRelative, // The foundational matcher ensures that elements are reachable from top-level context(s)
                     matchContext = addCombinator(function(elem) {
                         return elem === checkContext;
                     }, implicitRelative, !0), matchAnyContext = addCombinator(function(elem) {
@@ -2467,7 +2467,7 @@
         which: function(event) {
             var button = event.button;
             return(// Add which for key events
-            null == event.which && rkeyEvent.test(event.type) ? null != event.charCode ? event.charCode : event.keyCode : !event.which && void 0 !== button && rmouseEvent.test(event.type) ? 1 & button ? 1 : 2 & button ? 3 : 4 & button ? 2 : 0 : event.which);
+            null == event.which && rkeyEvent.test(event.type) ? null != event.charCode ? event.charCode : event.keyCode : !event.which && void 0 !== button && rmouseEvent.test(event.type) ? 1 & button ? 1 : 2 & button ? 3 : 2 * !!(4 & button) : event.which);
         }
     }, jQuery.event.addProp), jQuery.each({
         focus: "focusin",
@@ -2842,7 +2842,7 @@
         Math.max(0, matches[2] - (subtract || 0)) + (matches[3] || "px") : value;
     }
     function boxModelAdjustment(elem, dimension, box, isBorderBox, styles, computedVal) {
-        var i = "width" === dimension ? 1 : 0, extra = 0, delta = 0;
+        var i = +("width" === dimension), extra = 0, delta = 0;
         // Adjustment may not be necessary
         if (box === (isBorderBox ? "border" : "content")) return 0;
         for(; i < 4; i += 2)"margin" === box && (delta += jQuery.css(elem, box + cssExpand[i], !0, styles)), isBorderBox ? ("content" === box && (delta -= jQuery.css(elem, "padding" + cssExpand[i], !0, styles)), "margin" !== box && (delta -= jQuery.css(elem, "border" + cssExpand[i] + "Width", !0, styles))) : (// Add padding
@@ -3060,7 +3060,7 @@
         };
         for(// If we include width, step value is 1 to do all cssExpand values,
         // otherwise step value is 2 to skip over Left and Right
-        includeWidth = includeWidth ? 1 : 0; i < 4; i += 2 - includeWidth)attrs["margin" + (which = cssExpand[i])] = attrs["padding" + which] = type;
+        includeWidth = +!!includeWidth; i < 4; i += 2 - includeWidth)attrs["margin" + (which = cssExpand[i])] = attrs["padding" + which] = type;
         return includeWidth && (attrs.opacity = attrs.width = type), attrs;
     }
     function createTween(value, prop, animation) {
@@ -3962,7 +3962,7 @@
                 // (no matter how long the jqXHR object will be used)
                 transport = void 0, // Cache response headers
                 responseHeadersString = headers || "", // Set readyState
-                jqXHR.readyState = status > 0 ? 4 : 0, // Determine if successful
+                jqXHR.readyState = 4 * (status > 0), // Determine if successful
                 isSuccess = status >= 200 && status < 300 || 304 === status, responses && (response = /* Handles responses to an ajax request:
  * - finds the right dataType (mediates between content-type and expected dataType)
  * - returns the corresponding response
diff --git a/crates/swc_ecma_minifier/tests/benches-full/lodash.js b/crates/swc_ecma_minifier/tests/benches-full/lodash.js
index 1bd3ad3841ba..75d876029345 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/lodash.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/lodash.js
@@ -1413,7 +1413,7 @@
      * @returns {boolean} Returns `true` if the entry was removed, else `false`.
      */ function(key) {
             var result = this.has(key) && delete this.__data__[key];
-            return this.size -= result ? 1 : 0, result;
+            return this.size -= +!!result, result;
         }, Hash.prototype.get = /**
      * Gets the hash value for `key`.
      *
@@ -1451,7 +1451,7 @@
      * @returns {Object} Returns the hash instance.
      */ function(key, value) {
             var data = this.__data__;
-            return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && undefined === value ? HASH_UNDEFINED : value, this;
+            return this.size += +!this.has(key), data[key] = nativeCreate && undefined === value ? HASH_UNDEFINED : value, this;
         }, // Add methods to `ListCache`.
         ListCache.prototype.clear = /**
      * Removes all key-value entries from the list cache.
@@ -1531,7 +1531,7 @@
      * @returns {boolean} Returns `true` if the entry was removed, else `false`.
      */ function(key) {
             var result = getMapData(this, key).delete(key);
-            return this.size -= result ? 1 : 0, result;
+            return this.size -= +!!result, result;
         }, MapCache.prototype.get = /**
      * Gets the map value for `key`.
      *
@@ -1563,7 +1563,7 @@
      * @returns {Object} Returns the map cache instance.
      */ function(key, value) {
             var data = getMapData(this, key), size = data.size;
-            return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
+            return data.set(key, value), this.size += +(data.size != size), this;
         }, // Add methods to `SetCache`.
         SetCache.prototype.add = SetCache.prototype.push = /**
      * Adds `value` to the array cache.
@@ -3249,7 +3249,7 @@
                 // Exit early if metadata can't be merged.
                 if (isCommon || isCombo) {
                     1 & srcBitmask && (data[2] = source[2], // Set when currying a bound function.
-                    newBitmask |= 1 & bitmask ? 0 : 4);
+                    newBitmask |= 4 * !(1 & bitmask));
                     // Compose partial arguments.
                     var value = source[3];
                     if (value) {
@@ -4258,7 +4258,7 @@
             var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) {
                 return baseAt(object, paths);
             };
-            return !(length > 1) && !this.__actions__.length && value instanceof LazyWrapper && isIndex(start) ? ((value = value.slice(start, +start + (length ? 1 : 0))).__actions__.push({
+            return !(length > 1) && !this.__actions__.length && value instanceof LazyWrapper && isIndex(start) ? ((value = value.slice(start, +start + +!!length)).__actions__.push({
                 func: thru,
                 args: [
                     interceptor
@@ -4449,7 +4449,7 @@
      * _.partition(users, 'active');
      * // => objects for [['fred'], ['barney', 'pebbles']]
      */ var partition = createAggregator(function(result, value, key) {
-            result[key ? 0 : 1].push(value);
+            result[+!key].push(value);
         }, function() {
             return [
                 [],
diff --git a/crates/swc_ecma_minifier/tests/benches-full/moment.js b/crates/swc_ecma_minifier/tests/benches-full/moment.js
index 2c09ea7bd2a2..cb59944517ee 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/moment.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/moment.js
@@ -874,7 +874,7 @@
             weekday = w.e + dow, (w.e < 0 || w.e > 6) && (weekdayOverflow = !0)) : // default to beginning of week
             weekday = dow), week < 1 || week > weeksInYear(weekYear, dow, doy) ? getParsingFlags(config)._overflowWeeks = !0 : null != weekdayOverflow ? getParsingFlags(config)._overflowWeekday = !0 : (temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), config._a[0] = temp.year, config._dayOfYear = temp.dayOfYear)), null != config._dayOfYear && (yearToUse = defaults(config._a[0], currentDate[0]), (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && (getParsingFlags(config)._overflowDayOfYear = !0), date = createUTCDate(yearToUse, 0, config._dayOfYear), config._a[1] = date.getUTCMonth(), config._a[2] = date.getUTCDate()), i = 0; i < 3 && null == config._a[i]; ++i)config._a[i] = input[i] = currentDate[i];
             // Zero out whatever was not defaulted, including time
-            for(; i < 7; i++)config._a[i] = input[i] = null == config._a[i] ? 2 === i ? 1 : 0 : config._a[i];
+            for(; i < 7; i++)config._a[i] = input[i] = null == config._a[i] ? +(2 === i) : config._a[i];
             24 === config._a[3] && 0 === config._a[4] && 0 === config._a[5] && 0 === config._a[6] && (config._nextDay = !0, config._a[3] = 0), config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input), expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(), null != config._tzm && config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm), config._nextDay && (config._a[3] = 24), config._w && void 0 !== config._w.d && config._w.d !== expectedWeekday && (getParsingFlags(config).weekdayMismatch = !0);
         }
     }
diff --git a/crates/swc_ecma_minifier/tests/benches-full/terser.js b/crates/swc_ecma_minifier/tests/benches-full/terser.js
index e8f57c059b2b..dccf69aed6d7 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/terser.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/terser.js
@@ -2043,7 +2043,7 @@
     };
     class AST_Token {
         constructor(type, value, line, col, pos, nlb, comments_before, comments_after, file){
-            this.flags = nlb ? 1 : 0, this.type = type, this.value = value, this.line = line, this.col = col, this.pos = pos, this.comments_before = comments_before, this.comments_after = comments_after, this.file = file, Object.seal(this);
+            this.flags = +!!nlb, this.type = type, this.value = value, this.line = line, this.col = col, this.pos = pos, this.comments_before = comments_before, this.comments_after = comments_after, this.file = file, Object.seal(this);
         }
         get nlb() {
             return has_tok_flag(this, 0b0001);
@@ -4550,7 +4550,7 @@
         }, indent = options.beautify ? function(half) {
             if (options.beautify) {
                 var back;
-                print((back = half ? 0.5 : 0, " ".repeat(options.indent_start + indentation - back * options.indent_level)));
+                print((back = 0.5 * !!half, " ".repeat(options.indent_start + indentation - back * options.indent_level)));
             }
         } : noop, with_indent = options.beautify ? function(col, cont) {
             !0 === col && (col = next_indent());
@@ -5501,7 +5501,7 @@
                 while (tw.parent(i++) !== in_destructuring)
             }
             var node = tw.parent(level);
-            if (def.export = node instanceof AST_Export ? 1 : 0) {
+            if (def.export = +(node instanceof AST_Export)) {
                 var exported = node.exported_definition;
                 (exported instanceof AST_Defun || exported instanceof AST_DefClass) && node.is_default && (def.export = 2);
             }
@@ -5790,7 +5790,7 @@
         return list_overhead(this.body);
     }, AST_EmptyStatement.prototype._size = ()=>1, AST_LabeledStatement.prototype._size = ()=>2, AST_Do.prototype._size = ()=>9, AST_While.prototype._size = ()=>7, AST_For.prototype._size = ()=>8, AST_ForIn.prototype._size = ()=>8, // AST_ForOf inherits ^
     AST_With.prototype._size = ()=>6, AST_Expansion.prototype._size = ()=>3;
-    const lambda_modifiers = (func)=>(func.is_generator ? 1 : 0) + (func.async ? 6 : 0);
+    const lambda_modifiers = (func)=>+!!func.is_generator + 6 * !!func.async;
     AST_Accessor.prototype._size = function() {
         return lambda_modifiers(this) + 4 + list_overhead(this.argnames) + list_overhead(this.body);
     }, AST_Function.prototype._size = function(info) {
@@ -5834,16 +5834,16 @@
     }, AST_Const.prototype._size = function() {
         return def_size(6, this);
     }, AST_VarDef.prototype._size = function() {
-        return this.value ? 1 : 0;
+        return +!!this.value;
     }, AST_NameMapping.prototype._size = function() {
         // foreign name isn't mangled
-        return this.name ? 4 : 0;
+        return 4 * !!this.name;
     }, AST_Import.prototype._size = function() {
         // import
         let size = 6;
         return this.imported_name && (size += 1), (this.imported_name || this.imported_names) && (size += 5), this.imported_names && (size += 2 + list_overhead(this.imported_names)), size;
     }, AST_ImportMeta.prototype._size = ()=>11, AST_Export.prototype._size = function() {
-        let size = 7 + (this.is_default ? 8 : 0);
+        let size = 7 + 8 * !!this.is_default;
         return this.exported_value && (size += this.exported_value._size()), this.exported_names && // Braces and commas
         (size += 2 + list_overhead(this.exported_names)), this.module_name && // "from "
         (size += 5), size;
@@ -5876,7 +5876,7 @@
     AST_ObjectKeyVal.prototype._size = function() {
         return key_size(this.key) + 1;
     };
-    /*#__INLINE__*/ const static_size = (is_static)=>is_static ? 7 : 0;
+    /*#__INLINE__*/ const static_size = (is_static)=>7 * !!is_static;
     /***********************************************************************
 
   A JavaScript tokenizer / parser / beautifier / compressor.
@@ -6036,9 +6036,9 @@
     }, AST_PrivateGetter.prototype._size = AST_PrivateSetter.prototype._size = function() {
         return AST_ConciseMethod.prototype._size.call(this) + 4;
     }, AST_Class.prototype._size = function() {
-        return (this.name ? 8 : 7) + (this.extends ? 8 : 0);
+        return (this.name ? 8 : 7) + 8 * !!this.extends;
     }, AST_ClassProperty.prototype._size = function() {
-        return static_size(this.static) + ("string" == typeof this.key ? this.key.length + 2 : 0) + (this.value ? 1 : 0);
+        return static_size(this.static) + ("string" == typeof this.key ? this.key.length + 2 : 0) + +!!this.value;
     }, AST_ClassPrivateProperty.prototype._size = function() {
         return AST_ClassProperty.prototype._size.call(this) + 1;
     }, AST_Symbol.prototype._size = function() {
diff --git a/crates/swc_ecma_minifier/tests/benches-full/three.js b/crates/swc_ecma_minifier/tests/benches-full/three.js
index 1f8c6ee8500f..b3a860f3d2ca 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/three.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/three.js
@@ -512,7 +512,7 @@ function(global, factory) {
                     uv.x = uv.x - Math.floor(uv.x);
                     break;
                 case 1001:
-                    uv.x = uv.x < 0 ? 0 : 1;
+                    uv.x = +!(uv.x < 0);
                     break;
                 case 1002:
                     1 === Math.abs(Math.floor(uv.x) % 2) ? uv.x = Math.ceil(uv.x) - uv.x : uv.x = uv.x - Math.floor(uv.x);
@@ -522,7 +522,7 @@ function(global, factory) {
                     uv.y = uv.y - Math.floor(uv.y);
                     break;
                 case 1001:
-                    uv.y = uv.y < 0 ? 0 : 1;
+                    uv.y = +!(uv.y < 0);
                     break;
                 case 1002:
                     1 === Math.abs(Math.floor(uv.y) % 2) ? uv.y = Math.ceil(uv.y) - uv.y : uv.y = uv.y - Math.floor(uv.y);
@@ -2376,7 +2376,7 @@ function(global, factory) {
                 var delta = max - min;
                 switch(saturation = lightness <= 0.5 ? delta / (max + min) : delta / (2 - max - min), max){
                     case r:
-                        hue = (g - b) / delta + (g < b ? 6 : 0);
+                        hue = (g - b) / delta + 6 * (g < b);
                         break;
                     case g:
                         hue = (b - r) / delta + 2;
@@ -6108,7 +6108,7 @@ function(global, factory) {
     }
     var nextVersion = 0;
     function shadowCastingLightsFirst(lightA, lightB) {
-        return (lightB.castShadow ? 1 : 0) - (lightA.castShadow ? 1 : 0);
+        return +!!lightB.castShadow - +!!lightA.castShadow;
     }
     function WebGLLights(extensions, capabilities) {
         for(var lights, cache = new UniformsCache(), shadowCache = (lights = {}, {
@@ -11347,7 +11347,7 @@ function(global, factory) {
                         for(var morphTargetName in morphTargetNames){
                             for(var times = [], values = [], _m = 0; _m !== animationKeys[k].morphTargets.length; ++_m){
                                 var animationKey = animationKeys[k];
-                                times.push(animationKey.time), values.push(animationKey.morphTarget === morphTargetName ? 1 : 0);
+                                times.push(animationKey.time), values.push(+(animationKey.morphTarget === morphTargetName));
                             }
                             tracks.push(new NumberKeyframeTrack('.morphTargetInfluence[' + morphTargetName + ']', times, values));
                         }
@@ -11955,7 +11955,7 @@ function(global, factory) {
     }
     CatmullRomCurve3.prototype = Object.create(Curve.prototype), CatmullRomCurve3.prototype.constructor = CatmullRomCurve3, CatmullRomCurve3.prototype.isCatmullRomCurve3 = !0, CatmullRomCurve3.prototype.getPoint = function(t, optionalTarget) {
         void 0 === optionalTarget && (optionalTarget = new Vector3());
-        var p0, p3, point = optionalTarget, points = this.points, l = points.length, p = (l - (this.closed ? 0 : 1)) * t, intPoint = Math.floor(p), weight = p - intPoint;
+        var p0, p3, point = optionalTarget, points = this.points, l = points.length, p = (l - +!this.closed) * t, intPoint = Math.floor(p), weight = p - intPoint;
         this.closed ? intPoint += intPoint > 0 ? 0 : (Math.floor(Math.abs(intPoint) / l) + 1) * l : 0 === weight && intPoint === l - 1 && (intPoint = l - 2, weight = 1), this.closed || intPoint > 0 ? p0 = points[(intPoint - 1) % l] : (// extrapolate first point
         tmp.subVectors(points[0], points[1]).add(points[0]), p0 = tmp);
         var p1 = points[intPoint % l], p2 = points[(intPoint + 1) % l];
@@ -15201,7 +15201,7 @@ function(global, factory) {
         }
         return _inheritsLoose(PlaneHelper, _Line), PlaneHelper.prototype.updateMatrixWorld = function(force) {
             var scale = -this.plane.constant;
-            1e-8 > Math.abs(scale) && (scale = 1e-8), this.scale.set(0.5 * this.size, 0.5 * this.size, scale), this.children[0].material.side = scale < 0 ? 1 : 0, this.lookAt(this.plane.normal), _Line.prototype.updateMatrixWorld.call(this, force);
+            1e-8 > Math.abs(scale) && (scale = 1e-8), this.scale.set(0.5 * this.size, 0.5 * this.size, scale), this.children[0].material.side = +(scale < 0), this.lookAt(this.plane.normal), _Line.prototype.updateMatrixWorld.call(this, force);
         }, PlaneHelper;
     }(Line), _axis = /*@__PURE__*/ new Vector3(), ArrowHelper = /*#__PURE__*/ function(_Object3D) {
         function ArrowHelper(dir, origin, length, color, headLength, headWidth) {
@@ -15498,7 +15498,7 @@ function(global, factory) {
             }
             for(var i = 0; i < 6; i++){
                 var col = i % 3;
-                0 == col ? (cubeCamera.up.set(0, upSign[i], 0), cubeCamera.lookAt(forwardSign[i], 0, 0)) : 1 == col ? (cubeCamera.up.set(0, 0, upSign[i]), cubeCamera.lookAt(0, forwardSign[i], 0)) : (cubeCamera.up.set(0, upSign[i], 0), cubeCamera.lookAt(0, 0, forwardSign[i])), _setViewport(cubeUVRenderTarget, 256 * col, i > 2 ? 256 : 0, 256, 256), renderer.setRenderTarget(cubeUVRenderTarget), renderer.render(scene, cubeCamera);
+                0 == col ? (cubeCamera.up.set(0, upSign[i], 0), cubeCamera.lookAt(forwardSign[i], 0, 0)) : 1 == col ? (cubeCamera.up.set(0, 0, upSign[i]), cubeCamera.lookAt(0, forwardSign[i], 0)) : (cubeCamera.up.set(0, upSign[i], 0), cubeCamera.lookAt(0, 0, forwardSign[i])), _setViewport(cubeUVRenderTarget, 256 * col, 256 * (i > 2), 256, 256), renderer.setRenderTarget(cubeUVRenderTarget), renderer.render(scene, cubeCamera);
             }
             renderer.toneMapping = toneMapping, renderer.outputEncoding = outputEncoding, renderer.setClearColor(_clearColor, clearAlpha);
         }, _proto._textureToCubeUV = function(texture, cubeUVRenderTarget) {
@@ -15535,7 +15535,7 @@ function(global, factory) {
             for(var _i = 0; _i < weights.length; _i++)weights[_i] = weights[_i] / sum;
             blurUniforms.envMap.value = targetIn.texture, blurUniforms.samples.value = samples, blurUniforms.weights.value = weights, blurUniforms.latitudinal.value = 'latitudinal' === direction, poleAxis && (blurUniforms.poleAxis.value = poleAxis), blurUniforms.dTheta.value = radiansPerPixel, blurUniforms.mipInt.value = 8 - lodIn, blurUniforms.inputEncoding.value = ENCODINGS[targetIn.texture.encoding], blurUniforms.outputEncoding.value = ENCODINGS[targetIn.texture.encoding];
             var outputSize = _sizeLods[lodOut];
-            _setViewport(targetOut, 3 * Math.max(0, 256 - 2 * outputSize), (0 === lodOut ? 0 : 512) + 2 * outputSize * (lodOut > 4 ? lodOut - 8 + 4 : 0), 3 * outputSize, 2 * outputSize), renderer.setRenderTarget(targetOut), renderer.render(blurMesh, _flatCamera);
+            _setViewport(targetOut, 3 * Math.max(0, 256 - 2 * outputSize), 512 * (0 !== lodOut) + 2 * outputSize * (lodOut > 4 ? lodOut - 8 + 4 : 0), 3 * outputSize, 2 * outputSize), renderer.setRenderTarget(targetOut), renderer.render(blurMesh, _flatCamera);
         }, PMREMGenerator;
     }();
     function _createRenderTarget(params) {
@@ -16508,7 +16508,7 @@ function(global, factory) {
             var x = _int32View[0], bits = x >> 16 & 0x8000, m = x >> 12 & 0x07ff, e = x >> 23 & 0xff;
             return(/* Using int is faster here */ /* If zero, or denormal, or exponent underflows too much for a denormal
 				* half, return signed zero. */ e < 103 ? bits : e > 142 ? (bits |= 0x7c00, /* If exponent was 0xff and one mantissa bit was set, it means NaN,
-							* not Inf, so make sure we set one mantissa bit too. */ bits |= (255 == e ? 0 : 1) && 0x007fffff & x) : e < 113 ? (m |= 0x0800, /* Extra rounding may overflow and set mantissa to 0 and exponent
+							* not Inf, so make sure we set one mantissa bit too. */ bits |= +(255 != e) && 0x007fffff & x) : e < 113 ? (m |= 0x0800, /* Extra rounding may overflow and set mantissa to 0 and exponent
 					* to 1, which is OK. */ bits |= (m >> 114 - e) + (m >> 113 - e & 1)) : (bits |= e - 112 << 10 | m >> 1, /* Extra rounding. An overflow will set mantissa to 0 and increment
 				* the exponent, which is OK. */ bits += 1 & m));
         }
diff --git a/crates/swc_ecma_minifier/tests/benches-full/victory.js b/crates/swc_ecma_minifier/tests/benches-full/victory.js
index d0d80feec247..a3ac0c5c85da 100644
--- a/crates/swc_ecma_minifier/tests/benches-full/victory.js
+++ b/crates/swc_ecma_minifier/tests/benches-full/victory.js
@@ -5630,7 +5630,7 @@
                         if (!Z || "Z" in d || (d.Z = 0), "p" in d && (d.H = d.H % 12 + 12 * d.p), void 0 === d.m && (d.m = "q" in d ? d.q : 0), "V" in d) {
                             if (d.V < 1 || d.V > 53) return null;
                             "w" in d || (d.w = 1), "Z" in d ? (week = (day = (week = utcDate(newDate(d.y, 0, 1))).getUTCDay()) > 4 || 0 === day ? d3_time__WEBPACK_IMPORTED_MODULE_0__.utcMonday.ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__.utcMonday)(week), week = d3_time__WEBPACK_IMPORTED_MODULE_0__.utcDay.offset(week, (d.V - 1) * 7), d.y = week.getUTCFullYear(), d.m = week.getUTCMonth(), d.d = week.getUTCDate() + (d.w + 6) % 7) : (week = (day = (week = localDate(newDate(d.y, 0, 1))).getDay()) > 4 || 0 === day ? d3_time__WEBPACK_IMPORTED_MODULE_0__.timeMonday.ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__.timeMonday)(week), week = d3_time__WEBPACK_IMPORTED_MODULE_0__.timeDay.offset(week, (d.V - 1) * 7), d.y = week.getFullYear(), d.m = week.getMonth(), d.d = week.getDate() + (d.w + 6) % 7);
-                        } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0), day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day + 5) % 7 : d.w + 7 * d.U - (day + 6) % 7);
+                        } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : +("W" in d)), day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day + 5) % 7 : d.w + 7 * d.U - (day + 6) % 7);
                         return(// If a time zone is specified, all fields are interpreted as UTC and then
                         // offset according to the specified time zone.
                         "Z" in d ? (d.H += d.Z / 100 | 0, d.M += d.Z % 100, utcDate(d)) : localDate(d));
@@ -13503,7 +13503,7 @@ object-assign
                     if (1 === sign ? y0 - cr["bottom".concat(side)] < y1 + cr["top".concat(side)] : y0 + cr["bottom".concat(side)] > y1 - cr["top".concat(side)]) {
                         var topCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.point)(x + signL * cr["top".concat(side)], y1 + sign * cr["top".concat(side)]), topCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.circle)(topCenter, cr["top".concat(side)]), bottomCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.point)(x + signL * cr["bottom".concat(side)], y0 - sign * cr["bottom".concat(side)]), bottomCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.circle)(bottomCenter, cr["bottom".concat(side)]), circleIntersection = topCircle.intersection(bottomCircle);
                         if (circleIntersection.length > 0) {
-                            var arcIntersection = circleIntersection[isLeft ? 0 : 1];
+                            var arcIntersection = circleIntersection[+!isLeft];
                             bottomMiddlePoint = {
                                 x: arcIntersection.x,
                                 y: arcIntersection.y
@@ -13512,7 +13512,7 @@ object-assign
                                 y: arcIntersection.y
                             };
                         } else if (cr["top".concat(side)] > cr["bottom".concat(side)]) {
-                            var newX = topCircle.solveX(y0)[isLeft ? 0 : 1];
+                            var newX = topCircle.solveX(y0)[+!isLeft];
                             bottomPoint = {
                                 x: newX,
                                 y: y0
@@ -13524,7 +13524,7 @@ object-assign
                                 y: y0
                             };
                         } else {
-                            var _newX = bottomCircle.solveX(y1)[isLeft ? 0 : 1];
+                            var _newX = bottomCircle.solveX(y1)[+!isLeft];
                             bottomMiddlePoint = {
                                 x: _newX,
                                 y: y1
@@ -13564,7 +13564,7 @@ object-assign
                     if (leftMiddlePoint.x > rightMiddlePoint.x) {
                         var leftCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.point)(x0 + cr["".concat(side, "Left")], y - signL * cr["".concat(side, "Left")]), leftCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.circle)(leftCenter, cr["".concat(side, "Left")]), rightCenter = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.point)(x1 - cr["".concat(side, "Right")], y - signL * cr["".concat(side, "Right")]), rightCircle = Object(_geometry_helper_methods__WEBPACK_IMPORTED_MODULE_1__.circle)(rightCenter, cr["".concat(side, "Right")]), circleIntersection = leftCircle.intersection(rightCircle);
                         if (circleIntersection.length > 0) {
-                            var arcIntersection = circleIntersection[sign > 0 ? 1 : 0];
+                            var arcIntersection = circleIntersection[+(sign > 0)];
                             leftMiddlePoint = {
                                 x: arcIntersection.x,
                                 y: arcIntersection.y
@@ -13573,7 +13573,7 @@ object-assign
                                 y: arcIntersection.y
                             };
                         } else if (cr["".concat(side, "Right")] > cr["".concat(side, "Left")]) {
-                            var newY = rightCircle.solveY(x0)[isTop ? 0 : 1];
+                            var newY = rightCircle.solveY(x0)[+!isTop];
                             leftPoint = {
                                 x: x0,
                                 y: newY
@@ -13585,7 +13585,7 @@ object-assign
                                 y: newY
                             };
                         } else {
-                            var _newY = leftCircle.solveY(x1)[isTop ? 0 : 1];
+                            var _newY = leftCircle.solveY(x1)[+!isTop];
                             rightPoint = {
                                 x: x1,
                                 y: _newY
@@ -18689,7 +18689,7 @@ object-assign
                 return target;
             }
             /*eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/ var getArcPath = function(props) {
-                var cx = props.cx, cy = props.cy, r = props.r, startAngle = props.startAngle, endAngle = props.endAngle, closedPath = props.closedPath, halfAngle = Math.abs(endAngle - startAngle) / 2 + startAngle, x1 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(startAngle)), y1 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(startAngle)), x2 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(halfAngle)), y2 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(halfAngle)), x3 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(endAngle)), y3 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(endAngle)), largerArcFlag1 = halfAngle - startAngle <= 180 ? 0 : 1, largerArcFlag2 = endAngle - halfAngle <= 180 ? 0 : 1, arcStart = closedPath ? " M ".concat(cx, ", ").concat(cy, " L ").concat(x1, ", ").concat(y1) : "M ".concat(x1, ", ").concat(y1), arc1 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag1, ", 0, ").concat(x2, ", ").concat(y2), arc2 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag2, ", 0, ").concat(x3, ", ").concat(y3); // Always draw the path as two arcs so that complete circles may be rendered.
+                var cx = props.cx, cy = props.cy, r = props.r, startAngle = props.startAngle, endAngle = props.endAngle, closedPath = props.closedPath, halfAngle = Math.abs(endAngle - startAngle) / 2 + startAngle, x1 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(startAngle)), y1 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(startAngle)), x2 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(halfAngle)), y2 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(halfAngle)), x3 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(endAngle)), y3 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.default.degreesToRadians(endAngle)), largerArcFlag1 = +!(halfAngle - startAngle <= 180), largerArcFlag2 = +!(endAngle - halfAngle <= 180), arcStart = closedPath ? " M ".concat(cx, ", ").concat(cy, " L ").concat(x1, ", ").concat(y1) : "M ".concat(x1, ", ").concat(y1), arc1 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag1, ", 0, ").concat(x2, ", ").concat(y2), arc2 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag2, ", 0, ").concat(x3, ", ").concat(y3); // Always draw the path as two arcs so that complete circles may be rendered.
                 return "".concat(arcStart, " ").concat(arc1, " ").concat(arc2, " ").concat(closedPath ? "Z" : "");
             }, evaluateProps = function(props) {
                 /**
@@ -22105,7 +22105,7 @@ object-assign
                     var labelPlacement = props.labelPlacement, datum = props.datum;
                     if (!labelPlacement || "vertical" === labelPlacement) return 0;
                     var degrees = void 0 !== baseAngle ? baseAngle % 360 : getDegrees(props, datum), angle = 0;
-                    return 0 === degrees || 180 === degrees ? angle = 90 : degrees > 0 && degrees < 180 ? angle = 90 - degrees : degrees > 180 && degrees < 360 && (angle = 270 - degrees), angle + (degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1) * ("perpendicular" === labelPlacement ? 0 : 90);
+                    return 0 === degrees || 180 === degrees ? angle = 90 : degrees > 0 && degrees < 180 ? angle = 90 - degrees : degrees > 180 && degrees < 360 && (angle = 270 - degrees), angle + 90 * ("perpendicular" !== labelPlacement) * (degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1);
                 },
                 getDegrees: getDegrees,
                 getProps: function(props, index) {
@@ -27440,7 +27440,7 @@ object-assign
                 var minDomain = victory_core__WEBPACK_IMPORTED_MODULE_3__.Domain.getMinFromProps(props, axis), maxDomain = victory_core__WEBPACK_IMPORTED_MODULE_3__.Domain.getMaxFromProps(props, axis), dataset = getData(props);
                 if (dataset.length < 1) return void 0 !== minDomain && void 0 !== maxDomain ? victory_core__WEBPACK_IMPORTED_MODULE_3__.Domain.getDomainFromMinMax(minDomain, maxDomain) : void 0;
                 var error = "x" === axis ? "_errorX" : "_errorY", reduceErrorData = function(type) {
-                    var errorIndex = "min" === type ? 1 : 0, sign = "min" === type ? -1 : 1;
+                    var errorIndex = +("min" === type), sign = "min" === type ? -1 : 1;
                     return dataset.reduce(function(memo, datum) {
                         var currentError = Array.isArray(datum[error]) ? datum[error][errorIndex] : datum[error], current = datum["_".concat(axis)] + sign * (currentError || 0);
                         return memo < current && "min" === type || memo > current && "max" === type ? memo : current;
@@ -33054,7 +33054,7 @@ object-assign
                             var angle, polar = props.polar, labelPlacement = props.labelPlacement, orientation = props.orientation, datum = props.datum;
                             if (!polar || !labelPlacement || "vertical" === labelPlacement) return 0;
                             var degrees = victory_core__WEBPACK_IMPORTED_MODULE_7__.LabelHelpers.getDegrees(props, datum);
-                            return 0 === degrees || 180 === degrees ? angle = "top" === orientation && 180 === degrees ? 270 : 90 : degrees > 0 && degrees < 180 ? angle = 90 - degrees : degrees > 180 && degrees < 360 && (angle = 270 - degrees), angle + (degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1) * ("perpendicular" === labelPlacement ? 0 : 90);
+                            return 0 === degrees || 180 === degrees ? angle = "top" === orientation && 180 === degrees ? 270 : 90 : degrees > 0 && degrees < 180 ? angle = 90 - degrees : degrees > 180 && degrees < 360 && (angle = 270 - degrees), angle + 90 * ("perpendicular" !== labelPlacement) * (degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1);
                         }
                     },
                     {
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js
index 7cab0d8994e1..8c1466d83c28 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js
@@ -4516,9 +4516,9 @@
             var abs = Math.abs, pow = Math.pow, floor = Math.floor, log = Math.log, LN2 = Math.LN2;
             module.exports = {
                 pack: function(number, mantissaLength, bytes) {
-                    var exponent, mantissa, c, buffer = Array(bytes), exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, rt = 23 === mantissaLength ? pow(2, -24) - pow(2, -77) : 0, sign = number < 0 || 0 === number && 1 / number < 0 ? 1 : 0, index = 0;
+                    var exponent, mantissa, c, buffer = Array(bytes), exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, rt = 23 === mantissaLength ? pow(2, -24) - pow(2, -77) : 0, sign = +(number < 0 || 0 === number && 1 / number < 0), index = 0;
                     for((number = abs(number)) != number || number === 1 / 0 ? (// eslint-disable-next-line no-self-compare -- NaN check
-                    mantissa = number != number ? 1 : 0, exponent = eMax) : (exponent = floor(log(number) / LN2), number * (c = pow(2, -exponent)) < 1 && (exponent--, c *= 2), exponent + eBias >= 1 ? number += rt / c : number += rt * pow(2, 1 - eBias), number * c >= 2 && (exponent++, c /= 2), exponent + eBias >= eMax ? (mantissa = 0, exponent = eMax) : exponent + eBias >= 1 ? (mantissa = (number * c - 1) * pow(2, mantissaLength), exponent += eBias) : (mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength), exponent = 0)); mantissaLength >= 8; buffer[index++] = 255 & mantissa, mantissa /= 256, mantissaLength -= 8);
+                    mantissa = +(number != number), exponent = eMax) : (exponent = floor(log(number) / LN2), number * (c = pow(2, -exponent)) < 1 && (exponent--, c *= 2), exponent + eBias >= 1 ? number += rt / c : number += rt * pow(2, 1 - eBias), number * c >= 2 && (exponent++, c /= 2), exponent + eBias >= eMax ? (mantissa = 0, exponent = eMax) : exponent + eBias >= 1 ? (mantissa = (number * c - 1) * pow(2, mantissaLength), exponent += eBias) : (mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength), exponent = 0)); mantissaLength >= 8; buffer[index++] = 255 & mantissa, mantissa /= 256, mantissaLength -= 8);
                     for(exponent = exponent << mantissaLength | mantissa, exponentLength += mantissaLength; exponentLength > 0; buffer[index++] = 255 & exponent, exponent /= 256, exponentLength -= 8);
                     return buffer[--index] |= 128 * sign, buffer;
                 },
@@ -13368,7 +13368,7 @@
                 return d;
             }
             function Wc(a) {
-                return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 & a ? 1073741824 : 0;
+                return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 * !!(1073741824 & a);
             }
             function Xc(a, b) {
                 var a1, a2, a3, a4, a5;
@@ -17086,7 +17086,7 @@
             }
             function qk(a, b, c) {
                 var d = null != c && null != c.hydrationOptions && c.hydrationOptions.mutableSources || null;
-                if (c = new jk(a, b, null != c && !0 === c.hydrate), b = nh(3, null, null, 2 === b ? 7 : 1 === b ? 3 : 0), c.current = b, b.stateNode = c, xg(b), a[ff] = c.current, cf(8 === a.nodeType ? a.parentNode : a), d) for(a = 0; a < d.length; a++){
+                if (c = new jk(a, b, null != c && !0 === c.hydrate), b = nh(3, null, null, 2 === b ? 7 : 3 * (1 === b)), c.current = b, b.stateNode = c, xg(b), a[ff] = c.current, cf(8 === a.nodeType ? a.parentNode : a), d) for(a = 0; a < d.length; a++){
                     var e = (b = d[a])._getVersion;
                     e = e(b._source), null == c.mutableSourceEagerHydrationData ? c.mutableSourceEagerHydrationData = [
                         b,
@@ -17204,7 +17204,7 @@
                         e = b.elementType;
                         a: {
                             switch(null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), a = b.pendingProps, e = (f = e._init)(e._payload), b.type = e, f = b.tag = function(a) {
-                                if ("function" == typeof a) return ji(a) ? 1 : 0;
+                                if ("function" == typeof a) return +!!ji(a);
                                 if (null != a) {
                                     if ((a = a.$$typeof) === Aa) return 11;
                                     if (a === Da) return 14;
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/1/output.js
index 810cb8582fb0..c126a1111807 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/1/output.js
@@ -188,7 +188,7 @@ export default function formatLocale(locale) {
             if (!Z || "Z" in d || (d.Z = 0), "p" in d && (d.H = d.H % 12 + 12 * d.p), void 0 === d.m && (d.m = "q" in d ? d.q : 0), "V" in d) {
                 if (d.V < 1 || d.V > 53) return null;
                 "w" in d || (d.w = 1), "Z" in d ? (week = (day = (week = utcDate(newDate(d.y, 0, 1))).getUTCDay()) > 4 || 0 === day ? utcMonday.ceil(week) : utcMonday(week), week = utcDay.offset(week, (d.V - 1) * 7), d.y = week.getUTCFullYear(), d.m = week.getUTCMonth(), d.d = week.getUTCDate() + (d.w + 6) % 7) : (week = (day = (week = localDate(newDate(d.y, 0, 1))).getDay()) > 4 || 0 === day ? timeMonday.ceil(week) : timeMonday(week), week = timeDay.offset(week, (d.V - 1) * 7), d.y = week.getFullYear(), d.m = week.getMonth(), d.d = week.getDate() + (d.w + 6) % 7);
-            } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0), day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day + 5) % 7 : d.w + 7 * d.U - (day + 6) % 7);
+            } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : +("W" in d)), day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day + 5) % 7 : d.w + 7 * d.U - (day + 6) % 7);
             return(// If a time zone is specified, all fields are interpreted as UTC and then
             // offset according to the specified time zone.
             "Z" in d ? (d.H += d.Z / 100 | 0, d.M += d.Z % 100, utcDate(d)) : localDate(d));
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/3/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/3/output.js
index 55a6f3c182c7..edad5b520cdb 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/3/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/d3-time-format/3/output.js
@@ -749,7 +749,7 @@
                         if (!Z || "Z" in d || (d.Z = 0), "p" in d && (d.H = d.H % 12 + 12 * d.p), void 0 === d.m && (d.m = "q" in d ? d.q : 0), "V" in d) {
                             if (d.V < 1 || d.V > 53) return null;
                             "w" in d || (d.w = 1), "Z" in d ? (week = (day1 = (week = utcDate(newDate(d.y, 0, 1))).getUTCDay()) > 4 || 0 === day1 ? utcMonday.ceil(week) : utcMonday(week), week = utcDay.offset(week, (d.V - 1) * 7), d.y = week.getUTCFullYear(), d.m = week.getUTCMonth(), d.d = week.getUTCDate() + (d.w + 6) % 7) : (week = (day1 = (week = localDate(newDate(d.y, 0, 1))).getDay()) > 4 || 0 === day1 ? monday.ceil(week) : monday(week), week = day.offset(week, (d.V - 1) * 7), d.y = week.getFullYear(), d.m = week.getMonth(), d.d = week.getDate() + (d.w + 6) % 7);
-                        } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0), day1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day1 + 5) % 7 : d.w + 7 * d.U - (day1 + 6) % 7);
+                        } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : +("W" in d)), day1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(), d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day1 + 5) % 7 : d.w + 7 * d.U - (day1 + 6) % 7);
                         return(// If a time zone is specified, all fields are interpreted as UTC and then
                         // offset according to the specified time zone.
                         "Z" in d ? (d.H += d.Z / 100 | 0, d.M += d.Z % 100, utcDate(d)) : localDate(d));
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js
index 281586f1587a..68a2b490b28f 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js
@@ -243,9 +243,6 @@
             function w(a, b) {
                 return -1 != a.indexOf(b);
             }
-            function ua(a, b) {
-                return a < b ? -1 : a > b ? 1 : 0;
-            }
             a: {
                 var va = l.navigator;
                 if (va) {
@@ -1450,7 +1447,7 @@
                             var b1, e = a.C;
                             D(d = Sb(), new Vb(d, c, b, e)), Hc(a);
                         } else Gc(a);
-                    } else if (3 == (e = b.o) || 0 == e && 0 < a.I || !(1 == d && (b1 = b, !(Cc(a.i) >= a.i.j - (a.m ? 1 : 0)) && (a.m ? (a.l = b1.D.concat(a.l), !0) : 1 != a.G && 2 != a.G && !(a.C >= (a.Xa ? 0 : a.Ya)) && (a.m = K(q(a.Ha, a, b1), Od(a, a.C)), a.C++, !0))) || 2 == d && Bc(a))) switch(c && 0 < c.length && ((b = a.i).i = b.i.concat(c)), e){
+                    } else if (3 == (e = b.o) || 0 == e && 0 < a.I || !(1 == d && (b1 = b, !(Cc(a.i) >= a.i.j - +!!a.m) && (a.m ? (a.l = b1.D.concat(a.l), !0) : 1 != a.G && 2 != a.G && !(a.C >= (a.Xa ? 0 : a.Ya)) && (a.m = K(q(a.Ha, a, b1), Od(a, a.C)), a.C++, !0))) || 2 == d && Bc(a))) switch(c && 0 < c.length && ((b = a.i).i = b.i.concat(c)), e){
                         case 1:
                             Q(a, 5);
                             break;
@@ -1573,7 +1570,7 @@
                         let a = 0;
                         const b = ta(String(Na)).split("."), c = ta("9").split("."), d = Math.max(b.length, c.length);
                         for(let h = 0; 0 == a && h < d; h++){
-                            var e = b[h] || "", f = c[h] || "";
+                            var a1, b1, a2, b2, a3, b3, e = b[h] || "", f = c[h] || "";
                             do {
                                 if (e = /(\d*)(\D*)(.*)/.exec(e) || [
                                     "",
@@ -1586,7 +1583,7 @@
                                     "",
                                     ""
                                 ], 0 == e[0].length && 0 == f[0].length) break;
-                                a = ua(0 == e[1].length ? 0 : parseInt(e[1], 10), 0 == f[1].length ? 0 : parseInt(f[1], 10)) || ua(0 == e[2].length, 0 == f[2].length) || ua(e[2], f[2]), e = e[3], f = f[3];
+                                a1 = 0 == e[1].length ? 0 : parseInt(e[1], 10), b1 = 0 == f[1].length ? 0 : parseInt(f[1], 10), a = (a1 < b1 ? -1 : +(a1 > b1)) || (a2 = 0 == e[2].length, b2 = 0 == f[2].length, a2 < b2 ? -1 : +(a2 > b2)) || (a3 = e[2], b3 = f[2], a3 < b3 ? -1 : +(a3 > b3)), e = e[3], f = f[3];
                             }while (0 == a)
                         }
                         return 0 <= a;
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js
index cc056f9261e9..243e073ed5a5 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js
@@ -522,7 +522,7 @@
                 }
             }
             function et(t, e) {
-                return t < e ? -1 : t > e ? 1 : 0;
+                return t < e ? -1 : +(t > e);
             }
             /** Helper to compare arrays using isEqual(). */ function nt(t, e, n) {
                 return t.length === e.length && t.every((t, s)=>n(t, e[s]));
@@ -795,7 +795,7 @@
                         if (n < i) return -1;
                         if (n > i) return 1;
                     }
-                    return t.length < e.length ? -1 : t.length > e.length ? 1 : 0;
+                    return t.length < e.length ? -1 : +(t.length > e.length);
                 }
             }
             /**
@@ -2543,7 +2543,7 @@
                     if (this.isRed() && this.left.isRed() || this.right.isRed()) throw L();
                     const t = this.left.check();
                     if (t !== this.right.check()) throw L();
-                    return t + (this.isRed() ? 0 : 1);
+                    return t + +!this.isRed();
                 }
             }
             // end LLRBNode
@@ -3089,7 +3089,7 @@
                      */ // Visible for testing.
                 ot(t, e) {
                     if (!this.ht(t)) return;
-                    const n = this.gt(t, e.key) ? 2 /* Modified */  : 0; /* Added */ 
+                    const n = 2 /* Modified */  * !!this.gt(t, e.key); /* Added */ 
                     this.ut(t).H(e.key, n), this.nt = this.nt.insert(e.key, e), this.st = this.st.insert(e.key, this.yt(e.key).add(t));
                 }
                 /**
@@ -7253,7 +7253,7 @@
                                      * See the License for the specific language governing permissions and
                                      * limitations under the License.
                                      */ t.type, e.type) || this.Io(t.doc, e.doc)), this.Vo(n);
-                    const r = e ? this.So() : [], o = 0 === this.Eo.size && this.current ? 1 /* Synced */  : 0 /* Local */ , c = o !== this.To;
+                    const r = e ? this.So() : [], o = +(0 === this.Eo.size && !!this.current) /* Local */ , c = o !== this.To;
                     return (this.To = o, 0 !== i.length || c) ? {
                         snapshot: new Fo(this.query, t.Ao, s, i, t.mutatedKeys, 0 /* Local */  === o, c, /* excludesMetadataChanges= */ !1),
                         Do: r
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js
index e2f307f3b32d..fc2ea9a34376 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js
@@ -874,7 +874,7 @@ function(global, factory) {
             weekday = w.e + dow, (w.e < 0 || w.e > 6) && (weekdayOverflow = !0)) : // default to beginning of week
             weekday = dow), week < 1 || week > weeksInYear(weekYear, dow, doy) ? getParsingFlags(config)._overflowWeeks = !0 : null != weekdayOverflow ? getParsingFlags(config)._overflowWeekday = !0 : (temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), config._a[0] = temp.year, config._dayOfYear = temp.dayOfYear)), null != config._dayOfYear && (yearToUse = defaults(config._a[0], currentDate[0]), (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && (getParsingFlags(config)._overflowDayOfYear = !0), date = createUTCDate(yearToUse, 0, config._dayOfYear), config._a[1] = date.getUTCMonth(), config._a[2] = date.getUTCDate()), i = 0; i < 3 && null == config._a[i]; ++i)config._a[i] = input[i] = currentDate[i];
             // Zero out whatever was not defaulted, including time
-            for(; i < 7; i++)config._a[i] = input[i] = null == config._a[i] ? 2 === i ? 1 : 0 : config._a[i];
+            for(; i < 7; i++)config._a[i] = input[i] = null == config._a[i] ? +(2 === i) : config._a[i];
             24 === config._a[3] && 0 === config._a[4] && 0 === config._a[5] && 0 === config._a[6] && (config._nextDay = !0, config._a[3] = 0), config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input), expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(), null != config._tzm && config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm), config._nextDay && (config._a[3] = 24), config._w && void 0 !== config._w.d && config._w.d !== expectedWeekday && (getParsingFlags(config).weekdayMismatch = !0);
         }
     }
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/quagga2/1.4.2/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/quagga2/1.4.2/1/output.js
index 067a21dbc29a..0284269d1917 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/quagga2/1.4.2/1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/quagga2/1.4.2/1/output.js
@@ -304,7 +304,7 @@
                 return !function(imageWrapper, threshold, targetWrapper) {
                     targetWrapper || // eslint-disable-next-line no-param-reassign
                     (targetWrapper = imageWrapper);
-                    for(var imageData = imageWrapper.data, length = imageData.length, targetData = targetWrapper.data; length--;)targetData[length] = imageData[length] < threshold ? 1 : 0;
+                    for(var imageData = imageWrapper.data, length = imageData.length, targetData = targetWrapper.data; length--;)targetData[length] = +(imageData[length] < threshold);
                 }(imageWrapper, threshold, targetWrapper), threshold;
             } // local thresholding
             function cv_utils_cluster(points, threshold, property) {
@@ -2573,7 +2573,7 @@
                  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
                  */ function(key) {
                 var result = this.has(key) && delete this.__data__[key];
-                return this.size -= result ? 1 : 0, result;
+                return this.size -= +!!result, result;
             };
         /***/ },
         /* 113 */ /***/ function(module1, exports1, __webpack_require__) {
@@ -2623,7 +2623,7 @@
                  * @returns {Object} Returns the hash instance.
                  */ function(key, value) {
                 var data = this.__data__;
-                return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && void 0 === value ? "__lodash_hash_undefined__" : value, this;
+                return this.size += +!this.has(key), data[key] = nativeCreate && void 0 === value ? "__lodash_hash_undefined__" : value, this;
             };
         /***/ },
         /* 116 */ /***/ function(module1, exports1, __webpack_require__) {
@@ -2638,7 +2638,7 @@
                  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
                  */ function(key) {
                 var result = getMapData(this, key).delete(key);
-                return this.size -= result ? 1 : 0, result;
+                return this.size -= +!!result, result;
             };
         /***/ },
         /* 117 */ /***/ function(module1, exports1) {
@@ -2694,7 +2694,7 @@
                  * @returns {Object} Returns the map cache instance.
                  */ function(key, value) {
                 var data = getMapData(this, key), size = data.size;
-                return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
+                return data.set(key, value), this.size += +(data.size != size), this;
             };
         /***/ },
         /* 121 */ /***/ function(module1, exports1, __webpack_require__) {
@@ -5075,9 +5075,9 @@
                 for(extrema.push({
                     pos: line.length,
                     val: line[line.length - 1]
-                }), j = extrema[0].pos; j < extrema[1].pos; j++)line[j] = line[j] > center ? 0 : 1;
+                }), j = extrema[0].pos; j < extrema[1].pos; j++)line[j] = +!(line[j] > center);
                  // iterate over extrema and convert to binary based on avg between minmax
-                for(i = 1; i < extrema.length - 1; i++)for(threshold = extrema[i + 1].val > extrema[i].val ? extrema[i].val + (extrema[i + 1].val - extrema[i].val) / 3 * 2 | 0 : extrema[i + 1].val + (extrema[i].val - extrema[i + 1].val) / 3 | 0, j = extrema[i].pos; j < extrema[i + 1].pos; j++)line[j] = line[j] > threshold ? 0 : 1;
+                for(i = 1; i < extrema.length - 1; i++)for(threshold = extrema[i + 1].val > extrema[i].val ? extrema[i].val + (extrema[i + 1].val - extrema[i].val) / 3 * 2 | 0 : extrema[i + 1].val + (extrema[i].val - extrema[i + 1].val) / 3 | 0, j = extrema[i].pos; j < extrema[i + 1].pos; j++)line[j] = +!(line[j] > threshold);
                 return {
                     line: line,
                     threshold: threshold
@@ -5160,7 +5160,7 @@
                         value: function() {
                             var offset = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : this._nextUnset(this._row), end = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this._row.length, isWhite = !(arguments.length > 2) || void 0 === arguments[2] || arguments[2], counters = [], counterPos = 0;
                             counters[0] = 0;
-                            for(var i = offset; i < end; i++)this._row[i] ^ (isWhite ? 1 : 0) ? counters[counterPos]++ : (counters[++counterPos] = 1, isWhite = !isWhite);
+                            for(var i = offset; i < end; i++)this._row[i] ^ +!!isWhite ? counters[counterPos]++ : (counters[++counterPos] = 1, isWhite = !isWhite);
                             return counters;
                         }
                     },
@@ -5169,7 +5169,7 @@
                         value: function(start, counters) {
                             var numCounters = counters.length, end = this._row.length, isWhite = !this._row[start], counterPos = 0;
                             array_helper.a.init(counters, 0);
-                            for(var i = start; i < end; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counters[counterPos]++;
+                            for(var i = start; i < end; i++)if (this._row[i] ^ +!!isWhite) counters[counterPos]++;
                             else {
                                 if (++counterPos === numCounters) break;
                                 counters[counterPos] = 1, isWhite = !isWhite;
@@ -6100,7 +6100,7 @@
                                 0,
                                 0,
                                 0
-                            ], isWhite = !this._row[start], counterPos = 0, i = start; i < this._row.length; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            ], isWhite = !this._row[start], counterPos = 0, i = start; i < this._row.length; i++)if (this._row[i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     correction && this._correct(counter, correction);
@@ -6142,7 +6142,7 @@
                                     bar: 1,
                                     space: 1
                                 }
-                            }, isWhite = !1, counterPos = 0, i = offset; i < this._row.length; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            }, isWhite = !1, counterPos = 0, i = offset; i < this._row.length; i++)if (this._row[i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     for(var sum = counter.reduce(function(prev, next) {
@@ -6480,7 +6480,7 @@
                             }, counterPos = 0;
                             offset || (offset = this._nextSet(this._row));
                             for(var found = !1, i = offset; i < this._row.length; i++)// console.warn(`* loop i=${offset} len=${this._row.length} isWhite=${isWhite} counterPos=${counterPos}`);
-                            if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos] += 1;
+                            if (this._row[i] ^ +!!isWhite) counter[counterPos] += 1;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     var error = this._matchPattern(counter, pattern); // console.warn('* matchPattern', error, counter, pattern);
@@ -6514,7 +6514,7 @@
                             }, isWhite = !this._row[start], counterPos = 0;
                             coderange || // console.warn('* decodeCode before length');
                             (coderange = CODE_PATTERN.length);
-                            for(var i = start; i < this._row.length; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            for(var i = start; i < this._row.length; i++)if (this._row[i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     for(var code = 0; code < coderange; code++){
@@ -6753,7 +6753,7 @@
                                 0,
                                 0,
                                 0
-                            ]), counterPos = 0, isWhite = !1, i = offset; i < this._row.length; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            ]), counterPos = 0, isWhite = !1, i = offset; i < this._row.length; i++)if (this._row[i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     // find start pattern
@@ -7576,7 +7576,7 @@
                                 end: 0
                             }, epsilon = this.AVG_CODE_ERROR;
                             isWhite = isWhite || !1, tryHarder = tryHarder || !1, offset || (offset = this._nextSet(this._row));
-                            for(var i = offset; i < this._row.length; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            for(var i = offset; i < this._row.length; i++)if (this._row[i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     var sum = counter.reduce(function(prev, next) {
@@ -7821,7 +7821,7 @@
                             }, sum = 0, error = 0, epsilon = this.AVG_CODE_ERROR;
                             offset || (offset = this._nextSet(this._row));
                             for(var i = 0; i < pattern.length; i++)counter[i] = 0;
-                            for(var _i = offset; _i < this._row.length; _i++)if (this._row[_i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            for(var _i = offset; _i < this._row.length; _i++)if (this._row[_i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     sum = 0;
@@ -8032,7 +8032,7 @@
                                 0,
                                 0,
                                 0
-                            ]), counterPos = 0, isWhite = !1, i = offset; i < this._row.length; i++)if (this._row[i] ^ (isWhite ? 1 : 0)) counter[counterPos]++;
+                            ]), counterPos = 0, isWhite = !1, i = offset; i < this._row.length; i++)if (this._row[i] ^ +!!isWhite) counter[counterPos]++;
                             else {
                                 if (counterPos === counter.length - 1) {
                                     // find start pattern
@@ -9480,7 +9480,7 @@
                             size: 800,
                             src: config.src
                         },
-                        numOfWorkers: config.debug ? 0 : 1,
+                        numOfWorkers: +!config.debug,
                         locator: {
                             halfSample: !1
                         }
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/002/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/002/output.js
index da15f226001c..cbcb77155072 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/002/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/002/output.js
@@ -13,7 +13,7 @@ const isMultiIndexContext = (widget)=>hasMultipleIndices({
         multiIndexContext: widget.props.indexContextValue
     }), isTargetedIndexEqualIndex = (widget, indexId)=>widget.props.indexContextValue.targetedIndex === indexId, isIndexWidget = (widget)=>!!widget.props.indexId, isIndexWidgetEqualIndex = (widget, indexId)=>widget.props.indexId === indexId, sortIndexWidgetsFirst = (firstWidget, secondWidget)=>{
     const isFirstWidgetIndex = isIndexWidget(firstWidget), isSecondWidgetIndex = isIndexWidget(secondWidget);
-    return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0;
+    return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : +(!isFirstWidgetIndex && !!isSecondWidgetIndex);
 };
 /**
  * Creates a new instance of the InstantSearchManager which controls the widgets and
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/003/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/003/output.js
index f40a23aa0997..9d56d1a30709 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/003/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/003/output.js
@@ -13,7 +13,7 @@ const isMultiIndexContext = (widget)=>hasMultipleIndices({
         multiIndexContext: widget.props.indexContextValue
     }), isTargetedIndexEqualIndex = (widget, indexId)=>widget.props.indexContextValue.targetedIndex === indexId, isIndexWidget = (widget)=>!!widget.props.indexId, isIndexWidgetEqualIndex = (widget, indexId)=>widget.props.indexId === indexId, sortIndexWidgetsFirst = (firstWidget, secondWidget)=>{
     const isFirstWidgetIndex = isIndexWidget(firstWidget), isSecondWidgetIndex = isIndexWidget(secondWidget);
-    return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0;
+    return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : +(!isFirstWidgetIndex && !!isSecondWidgetIndex);
 };
 /**
  * Creates a new instance of the InstantSearchManager which controls the widgets and
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js
index f357edcb2584..f4c63b9c52b1 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js
@@ -21,7 +21,7 @@ var _obj, isMultiIndexContext = function(widget) {
     return widget.props.indexId === indexId;
 }, sortIndexWidgetsFirst = function(firstWidget, secondWidget) {
     var isFirstWidgetIndex = isIndexWidget(firstWidget), isSecondWidgetIndex = isIndexWidget(secondWidget);
-    return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0;
+    return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : +(!isFirstWidgetIndex && !!isSecondWidgetIndex);
 };
 /**
  * Creates a new instance of the InstantSearchManager which controls the widgets and
diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/typescript/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/typescript/1/output.js
index 92a11c5f114a..30f8ce027abf 100644
--- a/crates/swc_ecma_minifier/tests/fixture/issues/typescript/1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/issues/typescript/1/output.js
@@ -292,11 +292,11 @@ var ts, ts1, dynamicImportUMDHelper;
                         // import { x, y } from "mod";
                         // import d, { x, y } from "mod";
                         // import d, * as n from "mod";
-                        variables.push(factory.createVariableDeclaration(factory.getGeneratedNameForNode(node), /*exclamationToken*/ void 0, /*type*/ void 0, getHelperExpressionForImport(node, createRequireCall(node)))), namespaceDeclaration && ts1.isDefaultImport(node) && variables.push(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), /*exclamationToken*/ void 0, /*type*/ void 0, factory.getGeneratedNameForNode(node)))), statements = ts1.append(statements, ts1.setOriginalNode(ts1.setTextRange(factory.createVariableStatement(/*modifiers*/ void 0, factory.createVariableDeclarationList(variables, languageVersion >= 2 /* ES2015 */  ? 2 /* Const */  : 0 /* None */ )), /*location*/ node), /*original*/ node));
+                        variables.push(factory.createVariableDeclaration(factory.getGeneratedNameForNode(node), /*exclamationToken*/ void 0, /*type*/ void 0, getHelperExpressionForImport(node, createRequireCall(node)))), namespaceDeclaration && ts1.isDefaultImport(node) && variables.push(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), /*exclamationToken*/ void 0, /*type*/ void 0, factory.getGeneratedNameForNode(node)))), statements = ts1.append(statements, ts1.setOriginalNode(ts1.setTextRange(factory.createVariableStatement(/*modifiers*/ void 0, factory.createVariableDeclarationList(variables, 2 /* Const */  * (languageVersion >= 2 /* ES2015 */ ) /* None */ )), /*location*/ node), /*original*/ node));
                     } else namespaceDeclaration && ts1.isDefaultImport(node) && // import d, * as n from "mod";
                     (statements = ts1.append(statements, factory.createVariableStatement(/*modifiers*/ void 0, factory.createVariableDeclarationList([
                         ts1.setOriginalNode(ts1.setTextRange(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), /*exclamationToken*/ void 0, /*type*/ void 0, factory.getGeneratedNameForNode(node)), /*location*/ node), /*original*/ node)
-                    ], languageVersion >= 2 /* ES2015 */  ? 2 /* Const */  : 0 /* None */ ))));
+                    ], 2 /* Const */  * (languageVersion >= 2 /* ES2015 */ ) /* None */ ))));
                     if (hasAssociatedEndOfDeclarationMarker(node)) {
                         // Defer exports until we encounter an EndOfDeclarationMarker node
                         var id = ts1.getOriginalNodeId(node);
@@ -312,7 +312,7 @@ var ts, ts1, dynamicImportUMDHelper;
          */ function(node) {
                     if (ts1.Debug.assert(ts1.isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."), moduleKind !== ts1.ModuleKind.AMD ? statements = ts1.hasSyntacticModifier(node, 1 /* Export */ ) ? ts1.append(statements, ts1.setOriginalNode(ts1.setTextRange(factory.createExpressionStatement(createExportExpression(node.name, createRequireCall(node))), node), node)) : ts1.append(statements, ts1.setOriginalNode(ts1.setTextRange(factory.createVariableStatement(/*modifiers*/ void 0, factory.createVariableDeclarationList([
                         factory.createVariableDeclaration(factory.cloneNode(node.name), /*exclamationToken*/ void 0, /*type*/ void 0, createRequireCall(node))
-                    ], /*flags*/ languageVersion >= 2 /* ES2015 */  ? 2 /* Const */  : 0 /* None */ )), node), node)) : ts1.hasSyntacticModifier(node, 1 /* Export */ ) && (statements = ts1.append(statements, ts1.setOriginalNode(ts1.setTextRange(factory.createExpressionStatement(createExportExpression(factory.getExportName(node), factory.getLocalName(node))), node), node))), hasAssociatedEndOfDeclarationMarker(node)) {
+                    ], /*flags*/ 2 /* Const */  * (languageVersion >= 2 /* ES2015 */ ) /* None */ )), node), node)) : ts1.hasSyntacticModifier(node, 1 /* Export */ ) && (statements = ts1.append(statements, ts1.setOriginalNode(ts1.setTextRange(factory.createExpressionStatement(createExportExpression(factory.getExportName(node), factory.getLocalName(node))), node), node))), hasAssociatedEndOfDeclarationMarker(node)) {
                         // Defer exports until we encounter an EndOfDeclarationMarker node
                         var statements, id = ts1.getOriginalNodeId(node);
                         deferredExports[id] = appendExportsOfImportEqualsDeclaration(deferredExports[id], node);
@@ -527,7 +527,7 @@ var ts, ts1, dynamicImportUMDHelper;
                             if (destructuringNeedsFlattening(elem.expression)) return !0;
                         } else if (destructuringNeedsFlattening(elem)) return !0;
                     }
-                    else if (ts1.isIdentifier(node)) return ts1.length(getExports(node)) > (ts1.isExportName(node) ? 1 : 0);
+                    else if (ts1.isIdentifier(node)) return ts1.length(getExports(node)) > +!!ts1.isExportName(node);
                     return !1;
                 }(node.left) ? ts1.visitEachChild(node, visitor, context) : ts1.flattenDestructuringAssignment(node, visitor, context, 0 /* All */ , !valueIsDiscarded, createAllExportExpressions);
                 break;
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js b/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js
index c5414e351157..74b9b7150e5c 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js
@@ -59,7 +59,7 @@
                             for(var desc, cur = dom; cur && !(desc = cur.pmViewDesc); cur = cur.parentNode);
                             return desc && desc.node && desc.node.isBlock && (desc.dom == dom || desc.contentDOM == dom);
                         }(node) || atomElements.test(node.nodeName) || "false" == node.contentEditable) return !1;
-                        off = domIndex(node) + (dir < 0 ? 0 : 1), node = parent;
+                        off = domIndex(node) + +!(dir < 0), node = parent;
                     } else {
                         if (1 != node.nodeType || "false" == (node = node.childNodes[off + (dir < 0 ? -1 : 0)]).contentEditable) return !1;
                         off = dir < 0 ? nodeSize(node) : 0;
@@ -178,13 +178,13 @@
                 }
                 // Inline, not in text node (this is not Bidi-safe)
                 if (offset && (side < 0 || offset == nodeSize(node))) {
-                    var before$1 = node.childNodes[offset - 1], target = 3 == before$1.nodeType ? textRange(before$1, nodeSize(before$1) - (supportEmptyRange ? 0 : 1)) : // Only use them if they are the last element in their parent
+                    var before$1 = node.childNodes[offset - 1], target = 3 == before$1.nodeType ? textRange(before$1, nodeSize(before$1) - +!supportEmptyRange) : // Only use them if they are the last element in their parent
                     1 != before$1.nodeType || "BR" == before$1.nodeName && before$1.nextSibling ? null : before$1;
                     if (target) return flattenV(singleRect(target, 1), !1);
                 }
                 if (offset < nodeSize(node)) {
                     for(var after$1 = node.childNodes[offset]; after$1.pmViewDesc && after$1.pmViewDesc.ignoreForCoords;)after$1 = after$1.nextSibling;
-                    var target$1 = after$1 ? 3 == after$1.nodeType ? textRange(after$1, 0, supportEmptyRange ? 0 : 1) : 1 == after$1.nodeType ? after$1 : null : null;
+                    var target$1 = after$1 ? 3 == after$1.nodeType ? textRange(after$1, 0, +!supportEmptyRange) : 1 == after$1.nodeType ? after$1 : null : null;
                     if (target$1) return flattenV(singleRect(target$1, -1), !0);
                 }
                 // All else failed, just try to get a rectangle for the target node
@@ -708,7 +708,7 @@
                 }, prototypeAccessors$3.size.get = function() {
                     return this.node.nodeSize;
                 }, prototypeAccessors$3.border.get = function() {
-                    return this.node.isLeaf ? 0 : 1;
+                    return +!this.node.isLeaf;
                 }, // Syncs `this.children` to match `this.node.content` and the local
                 // decorations, possibly introducing nesting for marks. Then, in a
                 // separate step, syncs the DOM inside `this.contentDOM` to
@@ -2812,7 +2812,7 @@
                                         type: type
                                     };
                                 }($from.parent.content.cut($from.parentOffset, $to.parentOffset), $from1.parent.content.cut($from1.parentOffset, change.endA - $from1.start())))) tr = view.state.tr, "add" == markChange.type ? tr.addMark(chFrom, chTo, markChange.mark) : tr.removeMark(chFrom, chTo, markChange.mark);
-                                else if ($from.parent.child($from.index()).isText && $from.index() == $to.index() - ($to.textOffset ? 0 : 1)) {
+                                else if ($from.parent.child($from.index()).isText && $from.index() == $to.index() - +!$to.textOffset) {
                                     // Both positions in the same text node -- simply insert text
                                     var text$1 = $from.parent.textBetween($from.parentOffset, $to.parentOffset);
                                     if (view.someProp("handleTextInput", function(f) {
@@ -3139,7 +3139,7 @@
                                             closest = child, dxClosest = dx, coordsClosest = dx && 3 == closest.nodeType ? {
                                                 left: rect.right < coords.left ? rect.right : rect.left,
                                                 top: coords.top
-                                            } : coords, 1 == child.nodeType && dx && (offset = childIndex + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0));
+                                            } : coords, 1 == child.nodeType && dx && (offset = childIndex + +(coords.left >= (rect.left + rect.right) / 2));
                                             continue;
                                         }
                                     }
@@ -3152,7 +3152,7 @@
                                     var rect = singleRect(range, 1);
                                     if (rect.top != rect.bottom && inRect(coords, rect)) return {
                                         node: node,
-                                        offset: i + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0)
+                                        offset: i + +(coords.left >= (rect.left + rect.right) / 2)
                                     };
                                 }
                                 return {
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js
index 3ec8bc598755..d649d5d4f538 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js
@@ -1078,7 +1078,7 @@
                     } // Handle key presses
                     event.which = event.charCode || event.keyCode, null !== event.button && void 0 !== event.button && // The following is disabled because it does not pass videojs-standard
                     // and... yikes.
-                    /* eslint-disable */ (event.button = 1 & event.button ? 0 : 4 & event.button ? 1 : 2 & event.button ? 2 : 0);
+                    /* eslint-disable */ (event.button = 1 & event.button ? 0 : 4 & event.button ? 1 : 2 * !!(2 & event.button));
                 }
                 return event.fixed_ = !0, event;
             }
@@ -15718,7 +15718,7 @@
                 if (preloadSegment) {
                     var parts = preloadSegment.parts;
                     return (preloadSegment.preloadHints || []).reduce(function(count, hint) {
-                        return count + ("PART" === hint.type ? 1 : 0);
+                        return count + +("PART" === hint.type);
                     }, 0) + (parts && parts.length ? parts.length : 0);
                 }
             }, liveEdgeDelay = function(master, media) {
@@ -18660,7 +18660,7 @@
                         nextByte
                     ], i++) : charCodeArray = [
                         currentByte
-                    ], _char = service.textDecoder_.decode(new Uint8Array(charCodeArray))) : _char = get708CharFromCode((isExtended ? 0x1000 : 0x0000) | currentByte), win.pendingNewLine && !win.isEmpty() && win.newLine(this.getPts(i)), win.pendingNewLine = !1, win.addText(_char), i;
+                    ], _char = service.textDecoder_.decode(new Uint8Array(charCodeArray))) : _char = get708CharFromCode(0x1000 * !!isExtended | currentByte), win.pendingNewLine && !win.isEmpty() && win.newLine(this.getPts(i)), win.pendingNewLine = !1, win.addText(_char), i;
                 }, /**
                      * Handle decoding of multibyte character
                      *
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js
index bece6eb63a49..1a5bbd282fa7 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js
@@ -6688,7 +6688,7 @@
                     x = a[i], y = b[i];
                     break;
                 }
-                return x < y ? -1 : y < x ? 1 : 0;
+                return x < y ? -1 : +(y < x);
             }, Buffer.isEncoding = function(encoding) {
                 switch(String(encoding).toLowerCase()){
                     case "hex":
@@ -6758,7 +6758,7 @@
                     x = thisCopy[i], y = targetCopy[i];
                     break;
                 }
-                return x < y ? -1 : y < x ? 1 : 0;
+                return x < y ? -1 : +(y < x);
             }, Buffer.prototype.includes = function(val, byteOffset, encoding) {
                 return -1 !== this.indexOf(val, byteOffset, encoding);
             }, Buffer.prototype.indexOf = function(val, byteOffset, encoding) {
@@ -7064,8 +7064,8 @@
                 }
                 return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
             }, exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
-                var e, m, c, eLen = 8 * nBytes - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, rt = 23 === mLen ? 0.00000005960464477539062 : 0, i = isLE ? 0 : nBytes - 1, d = isLE ? 1 : -1, s = value < 0 || 0 === value && 1 / value < 0 ? 1 : 0;
-                for(isNaN(value = Math.abs(value)) || value === 1 / 0 ? (m = isNaN(value) ? 1 : 0, e = eMax) : (e = Math.floor(Math.log(value) / Math.LN2), value * (c = Math.pow(2, -e)) < 1 && (e--, c *= 2), e + eBias >= 1 ? value += rt / c : value += rt * Math.pow(2, 1 - eBias), value * c >= 2 && (e++, c /= 2), e + eBias >= eMax ? (m = 0, e = eMax) : e + eBias >= 1 ? (m = (value * c - 1) * Math.pow(2, mLen), e += eBias) : (m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen), e = 0)); mLen >= 8; buffer[offset + i] = 0xff & m, i += d, m /= 256, mLen -= 8);
+                var e, m, c, eLen = 8 * nBytes - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, rt = 0.00000005960464477539062 * (23 === mLen), i = isLE ? 0 : nBytes - 1, d = isLE ? 1 : -1, s = +(value < 0 || 0 === value && 1 / value < 0);
+                for(isNaN(value = Math.abs(value)) || value === 1 / 0 ? (m = +!!isNaN(value), e = eMax) : (e = Math.floor(Math.log(value) / Math.LN2), value * (c = Math.pow(2, -e)) < 1 && (e--, c *= 2), e + eBias >= 1 ? value += rt / c : value += rt * Math.pow(2, 1 - eBias), value * c >= 2 && (e++, c /= 2), e + eBias >= eMax ? (m = 0, e = eMax) : e + eBias >= 1 ? (m = (value * c - 1) * Math.pow(2, mLen), e += eBias) : (m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen), e = 0)); mLen >= 8; buffer[offset + i] = 0xff & m, i += d, m /= 256, mLen -= 8);
                 for(e = e << mLen | m, eLen += mLen; eLen > 0; buffer[offset + i] = 0xff & e, i += d, e /= 256, eLen -= 8);
                 buffer[offset + i - d] |= 128 * s;
             };
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/36127/2/3/output.js b/crates/swc_ecma_minifier/tests/fixture/next/36127/2/3/output.js
index c73e2528793b..0f5209d721e7 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/36127/2/3/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/36127/2/3/output.js
@@ -161,7 +161,7 @@ class e extends Text {
         for(let s = 0, h = 0; h <= e && s < this.children.length; s++){
             let l = this.children[s], r = h + l.length;
             if (t <= r && e >= h) {
-                let s = i & ((h <= t ? 1 /* Open.From */  : 0) | (r >= e ? 2 /* Open.To */  : 0));
+                let s = i & (+(h <= t) | 2 /* Open.To */  * (r >= e));
                 h >= t && r <= e && !s ? n.push(l) : l.decompose(t - h, e - h, n, s);
             }
             h = r + 1;
@@ -260,7 +260,7 @@ class i {
             if (l == (n > 0 ? r : 0)) {
                 if (0 == i) return this.done = !0, this.value = "", this;
                 n > 0 && this.offsets[i - 1]++, this.nodes.pop(), this.offsets.pop();
-            } else if ((1 & h) == (n > 0 ? 0 : 1)) {
+            } else if ((1 & h) == +!(n > 0)) {
                 if (this.offsets[i] += n, 0 == e) return this.lineBreak = !0, this.value = "\n", this;
                 e--;
             } else if (s instanceof t) {
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/47005/output.js b/crates/swc_ecma_minifier/tests/fixture/next/47005/output.js
index 6572f9b45e09..dcd473d998e0 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/47005/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/47005/output.js
@@ -299,7 +299,7 @@
                         S.forEach((S)=>{
                             if ("attributes" === S.type && "data-tooltip-id" === S.attributeName && S.target.getAttribute("data-tooltip-id") === t && h.push(S.target), "childList" === S.type && (_ && [
                                 ...S.removedNodes
-                            ].some((m)=>!!m.contains(_) && (M(!1), Z(!1), b(null), !0)), !!m)) try {
+                            ].some((m)=>m.contains(_) ? (M(!1), Z(!1), b(null), !0) : !1), !!m)) try {
                                 let E = [
                                     ...S.addedNodes
                                 ].filter((m)=>1 === m.nodeType);
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js b/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js
index 0275a84397a8..daa18e09c318 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js
@@ -359,7 +359,7 @@
                     var d = max - min;
                     switch(s = l > 0.5 ? d / (2 - max - min) : d / (max + min), max){
                         case r:
-                            h = (g - b) / d + (g < b ? 6 : 0);
+                            h = (g - b) / d + 6 * (g < b);
                             break;
                         case g:
                             h = (b - r) / d + 2;
@@ -389,7 +389,7 @@
                 else {
                     switch(max){
                         case r:
-                            h = (g - b) / d + (g < b ? 6 : 0);
+                            h = (g - b) / d + 6 * (g < b);
                             break;
                         case g:
                             h = (b - r) / d + 2;
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/feedback-2/codemirror/output.js b/crates/swc_ecma_minifier/tests/fixture/next/feedback-2/codemirror/output.js
index c7e5755cc5ba..a36bab2066a1 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/feedback-2/codemirror/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/feedback-2/codemirror/output.js
@@ -312,7 +312,7 @@ function(global, factory) {
                 for(++i$7; i$7 < len && countsAsLeft.test(types[i$7]); ++i$7);
                 order.push(new BidiSpan(0, start, i$7));
             } else {
-                var pos = i$7, at = order.length, isRTL = "rtl" == direction ? 1 : 0;
+                var pos = i$7, at = order.length, isRTL = +("rtl" == direction);
                 for(++i$7; i$7 < len && "L" != types[i$7]; ++i$7);
                 for(var j$2 = pos; j$2 < i$7;)if (countsAsNum.test(types[j$2])) {
                     pos < j$2 && (order.splice(at, 0, new BidiSpan(1, pos, j$2)), at += isRTL);
@@ -930,7 +930,7 @@ function(global, factory) {
         return marker.inclusiveLeft ? -1 : 0;
     }
     function extraRight(marker) {
-        return marker.inclusiveRight ? 1 : 0;
+        return +!!marker.inclusiveRight;
     }
     // Returns a number indicating which of two overlapping collapsed
     // spans is larger (and thus includes the other). Falls back to
@@ -1726,16 +1726,16 @@ function(global, factory) {
                 if (boxAround) {
                     // Distinguish coordinates nearer to the left or right side of the box
                     var atLeft = x - boxAround.left < boxAround.right - x, atStart = atLeft == ltr;
-                    ch = chAround + (atStart ? 0 : 1), sticky = atStart ? "after" : "before", baseX = atLeft ? boxAround.left : boxAround.right;
+                    ch = chAround + +!atStart, sticky = atStart ? "after" : "before", baseX = atLeft ? boxAround.left : boxAround.right;
                 } else {
                     !ltr && (ch == end || ch == begin) && ch++, // To determine which side to associate with, get the box to the
                     // left of the character and compare it's vertical position to the
                     // coordinates
-                    sticky = 0 == ch ? "after" : ch == lineObj.text.length ? "before" : measureCharPrepared(cm, preparedMeasure, ch - (ltr ? 1 : 0)).bottom + widgetHeight <= y == ltr ? "after" : "before";
+                    sticky = 0 == ch ? "after" : ch == lineObj.text.length ? "before" : measureCharPrepared(cm, preparedMeasure, ch - +!!ltr).bottom + widgetHeight <= y == ltr ? "after" : "before";
                     // Now get accurate coordinates for this place, in order to get a
                     // base X position
                     var coords = cursorCoords(cm, Pos(lineNo, ch, sticky), "line", lineObj, preparedMeasure);
-                    baseX = coords.left, outside = y < coords.top ? -1 : y >= coords.bottom ? 1 : 0;
+                    baseX = coords.left, outside = y < coords.top ? -1 : +(y >= coords.bottom);
                 }
                 return PosWithInfo(lineNo, ch = skipExtendingChars(lineObj.text, ch, 1), sticky, outside, x - baseX);
             }(cm, lineObj, lineN, x, y), collapsed = function(line, ch) {
@@ -1745,7 +1745,7 @@ function(global, factory) {
                     sp.marker.collapsed && (null == sp.from || sp.from < ch) && (null == sp.to || sp.to > ch) && (!found || 0 > compareCollapsedMarkers(found, sp.marker)) && (found = sp.marker);
                 }
                 return found;
-            }(lineObj, found.ch + (found.xRel > 0 || found.outside > 0 ? 1 : 0));
+            }(lineObj, found.ch + +(found.xRel > 0 || found.outside > 0));
             if (!collapsed) return found;
             var rangeEnd = collapsed.find(1);
             if (rangeEnd.line == lineN) return rangeEnd;
@@ -1930,7 +1930,7 @@ function(global, factory) {
         }
         for(; visualLineNo(cm.doc, newN) != newN;){
             if (index == (dir < 0 ? 0 : view.length - 1)) return null;
-            newN += dir * view[index - (dir < 0 ? 1 : 0)].size, index += dir;
+            newN += dir * view[index - +(dir < 0)].size, index += dir;
         }
         return {
             index: index,
@@ -2120,7 +2120,7 @@ function(global, factory) {
             newTop != screentop && (result.scrollTop = newTop);
         }
         var gutterSpace = cm.options.fixedGutter ? 0 : display.gutters.offsetWidth, screenleft = cm.curOp && null != cm.curOp.scrollLeft ? cm.curOp.scrollLeft : display.scroller.scrollLeft - gutterSpace, screenw = displayWidth(cm) - display.gutters.offsetWidth, tooWide = rect.right - rect.left > screenw;
-        return tooWide && (rect.right = rect.left + screenw), rect.left < 10 ? result.scrollLeft = 0 : rect.left < screenleft ? result.scrollLeft = Math.max(0, rect.left + gutterSpace - (tooWide ? 0 : 10)) : rect.right > screenw + screenleft - 3 && (result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw), result;
+        return tooWide && (rect.right = rect.left + screenw), rect.left < 10 ? result.scrollLeft = 0 : rect.left < screenleft ? result.scrollLeft = Math.max(0, rect.left + gutterSpace - 10 * !tooWide) : rect.right > screenw + screenleft - 3 && (result.scrollLeft = rect.right + 10 * !tooWide - screenw), result;
     }
     // Store a relative adjustment to the scroll position in the current
     // operation (to be applied when the operation finishes).
@@ -4951,7 +4951,7 @@ function(global, factory) {
                                                     if (!order) return range;
                                                     var index = getBidiPartAt(order, anchor.ch, anchor.sticky), part = order[index];
                                                     if (part.from != anchor.ch && part.to != anchor.ch) return range;
-                                                    var boundary = index + (part.from == anchor.ch == (1 != part.level) ? 0 : 1);
+                                                    var boundary = index + +(part.from == anchor.ch != (1 != part.level));
                                                     if (0 == boundary || boundary == order.length) return range;
                                                     if (head.line != anchor.line) leftSide = (head.line - anchor.line) * ("ltr" == cm.doc.direction ? 1 : -1) > 0;
                                                     else {
@@ -4969,7 +4969,7 @@ function(global, factory) {
                                         counter == curCount && extend(e);
                                     }), 150);
                                 } else {
-                                    var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;
+                                    var outside = e.clientY < editorSize.top ? -20 : 20 * (e.clientY > editorSize.bottom);
                                     outside && setTimeout(operation(cm, function() {
                                         counter == curCount && (display.scroller.scrollTop += outside, extend(e));
                                     }), 50);
@@ -5453,7 +5453,7 @@ function(global, factory) {
                         var curNode = map[j + 2];
                         if (curNode == textNode || curNode == topNode) {
                             var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]), ch = map[j] + offset;
-                            return (offset < 0 || curNode != textNode) && (ch = map[j + (offset ? 1 : 0)]), Pos(line, ch);
+                            return (offset < 0 || curNode != textNode) && (ch = map[j + +!!offset]), Pos(line, ch);
                         }
                     }
                 }
@@ -6038,7 +6038,7 @@ function(global, factory) {
                 if (range.empty()) range.head.line > end && (indentLine(this, range.head.line, how, !0), end = range.head.line, i == this.doc.sel.primIndex && ensureCursorVisible(this));
                 else {
                     var from = range.from(), to = range.to(), start = Math.max(end, from.line);
-                    end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;
+                    end = Math.min(this.lastLine(), to.line - +!to.ch) + 1;
                     for(var j = start; j < end; ++j)indentLine(this, j, how);
                     var newRanges = this.doc.sel.ranges;
                     0 == from.ch && ranges.length == newRanges.length && newRanges[i].from().ch > 0 && replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll);
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/feedback-util-promisify/chunks/pages/_app-72ad41192608e93a/output.js b/crates/swc_ecma_minifier/tests/fixture/next/feedback-util-promisify/chunks/pages/_app-72ad41192608e93a/output.js
index d74ba1b91baf..9e853f850bf1 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/feedback-util-promisify/chunks/pages/_app-72ad41192608e93a/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/feedback-util-promisify/chunks/pages/_app-72ad41192608e93a/output.js
@@ -396,7 +396,7 @@
                                 t = e[n], f = r[n];
                                 break;
                             }
-                            return t < f ? -1 : f < t ? 1 : 0;
+                            return t < f ? -1 : +(f < t);
                         }, Buffer.isEncoding = function(e) {
                             switch(String(e).toLowerCase()){
                                 case "hex":
@@ -460,7 +460,7 @@
                                 i = a[h], o = s[h];
                                 break;
                             }
-                            return i < o ? -1 : o < i ? 1 : 0;
+                            return i < o ? -1 : +(o < i);
                         }, Buffer.prototype.includes = function(e, r, t) {
                             return -1 !== this.indexOf(e, r, t);
                         }, Buffer.prototype.indexOf = function(e, r, t) {
@@ -731,8 +731,8 @@
                             }
                             return (p ? -1 : 1) * o * Math.pow(2, i - f);
                         }, r.write = function(e, r, t, f, n, i) {
-                            var o, u, a, s = 8 * i - n - 1, h = (1 << s) - 1, c = h >> 1, l = 23 === n ? 0.00000005960464477539062 : 0, p = f ? 0 : i - 1, y = f ? 1 : -1, g = r < 0 || 0 === r && 1 / r < 0 ? 1 : 0;
-                            for(isNaN(r = Math.abs(r)) || r === 1 / 0 ? (u = isNaN(r) ? 1 : 0, o = h) : (o = Math.floor(Math.log(r) / Math.LN2), r * (a = Math.pow(2, -o)) < 1 && (o--, a *= 2), o + c >= 1 ? r += l / a : r += l * Math.pow(2, 1 - c), r * a >= 2 && (o++, a /= 2), o + c >= h ? (u = 0, o = h) : o + c >= 1 ? (u = (r * a - 1) * Math.pow(2, n), o += c) : (u = r * Math.pow(2, c - 1) * Math.pow(2, n), o = 0)); n >= 8; e[t + p] = 255 & u, p += y, u /= 256, n -= 8);
+                            var o, u, a, s = 8 * i - n - 1, h = (1 << s) - 1, c = h >> 1, l = 0.00000005960464477539062 * (23 === n), p = f ? 0 : i - 1, y = f ? 1 : -1, g = +(r < 0 || 0 === r && 1 / r < 0);
+                            for(isNaN(r = Math.abs(r)) || r === 1 / 0 ? (u = +!!isNaN(r), o = h) : (o = Math.floor(Math.log(r) / Math.LN2), r * (a = Math.pow(2, -o)) < 1 && (o--, a *= 2), o + c >= 1 ? r += l / a : r += l * Math.pow(2, 1 - c), r * a >= 2 && (o++, a /= 2), o + c >= h ? (u = 0, o = h) : o + c >= 1 ? (u = (r * a - 1) * Math.pow(2, n), o += c) : (u = r * Math.pow(2, c - 1) * Math.pow(2, n), o = 0)); n >= 8; e[t + p] = 255 & u, p += y, u /= 256, n -= 8);
                             for(o = o << n | u, s += n; s > 0; e[t + p] = 255 & o, p += y, o /= 256, s -= 8);
                             e[t + p - y] |= 128 * g;
                         };
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js b/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js
index a6ea1a6aff2d..4a82bc28e172 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js
@@ -470,7 +470,7 @@
                     });
                 };
                 var getModifierHash = function(e) {
-                    return 0 | (e.ctrlKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.metaKey ? 8 : 0);
+                    return 0 | +!!e.ctrlKey | 2 * !!e.altKey | 4 * !!e.shiftKey | 8 * !!e.metaKey;
                 };
                 function normalizeCommandKeys(callback, e, keyCode) {
                     var hashId = getModifierHash(e);
@@ -564,7 +564,7 @@
                         return 0 == this.compare(row, column);
                     }, this.compareRange = function(range) {
                         var cmp, end = range.end, start = range.start;
-                        return 1 == (cmp = this.compare(end.row, end.column)) ? 1 == (cmp = this.compare(start.row, start.column)) ? 2 : 0 == cmp ? 1 : 0 : -1 == cmp ? -2 : -1 == (cmp = this.compare(start.row, start.column)) ? -1 : 1 == cmp ? 42 : 0;
+                        return 1 == (cmp = this.compare(end.row, end.column)) ? 1 == (cmp = this.compare(start.row, start.column)) ? 2 : +(0 == cmp) : -1 == cmp ? -2 : -1 == (cmp = this.compare(start.row, start.column)) ? -1 : 42 * (1 == cmp);
                     }, this.comparePoint = function(p) {
                         return this.compare(p.row, p.column);
                     }, this.containsRange = function(range) {
@@ -587,7 +587,7 @@
                     }, this.insideEnd = function(row, column) {
                         return !(0 != this.compare(row, column) || this.isStart(row, column));
                     }, this.compare = function(row, column) {
-                        return this.isMultiLine() || row !== this.start.row ? row < this.start.row ? -1 : row > this.end.row ? 1 : this.start.row === row ? column >= this.start.column ? 0 : -1 : this.end.row === row ? column <= this.end.column ? 0 : 1 : 0 : column < this.start.column ? -1 : column > this.end.column ? 1 : 0;
+                        return this.isMultiLine() || row !== this.start.row ? row < this.start.row ? -1 : row > this.end.row ? 1 : this.start.row === row ? column >= this.start.column ? 0 : -1 : this.end.row === row ? +!(column <= this.end.column) : 0 : column < this.start.column ? -1 : +(column > this.end.column);
                     }, this.compareStart = function(row, column) {
                         return this.start.row == row && this.start.column == column ? -1 : this.compare(row, column);
                     }, this.compareEnd = function(row, column) {
@@ -814,7 +814,7 @@
                             value || (value = "");
                             var newValue = "\n ab" + value + "cde fg\n";
                             newValue != text.value && (text.value = lastValue = newValue);
-                            var selectionEnd = 4 + (value.length || (host.selection.isEmpty() ? 0 : 1));
+                            var selectionEnd = 4 + (value.length || +!host.selection.isEmpty());
                             (4 != lastSelectionStart || lastSelectionEnd != selectionEnd) && text.setSelectionRange(4, selectionEnd), lastSelectionStart = 4, lastSelectionEnd = selectionEnd;
                         }
                     } : function() {
@@ -1927,7 +1927,7 @@
                         initialValue: 2
                     },
                     dragDelay: {
-                        initialValue: useragent.isMac ? 150 : 0
+                        initialValue: 150 * !!useragent.isMac
                     },
                     dragEnabled: {
                         initialValue: !0
@@ -2430,12 +2430,12 @@
                 }
                 function _getCharacterType(ch) {
                     var uc = ch.charCodeAt(0), hi = uc >> 8;
-                    return 0 == hi ? uc > 0x00bf ? 0 : UnicodeTBL00[uc] : 5 == hi ? /[\u0591-\u05f4]/.test(ch) ? 1 : 0 : 6 == hi ? /[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ch) ? 12 : /[\u0660-\u0669\u066b-\u066c]/.test(ch) ? 3 : 0x066a == uc ? 11 : /[\u06f0-\u06f9]/.test(ch) ? 2 : 7 : 0x20 == hi && uc <= 0x205f ? UnicodeTBL20[0xff & uc] : 0xfe == hi && uc >= 0xfe70 ? 7 : 4;
+                    return 0 == hi ? uc > 0x00bf ? 0 : UnicodeTBL00[uc] : 5 == hi ? +!!/[\u0591-\u05f4]/.test(ch) : 6 == hi ? /[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ch) ? 12 : /[\u0660-\u0669\u066b-\u066c]/.test(ch) ? 3 : 0x066a == uc ? 11 : /[\u06f0-\u06f9]/.test(ch) ? 2 : 7 : 0x20 == hi && uc <= 0x205f ? UnicodeTBL20[0xff & uc] : 0xfe == hi && uc >= 0xfe70 ? 7 : 4;
                 }
                 exports.L = 0, exports.R = 1, exports.EN = 2, exports.ON_R = 3, exports.AN = 4, exports.R_H = 5, exports.B = 6, exports.RLE = 7, exports.DOT = "\xB7", exports.doBidiReorder = function(text, textCharTypes, isRtl) {
                     if (text.length < 2) return {};
                     var chars = text.split(""), logicalFromVisual = Array(chars.length), bidiLevels = Array(chars.length), levels = [];
-                    dir = isRtl ? 1 : 0, function(chars, levels, len, charTypes) {
+                    dir = +!!isRtl, function(chars, levels, len, charTypes) {
                         var impTab = dir ? impTab_RTL : impTab_LTR, prevState = null, newClass = null, newLevel = null, newState = 0, action = null, condPos = -1, i = null, ix = null, classes = [];
                         if (!charTypes) for(i = 0, charTypes = []; i < len; i++)charTypes[i] = _getCharacterType(chars[i]);
                         for(ix = 0, hiLevel = dir, lastArabic = !1, hasUBAT_B = !1, hasUBAT_S = !1; ix < len; ix++){
@@ -2590,7 +2590,7 @@
                         }, editor.session.$bidiHandler.RLE) : editor.session.doc.removeInLine(row, 0, 1);
                     }, this.getPosLeft = function(col) {
                         col -= this.wrapIndent;
-                        var leftBoundary = this.line.charAt(0) === this.RLE ? 1 : 0, logicalIdx = col > leftBoundary ? this.session.getOverwrite() ? col : col - 1 : leftBoundary, visualIdx = bidiUtil.getVisualFromLogicalIdx(logicalIdx, this.bidiMap), levels = this.bidiMap.bidiLevels, left = 0;
+                        var leftBoundary = +(this.line.charAt(0) === this.RLE), logicalIdx = col > leftBoundary ? this.session.getOverwrite() ? col : col - 1 : leftBoundary, visualIdx = bidiUtil.getVisualFromLogicalIdx(logicalIdx, this.bidiMap), levels = this.bidiMap.bidiLevels, left = 0;
                         !this.session.getOverwrite() && col <= leftBoundary && levels[visualIdx] % 2 != 0 && visualIdx++;
                         for(var i = 0; i < visualIdx; i++)left += this.charWidths[levels[i]];
                         return !this.session.getOverwrite() && col > leftBoundary && levels[visualIdx] % 2 == 0 && (left += this.charWidths[levels[visualIdx]]), this.wrapIndent && (left += this.isRtlDir ? -1 * this.wrapOffset : this.wrapOffset), this.isRtlDir && (left += this.rtlLineOffset), left;
@@ -3245,7 +3245,7 @@
                             0,
                             selection.start.column + 1,
                             rowDiff,
-                            selection.end.column + (rowDiff ? 0 : 1)
+                            selection.end.column + +!rowDiff
                         ]
                     };
                 }, CstyleBehaviour = function(options) {
@@ -5459,8 +5459,8 @@
                             if (options.siblings) {
                                 var data = this.getParentFoldRangeData(row);
                                 if (data.range) var startRow = data.range.start.row + 1, endRow = data.range.end.row;
-                                this.foldAll(startRow, endRow, options.all ? 10000 : 0);
-                            } else options.children ? (endRow = range ? range.end.row : this.getLength(), this.foldAll(row + 1, endRow, options.all ? 10000 : 0)) : range && (options.all && (range.collapseChildren = 10000), this.addFold("...", range));
+                                this.foldAll(startRow, endRow, 10000 * !!options.all);
+                            } else options.children ? (endRow = range ? range.end.row : this.getLength(), this.foldAll(row + 1, endRow, 10000 * !!options.all)) : range && (options.all && (range.collapseChildren = 10000), this.addFold("...", range));
                             return range;
                         }
                     }, this.toggleFoldWidget = function(toggleParent) {
@@ -8285,7 +8285,7 @@
                     }, this.sortLines = function() {
                         for(var rows = this.$getSelectedRows(), session = this.session, lines = [], i = rows.first; i <= rows.last; i++)lines.push(session.getLine(i));
                         lines.sort(function(a, b) {
-                            return a.toLowerCase() < b.toLowerCase() ? -1 : a.toLowerCase() > b.toLowerCase() ? 1 : 0;
+                            return a.toLowerCase() < b.toLowerCase() ? -1 : +(a.toLowerCase() > b.toLowerCase());
                         });
                         for(var deleteRange = new Range(0, 0, 0, 0), i = rows.first; i <= rows.last; i++){
                             var line = session.getLine(i);
@@ -9342,7 +9342,7 @@
                     }, this.$getTop = function(row, layerConfig) {
                         return (row - layerConfig.firstRowScreen) * layerConfig.lineHeight;
                     }, this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig, extraStyle) {
-                        for(var session = this.session, start = range.start.row, end = range.end.row, row = start, prev = 0, curr = 0, next = session.getScreenLastRowColumn(row), lineRange = new Range(row, range.start.column, row, curr); row <= end; row++)lineRange.start.row = lineRange.end.row = row, lineRange.start.column = row == start ? range.start.column : session.getRowWrapIndent(row), lineRange.end.column = next, prev = curr, curr = next, next = row + 1 < end ? session.getScreenLastRowColumn(row + 1) : row == end ? 0 : range.end.column, this.drawSingleLineMarker(stringBuilder, lineRange, clazz + (row == start ? " ace_start" : "") + " ace_br" + ((row == start || row == start + 1 && range.start.column ? 1 : 0) | (prev < curr ? 2 : 0) | (curr > next ? 4 : 0) | (row == end ? 8 : 0)), layerConfig, row == end ? 0 : 1, extraStyle);
+                        for(var session = this.session, start = range.start.row, end = range.end.row, row = start, prev = 0, curr = 0, next = session.getScreenLastRowColumn(row), lineRange = new Range(row, range.start.column, row, curr); row <= end; row++)lineRange.start.row = lineRange.end.row = row, lineRange.start.column = row == start ? range.start.column : session.getRowWrapIndent(row), lineRange.end.column = next, prev = curr, curr = next, next = row + 1 < end ? session.getScreenLastRowColumn(row + 1) : row == end ? 0 : range.end.column, this.drawSingleLineMarker(stringBuilder, lineRange, clazz + (row == start ? " ace_start" : "") + " ace_br" + (+!!(row == start || row == start + 1 && range.start.column) | 2 * (prev < curr) | 4 * (curr > next) | 8 * !(row != end)), layerConfig, +(row != end), extraStyle);
                     }, this.drawMultiLineMarker = function(stringBuilder, range, clazz, config, extraStyle) {
                         var padding = this.$padding, height = config.lineHeight, top = this.$getTop(range.start.row, config), left = padding + range.start.column * config.characterWidth;
                         if (extraStyle = extraStyle || "", this.session.$bidiHandler.isBidiRow(range.start.row)) {
@@ -9359,7 +9359,7 @@
                         }
                         if (!((height = (range.end.row - range.start.row - 1) * config.lineHeight) <= 0)) {
                             top = this.$getTop(range.start.row + 1, config);
-                            var radiusClass = (range.start.column ? 1 : 0) | (range.end.column ? 0 : 8);
+                            var radiusClass = +!!range.start.column | 8 * !range.end.column;
                             this.elt(clazz + (radiusClass ? " ace_br" + radiusClass : ""), "height:" + height + "px;right:0;top:" + top + "px;left:" + padding + "px;" + (extraStyle || ""));
                         }
                     }, this.drawSingleLineMarker = function(stringBuilder, range, clazz, config, extraLength, extraStyle) {
@@ -10494,7 +10494,7 @@ margin: 0 10px;\
                         this.$loop.pending ? this.$size.$dirty = !0 : this.onResize();
                     }, this.onResize = function(force, gutterWidth, width, height) {
                         if (!(this.resizing > 2)) {
-                            this.resizing > 0 ? this.resizing++ : this.resizing = force ? 1 : 0;
+                            this.resizing > 0 ? this.resizing++ : this.resizing = +!!force;
                             var el = this.container;
                             height || (height = el.clientHeight || el.scrollHeight), width || (width = el.clientWidth || el.scrollWidth);
                             var changes = this.$updateCachedSize(force, gutterWidth, width, height);
@@ -10580,7 +10580,7 @@ margin: 0 10px;\
                                 composition && composition.markerRange && (pixelPos = this.$cursorLayer.getPixelPosition(composition.markerRange.start, !0));
                                 var config = this.layerConfig, posTop = pixelPos.top, posLeft = pixelPos.left;
                                 posTop -= config.offset;
-                                var h = composition && composition.useTextareaForIME ? this.lineHeight : HIDE_TEXTAREA ? 0 : 1;
+                                var h = composition && composition.useTextareaForIME ? this.lineHeight : +!HIDE_TEXTAREA;
                                 if (posTop < 0 || posTop > config.height - h) {
                                     dom.translate(this.textarea, 0, 0);
                                     return;
@@ -10598,7 +10598,7 @@ margin: 0 10px;\
                     }, this.getFirstVisibleRow = function() {
                         return this.layerConfig.firstRow;
                     }, this.getFirstFullyVisibleRow = function() {
-                        return this.layerConfig.firstRow + (0 === this.layerConfig.offset ? 0 : 1);
+                        return this.layerConfig.firstRow + +(0 !== this.layerConfig.offset);
                     }, this.getLastFullyVisibleRow = function() {
                         var config = this.layerConfig, lastRow = config.lastRow;
                         return this.session.documentToScreenRow(lastRow, 0) * config.lineHeight - this.session.getScrollTop() > config.height - config.lineHeight ? lastRow - 1 : lastRow;
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js b/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js
index 7d7873d06e45..446fbde8e904 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js
@@ -2916,7 +2916,7 @@
                                     4,
                                     6
                                 ].includes(this.colorType);
-                                var s = this.colors + (this.hasAlphaChannel ? 1 : 0);
+                                var s = this.colors + +!!this.hasAlphaChannel;
                                 switch(this.pixelBitlength = this.bits * s, this.colors){
                                     case 1:
                                         this.colorSpace = "DeviceGray";
@@ -4388,7 +4388,7 @@
                     (0, f.useEffect)(d, [
                         i
                     ]);
-                    var p = c.url ? c.url + "#toolbar=" + (void 0 === a || a ? 1 : 0) : null;
+                    var p = c.url ? c.url + "#toolbar=" + +!!(void 0 === a || a) : null;
                     return /*#__PURE__*/ f.createElement("iframe", (0, u /* default */ .Z)({
                         src: p,
                         title: t,
@@ -16617,7 +16617,7 @@
                                 r = e[i], n = t[i];
                                 break;
                             }
-                            return r < n ? -1 : n < r ? 1 : 0;
+                            return r < n ? -1 : +(n < r);
                         }
                         var I = void 0;
                         function j(e, t, r, n) {
@@ -19234,7 +19234,7 @@
                             return e.msg = l[t], t;
                         }
                         function c(e) {
-                            return (e << 1) - (e > 4 ? 9 : 0);
+                            return (e << 1) - 9 * (e > 4);
                         }
                         function f(e) {
                             for(var t = e.length; --t >= 0;)e[t] = 0;
@@ -19329,7 +19329,7 @@
                         }
                         function E(e) {
                             var t;
-                            return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = 2, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? 42 : 113, e.adler = 2 === t.wrap ? 0 : 1, t.last_flush = 0, o._tr_init(t), 0) : s(e, -2);
+                            return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = 2, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? 42 : 113, e.adler = +(2 !== t.wrap), t.last_flush = 0, o._tr_init(t), 0) : s(e, -2);
                         }
                         function _(e) {
                             var t, r = E(e);
@@ -19374,7 +19374,7 @@
                             if (!e || !e.state || t > 5 || t < 0) return e ? s(e, -2) : -2;
                             if (i = e.state, !e.output || !e.input && 0 !== e.avail_in || 666 === i.status && 4 !== t) return s(e, 0 === e.avail_out ? -5 : -2);
                             if (i.strm = e, r = i.last_flush, i.last_flush = t, 42 === i.status) {
-                                if (2 === i.wrap) e.adler = 0, h(i, 31), h(i, 139), h(i, 8), i.gzhead ? (h(i, (i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)), h(i, 255 & i.gzhead.time), h(i, i.gzhead.time >> 8 & 255), h(i, i.gzhead.time >> 16 & 255), h(i, i.gzhead.time >> 24 & 255), h(i, 9 === i.level ? 2 : i.strategy >= 2 || i.level < 2 ? 4 : 0), h(i, 255 & i.gzhead.os), i.gzhead.extra && i.gzhead.extra.length && (h(i, 255 & i.gzhead.extra.length), h(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = u(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = 69) : (h(i, 0), h(i, 0), h(i, 0), h(i, 0), h(i, 0), h(i, 9 === i.level ? 2 : i.strategy >= 2 || i.level < 2 ? 4 : 0), h(i, 3), i.status = 113);
+                                if (2 === i.wrap) e.adler = 0, h(i, 31), h(i, 139), h(i, 8), i.gzhead ? (h(i, +!!i.gzhead.text + 2 * !!i.gzhead.hcrc + 4 * !!i.gzhead.extra + 8 * !!i.gzhead.name + 16 * !!i.gzhead.comment), h(i, 255 & i.gzhead.time), h(i, i.gzhead.time >> 8 & 255), h(i, i.gzhead.time >> 16 & 255), h(i, i.gzhead.time >> 24 & 255), h(i, 9 === i.level ? 2 : 4 * (i.strategy >= 2 || i.level < 2)), h(i, 255 & i.gzhead.os), i.gzhead.extra && i.gzhead.extra.length && (h(i, 255 & i.gzhead.extra.length), h(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = u(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = 69) : (h(i, 0), h(i, 0), h(i, 0), h(i, 0), h(i, 0), h(i, 9 === i.level ? 2 : 4 * (i.strategy >= 2 || i.level < 2)), h(i, 3), i.status = 113);
                                 else {
                                     var r, i, a, l, g = 8 + (i.w_bits - 8 << 4) << 8;
                                     g |= (i.strategy >= 2 || i.level < 2 ? 0 : i.level < 6 ? 1 : 6 === i.level ? 2 : 3) << 6, 0 !== i.strstart && (g |= 32), g += 31 - g % 31, i.status = 113, y(i, g), 0 !== i.strstart && (y(i, e.adler >>> 16), y(i, 65535 & e.adler)), e.adler = 1;
@@ -19445,7 +19445,7 @@
                                 if ((3 === b || 4 === b) && (i.status = 666), 1 === b || 3 === b) return 0 === e.avail_out && (i.last_flush = -1), 0;
                                 if (2 === b && (1 === t ? o._tr_align(i) : 5 !== t && (o._tr_stored_block(i, 0, 0, !1), 3 === t && (f(i.head), 0 === i.lookahead && (i.strstart = 0, i.block_start = 0, i.insert = 0))), d(e), 0 === e.avail_out)) return i.last_flush = -1, 0;
                             }
-                            return 4 !== t ? 0 : i.wrap <= 0 ? 1 : (2 === i.wrap ? (h(i, 255 & e.adler), h(i, e.adler >> 8 & 255), h(i, e.adler >> 16 & 255), h(i, e.adler >> 24 & 255), h(i, 255 & e.total_in), h(i, e.total_in >> 8 & 255), h(i, e.total_in >> 16 & 255), h(i, e.total_in >> 24 & 255)) : (y(i, e.adler >>> 16), y(i, 65535 & e.adler)), d(e), i.wrap > 0 && (i.wrap = -i.wrap), 0 !== i.pending ? 0 : 1);
+                            return 4 !== t ? 0 : i.wrap <= 0 ? 1 : (2 === i.wrap ? (h(i, 255 & e.adler), h(i, e.adler >> 8 & 255), h(i, e.adler >> 16 & 255), h(i, e.adler >> 24 & 255), h(i, 255 & e.total_in), h(i, e.total_in >> 8 & 255), h(i, e.total_in >> 16 & 255), h(i, e.total_in >> 24 & 255)) : (y(i, e.adler >>> 16), y(i, 65535 & e.adler)), d(e), i.wrap > 0 && (i.wrap = -i.wrap), +(0 === i.pending));
                         }, t.deflateEnd = function(e) {
                             var t;
                             return e && e.state ? 42 !== (t = e.state.status) && 69 !== t && 73 !== t && 91 !== t && 103 !== t && 113 !== t && 666 !== t ? s(e, -2) : (e.state = null, 113 === t ? s(e, -3) : 0) : -2;
@@ -19970,7 +19970,7 @@
                                 default:
                                     return -2;
                             }
-                            return (e.next_out = h, e.avail_out = b, e.next_in = p, e.avail_in = y, r.hold = m, r.bits = D, (r.wsize || E !== e.avail_out && r.mode < 30 && (r.mode < 27 || 4 !== t)) && v(e, e.output, e.next_out, E - e.avail_out)) ? (r.mode = 31, -4) : (w -= e.avail_in, E -= e.avail_out, e.total_in += w, e.total_out += E, r.total += E, r.wrap && E && (e.adler = r.check = r.flags ? u(r.check, d, E, e.next_out - E) : a(r.check, d, E, e.next_out - E)), e.data_type = r.bits + (r.last ? 64 : 0) + (12 === r.mode ? 128 : 0) + (20 === r.mode || 15 === r.mode ? 256 : 0), (0 === w && 0 === E || 4 === t) && 0 === R && (R = -5), R);
+                            return (e.next_out = h, e.avail_out = b, e.next_in = p, e.avail_in = y, r.hold = m, r.bits = D, (r.wsize || E !== e.avail_out && r.mode < 30 && (r.mode < 27 || 4 !== t)) && v(e, e.output, e.next_out, E - e.avail_out)) ? (r.mode = 31, -4) : (w -= e.avail_in, E -= e.avail_out, e.total_in += w, e.total_out += E, r.total += E, r.wrap && E && (e.adler = r.check = r.flags ? u(r.check, d, E, e.next_out - E) : a(r.check, d, E, e.next_out - E)), e.data_type = r.bits + 64 * !!r.last + 128 * (12 === r.mode) + 256 * (20 === r.mode || 15 === r.mode), (0 === w && 0 === E || 4 === t) && 0 === R && (R = -5), R);
                         }, t.inflateEnd = function(e) {
                             if (!e || !e.state) return -2;
                             var t = e.state;
@@ -20368,7 +20368,7 @@
                         u(v);
                         var I = !1;
                         function j(e, t, r, n) {
-                            E(e, 0 + (n ? 1 : 0), 3), k(e), w(e, r), w(e, ~r), a.arraySet(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
+                            E(e, 0 + +!!n, 3), k(e), w(e, r), w(e, ~r), a.arraySet(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
                         }
                         t._tr_init = function(e) {
                             I || (function() {
@@ -20396,7 +20396,7 @@
                                 var t;
                                 for(F(e, e.dyn_ltree, e.l_desc.max_code), F(e, e.dyn_dtree, e.d_desc.max_code), P(e, e.bl_desc), t = 18; t >= 3 && 0 === e.bl_tree[2 * f[t] + 1]; t--);
                                 return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
-                            }(e), i = e.opt_len + 3 + 7 >>> 3, (o = e.static_len + 3 + 7 >>> 3) <= i && (i = o)) : i = o = r + 5, r + 4 <= i && -1 !== t ? j(e, t, r, n) : 4 === e.strategy || o === i ? (E(e, 2 + (n ? 1 : 0), 3), C(e, d, p)) : (E(e, 4 + (n ? 1 : 0), 3), function(e, t, r, n) {
+                            }(e), i = e.opt_len + 3 + 7 >>> 3, (o = e.static_len + 3 + 7 >>> 3) <= i && (i = o)) : i = o = r + 5, r + 4 <= i && -1 !== t ? j(e, t, r, n) : 4 === e.strategy || o === i ? (E(e, 2 + +!!n, 3), C(e, d, p)) : (E(e, 4 + +!!n, 3), function(e, t, r, n) {
                                 var i;
                                 for(E(e, t - 257, 5), E(e, r - 1, 5), E(e, n - 4, 4), i = 0; i < n; i++)E(e, e.bl_tree[2 * f[i] + 1], 3);
                                 R(e, e.dyn_ltree, t - 1), R(e, e.dyn_dtree, r - 1);
@@ -20738,7 +20738,7 @@
                                 r = e[i], n = t[i];
                                 break;
                             }
-                            return r < n ? -1 : n < r ? 1 : 0;
+                            return r < n ? -1 : +(n < r);
                         }, u.isEncoding = function(e) {
                             switch(String(e).toLowerCase()){
                                 case "hex":
@@ -20802,7 +20802,7 @@
                                 o = s[f], a = c[f];
                                 break;
                             }
-                            return o < a ? -1 : a < o ? 1 : 0;
+                            return o < a ? -1 : +(a < o);
                         }, u.prototype.includes = function(e, t, r) {
                             return -1 !== this.indexOf(e, t, r);
                         }, u.prototype.indexOf = function(e, t, r) {
@@ -21073,8 +21073,8 @@
                             }
                             return (p ? -1 : 1) * a * Math.pow(2, o - n);
                         }, t.write = function(e, t, r, n, i, o) {
-                            var a, u, l, s = 8 * o - i - 1, c = (1 << s) - 1, f = c >> 1, d = 23 === i ? 0.00000005960464477539062 : 0, p = n ? 0 : o - 1, h = n ? 1 : -1, y = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
-                            for(isNaN(t = Math.abs(t)) || t === 1 / 0 ? (u = isNaN(t) ? 1 : 0, a = c) : (a = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -a)) < 1 && (a--, l *= 2), a + f >= 1 ? t += d / l : t += d * Math.pow(2, 1 - f), t * l >= 2 && (a++, l /= 2), a + f >= c ? (u = 0, a = c) : a + f >= 1 ? (u = (t * l - 1) * Math.pow(2, i), a += f) : (u = t * Math.pow(2, f - 1) * Math.pow(2, i), a = 0)); i >= 8; e[r + p] = 255 & u, p += h, u /= 256, i -= 8);
+                            var a, u, l, s = 8 * o - i - 1, c = (1 << s) - 1, f = c >> 1, d = 0.00000005960464477539062 * (23 === i), p = n ? 0 : o - 1, h = n ? 1 : -1, y = +(t < 0 || 0 === t && 1 / t < 0);
+                            for(isNaN(t = Math.abs(t)) || t === 1 / 0 ? (u = +!!isNaN(t), a = c) : (a = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -a)) < 1 && (a--, l *= 2), a + f >= 1 ? t += d / l : t += d * Math.pow(2, 1 - f), t * l >= 2 && (a++, l /= 2), a + f >= c ? (u = 0, a = c) : a + f >= 1 ? (u = (t * l - 1) * Math.pow(2, i), a += f) : (u = t * Math.pow(2, f - 1) * Math.pow(2, i), a = 0)); i >= 8; e[r + p] = 255 & u, p += h, u /= 256, i -= 8);
                             for(a = a << i | u, s += i; s > 0; e[r + p] = 255 & a, p += h, a /= 256, s -= 8);
                             e[r + p - h] |= 128 * y;
                         };
@@ -27389,7 +27389,7 @@
                                 }
                             }(i), 1 !== i._status) throw i._result;
                             switch(i = i._result, t.type = i, o = t.tag = function(e) {
-                                if ("function" == typeof e) return ip(e) ? 1 : 0;
+                                if ("function" == typeof e) return +!!ip(e);
                                 if (null != e) {
                                     if ((e = e.$$typeof) === _) return 11;
                                     if (e === A) return 14;
@@ -27600,7 +27600,7 @@
                 }
                 var ik = {
                     createContainer: function(e, t, r) {
-                        return e = new im(e, t, r), t = id(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0), e.current = t, t.stateNode = e;
+                        return e = new im(e, t, r), t = id(3, null, null, 2 === t ? 7 : 3 * (1 === t)), e.current = t, t.stateNode = e;
                     },
                     updateContainer: function(e, t, r, n) {
                         var i = t.current, o = nH(), a = tL.suspense;
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js b/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js
index 0f7499ec5a89..5a7ee75680e8 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js
@@ -766,7 +766,7 @@
                 return d;
             }
             function wc(a) {
-                return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 & a ? 1073741824 : 0;
+                return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 * !!(1073741824 & a);
             }
             function xc() {
                 var a = qc;
@@ -5249,7 +5249,7 @@
                         d = b.elementType;
                         a: {
                             switch(null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), a = b.pendingProps, d = (e = d._init)(d._payload), b.type = d, e = b.tag = function(a) {
-                                if ("function" == typeof a) return ij(a) ? 1 : 0;
+                                if ("function" == typeof a) return +!!ij(a);
                                 if (null != a) {
                                     if ((a = a.$$typeof) === Ca) return 11;
                                     if (a === Fa) return 14;
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js b/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js
index 58e6acf9fd06..531f483ad639 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js
@@ -2606,9 +2606,9 @@
                                 break;
                             case 'G':
                                 // eslint-disable-next-line
-                                var dec = 0 > value.getFullYear() ? 0 : 1, retu = options.era[dec];
+                                var dec = +!(0 > value.getFullYear()), retu = options.era[dec];
                                 util_isNullOrUndefined(retu) && // eslint-disable-next-line
-                                (retu = options.era[dec ? 0 : 1]), ret += retu || '';
+                                (retu = options.era[+!dec]), ret += retu || '';
                                 break;
                             case '\'':
                                 ret += '\'\'' === match ? '\'' : match.replace(/'/g, '');
@@ -2657,7 +2657,7 @@
      * @returns {string} ?
      * @private
      */ DateFormat.getTimeZoneValue = function(tVal, pattern) {
-                    var _this = this, curPattern = pattern.split(';')[tVal > 0 ? 1 : 0], no = Math.abs(tVal);
+                    var _this = this, curPattern = pattern.split(';')[+(tVal > 0)], no = Math.abs(tVal);
                     return curPattern.replace(/HH?|mm/g, function(str) {
                         var len = str.length, ishour = -1 !== str.indexOf('H');
                         return _this.checkTwodigitNumber(Math.floor(ishour ? no / 60 : no % 60), len);
@@ -2963,7 +2963,7 @@
                     }
                     if (!util_isUndefined(desig)) {
                         var hour = res.getHours();
-                        'pm' === desig ? res.setHours(hour + (12 === hour ? 0 : 12)) : 12 === hour && res.setHours(0);
+                        'pm' === desig ? res.setHours(hour + 12 * (12 !== hour)) : 12 === hour && res.setHours(0);
                     }
                     if (!util_isUndefined(tzone)) {
                         var tzValue = tzone - res.getTimezoneOffset();
@@ -6947,7 +6947,7 @@
                     }, _this.modeclear = function() {
                         _this.modeClear = setTimeout(function() {
                             _this.touchAction = !0;
-                        }, 'function' != typeof _this.tap ? 0 : 20), _this.lastTapTime = new Date().getTime(), EventHandler.remove(_this.element, Browser.touchMoveEvent, _this.moveEvent), EventHandler.remove(_this.element, Browser.touchEndEvent, _this.endEvent), EventHandler.remove(_this.element, Browser.touchCancelEvent, _this.cancelEvent);
+                        }, 20 * ('function' == typeof _this.tap)), _this.lastTapTime = new Date().getTime(), EventHandler.remove(_this.element, Browser.touchMoveEvent, _this.moveEvent), EventHandler.remove(_this.element, Browser.touchEndEvent, _this.endEvent), EventHandler.remove(_this.element, Browser.touchCancelEvent, _this.cancelEvent);
                     }, _this.bind(), _this;
                 }
                 return touch_extends(Touch, _super), // triggers when property changed
@@ -8669,7 +8669,7 @@
                             var formatValue_1 = this.formatNumber();
                             this.setElementValue(formatValue_1), this.isPrevFocused || (_syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.isDevice */ .AR.isDevice || '11.0' !== _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.info.version */ .AR.info.version ? setTimeout(function() {
                                 _this.element.setSelectionRange(0, formatValue_1.length);
-                            }, _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.isDevice */ .AR.isDevice && _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.isIos */ .AR.isIos ? 600 : 0) : this.element.setSelectionRange(0, formatValue_1.length));
+                            }, 600 * (!!_syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.isDevice */ .AR.isDevice && !!_syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.isIos */ .AR.isIos)) : this.element.setSelectionRange(0, formatValue_1.length));
                         }
                         _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .Browser.isDevice */ .AR.isDevice || _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__ /* .EventHandler.add */ .bi.add(this.element, 'mousewheel DOMMouseScroll', this.mouseWheel, this);
                     }
@@ -11640,7 +11640,7 @@
                                     } else if (_this.parent.inputElement === _this.range.startContainer) {
                                         var focusElem = _this.range.startContainer.childNodes[_this.range.startOffset];
                                         if ('#text' === focusElem.nodeName && 0 === focusElem.textContent.length) _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), focusElem, focusElem.previousSibling.textContent.length);
-                                        else if (_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), focusElem, focusElem.textContent.length >= 0 ? 0 : 1), 0 === focusElem.previousSibling.textContent.length) (0, ej2_base /* detach */ .og)(focusElem.previousSibling);
+                                        else if (_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), focusElem, +!(focusElem.textContent.length >= 0)), 0 === focusElem.previousSibling.textContent.length) (0, ej2_base /* detach */ .og)(focusElem.previousSibling);
                                         else if (0 === focusElem.textContent.length) {
                                             for(var currentFocusElem = focusElem.previousSibling.lastChild; '#text' !== currentFocusElem.nodeName;)currentFocusElem = currentFocusElem.lastChild;
                                             _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), currentFocusElem, currentFocusElem.textContent.length), (0, ej2_base /* detach */ .og)(focusElem);
@@ -11674,7 +11674,7 @@
                                             insertElem.innerHTML = '<br>', _this.parent.formatter.editorManager.domNode.insertAfter(insertElem, nearBlockNode), _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem, 0);
                                         } else {
                                             var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, !1).cloneNode(!0);
-                                            _this.parent.formatter.editorManager.domNode.insertAfter(newElem, nearBlockNode), _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElem, newElem.textContent.length >= 0 ? 0 : 1);
+                                            _this.parent.formatter.editorManager.domNode.insertAfter(newElem, nearBlockNode), _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElem, +!(newElem.textContent.length >= 0));
                                         }
                                     } else {
                                         var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, !0);
@@ -17603,7 +17603,7 @@
                     var nodeSelection = new selection /* NodeSelection */ .q(), nodeCutter = new NodeCutter(), range = nodeSelection.getRange(docElement), isCollapsed = range.collapsed, nodes = nodeSelection.getInsertNodeCollection(range), save = nodeSelection.save(range, docElement);
                     if (!isCollapsed) {
                         var preNode = void 0;
-                        if (preNode = 'BR' === nodes[0].nodeName && (0, ej2_base /* closest */ .oq)(nodes[0], 'table') ? nodeCutter.GetSpliceNode(range, (0, ej2_base /* closest */ .oq)(nodes[0], 'table')) : nodeCutter.GetSpliceNode(range, nodes[nodes.length > 1 && 'IMG' === nodes[0].nodeName ? 1 : 0]), 1 === nodes.length) nodeSelection.setSelectionContents(docElement, preNode), range = nodeSelection.getRange(docElement);
+                        if (preNode = 'BR' === nodes[0].nodeName && (0, ej2_base /* closest */ .oq)(nodes[0], 'table') ? nodeCutter.GetSpliceNode(range, (0, ej2_base /* closest */ .oq)(nodes[0], 'table')) : nodeCutter.GetSpliceNode(range, nodes[+(nodes.length > 1 && 'IMG' === nodes[0].nodeName)]), 1 === nodes.length) nodeSelection.setSelectionContents(docElement, preNode), range = nodeSelection.getRange(docElement);
                         else {
                             for(var i = 1, lastText = nodes[nodes.length - i]; nodes.length <= i && 'BR' === nodes[nodes.length - i].nodeName;)i++, lastText = nodes[nodes.length - i];
                             var lasNode = nodeCutter.GetSpliceNode(range, lastText);
@@ -24883,7 +24883,7 @@
                     var pos = {
                         top: 0,
                         left: 0
-                    }, tooltipEleWidth = this.tooltipEle.offsetWidth, tooltipEleHeight = this.tooltipEle.offsetHeight, arrowEle = (0, ej2_base /* select */ .Ys)('.' + ARROW_TIP, this.tooltipEle), tipWidth = arrowEle ? arrowEle.offsetWidth : 0, tipHeight = arrowEle ? arrowEle.offsetHeight : 0, tipAdjust = this.showTipPointer ? 0 : 8, tipHeightAdjust = tipHeight / 2 + 2 + (this.tooltipEle.offsetHeight - this.tooltipEle.clientHeight), tipWidthAdjust = tipWidth / 2 + 2 + (this.tooltipEle.offsetWidth - this.tooltipEle.clientWidth);
+                    }, tooltipEleWidth = this.tooltipEle.offsetWidth, tooltipEleHeight = this.tooltipEle.offsetHeight, arrowEle = (0, ej2_base /* select */ .Ys)('.' + ARROW_TIP, this.tooltipEle), tipWidth = arrowEle ? arrowEle.offsetWidth : 0, tipHeight = arrowEle ? arrowEle.offsetHeight : 0, tipAdjust = 8 * !this.showTipPointer, tipHeightAdjust = tipHeight / 2 + 2 + (this.tooltipEle.offsetHeight - this.tooltipEle.clientHeight), tipWidthAdjust = tipWidth / 2 + 2 + (this.tooltipEle.offsetWidth - this.tooltipEle.clientWidth);
                     switch(this.mouseTrail && (tipAdjust += 2), position){
                         case 'RightTop':
                             pos.left += tipWidth + tipAdjust, pos.top -= tooltipEleHeight - tipHeightAdjust;
@@ -27591,7 +27591,7 @@
                     else {
                         switch(max){
                             case r:
-                                h = (g - b) / d + (g < b ? 6 : 0);
+                                h = (g - b) / d + 6 * (g < b);
                                 break;
                             case g:
                                 h = (b - r) / d + 2;
@@ -32573,7 +32573,7 @@
                                 widthCompare = currentTd.offsetWidth - (currentTd.offsetWidth - currentTd.clientWidth) - 2 * currentTDPad;
                             } else widthCompare = rteWidth;
                             if (_this.resizeBtnStat.column) {
-                                var width = parseFloat(_this.columnEle.offsetWidth.toString()), cellRow = 'TH' === _this.curTable.rows[0].cells[0].nodeName ? 1 : 0, currentTableWidth = parseFloat(_this.curTable.style.width.split('%')[0]), currentColumnCellWidth = parseFloat(_this.curTable.rows[cellRow].cells[_this.colIndex].style.width.split('%')[0]);
+                                var width = parseFloat(_this.columnEle.offsetWidth.toString()), cellRow = +('TH' === _this.curTable.rows[0].cells[0].nodeName), currentTableWidth = parseFloat(_this.curTable.style.width.split('%')[0]), currentColumnCellWidth = parseFloat(_this.curTable.rows[cellRow].cells[_this.colIndex].style.width.split('%')[0]);
                                 if ('first' === _this.currentColumnResize) // Below the value '100' is the 100% width of the parent element.
                                 {
                                     if (mouseX -= 0.75, _this.removeResizeElement(), (0 !== mouseX && 5 < currentColumnCellWidth || mouseX < 0) && currentTableWidth <= 100 && 100 >= _this.convertPixelToPercentage(tableWidth - mouseX, widthCompare)) {
diff --git a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js
index 35f4451485c9..a0ed3fc4ba5f 100644
--- a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js
+++ b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js
@@ -6484,7 +6484,7 @@
                 for(let i = out.length - 1; i >= 0; i--)out[i] = 0xff & num, num >>= 8;
                 return 0x80 & out[0] && out.unshift(0), this._createEncoderBuffer(Buffer.from(out));
             }, DERNode.prototype._encodeBool = function(value) {
-                return this._createEncoderBuffer(value ? 0xff : 0);
+                return this._createEncoderBuffer(0xff * !!value);
             }, DERNode.prototype._use = function(entity, obj) {
                 return 'function' == typeof entity && (entity = entity(obj)), entity._getEncoder('der').tree;
             }, DERNode.prototype._skipDefault = function(dataBuffer, reporter, parent) {
@@ -8498,7 +8498,7 @@
                         }
                         function subtract(a, b, aL, base) {
                             // Subtract b from a.
-                            for(var i = 0; aL--;)a[aL] -= i, i = a[aL] < b[aL] ? 1 : 0, a[aL] = i * base + a[aL] - b[aL];
+                            for(var i = 0; aL--;)a[aL] -= i, i = +(a[aL] < b[aL]), a[aL] = i * base + a[aL] - b[aL];
                             // Remove leading zeros.
                             for(; !a[0] && a.length > 1; a.splice(0, 1));
                         }
@@ -11123,7 +11123,7 @@
                     x = a[i], y = b[i];
                     break;
                 }
-                return x < y ? -1 : y < x ? 1 : 0;
+                return x < y ? -1 : +(y < x);
             }, Buffer.isEncoding = function(encoding) {
                 switch(String(encoding).toLowerCase()){
                     case 'hex':
@@ -11200,7 +11200,7 @@
                     x = thisCopy[i], y = targetCopy[i];
                     break;
                 }
-                return x < y ? -1 : y < x ? 1 : 0;
+                return x < y ? -1 : +(y < x);
             }, Buffer.prototype.includes = function(val, byteOffset, encoding) {
                 return -1 !== this.indexOf(val, byteOffset, encoding);
             }, Buffer.prototype.indexOf = function(val, byteOffset, encoding) {
@@ -11542,7 +11542,7 @@
             }
             function addNumericalSeparator(val) {
                 let res = '', i = val.length;
-                const start = '-' === val[0] ? 1 : 0;
+                const start = +('-' === val[0]);
                 for(; i >= start + 4; i -= 3)res = `_${val.slice(i - 3, i)}${res}`;
                 return `${val.slice(0, i)}${res}`;
             }
@@ -11565,7 +11565,7 @@
             function boundsError(value, length, type) {
                 if (Math.floor(value) !== value) throw validateNumber(value, type), new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value);
                 if (length < 0) throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
-                throw new errors.ERR_OUT_OF_RANGE(type || 'offset', `>= ${type ? 1 : 0} and <= ${length}`, value);
+                throw new errors.ERR_OUT_OF_RANGE(type || 'offset', `>= ${+!!type} and <= ${length}`, value);
             }
             E('ERR_BUFFER_OUT_OF_BOUNDS', function(name) {
                 return name ? `${name} is outside of buffer bounds` : 'Attempt to access memory outside buffer bounds';
@@ -12756,7 +12756,7 @@
                             if (0 !== r.cmpn(0)) {
                                 var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));
                                 if (0 !== (s = s.umod(this.n)).cmpn(0)) {
-                                    var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | (0 !== kpX.cmp(r) ? 2 : 0);
+                                    var recoveryParam = +!!kp.getY().isOdd() | 2 * (0 !== kpX.cmp(r));
                                     return options.canonical && s.cmp(this.nh) > 0 && (s = this.n.sub(s), recoveryParam ^= 1), new Signature({
                                         r: r,
                                         s: s,
@@ -12976,7 +12976,7 @@
 *
 */ EDDSA.prototype.encodePoint = function(point) {
                 var enc = point.getY().toArray('le', this.encodingLength);
-                return enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0, enc;
+                return enc[this.encodingLength - 1] |= 0x80 * !!point.getX().isOdd(), enc;
             }, EDDSA.prototype.decodePoint = function(bytes) {
                 var lastIx = (bytes = utils.parseBytes(bytes)).length - 1, normed = bytes.slice(0, lastIx).concat(-129 & bytes[lastIx]), xIsOdd = (0x80 & bytes[lastIx]) != 0, y = utils.intFromLE(normed);
                 return this.curve.pointFromY(y, xIsOdd);
@@ -14621,7 +14621,7 @@
             }
             //Default comparison function
             function defaultCompare(a, b) {
-                return a < b ? -1 : a > b ? 1 : 0;
+                return a < b ? -1 : +(a > b);
             }
             //Build a tree
             function createRBTree(compare) {
@@ -15256,7 +15256,7 @@
                 return j <= 15 ? 0x00000000 : j <= 31 ? 0x5a827999 : j <= 47 ? 0x6ed9eba1 : j <= 63 ? 0x8f1bbcdc : 0xa953fd4e;
             }
             function Kh(j) {
-                return j <= 15 ? 0x50a28be6 : j <= 31 ? 0x5c4dd124 : j <= 47 ? 0x6d703ef3 : j <= 63 ? 0x7a6d76e9 : 0x00000000;
+                return j <= 15 ? 0x50a28be6 : j <= 31 ? 0x5c4dd124 : j <= 47 ? 0x6d703ef3 : 0x7a6d76e9 * (j <= 63);
             }
             utils.inherits(RIPEMD160, BlockHash), exports.ripemd160 = RIPEMD160, RIPEMD160.blockSize = 512, RIPEMD160.outSize = 160, RIPEMD160.hmacStrength = 192, RIPEMD160.padLength = 64, RIPEMD160.prototype._update = function(msg, start) {
                 for(var A = this.h[0], B = this.h[1], C = this.h[2], D = this.h[3], E = this.h[4], Ah = A, Bh = B, Ch = C, Dh = D, Eh = E, j = 0; j < 80; j++){
@@ -16125,25 +16125,25 @@
                 return a + b + c + d + e >>> 0;
             }
             function sum64(buf, pos, ah, al) {
-                var bh = buf[pos], lo = al + buf[pos + 1] >>> 0, hi = (lo < al ? 1 : 0) + ah + bh;
+                var bh = buf[pos], lo = al + buf[pos + 1] >>> 0, hi = +(lo < al) + ah + bh;
                 buf[pos] = hi >>> 0, buf[pos + 1] = lo;
             }
             function sum64_hi(ah, al, bh, bl) {
-                return (al + bl >>> 0 < al ? 1 : 0) + ah + bh >>> 0;
+                return +(al + bl >>> 0 < al) + ah + bh >>> 0;
             }
             function sum64_lo(ah, al, bh, bl) {
                 return al + bl >>> 0;
             }
             function sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {
                 var carry, lo = al;
-                return ah + bh + ch + dh + (carry = 0 + ((lo = lo + bl >>> 0) < al ? 1 : 0) + ((lo = lo + cl >>> 0) < cl ? 1 : 0) + ((lo = lo + dl >>> 0) < dl ? 1 : 0)) >>> 0;
+                return ah + bh + ch + dh + (carry = 0 + +((lo = lo + bl >>> 0) < al) + +((lo = lo + cl >>> 0) < cl) + +((lo = lo + dl >>> 0) < dl)) >>> 0;
             }
             function sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {
                 return al + bl + cl + dl >>> 0;
             }
             function sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
                 var carry, lo = al;
-                return ah + bh + ch + dh + eh + (carry = 0 + ((lo = lo + bl >>> 0) < al ? 1 : 0) + ((lo = lo + cl >>> 0) < cl ? 1 : 0) + ((lo = lo + dl >>> 0) < dl ? 1 : 0) + ((lo = lo + el >>> 0) < el ? 1 : 0)) >>> 0;
+                return ah + bh + ch + dh + eh + (carry = 0 + +((lo = lo + bl >>> 0) < al) + +((lo = lo + cl >>> 0) < cl) + +((lo = lo + dl >>> 0) < dl) + +((lo = lo + el >>> 0) < el)) >>> 0;
             }
             function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
                 return al + bl + cl + dl + el >>> 0;
@@ -16207,8 +16207,8 @@
                 }
                 return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
             }, exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
-                var e, m, c, eLen = 8 * nBytes - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, rt = 23 === mLen ? 0.00000005960464477539062 : 0, i = isLE ? 0 : nBytes - 1, d = isLE ? 1 : -1, s = value < 0 || 0 === value && 1 / value < 0 ? 1 : 0;
-                for(isNaN(value = Math.abs(value)) || value === 1 / 0 ? (m = isNaN(value) ? 1 : 0, e = eMax) : (e = Math.floor(Math.log(value) / Math.LN2), value * (c = Math.pow(2, -e)) < 1 && (e--, c *= 2), e + eBias >= 1 ? value += rt / c : value += rt * Math.pow(2, 1 - eBias), value * c >= 2 && (e++, c /= 2), e + eBias >= eMax ? (m = 0, e = eMax) : e + eBias >= 1 ? (m = (value * c - 1) * Math.pow(2, mLen), e += eBias) : (m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen), e = 0)); mLen >= 8; buffer[offset + i] = 0xff & m, i += d, m /= 256, mLen -= 8);
+                var e, m, c, eLen = 8 * nBytes - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, rt = 0.00000005960464477539062 * (23 === mLen), i = isLE ? 0 : nBytes - 1, d = isLE ? 1 : -1, s = +(value < 0 || 0 === value && 1 / value < 0);
+                for(isNaN(value = Math.abs(value)) || value === 1 / 0 ? (m = +!!isNaN(value), e = eMax) : (e = Math.floor(Math.log(value) / Math.LN2), value * (c = Math.pow(2, -e)) < 1 && (e--, c *= 2), e + eBias >= 1 ? value += rt / c : value += rt * Math.pow(2, 1 - eBias), value * c >= 2 && (e++, c /= 2), e + eBias >= eMax ? (m = 0, e = eMax) : e + eBias >= 1 ? (m = (value * c - 1) * Math.pow(2, mLen), e += eBias) : (m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen), e = 0)); mLen >= 8; buffer[offset + i] = 0xff & m, i += d, m /= 256, mLen -= 8);
                 for(e = e << mLen | m, eLen += mLen; eLen > 0; buffer[offset + i] = 0xff & e, i += d, e /= 256, eLen -= 8);
                 buffer[offset + i - d] |= 128 * s;
             };
@@ -18292,7 +18292,7 @@
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  */ function hashDelete(key) {
                 var result = this.has(key) && delete this.__data__[key];
-                return this.size -= result ? 1 : 0, result;
+                return this.size -= +!!result, result;
             }
             module.exports = hashDelete;
         /***/ },
@@ -18345,7 +18345,7 @@
  * @returns {Object} Returns the hash instance.
  */ function hashSet(key, value) {
                 var data = this.__data__;
-                return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value, this;
+                return this.size += +!this.has(key), data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value, this;
             }
             module.exports = hashSet;
         /***/ },
@@ -18590,7 +18590,7 @@
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  */ function mapCacheDelete(key) {
                 var result = getMapData(this, key).delete(key);
-                return this.size -= result ? 1 : 0, result;
+                return this.size -= +!!result, result;
             }
             module.exports = mapCacheDelete;
         /***/ },
@@ -18637,7 +18637,7 @@
  * @returns {Object} Returns the map cache instance.
  */ function mapCacheSet(key, value) {
                 var data = getMapData(this, key), size = data.size;
-                return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
+                return data.set(key, value), this.size += +(data.size != size), this;
             }
             module.exports = mapCacheSet;
         /***/ },
@@ -19194,7 +19194,7 @@
             function compare(a, b) {
                 // Only relevant when storeEncoding is 'utf8',
                 // which guarantees that b is also a string.
-                if ('string' == typeof a) return a < b ? -1 : a > b ? 1 : 0;
+                if ('string' == typeof a) return a < b ? -1 : +(a > b);
                 const length = Math.min(a.byteLength, b.byteLength);
                 for(let i = 0; i < length; i++){
                     const cmp = a[i] - b[i];
@@ -21490,7 +21490,7 @@
                     ]);
                     const len = entry.params.length; // number of parameters
                     return leb.unsigned.write(len, stream), 0 !== len && stream.write(entry.params.map((type)=>LANGUAGE_TYPES[type])), stream.write([
-                        entry.return_type ? 1 : 0
+                        +!!entry.return_type
                     ]), entry.return_type && stream.write([
                         LANGUAGE_TYPES[entry.return_type]
                     ]), stream.buffer;
diff --git a/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js b/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js
index 1dd21756927e..5058270833a8 100644
--- a/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js
+++ b/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js
@@ -1,2 +1,2 @@
 !function(n){if(void 0===t)var t={};if(void 0===e)var e={};if(e.document||(e.document=t),void 0===r)var r={};function i(){}// This is an unfortunate kludge because Java methods and constructors cannot accept vararg parameters.
-function o(t){var r=e.bigdecimal[t],i=r;if(r.__init__){for(var o in(i=function(){var n=Array.prototype.slice.call(arguments);return r.__init__(n)}).prototype=r.prototype,r)if(r.hasOwnProperty(o)){if("function"==typeof r[o]&&o.match(/_va$/)){var f=o.replace(/_va$/,"");i[f]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method(t)},i[f].inner_method=r[o]}else i[o]=r[o]}}var u=i.prototype;for(var o in u)if(u.hasOwnProperty(o)&&"function"==typeof u[o]&&o.match(/_va$/)){var f=o.replace(/_va$/,"");u[f]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method.apply(this,[t])},u[f].inner_method=u[o],delete u[o]}n[t]=i}r.userAgent||(r.userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22"),function(){var n,t,o,f=e,u=f.document,c=f.__gwtStatsEvent?function(n){return f.__gwtStatsEvent(n)}:null,s=f.__gwtStatsSessionId?f.__gwtStatsSessionId:null;function h(){}function a(){}function b(){}function l(){}function g(){}function w(){}function d(){}function _(){}function v(){}function m(){}function y(){}function C(){}function x(){}function S(){}function M(){}function B(){}function A(){}function N(){}function I(){}function E(){}function R(){}function O(){}function D(){}function k(){}function L(){}function U(){}function P(){}function Q(){}function T(){}function j(){nY()}function F(){nX()}function H(){tk()}function $(){eF()}function V(){eF()}function q(){eF()}function G(){eF()}function z(){eF()}function J(){eF()}function K(){nZ()}function W(){ns(this)}function Z(){ns(this)}function X(n){iQ(this,n)}function Y(n){this.c=n}function nn(n){this.b=n}function nt(n){this.b=n}function ne(n){this.b=n}function nr(n){eF(),this.f=n}function ni(n){nr.call(this,n)}function no(n){nr.call(this,n)}function nf(n){nr.call(this,n)}function nu(n){nr.call(this,n)}function nc(n){nr.call(this,n)}function ns(n){n.b=new x}function nh(){this.b=new x}function na(){na=g,fe=new d}function nb(){nb=g,o=new n0}function nl(n,t){nb(),n[oC]=t}function ng(n,t){nb(),function(n,t){var e,r,i,o,u,c,s,h,a,b;for(u=0,s=iv(n,oy,0),c=f;u<s.length;++u)tF(s[u],"client")||((h=c)[a=s[u]]||(h[a]={}),c=c[s[u]]);for(i=0,o=(e=iv(t,oy,0)).length;i<o;++i)tF(e8(r=e[i]),iV)||((b=c)[r]||(b[r]={}),c=c[r])}(n,t)}function nw(){iP(),iQ(this,iW)}function nd(n){nf.call(this,n)}function np(n,t){return n<t?n:t}function n_(n,t){return n>t?n:t}function nv(n,t){return!rN(n,t)}function nm(n){this.b=new iS(n)}function ny(){this.b=(rF(),fF)}function nC(){this.b=(iA(),f3)}function nx(n,t){var e;nb(),e=o.b,n?function(n,t,e,r){var i=n.b[r];if(i)for(var o=0,f=i.length;o<f;++o){var u=i[o],c=u.Rb();if(n.Ob(t,c)){var s=u.Sb();return u.Tb(e),s}}else i=n.b[r]=[];var u=new nI(t,e);return i.push(u),++n.e,null}(e,n,t,~~nF(n)):tq(e,t)}function nS(n){return n.b<n.c.c}function nM(n){return n.b<<3|n.c.c}function nB(n){return n.l|n.m<<22}function nA(n,t){this.c=n,this.b=t}function nN(n,t){this.b=n,this.c=t}function nI(n,t){this.b=n,this.c=t}function nE(n,t){var e;return e=n.b,e.b+=t,n}function nR(n){return nb(),ey(o,n)}function nO(n){return nb(),function(n,t){var e,r,i;if(null==t)return null;for((i=t[oC])||(i=[],t[oC]=i),r=i,e=0;e<t.length;++e)r[e]=ey(n,t[e]);return r}(o,n)}function nD(n){rW(),nG.call(this,n)}function nk(){rW(),nG.call(this,iW)}function nL(n){tS.call(this,n,0)}function nU(n){X.call(this,n.tS())}function nP(n){return Math.floor(n)}function nQ(n,t){return iI(n,t,!1)}function nT(n){return ty(n.l,n.m,n.h)}function nj(n){return null==n?null:n}function nF(n){return n.$H||(n.$H=++o8)}function nH(n){return n.tM==g||n$(n,1)}function n$(n,t){return n.cM&&!!n.cM[t]}function nV(n,t){return n.charCodeAt(t)}function nq(n){var t;ns(this),t=this.b,t.b+=n}function nG(n){rW(),ra.call(this,n,10)}function nz(n,t){return null!=n&&n$(n,t)}function nJ(){this.b=tU(u_,{6:1},0,0,0)}function nK(){nK=g,fD={},fk={}}function nW(){nW=g,ui=function(n){var t,e,r,i;for(r=0,t={},i=n.length;r<i;++r)t[i5+(e=n[r]).b]=e;return t}((iA(),fZ))}function nZ(){fR||(fR=!0,function(){if(ng(oB,iV),f.bigdecimal.RoundingMode)var n=f.bigdecimal.RoundingMode;f.bigdecimal.RoundingMode=uc(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==u$?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new nC,nl(this.__gwt_instance,this))});var t=f.bigdecimal.RoundingMode.prototype={};if(n)for(p in n)f.bigdecimal.RoundingMode[p]=n[p];f.bigdecimal.RoundingMode.valueOf=uc(function(n){return nR(new nn((iA(),ec((nW(),ui),n))))}),f.bigdecimal.RoundingMode.values=uc(function(){return nO(function(){var n,t,e;for(iA(),iA(),t=tU(uV,{6:1},5,(e=fZ).length,0),n=0;n<e.length;++n)t[n]=new nn(e[n]);return t}())}),t.name=uc(function(){return this.__gwt_instance.Jb()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),f.bigdecimal.RoundingMode.CEILING=uc(function(){return nR(new nn((iA(),fX)))}),f.bigdecimal.RoundingMode.DOWN=uc(function(){return nR(new nn((iA(),fY)))}),f.bigdecimal.RoundingMode.FLOOR=uc(function(){return nR(new nn((iA(),f0)))}),f.bigdecimal.RoundingMode.HALF_DOWN=uc(function(){return nR(new nn((iA(),f1)))}),f.bigdecimal.RoundingMode.HALF_EVEN=uc(function(){return nR(new nn((iA(),f2)))}),f.bigdecimal.RoundingMode.HALF_UP=uc(function(){return nR(new nn((iA(),f3)))}),f.bigdecimal.RoundingMode.UNNECESSARY=uc(function(){return nR(new nn((iA(),f6)))}),f.bigdecimal.RoundingMode.UP=uc(function(){return nR(new nn((iA(),f4)))}),nx(u$,f.bigdecimal.RoundingMode)}())}function nX(){fI||(fI=!0,function(){if(ng(oB,iV),f.bigdecimal.BigInteger)var n=f.bigdecimal.BigInteger;f.bigdecimal.BigInteger=uc(function(){if(1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uQ)this.__gwt_instance=arguments[0];else if(0==arguments.length)this.__gwt_instance=new nk,nl(this.__gwt_instance,this);else if(1==arguments.length){var n;this.__gwt_instance=(n=arguments[0],new nD(n)),nl(this.__gwt_instance,this)}});var t=f.bigdecimal.BigInteger.prototype={};if(n)for(p in n)f.bigdecimal.BigInteger[p]=n[p];f.bigdecimal.BigInteger.__init__=uc(function(n){return nR(function(n){var t,e;if(rW(),(e=iE(n))==oH)t=new nG(n[0].toString());else if("string number"==e)t=new ra(n[0].toString(),n[1]);else throw new nr("Unknown call signature for obj = new java.math.BigInteger: "+e);return new n2(t)}(n))}),t.abs=uc(function(){return nR(this.__gwt_instance._())}),t.add=uc(function(n){return nR(this.__gwt_instance.hb(n.__gwt_instance))}),t.and=uc(function(n){return nR(this.__gwt_instance.ib(n.__gwt_instance))}),t.andNot=uc(function(n){return nR(this.__gwt_instance.jb(n.__gwt_instance))}),t.bitCount=uc(function(){return this.__gwt_instance.kb()}),t.bitLength=uc(function(){return this.__gwt_instance.ab()}),t.clearBit=uc(function(n){return nR(this.__gwt_instance.lb(n))}),t.compareTo=uc(function(n){return this.__gwt_instance.mb(n.__gwt_instance)}),t.divide=uc(function(n){return nR(this.__gwt_instance.nb(n.__gwt_instance))}),t.doubleValue=uc(function(){return this.__gwt_instance.z()}),t.equals=uc(function(n){return this.__gwt_instance.eQ(n)}),t.flipBit=uc(function(n){return nR(this.__gwt_instance.pb(n))}),t.floatValue=uc(function(){return this.__gwt_instance.A()}),t.gcd=uc(function(n){return nR(this.__gwt_instance.qb(n.__gwt_instance))}),t.getLowestSetBit=uc(function(){return this.__gwt_instance.bb()}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.intValue=uc(function(){return this.__gwt_instance.B()}),t.isProbablePrime=uc(function(n){return this.__gwt_instance.rb(n)}),t.max=uc(function(n){return nR(this.__gwt_instance.tb(n.__gwt_instance))}),t.min=uc(function(n){return nR(this.__gwt_instance.ub(n.__gwt_instance))}),t.mod=uc(function(n){return nR(this.__gwt_instance.vb(n.__gwt_instance))}),t.modInverse=uc(function(n){return nR(this.__gwt_instance.wb(n.__gwt_instance))}),t.modPow=uc(function(n,t){return nR(this.__gwt_instance.xb(n.__gwt_instance,t.__gwt_instance))}),t.multiply=uc(function(n){return nR(this.__gwt_instance.yb(n.__gwt_instance))}),t.negate=uc(function(){return nR(this.__gwt_instance.cb())}),t.nextProbablePrime=uc(function(){return nR(this.__gwt_instance.zb())}),t.not=uc(function(){return nR(this.__gwt_instance.Ab())}),t.or=uc(function(n){return nR(this.__gwt_instance.Bb(n.__gwt_instance))}),t.pow=uc(function(n){return nR(this.__gwt_instance.db(n))}),t.remainder=uc(function(n){return nR(this.__gwt_instance.Cb(n.__gwt_instance))}),t.setBit=uc(function(n){return nR(this.__gwt_instance.Db(n))}),t.shiftLeft=uc(function(n){return nR(this.__gwt_instance.eb(n))}),t.shiftRight=uc(function(n){return nR(this.__gwt_instance.fb(n))}),t.signum=uc(function(){return this.__gwt_instance.r()}),t.subtract=uc(function(n){return nR(this.__gwt_instance.Eb(n.__gwt_instance))}),t.testBit=uc(function(n){return this.__gwt_instance.gb(n)}),t.toString_va=uc(function(n){return this.__gwt_instance.Fb(n)}),t.xor=uc(function(n){return nR(this.__gwt_instance.Gb(n.__gwt_instance))}),t.divideAndRemainder=uc(function(n){return nO(this.__gwt_instance.ob(n.__gwt_instance))}),t.longValue=uc(function(){return this.__gwt_instance.sb()}),f.bigdecimal.BigInteger.valueOf=uc(function(n){return nR((rW(),new n2(eZ(r3(n)))))}),f.bigdecimal.BigInteger.ONE=uc(function(){return nR((rW(),new n2(fS)))}),f.bigdecimal.BigInteger.TEN=uc(function(){return nR((rW(),new n2(fB)))}),f.bigdecimal.BigInteger.ZERO=uc(function(){return nR((rW(),new n2(fA)))}),nx(uQ,f.bigdecimal.BigInteger)}())}function nY(){fE||(fE=!0,new K,function(){if(ng(oB,iV),f.bigdecimal.MathContext)var n=f.bigdecimal.MathContext;f.bigdecimal.MathContext=uc(function(){if(1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uF)this.__gwt_instance=arguments[0];else if(0==arguments.length)this.__gwt_instance=new ny,nl(this.__gwt_instance,this);else if(1==arguments.length){var n;this.__gwt_instance=(n=arguments[0],new nm(n)),nl(this.__gwt_instance,this)}});var t=f.bigdecimal.MathContext.prototype={};if(n)for(p in n)f.bigdecimal.MathContext[p]=n[p];t.getPrecision=uc(function(){return this.__gwt_instance.Hb()}),t.getRoundingMode=uc(function(){return nR(this.__gwt_instance.Ib())}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),f.bigdecimal.MathContext.DECIMAL128=uc(function(){return nR(new nm(ea((rF(),fQ))))}),f.bigdecimal.MathContext.DECIMAL32=uc(function(){return nR(new nm(ea((rF(),fT))))}),f.bigdecimal.MathContext.DECIMAL64=uc(function(){return nR(new nm(ea((rF(),fj))))}),f.bigdecimal.MathContext.UNLIMITED=uc(function(){return nR(new nm(ea((rF(),fF))))}),nx(uF,f.bigdecimal.MathContext)}())}function n0(){this.b=new t$,new t$,new t$}function n1(n){eF(),this.c=n,function(n,t){var e,r,i,o;for(e=0,r=(o=tU(ux,{6:1},13,(i=t3(n,tt(t.c)?t8(t.c):null)).length,0)).length;e<r;++e)o[e]=new tf(i[e]);ej(o)}(new y,this)}function n2(n){rW(),nG.call(this,iF(n,0))}function n3(n){eJ.call(this,n,0,n.length)}function n6(n,t){nL.call(this,n),is(this,t)}function n4(n,t){return iI(n,t,!0),o7}function n5(n,t){return rn(n.b,n.c++,t),!0}function n9(n,t,e){var r,i;return r=n.b,i=tP(t,0,e),r.b+=i,n}function n8(n,t,e){return te(n.b,t,t,e),n}function n7(n,t){return n.substr(t,n.length-t)}function tn(n){return Math.log(n)*Math.LOG10E}function tt(n){return null!=n&&n.tM!=g&&!n$(n,1)}function te(n,t,e,r){n.b=n.b.substr(0,t-0)+r+n7(n.b,e)}function tr(n,t,e){tS.call(this,n,t),is(this,e)}function ti(n,t){this.g=n,this.f=t,this.b=rE(n)}function to(n,t,e){rW(),this.f=n,this.e=t,this.b=e}function tf(n){this.b="Unknown",this.d=n,this.c=-1}function tu(n,t){var e;return(e=new I).d=n+t,e}function tc(n){return nH(n)?n.hC():nF(n)}function ts(n){return iA(),ec((nW(),ui),n)}function th(n,t){return ty(n.l&t.l,n.m&t.m,n.h&t.h)}function ta(n,t){return ty(n.l|t.l,n.m|t.m,n.h|t.h)}function tb(n,t){return ty(n.l^t.l,n.m^t.m,n.h^t.h)}function tl(n,t,e){var r;return is(r=rk(n,t),e),r}function tg(n,t){return n.length>=t&&n.splice(0,t),n}function tw(n){return nz(n,15)?n:new n1(n)}function td(){try{null.a()}catch(n){return n}}function tp(n){var t;return(t=new I).d=iV+n,t.c=1,t}function t_(n,t){return nH(n)?n.eQ(t):n===t}function tv(n,t){return n.l==t.l&&n.m==t.m&&n.h==t.h}function tm(n,t){return n.l!=t.l||n.m!=t.m||n.h!=t.h}function ty(n,t,e){return(i$=new M).l=n,i$.m=t,i$.h=e,i$}function tC(n,t){return nj(n)===nj(t)||null!=n&&t_(n,t)}function tx(n,t){throw new nu("Index: "+n+", Size: "+t)}function tS(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tM(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tB(n,t,e,r){eJ.call(this,n,t,e),is(this,r)}function tA(n,t){eJ.call(this,n,0,n.length),is(this,t)}function tN(n,t){eJ.call(this,t5(n),0,n.length),is(this,t)}function tI(n){nr.call(this,"String index out of range: "+n)}function tE(n,t){var e,r;return e=n.b,r=String.fromCharCode(t),e.b+=r,n}function tR(n,t){rC(n.b,n.b,n.e,t.b,t.e),tZ(n),n.c=-2}function tO(n,t){n.d=t,n.b=t.ab(),n.b<54&&(n.g=ri(eN(t)))}function tD(){tD=g,fr=[],fi=[],function(n,t,e){var r,i=0;for(var o in n)(r=n[o])&&(t[i]=o,e[i]=r,++i)}(new S,fr,fi)}function tk(){fC||(fC=!0,new j,new F,function(){if(ng(oB,iV),f.bigdecimal.BigDecimal)var n=f.bigdecimal.BigDecimal;f.bigdecimal.BigDecimal=uc(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uk?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new nw,nl(this.__gwt_instance,this))});var t=f.bigdecimal.BigDecimal.prototype={};if(n)for(p in n)f.bigdecimal.BigDecimal[p]=n[p];f.bigdecimal.BigDecimal.ROUND_CEILING=2,f.bigdecimal.BigDecimal.ROUND_DOWN=1,f.bigdecimal.BigDecimal.ROUND_FLOOR=3,f.bigdecimal.BigDecimal.ROUND_HALF_DOWN=5,f.bigdecimal.BigDecimal.ROUND_HALF_EVEN=6,f.bigdecimal.BigDecimal.ROUND_HALF_UP=4,f.bigdecimal.BigDecimal.ROUND_UNNECESSARY=7,f.bigdecimal.BigDecimal.ROUND_UP=0,f.bigdecimal.BigDecimal.__init__=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==on)t=new nL(new nG(n[0].toString()));else if("BigInteger number"==e)t=new tS(new nG(n[0].toString()),n[1]);else if("BigInteger number MathContext"==e)t=new tr(new nG(n[0].toString()),n[1],new iS(n[2].toString()));else if("BigInteger MathContext"==e)t=new n6(new nG(n[0].toString()),new iS(n[1].toString()));else if(e==oS)t=new n3(t5(n[0].toString()));else if("array number number"==e)t=new eJ(t5(n[0].toString()),n[1],n[2]);else if("array number number MathContext"==e)t=new tB(t5(n[0].toString()),n[1],n[2],new iS(n[3].toString()));else if("array MathContext"==e)t=new tA(t5(n[0].toString()),new iS(n[1].toString()));else if(e==oL)t=new eu(n[0]);else if(e==oU)t=new e_(n[0],new iS(n[1].toString()));else if(e==oH)t=new X(n[0].toString());else if("string MathContext"==e)t=new tN(n[0].toString(),new iS(n[1].toString()));else throw new nr("Unknown call signature for obj = new java.math.BigDecimal: "+e);return new nU(t)}(n))}),t.abs_va=uc(function(n){return nR(this.__gwt_instance.s(n))}),t.add_va=uc(function(n){return nR(this.__gwt_instance.t(n))}),t.byteValueExact=uc(function(){return this.__gwt_instance.u()}),t.compareTo=uc(function(n){return this.__gwt_instance.v(n.__gwt_instance)}),t.divide_va=uc(function(n){return nR(this.__gwt_instance.y(n))}),t.divideToIntegralValue_va=uc(function(n){return nR(this.__gwt_instance.x(n))}),t.doubleValue=uc(function(){return this.__gwt_instance.z()}),t.equals=uc(function(n){return this.__gwt_instance.eQ(n)}),t.floatValue=uc(function(){return this.__gwt_instance.A()}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.intValue=uc(function(){return this.__gwt_instance.B()}),t.intValueExact=uc(function(){return this.__gwt_instance.C()}),t.max=uc(function(n){return nR(this.__gwt_instance.F(n.__gwt_instance))}),t.min=uc(function(n){return nR(this.__gwt_instance.G(n.__gwt_instance))}),t.movePointLeft=uc(function(n){return nR(this.__gwt_instance.H(n))}),t.movePointRight=uc(function(n){return nR(this.__gwt_instance.I(n))}),t.multiply_va=uc(function(n){return nR(this.__gwt_instance.J(n))}),t.negate_va=uc(function(n){return nR(this.__gwt_instance.K(n))}),t.plus_va=uc(function(n){return nR(this.__gwt_instance.L(n))}),t.pow_va=uc(function(n){return nR(this.__gwt_instance.M(n))}),t.precision=uc(function(){return this.__gwt_instance.q()}),t.remainder_va=uc(function(n){return nR(this.__gwt_instance.N(n))}),t.round=uc(function(n){return nR(this.__gwt_instance.O(n.__gwt_instance))}),t.scale=uc(function(){return this.__gwt_instance.P()}),t.scaleByPowerOfTen=uc(function(n){return nR(this.__gwt_instance.Q(n))}),t.setScale_va=uc(function(n){return nR(this.__gwt_instance.R(n))}),t.shortValueExact=uc(function(){return this.__gwt_instance.S()}),t.signum=uc(function(){return this.__gwt_instance.r()}),t.stripTrailingZeros=uc(function(){return nR(this.__gwt_instance.T())}),t.subtract_va=uc(function(n){return nR(this.__gwt_instance.U(n))}),t.toBigInteger=uc(function(){return nR(this.__gwt_instance.V())}),t.toBigIntegerExact=uc(function(){return nR(this.__gwt_instance.W())}),t.toEngineeringString=uc(function(){return this.__gwt_instance.X()}),t.toPlainString=uc(function(){return this.__gwt_instance.Y()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),t.ulp=uc(function(){return nR(this.__gwt_instance.Z())}),t.unscaledValue=uc(function(){return nR(this.__gwt_instance.$())}),t.divideAndRemainder_va=uc(function(n){return nO(this.__gwt_instance.w(n))}),t.longValue=uc(function(){return this.__gwt_instance.E()}),t.longValueExact=uc(function(){return this.__gwt_instance.D()}),f.bigdecimal.BigDecimal.valueOf_va=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==oL)t=function(n){if(!isFinite(n)||isNaN(n))throw new nd(oh);return new X(iV+n)}(n[0]);else if(e==oL)t=tX(e4(n[0]));else if(e==oP)t=eL(e4(n[0]),n[1]);else throw new nr("Unknown call signature for bd = java.math.BigDecimal.valueOf: "+e);return new nU(t)}(n))}),f.bigdecimal.BigDecimal.log=uc(function(n){iP(),typeof console!==o$&&console.log&&console.log(n)}),f.bigdecimal.BigDecimal.logObj=uc(function(n){iP(),typeof console!==o$&&console.log&&typeof JSON!==o$&&JSON.stringify&&console.log("object: "+JSON.stringify(n))}),f.bigdecimal.BigDecimal.ONE=uc(function(){return nR((iP(),new nU(fw)))}),f.bigdecimal.BigDecimal.TEN=uc(function(){return nR((iP(),new nU(fd)))}),f.bigdecimal.BigDecimal.ZERO=uc(function(){return nR((iP(),new nU(fp)))}),nx(uk,f.bigdecimal.BigDecimal)}())}function tL(n,t,e){var r;return(r=new I).d=n+t,r.c=4,r.b=e,r}function tU(n,t,e,r,i){var o;return tK(n,t,e,o=function(n,t){var e=Array(t);if(3==n)for(var r=0;r<t;++r){var i={};i.l=i.m=i.h=0,e[r]=i}else if(n>0)for(var i=[null,0,!1][n],r=0;r<t;++r)e[r]=i;return e}(i,r)),o}function tP(n,t,e){var r;return r=t+e,function(n,t,e){if(t<0)throw new tI(t);if(e<t)throw new tI(e-t);if(e>n)throw new tI(e)}(n.length,t,r),t6(n,t,r)}function tQ(n,t){return il(),t<fz.length?rZ(n,fz[t]):et(n,im(t))}function tT(n,t){if(null!=n&&(!n.cM||!n.cM[t]))throw new $;return n}function tj(n){var t,e,r,i;if(n.b>=n.c.c)throw new J;return t=n.c,r=e=n.b++,i=t.c,(r<0||r>=i)&&tx(r,i),t.b[e]}function tF(n,t){return!!nz(t,1)&&String(n)==t}function tH(){nr.call(this,"Add not supported on this collection")}function t$(){this.b=[],this.f={},this.d=!1,this.c=null,this.e=0}function tV(n,t){rW(),this.f=n,this.e=1,this.b=tK(up,{6:1},-1,[t])}function tq(n,t){var e;return e=n.c,n.c=t,!n.d&&(n.d=!0,++n.e),e}function tG(n,t){var e,r;return e=n.b,r=String.fromCharCode.apply(null,t),e.b+=r,n}function tz(n,t,e,r){var i,o;return null==t&&(t=ok),i=n.b,o=t.substr(e,r-e),i.b+=o,n}function tJ(n,t,e,r){var i;return rC(i=tU(up,{6:1},-1,t,1),n,t,e,r),i}function tK(n,t,e,r){return tD(),function(n,t,e){tD();for(var r=0,i=t.length;r<i;++r)n[t[r]]=e[r]}(r,fr,fi),r.aC=n,r.cM=t,r.qI=e,r}function tW(n,t){1==ez(n.b,n.e,t)&&(n.b[n.e]=1,++n.e),n.c=-2}function tZ(n){for(;n.e>0&&0==n.b[--n.e];);0==n.b[n.e++]&&(n.f=0)}function tX(n){return rN(n,oJ)&&nv(n,oY)?fs[nB(n)]:new ef(n,0)}function tY(n,t){return 0==t||0==n.f?n:t>0?e6(n,t):rY(n,-t)}function t0(n,t){return 0==t||0==n.f?n:t>0?rY(n,t):e6(n,-t)}function t1(n){var t;return 0==n.f?-1:((t=ew(n))<<5)+es(n.b[t])}function t2(n){var t;return 0!=(t=nB(n))?es(t):es(nB(rK(n,32)))+32}function t3(n,t){var e;return 0==(e=eO(n,t)).length?(new _).o(t):tg(e,1)}function t6(n,t,e){return n=n.slice(t,e),String.fromCharCode.apply(null,n)}function t4(n,t,e,r){var i;return ib(i=tU(up,{6:1},-1,t+1,1),n,t,e,r),i}function t5(n){var t,e;return t=tU(uK,{6:1},-1,e=n.length,1),function(n,t,e,r){var i;for(i=0;i<t;++i)e[r++]=n.charCodeAt(i)}(n,e,t,0),t}function t9(n){var t,e;if(isNaN(((e=ft)||(e=ft=/^\s*[+-]?((\d+\.?\d*)|(\.\d+))([eE][+-]?\d+)?[dDfF]?\s*$/i),t=e.test(n)?parseFloat(n):Number.NaN)))throw new nd(os+n+iG);return t}function t8(n){if(null!=n&&(n.tM==g||n$(n,1)))throw new $;return n}function t7(n,t){var e;return is(e=new tM((n.d||(n.d=eP(n.g)),n.d),n.f),t),e}function en(n,t){var e;if(eq(e=new n2(r5(n)))<t)return eN(e);throw new ni(og)}function et(n,t){return 0==t.f||0==n.f?fA:(il(),function n(t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x;return(il(),e.e>t.e&&(c=t,t=e,e=c),e.e<63)?(b=t,l=e,(_=(g=b.e)+(w=l.e),v=b.f!=l.f?-1:1,2==_)?(x=nB(y=iR(th(e4(b.b[0]),o4),th(e4(l.b[0]),o4))),0==(C=nB(rP(y,32)))?new tV(v,x):new to(v,2,tK(up,{6:1},-1,[x,C]))):(eG(b.b,g,l.b,w,d=tU(up,{6:1},-1,_,1)),tZ(m=new to(v,_,d)),m)):(u=(-2&t.e)<<4,h=t.fb(u),a=e.fb(u),i=ih(t,h.eb(u)),o=ih(e,a.eb(u)),s=n(h,a),r=n(i,o),f=(f=ix(ix(f=n(ih(h,i),ih(o,a)),s),r)).eb(u),ix(ix(s=s.eb(u<<1),f),r))}(n,t))}function ee(n,t){var e;if(t.f<=0)throw new ni(or);return(e=rH(n,t)).f<0?ix(e,t):e}function er(n){var t;t=new nJ,n.d&&n5(t,new ne(n)),function(n,t){var e=n.f;for(var r in e)if(58==r.charCodeAt(0)){var i=new nA(n,r.substring(1));t.Kb(i)}}(n,t),function(n,t){var e=n.b;for(var r in e){var i=parseInt(r,10);if(r==i)for(var o=e[i],f=0,u=o.length;f<u;++f)t.Kb(o[f])}}(n,t),this.b=new Y(t)}function ei(n,t){var e;return null==t?n.c:nz(t,1)?(e=tT(t,1),n.f[i5+e]):re(n,t,~~tc(t))}function eo(n){return~~Math.max(Math.min(n,0x7fffffff),-0x80000000)}function ef(n,t){this.f=t,this.b=eX(n),this.b<54?this.g=ri(n):this.d=eZ(n)}function eu(n){if(!isFinite(n)||isNaN(n))throw new nd(oh);iQ(this,n.toPrecision(20))}function ec(n,t){var e;if(e=n[i5+t])return e;if(null==t)throw new z;throw new q}function es(n){var t,e;if(0==n)return 32;for(t=1,e=0;(t&n)==0;t<<=1)++e;return e}function eh(n){var t;return 0==(t=tg(t3(n,td()),3)).length&&(t=tg((new _).k(),1)),t}function ea(n){var t,e,r,i,o;return tG(t=new Z,fH),e=n.b,r=t.b,r.b+=e,t.b.b+=iq,tG(t,f$),i=n.c,o=t.b,o.b+=i,t.b.b}function eb(n){var t;return t=tU(up,{6:1},-1,n.e,1),iB(n.b,0,t,0,n.e),new to(n.f,n.e,t)}function el(n,t){var e;return rn(e=tU(u4,{6:1},16,2,0),0,ik(n,t)),rn(e,1,iD(n,rk(e[0],t))),e}function eg(n,t,e){var r;return rn(r=tU(u4,{6:1},16,2,0),0,iT(n,t,e)),rn(r,1,iD(n,rk(r[0],t))),r}function ew(n){var t;if(-2==n.c){if(0==n.f)t=-1;else for(t=0;0==n.b[t];++t);n.c=t}return n.c}function ed(n){return n.b<54?n.g<0?-1:n.g>0?1:0:(n.d||(n.d=eP(n.g)),n.d).r()}function ep(n){return n.b<54?new ti(-n.g,n.f):new tM((n.d||(n.d=eP(n.g)),n.d).cb(),n.f)}function e_(n,t){if(!isFinite(n)||isNaN(n))throw new nd(oh);iQ(this,n.toPrecision(20)),is(this,t)}function ev(n,t){return isNaN(n)?isNaN(t)?0:1:isNaN(t)?-1:n<t?-1:n>t?1:0}function em(n,t){return t<2||t>36||n<0||n>=t?0:n<10?48+n&65535:97+n-10&65535}function ey(n,t){var e,r;return t?((e=t[oC])||(e=new(r=t.gC(),t8(ei(n.b,r)))(t),t[oC]=e),e):null}function eC(n){var t,e;return 32==(e=r$(n.h))?32==(t=r$(n.m))?r$(n.l)+32:t+20-10:e-12}function ex(n){return ty(4194303&n,~~n>>22&4194303,n<0?1048575:0)}function eS(){eS=g,fo=ty(4194303,4194303,524287),ff=ty(0,0,524288),fu=e4(1),e4(2),fc=e4(0)}function eM(n,t){ib(n.b,n.b,n.e,t.b,t.e),n.e=np(n_(n.e,t.e)+1,n.b.length),tZ(n),n.c=-2}function eB(n,t){var e;e=~~t>>5,n.e+=e+(r$(n.b[n.e-1])-(31&t)>=0?0:1),rx(n.b,n.b,e,31&t),tZ(n),n.c=-2}function eA(n,t){var e,r;e=~~t>>5,n.e<e||n.ab()<=t||(r=32-(31&t),n.e=e+1,n.b[e]&=r<32?-1>>>r:0,tZ(n))}function eN(n){var t;return t=n.e>1?ta(rU(e4(n.b[1]),32),th(e4(n.b[0]),o4)):th(e4(n.b[0]),o4),iR(e4(n.f),t)}function eI(n,t,e){var r;for(r=e-1;r>=0&&n[r]==t[r];--r);return r<0?0:nv(th(e4(n[r]),o4),th(e4(t[r]),o4))?-1:1}function eE(n,t,e){var r,i,o;for(i=0,r=0;i<e;++i)o=t[i],n[i]=o<<1|r,r=~~o>>>31;0!=r&&(n[e]=r)}function eR(n,t,e,r){if(iH=t,n)try{uc(iy)()}catch(e){n(t)}else uc(iy)()}function eO(n,t){var e,r,i;for(e=0,r=(i=t&&t.stack?t.stack.split("\n"):[]).length;e<r;++e)i[e]=n.n(i[e]);return i}function eD(n,t){var e,r;if(r=~~t>>5==n.e-1&&n.b[n.e-1]==1<<(31&t))for(e=0;r&&e<n.e-1;++e)r=0==n.b[e];return r}function ek(n){var t;if(0!=n.d)return n.d;for(t=0;t<n.b.length;++t)n.d=33*n.d+(-1&n.b[t]);return n.d=n.d*n.f,n.d}function eL(n,t){return 0==t?tX(n):tv(n,oJ)&&t>=0&&t<f_.length?f_[t]:new ef(n,t)}function eU(n){return n==eo(n)?eL(oJ,eo(n)):n>=0?new ef(oJ,0x7fffffff):new ef(oJ,-0x80000000)}function eP(n){return(rW(),n<0)?-1!=n?new rf(-1,-n):fx:n<=10?fM[eo(n)]:new rf(1,n)}function eQ(n){var t,e,r;return t=~n.l+1&4194303,e=~n.m+(0==t?1:0)&4194303,r=~n.h+(0==t&&0==e?1:0)&1048575,ty(t,e,r)}function eT(n){var t,e,r;t=~n.l+1&4194303,e=~n.m+(0==t?1:0)&4194303,r=~n.h+(0==t&&0==e?1:0)&1048575,n.l=t,n.m=e,n.h=r}function ej(n){var t,e,r;for(r=0,e=tU(ux,{6:1},13,n.length,0),t=n.length;r<t;++r){if(!n[r])throw new z;e[r]=n[r]}}function eF(){var n,t,e,r;for(n=0,t=(r=tU(ux,{6:1},13,(e=eh(new y)).length,0)).length;n<t;++n)r[n]=new tf(e[n]);ej(r)}function eH(n){var t,e,r,i;return 0==n.f?n:(eE(t=tU(up,{6:1},-1,e=(i=n.e)+1,1),n.b,i),tZ(r=new to(n.f,e,t)),r)}function e$(n,t,e,r){var i,o;return o=tU(up,{6:1},-1,((i=e.e)<<1)+1,1),eG(n.b,np(i,n.e),t.b,np(i,t.e),o),function(n,t,e){var r,i,o,f,u,c,s;for(r=0,u=t.b,c=t.e,s=oJ;r<c;++r){for(o=0,i=oJ,f=nB((il(),iR(th(e4(n[r]),o4),th(e4(e),o4))));o<c;++o)i=eY(eY(iR(th(e4(f),o4),th(e4(u[o]),o4)),th(e4(n[r+o]),o4)),th(e4(nB(i)),o4)),n[r+o]=nB(i),i=rP(i,32);s=eY(s,eY(th(e4(n[r+c]),o4),i)),n[r+c]=nB(s),s=rP(s,32)}for(o=0,n[c<<1]=nB(s);o<c+1;++o)n[o]=n[o+c]}(o,e,r),function(n,t){var e,r,i,o,f;if(!(e=0!=n[o=t.e])){for(i=t.b,e=!0,r=o-1;r>=0;--r)if(n[r]!=i[r]){e=0!=n[r]&&rA(th(e4(n[r]),o4),th(e4(i[r]),o4));break}}return f=new to(1,o+1,n),e&&tR(f,t),tZ(f),f}(o,e)}function eV(n,t){var e;return n===t||!!nz(t,17)&&(e=tT(t,17),n.f==e.f&&n.e==e.e&&function(n,t){var e;for(e=n.e-1;e>=0&&n.b[e]==t[e];--e);return e<0}(n,e.b))}function eq(n){var t,e;return 0==n.f?0:(t=n.e<<5,e=n.b[n.e-1],n.f<0&&ew(n)==n.e-1&&(e=~~(e-1)),t-=r$(e))}function eG(n,t,e,r,i){il(),0!=t&&0!=r&&(1==t?i[r]=rc(i,e,r,n[0]):1==r?i[t]=rc(i,n,t,e[0]):function(n,t,e,r,i){var o,f,u,c;if(nj(n)===nj(t)&&r==i){iu(n,r,e);return}for(u=0;u<r;++u){for(c=0,f=oJ,o=n[u];c<i;++c)f=eY(eY(iR(th(e4(o),o4),th(e4(t[c]),o4)),th(e4(e[u+c]),o4)),th(e4(nB(f)),o4)),e[u+c]=nB(f),f=rP(f,32);e[u+i]=nB(f)}}(n,e,i,t,r))}function ez(n,t,e){var r,i;for(i=0,r=th(e4(e),o4);tm(r,oJ)&&i<t;++i)r=eY(r,th(e4(n[i]),o4)),n[i]=nB(r),r=rK(r,32);return nB(r)}function eJ(n,t,e){try{iQ(this,tP(n,t,e))}catch(n){if(nz(n=tw(n),14))throw new nd(n.f);throw n}}function eK(n){if(n<-0x80000000)throw new ni("Overflow");if(!(n>0x7fffffff))return eo(n);throw new ni("Underflow")}function eW(n,t){if(rF(),n<0)throw new nf("Digits < 0");if(!t)throw new nc("null RoundingMode");this.b=n,this.c=t}function eZ(n){return(rW(),nv(n,oJ))?tm(n,oz)?new ro(-1,eQ(n)):fx:rA(n,oX)?new ro(1,n):fM[nB(n)]}function eX(n){var t;return nv(n,oJ)&&(n=ty(4194303&~n.l,4194303&~n.m,1048575&~n.h)),64-(0!=(t=nB(rK(n,32)))?r$(t):r$(nB(n))+32)}function eY(n,t){var e,r,i;return e=n.l+t.l,r=n.m+t.m+(~~e>>22),i=n.h+t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e0(n,t){var e,r,i;return e=n.l-t.l,r=n.m-t.m+(~~e>>22),i=n.h-t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e1(n,t){var e;if(e=t-1,n.f>0){for(;!n.gb(e);)--e;return t-1-e}for(;n.gb(e);)--e;return t-1-n_(e,n.bb())}function e2(n,t){var e;return n===t||!!nz(t,16)&&(e=tT(t,16)).f==n.f&&(n.b<54?e.g==n.g:n.d.eQ(e.d))}function e3(n,t,e){var r,i,o;for(o=oJ,r=t-1;r>=0;--r)i=r2(eY(rU(o,32),th(e4(n[r]),o4)),e),o=e4(nB(rK(i,32)));return nB(o)}function e6(n,t){var e,r,i,o;return e=~~t>>5,t&=31,rx(r=tU(up,{6:1},-1,i=n.e+e+(0==t?0:1),1),n.b,e,t),tZ(o=new to(n.f,i,r)),o}function e4(n){var t,e;return n>-129&&n<128?(t=n+128,null==fn&&(fn=tU(uR,{6:1},2,256,0)),(e=fn[t])||(e=fn[t]=ex(n)),e):ex(n)}function e5(n){var t,e,r;return(rW(),n<fN.length)?fN[n]:(e=~~n>>5,t=31&n,(r=tU(up,{6:1},-1,e+1,1))[e]=1<<t,new to(1,e+1,r))}function e9(n){rW(),0==n.length?(this.f=0,this.e=1,this.b=tK(up,{6:1},-1,[0])):(this.f=1,this.e=n.length,this.b=n,tZ(this))}function e8(n){return 0==n.length||n[0]>iq&&n[n.length-1]>iq?n:n.replace(/^(\s*)/,iV).replace(/\s*$/,iV)}function e7(n){return n-=~~n>>1&0x55555555,n=(~~(n=(~~n>>2&0x33333333)+(0x33333333&n))>>4)+n&0xf0f0f0f,n+=~~n>>8,63&(n+=~~n>>16)}function rn(n,t,e){if(null!=e){var r;if(n.qI>0&&(r=n.qI,!e.cM||!e.cM[r])||n.qI<0&&(e.tM==g||n$(e,1)))throw new V}return n[t]=e}function rt(n,t){return n.f>t.f?1:n.f<t.f?-1:n.e>t.e?n.f:n.e<t.e?-t.f:n.f*eI(n.b,t.b,n.e)}function re(n,t,e){var r=n.b[e];if(r)for(var i=0,o=r.length;i<o;++i){var f=r[i],u=f.Rb();if(n.Ob(t,u))return f.Sb()}return null}function rr(n,t,e){var r=n.b[e];if(r)for(var i=0,o=r.length;i<o;++i){var f=r[i].Rb();if(n.Ob(t,f))return!0}return!1}function ri(n){if(tv(n,(eS(),ff)))return -0x8000000000000000;if(!rN(n,fc)){var t;return-((t=eQ(n)).l+4194304*t.m+0x100000000000*t.h)}return n.l+4194304*n.m+0x100000000000*n.h}function ro(n,t){this.f=n,tv(th(t,oq),oJ)?(this.e=1,this.b=tK(up,{6:1},-1,[nB(t)])):(this.e=2,this.b=tK(up,{6:1},-1,[nB(t),nB(rK(t,32))]))}function rf(n,t){this.f=n,t<0x100000000?(this.e=1,this.b=tK(up,{6:1},-1,[~~t])):(this.e=2,this.b=tK(up,{6:1},-1,[~~(t%0x100000000),~~(t/0x100000000)]))}function ru(n){var t,e,r;t=th(e4(n.b[0]),o4),e=oK,r=oW;do tm(th(iR(t,e),r),oJ)&&(e=ta(e,r)),r=rU(r,1);while(nv(r,o5))return nB(th(e=eQ(e),o4))}function rc(n,t,e,r){var i,o;for(il(),i=oJ,o=0;o<e;++o)i=eY(iR(th(e4(t[o]),o4),th(e4(r),o4)),th(e4(nB(i)),o4)),n[o]=nB(i),i=rP(i,32);return nB(i)}function rs(n,t,e){var r,i,o,f,u;return i=e.e<<5,r=ee(n.eb(i),e),u=ee(e5(i),e),o=ru(e),f=1==e.e?function(n,t,e,r,i){var o,f;for(f=n,o=e.ab()-1;o>=0;--o)f=e$(f,f,r,i),(e.b[~~o>>5]&1<<(31&o))!=0&&(f=e$(f,t,r,i));return f}(u,r,t,e,o):function(n,t,e,r,i){var o,f,u,c,s,h,a;for(s=tU(u9,{6:1},17,8,0),h=n,rn(s,0,t),a=e$(t,t,r,i),f=1;f<=7;++f)rn(s,f,e$(s[f-1],a,r,i));for(f=e.ab()-1;f>=0;--f)if((e.b[~~f>>5]&1<<(31&f))!=0){for(c=1,o=f,u=f-3>0?f-3:0;u<=f-1;++u)(e.b[~~u>>5]&1<<(31&u))!=0&&(u<o?(o=u,c=c<<f-u^1):c^=1<<u-o);for(u=o;u<=f;++u)h=e$(h,h,r,i);h=e$(s[~~(c-1)>>1],h,r,i),f=o}else h=e$(h,h,r,i);return h}(u,r,t,e,o),e$(f,(rW(),fS),e,o)}function rh(n,t){var e,r,i,o;for(e=0,r=n.length;e<r;++e){i=n[e];try{i[1]?i[0].Ub()&&((o=t)||(o=[]),o[o.length]=i,t=o):i[0].Ub()}catch(n){if(!nz(n=tw(n),12))throw n}}return t}function ra(n,t){if(null==n)throw new z;if(t<2||t>36)throw new nd("Radix out of range");if(0==n.length)throw new nd("Zero length BigInteger");(function(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d;for(s=l=t.length,45==t.charCodeAt(0)?(a=-1,b=1,--l):(a=1,b=0),o=~~(l/(f=(iM(),fP)[e])),0!=(d=l%f)&&++o,c=tU(up,{6:1},-1,o,1),r=fU[e-2],u=0,g=b+(0==d?f:d),w=b;w<s;w=g,g+=f)i=r8(t.substr(w,g-w),e),il(),h=rc(c,c,u,r)+ez(c,u,i),c[u++]=h;n.f=a,n.e=u,n.b=c,tZ(n)})(this,n,t)}function rb(){var n,t,e;r_(),n=0xffffff&eo(Math.floor(5960464477539063e-23*(e=uu+++(new Date).getTime()))),t=eo(e-0x1000000*n),this.b=1502^n,this.c=0xece66d^t}function rl(n,t,e,r){var i;if(e>r)return 1;if(e<r)return -1;for(i=e-1;i>=0&&n[i]==t[i];--i);return i<0?0:nv(th(e4(n[i]),o4),th(e4(t[i]),o4))?-1:1}function rg(n,t){var e,r,i;for(r=tU(up,{6:1},-1,i=n.e,1),np(ew(n),ew(t)),e=0;e<t.e;++e)r[e]=n.b[e]|t.b[e];for(;e<i;++e)r[e]=n.b[e];return new to(1,i,r)}function rw(n,t){var e,r,i,o;for(r=tU(up,{6:1},-1,i=n.e,1),e=np(ew(n),ew(t));e<t.e;++e)r[e]=n.b[e]^t.b[e];for(;e<n.e;++e)r[e]=n.b[e];return tZ(o=new to(1,i,r)),o}function rd(n,t){var e;if(0==t)return fw;if(t<0||t>0x3b9ac9ff)throw new ni(oa);return e=n.f*t,0==n.b&&-1!=n.g?eU(e):new tS((n.d||(n.d=eP(n.g)),n.d).db(t),eK(e))}function rp(n,t){return t<2||t>36?-1:n>=48&&n<48+(t<10?t:10)?n-48:n>=97&&n<t+97-10?n-97+10:n>=65&&n<t+65-10?n-65+10:-1}function r_(){var n,t,e;for(n=32,r_=g,uo=tU(u5,{6:1},-1,25,1),uf=tU(u5,{6:1},-1,33,1),e=152587890625e-16;n>=0;--n)uf[n]=e,e*=.5;for(n=24,t=1;n>=0;--n)uo[n]=t,t*=.5}function rv(){rv=g,fO=tK(uK,{6:1},-1,[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])}function rm(n){var t;return 0!=n.c||(n.b<54?(t=r3(n.g),n.c=nB(th(t,oz)),n.c=33*n.c+nB(th(rK(t,32),oz)),n.c=17*n.c+eo(n.f)):n.c=17*n.d.hC()+eo(n.f)),n.c}function ry(n,t,e,r){var i,o,f,u,c;return o=(c=n/t)>0?Math.floor(c):Math.ceil(c),f=n%t,u=ev(n*t,0),0!=f&&(i=ev((f<=0?0-f:f)*2,t<=0?0-t:t),o+=it(1&eo(o),u*(5+i),r)),new ti(o,e)}function rC(n,t,e,r,i){var o,f;for(f=0,o=oJ;f<i;++f)o=eY(o,e0(th(e4(t[f]),o4),th(e4(r[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<e;++f)o=eY(o,th(e4(t[f]),o4)),n[f]=nB(o),o=rK(o,32)}function rx(n,t,e,r){var i,o;if(0==r)iB(t,0,n,e,n.length-e);else for(o=32-r,n[n.length-1]=0,i=n.length-1;i>e;--i)n[i]|=~~t[i-e-1]>>>o,n[i-1]=t[i-e-1]<<r;for(i=0;i<e;++i)n[i]=0}function rS(n,t,e){return e<fl.length&&n_(n.b,t.b+fg[eo(e)])+1<54?new ti(n.g+t.g*fl[eo(e)],n.f):new tM(ix((n.d||(n.d=eP(n.g)),n.d),tQ((t.d||(t.d=eP(t.g)),t.d),eo(e))),n.f)}function rM(n){return c({moduleName:iH,sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:(new Date).getTime(),type:"onModuleLoadStart",className:n})}function rB(n,t){var e,r,i;if(i=n.r(),0!=t&&0!=n.r()){if(r=~~t>>5,n.e-=r,!rD(n.b,n.e,n.b,r,31&t)&&i<0){for(e=0;e<n.e&&-1==n.b[e];++e)n.b[e]=0;e==n.e&&++n.e,++n.b[e]}tZ(n),n.c=-2}}function rA(n,t){var e,r;return e=~~n.h>>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>t.l:!(0==r||n.h<t.h||n.h==t.h&&n.m<t.m||n.h==t.h&&n.m==t.m&&n.l<=t.l)}function rN(n,t){var e,r;return e=~~n.h>>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>=t.l:!(0==r||n.h<t.h||n.h==t.h&&n.m<t.m||n.h==t.h&&n.m==t.m&&n.l<t.l)}function rI(n,t){var e,r,i;i=(e=t2(n))<(r=t2(t))?e:r,0!=e&&(n=rP(n,e)),0!=r&&(t=rP(t,r));do rN(n,t)?n=rP(n=e0(n,t),t2(n)):t=rP(t=e0(t,n),t2(t));while(tm(n,oJ))return rU(t,i)}function rE(n){var t,e;return n>-0x800000000000&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),e=eo(nP(Math.log(n)/.6931471805599453)),(!t||n!=Math.pow(2,e))&&++e,e):eX(r3(n))}function rR(n,t){var e,r;return(e=n._(),r=t._(),0==e.r())?r:0==r.r()?e:(1==e.e||2==e.e&&e.b[1]>0)&&(1==r.e||2==r.e&&r.b[1]>0)?eZ(rI(eN(e),eN(r))):function(n,t){var e,r,i,o;i=(e=n.bb())<(r=t.bb())?e:r,rB(n,e),rB(t,r),1==rt(n,t)&&(o=n,n=t,t=o);do{if(1==t.e||2==t.e&&t.b[1]>0){t=eZ(rI(eN(n),eN(t)));break}if(t.e>1.2*n.e)0!=(t=rH(t,n)).r()&&rB(t,t.bb());else do tR(t,n),rB(t,t.bb());while(rt(t,n)>=0)o=t,t=n,n=o}while(0!=o.f)return t.eb(i)}(eb(e),eb(r))}function rO(n,t){var e;if(t.f<=0)throw new ni(or);if(!(n.gb(0)||t.gb(0)))throw new ni(oe);if(1==t.e&&1==t.b[0])return fA;if(0==(e=function(n,t){var e,r,i,o,f,u,c,s,h,a,b;if(0==n.f)throw new ni(oe);if(!t.gb(0))return function(n,t){var e,r,i,o,f,u,c,s,h,a,b;for(h=tU(up,{6:1},-1,(o=n_(n.e,t.e))+1,1),b=tU(up,{6:1},-1,o+1,1),iB(t.b,0,h,0,t.e),iB(n.b,0,b,0,n.e),s=new to(t.f,t.e,h),a=new to(n.f,n.e,b),u=new to(0,1,tU(up,{6:1},-1,o+1,1)),(c=new to(1,1,tU(up,{6:1},-1,o+1,1))).b[0]=1,e=0,r=0,f=t.ab();!eD(s,e)&&!eD(a,r);)if(0!=(i=e1(s,f))&&(eB(s,i),e>=r?eB(u,i):(rB(c,r-e<i?r-e:i),i-(r-e)>0&&eB(u,i-r+e)),e+=i),0!=(i=e1(a,f))&&(eB(a,i),r>=e?eB(c,i):(rB(u,e-r<i?e-r:i),i-(e-r)>0&&eB(c,i-e+r)),r+=i),s.r()==a.r()?e<=r?(rq(s,a),rq(u,c)):(rq(a,s),rq(c,u)):e<=r?(rV(s,a),rV(u,c)):(rV(a,s),rV(c,u)),0==a.r()||0==s.r())throw new ni(oe);return eD(a,r)&&(u=c,a.r()!=s.r()&&(s=s.cb())),s.gb(f)&&(u=0>u.r()?u.cb():ih(t,u)),0>u.r()&&(u=ix(u,t)),u}(n,t);for(o=32*t.e,a=eb(t),c=new to(1,1,tU(up,{6:1},-1,(f=n_((b=eb(n)).e,a.e))+1,1)),(s=new to(1,1,tU(up,{6:1},-1,f+1,1))).b[0]=1,e=0,(r=a.bb())>(i=b.bb())?(rB(a,r),rB(b,i),eB(c,i),e+=r-i):(rB(a,r),rB(b,i),eB(s,r),e+=i-r),c.f=1;b.r()>0;){for(;rt(a,b)>0;)tR(a,b),h=a.bb(),rB(a,h),eM(c,s),eB(s,h),e+=h;for(;0>=rt(a,b)&&(tR(b,a),0!=b.r());)h=b.bb(),rB(b,h),eM(s,c),eB(c,h),e+=h}if(!(1==a.e&&1==a.b[0]))throw new ni(oe);return rt(c,t)>=0&&tR(c,t),c=ih(t,c),u=ru(t),e>o&&(c=e$(c,(rW(),fS),t,u),e-=o),c=e$(c,e5(o-e),t,u)}(ee(n._(),t),t)).f)throw new ni(oe);return n.f<0?ih(t,e):e}function rD(n,t,e,r,i){var o,f,u;for(f=0,o=!0;f<r;++f)o&=0==e[f];if(0==i)iB(e,r,n,0,t);else{for(u=32-i,o&=e[f]<<u==0,f=0;f<t-1;++f)n[f]=~~e[f+r]>>>i|e[f+r+1]<<u;n[f]=~~e[f+r]>>>i,++f}return o}function rk(n,t){var e;return(e=n.f+t.f,0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)?eU(e):n.b+t.b<54?new ti(n.g*t.g,eK(e)):new tS(et((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),eK(e))}function rL(n,t){var e;if(t<0)throw new ni("Negative exponent");if(0==t)return fS;if(1==t||n.eQ(fS)||n.eQ(fA))return n;if(!n.gb(0)){for(e=1;!n.gb(e);)++e;return et(e5(e*t),n.fb(e).db(t))}return function(n,t){var e,r;for(il(),rW(),r=fS,e=n;t>1;t>>=1)(1&t)!=0&&(r=et(r,e)),e=1==e.e?et(e,e):new e9(iu(e.b,e.e,tU(up,{6:1},-1,e.e<<1,1)));return et(r,e)}(n,t)}function rU(n,t){var e,r,i;return(t&=63)<22?(e=n.l<<t,r=n.m<<t|~~n.l>>22-t,i=n.h<<t|~~n.m>>22-t):t<44?(e=0,r=n.l<<t-22,i=n.m<<t-22|~~n.l>>44-t):(e=0,r=0,i=n.l<<t-44),ty(4194303&e,4194303&r,1048575&i)}function rP(n,t){var e,r,i,o;return t&=63,e=1048575&n.h,t<22?(o=~~e>>>t,i=~~n.m>>t|e<<22-t,r=~~n.l>>t|n.m<<22-t):t<44?(o=0,i=~~e>>>t-22,r=~~n.m>>t-22|n.h<<44-t):(o=0,i=0,r=~~e>>>t-44),ty(4194303&r,4194303&i,1048575&o)}function rQ(n){switch(iA(),n){case 2:return fX;case 1:return fY;case 3:return f0;case 5:return f1;case 6:return f2;case 4:return f3;case 7:return f6;case 0:return f4;default:throw new nf("Invalid rounding mode")}}function rT(n,t){var e,r,i;if(0==t)return(1&n.b[0])!=0;if(t<0)throw new ni(ol);if((i=~~t>>5)>=n.e)return n.f<0;if(e=n.b[i],t=1<<(31&t),n.f<0){if(i<(r=ew(n)))return!1;e=r==i?-e:~e}return(e&t)!=0}function rj(n){var t,e;return n.e>0||(t=1,e=1,n.b<54?(n.b>=1&&(e=n.g),t+=Math.log(e<=0?0-e:e)*Math.LOG10E):(t+=(n.b-1)*.3010299956639812,0!=ia((n.d||(n.d=eP(n.g)),n.d),im(t)).r()&&++t),n.e=eo(t)),n.e}function rF(){rF=g,fQ=new eW(34,(iA(),f2)),fT=new eW(7,f2),fj=new eW(16,f2),fF=new eW(0,f3),fH=tK(uK,{6:1},-1,[112,114,101,99,105,115,105,111,110,61]),f$=tK(uK,{6:1},-1,[114,111,117,110,100,105,110,103,77,111,100,101,61])}function rH(n,t){var e,r,i,o;if(0==t.f)throw new ni(ot);return((o=n.e)!=(e=t.e)?o>e?1:-1:eI(n.b,t.b,o))==-1?n:(r=tU(up,{6:1},-1,e,1),1==e?r[0]=e3(n.b,o,t.b[0]):r=iL(null,o-e+1,n.b,o,t.b,e),tZ(i=new to(n.f,e,r)),i)}function r$(n){var t,e,r;return n<0?0:0==n?32:(e=16-(t=~~(r=-(~~n>>16))>>16&16)+(t=~~(r=(n=~~n>>t)-256)>>16&8),n<<=t,e+=t=~~(r=n-4096)>>16&4,n<<=t,e+=t=~~(r=n-16384)>>16&2,n<<=t,e+2-(t=(r=~~n>>14)&~(~~r>>1)))}function rV(n,t){if(0==n.f)iB(t.b,0,n.b,0,t.e);else{if(0==t.f)return;n.f==t.f?ib(n.b,n.b,n.e,t.b,t.e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f)}n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rq(n,t){var e;e=rt(n,t),0==n.f?(iB(t.b,0,n.b,0,t.e),n.f=-t.f):n.f!=t.f?(ib(n.b,n.b,n.e,t.b,t.e),n.f=e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f),n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rG(n,t,e){var r,i,o,f,u,c,s,h,a,b;if(e.f<=0)throw new ni(or);return(r=n,(1==e.e&&1==e.b[0])|t.f>0&0==r.f)?fA:0==r.f&&0==t.f?fS:(t.f<0&&(r=rO(n,e),t=t.cb()),i=e.gb(0)?rs(r._(),t,e):(o=r._(),f=t,u=e.bb(),h=rs(o,f,c=e.fb(u)),a=function(n,t,e){var r,i,o,f,u;for(rW(),f=fS,i=eb(t),r=eb(n),n.gb(0)&&eA(i,e-1),eA(r,e),o=i.ab()-1;o>=0;--o)eA(u=eb(f),e),f=et(f,u),(i.b[~~o>>5]&1<<(31&o))!=0&&eA(f=et(f,r),e);return eA(f,e),f}(o,f,u),s=function(n,t){var e,r,i,o;for(e=1,(r=new e9(tU(up,{6:1},-1,1<<t,1))).e=1,r.b[0]=1,r.f=1;e<t;++e)i=et(n,r),o=e,(i.b[~~o>>5]&1<<(31&o))!=0&&(r.b[~~e>>5]|=1<<(31&e));return r}(c,u),eA(b=et(ih(a,h),s),u),b.f<0&&(b=ix(b,e5(u))),ix(h,et(c,b))),r.f<0&&t.gb(0)&&(i=ee(et(ih(e,fS),i),e)),i)}function rz(n,t){var e,r,i,o,f,u,c;if(i=ew(n),(r=ew(t))>=n.e)return rW(),fA;for(f=tU(up,{6:1},-1,u=n.e,1),(e=i>r?i:r)==r&&(f[e]=-t.b[e]&n.b[e],++e),o=np(t.e,n.e);e<o;++e)f[e]=~t.b[e]&n.b[e];if(e>=t.e)for(;e<n.e;++e)f[e]=n.b[e];return tZ(c=new to(1,u,f)),c}function rJ(n,t){return 0==n.b&&-1!=n.g?eU(t>0?t:0):t>=0?n.b<54?new ti(n.g,eK(t)):new tS((n.d||(n.d=eP(n.g)),n.d),eK(t)):-t<fl.length&&n.b+fg[eo(-t)]<54?new ti(n.g*fl[eo(-t)],0):new tS(tQ((n.d||(n.d=eP(n.g)),n.d),eo(-t)),0)}function rK(n,t){var e,r,i,o,f;return t&=63,(r=(524288&(e=n.h))!=0)&&(e|=-1048576),t<22?(f=~~e>>t,o=~~n.m>>t|e<<22-t,i=~~n.l>>t|n.m<<22-t):t<44?(f=r?1048575:0,o=~~e>>t-22,i=~~n.m>>t-22|e<<44-t):(f=r?1048575:0,o=r?4194303:0,i=~~e>>t-44),ty(4194303&i,4194303&o,1048575&f)}function rW(){var n;for(n=0,rW=g,fS=new tV(1,1),fB=new tV(1,10),fA=new tV(0,0),fx=new tV(-1,1),fM=tK(u9,{6:1},17,[fA,fS,new tV(1,2),new tV(1,3),new tV(1,4),new tV(1,5),new tV(1,6),new tV(1,7),new tV(1,8),new tV(1,9),fB]),fN=tU(u9,{6:1},17,32,0);n<fN.length;++n)rn(fN,n,eZ(rU(oK,n)))}function rZ(n,t){var e,r,i,o,f,u,c,s,h;return(il(),0==(s=n.f))?(rW(),fA):(r=n.e,e=n.b,1==r)?(c=nB(i=iR(th(e4(e[0]),o4),th(e4(t),o4))),0==(f=nB(rP(i,32)))?new tV(s,c):new to(s,2,tK(up,{6:1},-1,[c,f]))):((o=tU(up,{6:1},-1,u=r+1,1))[r]=rc(o,e,r,t),tZ(h=new to(s,u,o)),h)}function rX(n,t){var e,r,i,o,f,u;if(r=ew(t),(i=ew(n))>=t.e)return t;if(r>=n.e)return n;if(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),r==i)o[i]=-(-n.b[i]|-t.b[i]),e=i;else{for(e=r;e<i;++e)o[e]=t.b[e];o[e]=t.b[e]&n.b[e]-1}for(++e;e<f;++e)o[e]=n.b[e]&t.b[e];return tZ(u=new to(-1,f,o)),u}function rY(n,t){var e,r,i,o,f;if(r=~~t>>5,t&=31,r>=n.e)return n.f<0?(rW(),fx):(rW(),fA);if(rD(i=tU(up,{6:1},-1,(o=n.e-r)+1,1),o,n.b,r,t),n.f<0){for(e=0;e<r&&0==n.b[e];++e);if(e<r||t>0&&n.b[e]<<32-t!=0){for(e=0;e<o&&-1==i[e];++e)i[e]=0;e==o&&++o,++i[e]}}return tZ(f=new to(n.f,o,i)),f}function r0(n,t,e){var r;if(!e)throw new z;return 0==(r=t-n.f)?n:r>0?r<fl.length&&n.b+fg[eo(r)]<54?new ti(n.g*fl[eo(r)],t):new tS(tQ((n.d||(n.d=eP(n.g)),n.d),eo(r)),t):n.b<54&&-r<fl.length?ry(n.g,fl[eo(-r)],t,e):id((n.d||(n.d=eP(n.g)),n.d),im(-r),t,e)}function r1(n,t){var e;if(e=n.f-t.f,0==n.b&&-1!=n.g){if(e<=0)return t;if(0==t.b&&-1!=t.g)return n}else if(0==t.b&&-1!=t.g&&e>=0)return n;return 0!=e?e>0?rS(n,t,e):rS(t,n,-e):n_(n.b,t.b)+1<54?new ti(n.g+t.g,n.f):new tM(ix((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f)}function r2(n,t){var e,r,i,o,f;return(r=th(e4(t),o4),rN(n,oJ))?(o=iI(n,r,!1),f=n4(n,r)):(o=iI(e=rP(n,1),i=e4(~~t>>>1),!1),f=eY(rU(f=n4(e,i),1),th(n,oK)),(1&t)!=0&&(rA(o,f)?rA(e0(o,f),r)?(f=eY(f,e0(rU(r,1),o)),o=e0(o,oW)):(f=eY(f,e0(r,o)),o=e0(o,oK)):f=e0(f,o))),ta(rU(f,32),th(o,o4))}function r3(n){var t,e,r,i;return isNaN(n)?(eS(),fc):n<-0x8000000000000000?(eS(),ff):n>=0x8000000000000000?(eS(),fo):(r=!1,n<0&&(r=!0,n=-n),e=0,n>=0x100000000000&&(e=eo(n/0x100000000000),n-=0x100000000000*e),t=0,n>=4194304&&(t=eo(n/4194304),n-=4194304*t),i=ty(eo(n),t,e),r&&eT(i),i)}function r6(n){var t,e,r,i;if(0==n.l&&0==n.m&&0==n.h)return iW;if(524288==n.h&&0==n.m&&0==n.l)return"-9223372036854775808";if(~~n.h>>19!=0)return iJ+r6(eQ(n));for(e=n,r=iV;!(0==e.l&&0==e.m&&0==e.h);){if(e=iI(e,e4(1e9),!0),t=iV+nB(o7),!(0==e.l&&0==e.m&&0==e.h))for(i=9-t.length;i>0;--i)t=iW+t;r=t+r}return r}function r4(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x,S,M,B,A;if(0==(i=t.f))throw new ni(ot);return(r=t.e,e=t.b,1==r)?(g=e[0],(M=n.b,B=n.e,A=n.f,1==B)?(_=iI(w=th(e4(M[0]),o4),d=th(e4(g),o4),!1),y=n4(w,d),A!=i&&(_=eQ(_)),A<0&&(y=eQ(y)),tK(u9,{6:1},17,[eZ(_),eZ(y)])):(m=A==i?1:-1,v=tU(up,{6:1},-1,B,1),C=tK(up,{6:1},-1,[ii(v,M,B,g)]),x=new to(m,B,v),S=new to(A,1,C),tZ(x),tZ(S),tK(u9,{6:1},17,[x,S]))):(a=n.b,((b=n.e)!=r?b>r?1:-1:eI(a,e,b))<0)?tK(u9,{6:1},17,[fA,n]):(l=n.f,f=b-r+1,u=l==i?1:-1,c=iL(o=tU(up,{6:1},-1,f,1),f,a,b,e,r),s=new to(u,f,o),h=new to(l,r,c),tZ(s),tZ(h),tK(u9,{6:1},17,[s,h]))}function r5(n){var t;if(0==n.f||0==n.b&&-1!=n.g)return n.d||(n.d=eP(n.g)),n.d;if(n.f<0)return et((n.d||(n.d=eP(n.g)),n.d),im(-n.f));if(n.f>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)||n.f>(n.d||(n.d=eP(n.g)),n.d).bb()||0!=(t=r4((n.d||(n.d=eP(n.g)),n.d),im(n.f)))[1].r())throw new ni(og);return t[0]}function r9(n,t,e,r,i){var o,f;if(o=oJ,e<i){for(f=0;f<e;++f)o=eY(o,e0(th(e4(r[f]),o4),th(e4(t[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<i;++f)o=eY(o,th(e4(r[f]),o4)),n[f]=nB(o),o=rK(o,32)}else{for(f=0;f<i;++f)o=eY(o,e0(th(e4(r[f]),o4),th(e4(t[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<e;++f)o=e0(o,th(e4(t[f]),o4)),n[f]=nB(o),o=rK(o,32)}}function r8(n,t){var e,r,i,o;if(null==n)throw new nd(ok);if(t<2||t>36)throw new nd("radix "+t+" out of range");for(e=i=(r=n.length)>0&&45==n.charCodeAt(0)?1:0;e<r;++e)if(-1==rp(n.charCodeAt(e),t))throw new nd(os+n+iG);if(isNaN(o=parseInt(n,t))||o<-0x80000000||o>0x7fffffff)throw new nd(os+n+iG);return o}function r7(n){var t,e;if(0==n.f)return rW(),fx;if(eV(n,(rW(),fx)))return fA;if(e=tU(up,{6:1},-1,n.e+1,1),n.f>0){if(-1!=n.b[n.e-1])for(t=0;-1==n.b[t];++t);else{for(t=0;t<n.e&&-1==n.b[t];++t);if(t==n.e)return e[t]=1,new to(-n.f,t+1,e)}}else for(t=0;0==n.b[t];++t)e[t]=-1;for(e[t]=n.b[t]+n.f,++t;t<n.e;++t)e[t]=n.b[t];return new to(-n.f,t,e)}function it(n,t,e){var r;switch(r=0,e.c){case 7:if(0!=t)throw new ni(og);break;case 0:r=0==t?0:t<0?-1:1;break;case 2:r=(0==t?0:t<0?-1:1)>0?0==t?0:t<0?-1:1:0;break;case 3:r=(0==t?0:t<0?-1:1)<0?0==t?0:t<0?-1:1:0;break;case 4:(t<0?-t:t)>=5&&(r=0==t?0:t<0?-1:1);break;case 5:(t<0?-t:t)>5&&(r=0==t?0:t<0?-1:1);break;case 6:(t<0?-t:t)+n>5&&(r=0==t?0:t<0?-1:1)}return r}function ie(n,t){var e,r,i,o,f,u,c,s,h;if(s=0==n.f?1:n.f,f=~~t>>5,e=31&t,u=tU(up,{6:1},-1,c=n_(f+1,n.e)+1,1),r=1<<e,iB(n.b,0,u,0,n.e),n.f<0){if(f>=n.e)u[f]=r;else if(f>(i=ew(n)))u[f]^=r;else if(f<i){for(u[f]=-r,o=f+1;o<i;++o)u[o]=-1;u[o]=u[o]--}else if(o=f,u[f]=-(-u[f]^r),0==u[f]){for(++o;-1==u[o];++o)u[o]=0;++u[o]}}else u[f]^=r;return tZ(h=new to(s,c,u)),h}function ir(n,t){var e,r,i,o,f,u,c,s,h;for(r=0,e=(f=ih(n,(rW(),fS))).ab(),o=f.bb(),u=f.fb(o),c=new rb;r<t;++r){if(r<fW.length)s=fK[r];else do s=new iC(e,c);while(rt(s,n)>=0||0==s.f||1==s.e&&1==s.b[0])if(!(1==(h=rG(s,u,n)).e&&1==h.b[0]||h.eQ(f))){for(i=1;i<o;++i)if(!h.eQ(f)&&1==(h=ee(et(h,h),n)).e&&1==h.b[0])return!1;if(!h.eQ(f))return!1}}return!0}function ii(n,t,e,r){var i,o,f,u,c,s,h;for(s=oJ,o=th(e4(r),o4),u=e-1;u>=0;--u)rN(h=ta(rU(s,32),th(e4(t[u]),o4)),oJ)?(c=iI(h,o,!1),s=n4(h,o)):(c=iI(i=rP(h,1),f=e4(~~r>>>1),!1),s=eY(rU(s=n4(i,f),1),th(h,oK)),(1&r)!=0&&(rA(c,s)?rA(e0(c,s),o)?(s=eY(s,e0(rU(o,1),c)),c=e0(c,oW)):(s=eY(s,e0(o,c)),c=e0(c,oK)):s=e0(s,c))),n[u]=nB(th(c,o4));return nB(s)}function io(n,t){var e,r,i,o,f,u,c;if(f=tU(up,{6:1},-1,u=n_(n.e,t.e),1),i=ew(n),e=r=ew(t),i==r)f[r]=-n.b[r]^-t.b[r];else{for(f[r]=-t.b[r],o=np(t.e,i),++e;e<o;++e)f[e]=~t.b[e];if(e==t.e){for(;e<i;++e)f[e]=-1;f[e]=n.b[e]-1}else f[e]=-n.b[e]^~t.b[e]}for(o=np(n.e,t.e),++e;e<o;++e)f[e]=n.b[e]^t.b[e];for(;e<n.e;++e)f[e]=n.b[e];for(;e<t.e;++e)f[e]=t.b[e];return tZ(c=new to(1,u,f)),c}function iu(n,t,e){var r,i,o,f;for(i=0;i<t;++i){for(r=oJ,f=i+1;f<t;++f)r=eY(eY(iR(th(e4(n[i]),o4),th(e4(n[f]),o4)),th(e4(e[i+f]),o4)),th(e4(nB(r)),o4)),e[i+f]=nB(r),r=rP(r,32);e[i+t]=nB(r)}for(eE(e,e,t<<1),r=oJ,i=0,o=0;i<t;++i,++o)r=eY(eY(iR(th(e4(n[i]),o4),th(e4(n[i]),o4)),th(e4(e[o]),o4)),th(e4(nB(r)),o4)),e[o]=nB(r),r=eY(r=rP(r,32),th(e4(e[++o]),o4)),e[o]=nB(r),r=rP(r,32);return e}function ic(n,t){var e,r,i,o,f,u;return(i=ed(n))!=(u=ed(t))?i<u?-1:1:n.f==t.f&&n.b<54&&t.b<54?n.g<t.g?-1:n.g>t.g?1:0:(r=n.f-t.f,(e=(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1))>r+1)?i:e<r-1?-i:(n.d||(n.d=eP(n.g)),o=n.d,t.d||(t.d=eP(t.g)),f=t.d,r<0?o=et(o,im(-r)):r>0&&(f=et(f,im(r))),rt(o,f))}function is(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g;if(o=t.b,!((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-o<0||0==o||(r=n.q()-o)<=0)){if(n.b<54){l=r3(fl[c=r]),b=e0(r3(n.f),e4(c)),a=iI(g=r3(n.g),l,!1),tm(h=n4(g,l),oJ)&&(s=tv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?0:nv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?-1:1,a=eY(a,e4(it(1&nB(a),(tv(h,oJ)?0:nv(h,oJ)?-1:1)*(5+s),t.c))),tn(ri(nv(a,oJ)?eQ(a):a))>=t.b&&(a=nQ(a,oX),b=e0(b,oK))),n.f=eK(ri(b)),n.e=t.b,n.g=ri(a),n.b=eX(a),n.d=null;return}u=im(r),i=r4((n.d||(n.d=eP(n.g)),n.d),u),f=n.f-r,0!=i[1].r()&&(e=rt(eH(i[1]._()),u),0!=(e=it(i[0].gb(0)?1:0,i[1].r()*(5+e),t.c))&&rn(i,0,ix(i[0],eZ(e4(e)))),new nL(i[0]).q()>o&&(rn(i,0,ia(i[0],(rW(),fB))),--f)),n.f=eK(f),n.e=o,tO(n,i[0])}}function ih(n,t){var e,r,i,o,f,u,c,s,h,a;if(f=n.f,0==(c=t.f))return n;if(0==f)return t.cb();if((o=n.e)+(u=t.e)==2)return e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f<0&&(e=eQ(e)),c<0&&(r=eQ(r)),eZ(e0(e,r));if(-1==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))a=-c,h=f==c?tJ(t.b,u,n.b,o):t4(t.b,u,n.b,o);else if(a=f,f==c){if(0==i)return rW(),fA;h=tJ(n.b,o,t.b,u)}else h=t4(n.b,o,t.b,u);return tZ(s=new to(a,h.length,h)),s}function ia(n,t){var e,r,i,o,f,u,c,s,h,a;if(0==t.f)throw new ni(ot);return(i=t.f,1==t.e&&1==t.b[0])?t.f>0?n:n.cb():(h=n.f,(s=n.e)+(r=t.e)==2)?(a=nQ(th(e4(n.b[0]),o4),th(e4(t.b[0]),o4)),h!=i&&(a=eQ(a)),eZ(a)):0==(e=s!=r?s>r?1:-1:eI(n.b,t.b,s))?h==i?fS:fx:-1==e?fA:(o=tU(up,{6:1},-1,f=s-r+1,1),u=h==i?1:-1,1==r?ii(o,n.b,s,t.b[0]):iL(o,f,n.b,s,t.b,r),tZ(c=new to(u,f,o)),c)}function ib(n,t,e,r,i){var o,f;if(o=eY(th(e4(t[0]),o4),th(e4(r[0]),o4)),n[0]=nB(o),o=rK(o,32),e>=i){for(f=1;f<i;++f)o=eY(o,eY(th(e4(t[f]),o4),th(e4(r[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<e;++f)o=eY(o,th(e4(t[f]),o4)),n[f]=nB(o),o=rK(o,32)}else{for(f=1;f<e;++f)o=eY(o,eY(th(e4(t[f]),o4),th(e4(r[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<i;++f)o=eY(o,th(e4(r[f]),o4)),n[f]=nB(o),o=rK(o,32)}tm(o,oJ)&&(n[f]=nB(o))}function il(){var n,t;for(t=0,il=g,fV=tU(u9,{6:1},17,32,0),fq=tU(u9,{6:1},17,32,0),fG=tK(up,{6:1},-1,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,0x2e90edd,0xe8d4a51,0x48c27395]),fz=tK(up,{6:1},-1,[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9]),n=oK;t<=18;++t)rn(fV,t,eZ(n)),rn(fq,t,eZ(rU(n,t))),n=iR(n,oZ);for(;t<fq.length;++t)rn(fV,t,et(fV[t-1],fV[1])),rn(fq,t,et(fq[t-1],(rW(),fB)))}function ig(n,t,e,r){var i,o,f;if(!r)throw new z;if(0==t.b&&-1!=t.g)throw new ni(of);if(i=n.f-t.f-e,n.b<54&&t.b<54){if(0==i)return ry(n.g,t.g,e,r);if(i>0){if(i<fl.length&&t.b+fg[eo(i)]<54)return ry(n.g,t.g*fl[eo(i)],e,r)}else if(-i<fl.length&&n.b+fg[eo(-i)]<54)return ry(n.g*fl[eo(-i)],t.g,e,r)}return n.d||(n.d=eP(n.g)),o=n.d,t.d||(t.d=eP(t.g)),f=t.d,i>0?f=tQ(f,eo(i)):i<0&&(o=tQ(o,eo(-i))),id(o,f,e,r)}function iw(n,t){var e,r,i,o,f,u,c;if(r=ew(t),(i=ew(n))>=t.e)return t;if(f=tU(up,{6:1},-1,u=t.e,1),r<i)for(e=r;e<i;++e)f[e]=t.b[e];else if(i<r){for(e=i,f[i]=-n.b[i],o=np(n.e,r),++e;e<o;++e)f[e]=~n.b[e];if(e!=n.e)f[e]=~(-t.b[e]|n.b[e]);else{for(;e<r;++e)f[e]=-1;f[e]=t.b[e]-1}++e}else e=i,f[i]=-(-t.b[i]|n.b[i]),++e;for(o=np(t.e,n.e);e<o;++e)f[e]=t.b[e]&~n.b[e];for(;e<t.e;++e)f[e]=t.b[e];return tZ(c=new to(-1,u,f)),c}function id(n,t,e,r){var i,o,f,u,c,s,h;if(u=(f=r4(n,t))[0],0==(s=f[1]).r())return new tS(u,e);if(h=n.r()*t.r(),54>t.ab()?(c=eN(s),o=eN(t),i=tv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?0:nv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?-1:1):i=rt(eH(s._()),t._()),0!=(i=it(u.gb(0)?1:0,h*(5+i),r))){if(54>u.ab())return eL(eY(eN(u),e4(i)),e);u=ix(u,eZ(e4(i)))}return new tS(u,e)}function ip(n){var t,e,r,i,o,f;return null!=n.i?n.i:n.b<32?(n.i=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;if(iM(),(f=nv(n,oJ))&&(n=eQ(n)),tv(n,oJ))switch(t){case 0:return iW;case 1:return iX;case 2:return iY;case 3:return i0;case 4:return i1;case 5:return i2;case 6:return i3;default:return s=new W,t<0?s.b.b+=i4:s.b.b+=i6,b=s.b,l=-0x80000000==t?"2147483648":iV+-t,b.b+=l,s.b.b}c=tU(uK,{6:1},-1,19,1),e=18,a=n;do u=a,a=nQ(a,oX),c[--e]=65535&nB(eY(o1,e0(u,iR(a,oX))));while(tm(a,oJ))if(r=e0(e0(e0(o0,e4(e)),e4(t)),oK),0==t)return f&&(c[--e]=45),tP(c,e,18-e);if(t>0&&rN(r,oG)){if(rN(r,oJ)){for(o=17,i=e+nB(r);o>=i;--o)c[o+1]=c[o];return c[++i]=46,f&&(c[--e]=45),tP(c,e,18-e+1)}for(o=2;nv(e4(o),eY(eQ(r),oK));++o)c[--e]=48;return c[--e]=46,c[--e]=48,f&&(c[--e]=45),tP(c,e,18-e)}return(h=e+1,s=new Z,f&&(s.b.b+=iJ),18-h>=1)?(tE(s,c[e]),s.b.b+=iK,g=s.b,w=tP(c,e+1,18-e-1),g.b+=w):(d=s.b,_=tP(c,e,18-e),d.b+=_),s.b.b+=oc,rA(r,oJ)&&(s.b.b+=iz),v=s.b,m=iV+r6(r),v.b+=m,s.b.b}(r3(n.g),eo(n.f)),n.i):(i=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)?i:(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,e=i.length,r=-n.f+e-t,f=(o=new W).b,f.b+=i,n.f>0&&r>=-6?r>=0?n8(o,e-eo(n.f),iK):(te(o.b,t-1,t-1,iZ),n8(o,t+1,tP(fh,0,-eo(r)-1))):(e-t>=1&&(te(o.b,t,t,iK),++e),te(o.b,e,e,oc),r>0&&n8(o,++e,iz),n8(o,++e,iV+r6(r3(r)))),n.i=o.b.b,n.i)}function i_(n,t){var e,r,i,o,f,u;if(i=ew(n),o=ew(t),i>=t.e)return n;if(r=o>i?o:i,0==(e=o>i?-t.b[r]&~n.b[r]:o<i?~t.b[r]&-n.b[r]:-t.b[r]&-n.b[r])){for(++r;r<t.e&&0==(e=~(n.b[r]|t.b[r]));++r);if(0==e){for(;r<n.e&&0==(e=~n.b[r]);++r);if(0==e)return(f=tU(up,{6:1},-1,u=n.e+1,1))[u-1]=1,new to(-1,u,f)}}for((f=tU(up,{6:1},-1,u=n.e,1))[r]=-e,++r;r<t.e;++r)f[r]=n.b[r]|t.b[r];for(;r<n.e;++r)f[r]=n.b[r];return new to(-1,u,f)}function iv(n,t,e){for(var r=RegExp(t,"g"),i=[],o=0,f=n,u=null;;){var c=r.exec(f);if(null==c||f==iV||o==e-1&&e>0){i[o]=f;break}i[o]=f.substring(0,c.index),f=f.substring(c.index+c[0].length,f.length),r.lastIndex=0,u==f&&(i[o]=f.substring(0,1),f=f.substring(1)),u=f,o++}if(0==e&&n.length>0){for(var s=i.length;s>0&&i[s-1]==iV;)--s;s<i.length&&i.splice(s,i.length-s)}for(var h=tU(uI,{6:1},1,i.length,0),a=0;a<i.length;++a)h[a]=i[a];return h}function im(n){var t,e,r,i;if(il(),t=eo(n),n<fq.length)return fq[t];if(n<=50)return(rW(),fB).db(t);if(n<=1e3)return fV[1].db(t).eb(t);if(n>1e6)throw new ni("power of ten too big");if(n<=0x7fffffff)return fV[1].db(t).eb(t);for(i=r=fV[1].db(0x7fffffff),e=r3(n-0x7fffffff),t=eo(n%0x7fffffff);rA(e,o6);)i=et(i,r),e=e0(e,o6);for(i=(i=et(i,fV[1].db(t))).eb(0x7fffffff),e=r3(n-0x7fffffff);rA(e,o6);)i=i.eb(0x7fffffff),e=e0(e,o6);return i.eb(t)}function iy(){var n,t;c&&rM("com.iriscouch.gwtapp.client.BigDecimalApp"),nZ(new K),nY(new j),nX(new F),tk(new H),c&&rM("com.google.gwt.user.client.UserAgentAsserter"),tF(oF,n=-1!=(t=r.userAgent.toLowerCase()).indexOf(oT)?oT:-1!=t.indexOf("webkit")||function(){if(-1!=t.indexOf("chromeframe"))return!0;if(typeof e.ActiveXObject!=o$)try{var n=new ActiveXObject("ChromeTab.ChromeFrame");if(n)return n.registerBhoIfNeeded(),!0}catch(n){}return!1}()?oF:-1!=t.indexOf(oD)&&u.documentMode>=9?"ie9":-1!=t.indexOf(oD)&&u.documentMode>=8?"ie8":!function(){var n=/msie ([0-9]+)\.([0-9]+)/.exec(t);if(n&&3==n.length)return 1e3*parseInt(n[1])+parseInt(n[2])>=6e3}()?-1!=t.indexOf("gecko")?"gecko1_8":"unknown":"ie6")||f.alert("ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ("+n+"). Expect more errors.\n"),c&&rM("com.google.gwt.user.client.DocumentModeAsserter"),function(){var n,t,e;for(e=0,t=u.compatMode,n=tK(uI,{6:1},1,[oo]);e<n.length;++e)if(tF(n[e],t))return;1==n.length&&tF(oo,n[0])&&tF("BackCompat",t)}()}function iC(n,t){var e,r,i,o,f;if(rW(),n<0)throw new nf("numBits must be non-negative");if(0==n)this.f=0,this.e=1,this.b=tK(up,{6:1},-1,[0]);else{for(f=0,this.f=1,this.e=~~(n+31)>>5,this.b=tU(up,{6:1},-1,this.e,1);f<this.e;++f)this.b[f]=eo((i=0xece66d*t.b+1502*t.c+(e=Math.floor(5960464477539063e-23*(o=0xece66d*t.c+11))),o-=0x1000000*e,i%=0x1000000,t.b=i,t.c=o,(r=256*t.b+nP(t.c*uf[32]))>=0x80000000&&(r-=0x100000000),r));this.b[this.e-1]>>>=31&-n,tZ(this)}}function ix(n,t){var e,r,i,o,f,u,c,s,h,a,b,l;if(f=n.f,c=t.f,0==f)return t;if(0==c)return n;if((o=n.e)+(u=t.e)==2)return(e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f==c)?(l=nB(s=eY(e,r)),0==(b=nB(rP(s,32)))?new tV(f,l):new to(f,2,tK(up,{6:1},-1,[l,b]))):eZ(f<0?e0(r,e):e0(e,r));if(f==c)a=f,h=o>=u?t4(n.b,o,t.b,u):t4(t.b,u,n.b,o);else{if(0==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))return rW(),fA;1==i?(a=f,h=tJ(n.b,o,t.b,u)):(a=c,h=tJ(t.b,u,n.b,o))}return tZ(s=new to(a,h.length,h)),s}function iS(n){var t,e,r,i;if(rF(),null==n)throw new nc("null string");if((t=t5(n)).length<27||t.length>45)throw new nf(oM);for(r=0;r<fH.length&&t[r]==fH[r];++r);if(r<fH.length||-1==(e=rp(t[r],10)))throw new nf(oM);for(this.b=10*this.b+e,++r;;){if(-1==(e=rp(t[r],10))){if(32==t[r]){++r;break}throw new nf(oM)}if(this.b=10*this.b+e,this.b<0)throw new nf(oM);++r}for(i=0;i<f$.length&&t[r]==f$[i];++r,++i);if(i<f$.length)throw new nf(oM);this.c=function(n){var t,e,r,i,o;if(iA(),null==n)throw new z;if((e=(r=t5(n)).length)<ur.length||e>ue.length)throw new q;if(o=null,i=null,67==r[0]?(i=fX,o=f5):68==r[0]?(i=fY,o=f9):70==r[0]?(i=f0,o=f8):72==r[0]?e>6&&(68==r[5]?(i=f1,o=f7):69==r[5]?(i=f2,o=un):85==r[5]&&(i=f3,o=ut)):85==r[0]&&(80==r[1]?(i=f4,o=ur):78==r[1]&&(i=f6,o=ue)),i&&e==o.length){for(t=1;t<e&&r[t]==o[t];++t);if(t==e)return i}throw new q}(tP(t,r,t.length-r))}function iM(){iM=g,fU=tK(up,{6:1},-1,[-0x80000000,0x4546b3db,0x40000000,0x48c27395,0x159fd800,0x75db9c97,0x40000000,0x17179149,1e9,0xcc6db61,0x19a10000,0x309f1021,0x57f6c100,0xa2f1b6f,0x10000000,0x18754571,0x247dbc80,0x3547667b,128e7,0x6b5a6e1d,0x6c20a40,0x8d2d931,0xb640000,0xe8d4a51,0x1269ae40,0x17179149,0x1cb91000,0x23744899,729e6,0x34e63b41,0x40000000,0x4cfa3cc1,0x5c13d840,0x6d91b519,0x39aa400]),fP=tK(up,{6:1},-1,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function iB(n,t,e,r,i){var o,f,u,c,s,h,a,b,l;if(null==n||null==e)throw new z;if(b=n.gC(),c=e.gC(),(4&b.c)==0||(4&c.c)==0)throw new no("Must be array types");if(a=b.b,f=c.b,!((1&a.c)!=0?a==f:(1&f.c)==0))throw new no("Array types must match");if(l=n.length,s=e.length,t<0||r<0||i<0||t+i>l||r+i>s)throw new G;if(((1&a.c)==0||(4&a.c)!=0)&&b!=c){if(h=tT(n,11),o=tT(e,11),nj(n)===nj(e)&&t<r)for(t+=i,u=r+i;u-- >r;)rn(o,u,h[--t]);else for(u=r+i;r<u;)rn(o,r++,h[t++])}else Array.prototype.splice.apply(e,[r,i].concat(n.slice(t,t+i)))}function iA(){iA=g,f4=new nN("UP",0),fY=new nN("DOWN",1),fX=new nN("CEILING",2),f0=new nN("FLOOR",3),f3=new nN("HALF_UP",4),f1=new nN("HALF_DOWN",5),f2=new nN("HALF_EVEN",6),f6=new nN("UNNECESSARY",7),fZ=tK(cn,{6:1},19,[f4,fY,fX,f0,f3,f1,f2,f6]),f5=tK(uK,{6:1},-1,[67,69,73,76,73,78,71]),f9=tK(uK,{6:1},-1,[68,79,87,78]),f8=tK(uK,{6:1},-1,[70,76,79,79,82]),f7=tK(uK,{6:1},-1,[72,65,76,70,95,68,79,87,78]),un=tK(uK,{6:1},-1,[72,65,76,70,95,69,86,69,78]),ut=tK(uK,{6:1},-1,[72,65,76,70,95,85,80]),ue=tK(uK,{6:1},-1,[85,78,78,69,67,69,83,83,65,82,89]),ur=tK(uK,{6:1},-1,[85,80])}function iN(n,t){var e,r,i,o,f,u,c,s,h,a;if(n.d||(n.d=eP(n.g)),s=n.d,t.d||(t.d=eP(t.g)),h=t.d,e=n.f-t.f,f=0,i=1,u=fv.length-1,0==t.b&&-1!=t.g)throw new ni(of);if(0==s.r())return eU(e);for(r=rR(s,h),s=ia(s,r),o=(h=ia(h,r)).bb(),h=h.fb(o);;)if(0==(a=r4(h,fv[i]))[1].r())f+=i,i<u&&++i,h=a[0];else{if(1==i)break;i=1}if(!h._().eQ((rW(),fS)))throw new ni("Non-terminating decimal expansion; no exact representable decimal result");return 0>h.r()&&(s=s.cb()),c=eK(e+(o>f?o:f)),new tS(s=(i=o-f)>0?(il(),i<fG.length?rZ(s,fG[i]):i<fV.length?et(s,fV[i]):et(s,fV[1].db(i))):s.eb(-i),c)}function iI(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C;if(0==t.l&&0==t.m&&0==t.h)throw new ni("divide by zero");if(0==n.l&&0==n.m&&0==n.h)return e&&(o7=ty(0,0,0)),ty(0,0,0);if(524288==t.h&&0==t.m&&0==t.l)return 524288==(s=n).h&&0==s.m&&0==s.l?(e&&(o7=ty(0,0,0)),nT((eS(),fu))):(e&&(o7=ty(s.l,s.m,s.h)),ty(0,0,0));if(c=!1,~~t.h>>19!=0&&(t=eQ(t),c=!0),f=((b=(h=t).l)&b-1)!=0||((l=h.m)&l-1)!=0||((a=h.h)&a-1)!=0||0==a&&0==l&&0==b?-1:0==a&&0==l&&0!=b?es(b):0==a&&0!=l&&0==b?es(l)+22:0!=a&&0==l&&0==b?es(a)+44:-1,o=!1,i=!1,r=!1,524288==n.h&&0==n.m&&0==n.l){if(i=!0,o=!0,-1!=f)return u=rK(n,f),c&&eT(u),e&&(o7=ty(0,0,0)),u;n=nT((eS(),fo)),r=!0,c=!c}else~~n.h>>19!=0&&(o=!0,n=eQ(n),r=!0,c=!c);return -1!=f?(g=n,w=c,d=o,_=rK(g,f),w&&eT(_),e&&(v=g,f<=22?(m=v.l&(1<<f)-1,y=C=0):f<=44?(m=v.l,y=v.m&(1<<f-22)-1,C=0):(m=v.l,y=v.m,C=v.h&(1<<f-44)-1),g=ty(m,y,C),o7=d?eQ(g):ty(g.l,g.m,g.h)),_):rN(n,t)?function(n,t,e,r,i,o){var f,u,c,s,h,a,b,l,g;for(c=eC(t)-eC(n),f=rU(t,c),u=ty(0,0,0);c>=0&&((g=n.h-f.h)<0||(b=n.l-f.l,(g+=~~(l=n.m-f.m+(~~b>>22))>>22)<0||(n.l=4194303&b,n.m=4194303&l,n.h=1048575&g,0))||(c<22?u.l|=1<<c:c<44?u.m|=1<<c-22:u.h|=1<<c-44,0!=n.l||0!=n.m||0!=n.h));)h=f.m,a=f.h,s=f.l,f.h=~~a>>>1,f.m=~~h>>>1|(1&a)<<21,f.l=~~s>>>1|(1&h)<<21,--c;return e&&eT(u),o&&(r?(o7=eQ(n),i&&(o7=e0(o7,(eS(),fu)))):o7=ty(n.l,n.m,n.h)),u}(r?n:ty(n.l,n.m,n.h),t,c,o,i,e):(e&&(o7=o?eQ(n):ty(n.l,n.m,n.h)),ty(0,0,0))}function iE(n){var t=[];for(var e in n){var r=typeof n[e];r!=oQ?t[t.length]=r:n[e]instanceof Array?t[t.length]=oS:f&&f.bigdecimal&&f.bigdecimal.BigInteger&&n[e]instanceof f.bigdecimal.BigInteger?t[t.length]=on:f&&f.bigdecimal&&f.bigdecimal.BigDecimal&&n[e]instanceof f.bigdecimal.BigDecimal?t[t.length]=i9:f&&f.bigdecimal&&f.bigdecimal.RoundingMode&&n[e]instanceof f.bigdecimal.RoundingMode?t[t.length]=ow:f&&f.bigdecimal&&f.bigdecimal.MathContext&&n[e]instanceof f.bigdecimal.MathContext?t[t.length]=ob:t[t.length]=oQ}return t.join(iq)}function iR(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;return e=8191&n.l,r=~~n.l>>13|(15&n.m)<<9,i=~~n.m>>4&8191,o=~~n.m>>17|(255&n.h)<<5,f=~~(1048320&n.h)>>8,u=8191&t.l,c=~~t.l>>13|(15&t.m)<<9,s=~~t.m>>4&8191,h=~~t.m>>17|(255&t.h)<<5,a=~~(1048320&t.h)>>8,w=e*u,d=r*u,_=i*u,v=o*u,m=f*u,0!=c&&(d+=e*c,_+=r*c,v+=i*c,m+=o*c),0!=s&&(_+=e*s,v+=r*s,m+=i*s),0!=h&&(v+=e*h,m+=r*h),0!=a&&(m+=e*a),b=(4194303&w)+((511&d)<<13),l=(~~w>>22)+(~~d>>9)+((262143&_)<<4)+((31&v)<<17),g=(~~_>>18)+(~~v>>5)+((4095&m)<<8),l+=~~b>>22,b&=4194303,g+=~~l>>22,ty(b,l&=4194303,g&=1048575)}function iO(n,t,e){var r,i,o,f,u,c,s,h;if(h=ri(eY(e4(e.b),oW))+(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)-(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1),c=i=n.f-t.f,o=1,u=fm.length-1,s=tK(u9,{6:1},17,[(n.d||(n.d=eP(n.g)),n.d)]),0==e.b||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return iN(n,t);if(h>0&&(rn(s,0,et((n.d||(n.d=eP(n.g)),n.d),im(h))),c+=h),f=(s=r4(s[0],(t.d||(t.d=eP(t.g)),t.d)))[0],0!=s[1].r())r=rt(eH(s[1]),(t.d||(t.d=eP(t.g)),t.d)),f=ix(et(f,(rW(),fB)),eZ(e4(s[0].r()*(5+r)))),++c;else for(;!f.gb(0);)if(0==(s=r4(f,fm[o]))[1].r()&&c-o>=i)c-=o,o<u&&++o,f=s[0];else{if(1==o)break;o=1}return new tr(f,eK(c),e)}function iD(n,t){var e;if(e=n.f-t.f,0==n.b&&-1!=n.g){if(e<=0)return ep(t);if(0==t.b&&-1!=t.g)return n}else if(0==t.b&&-1!=t.g&&e>=0)return n;return 0==e?n_(n.b,t.b)+1<54?new ti(n.g-t.g,n.f):new tM(ih((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f):e>0?e<fl.length&&n_(n.b,t.b+fg[eo(e)])+1<54?new ti(n.g-t.g*fl[eo(e)],n.f):new tM(ih((n.d||(n.d=eP(n.g)),n.d),tQ((t.d||(t.d=eP(t.g)),t.d),eo(e))),n.f):(e=-e)<fl.length&&n_(n.b+fg[eo(e)],t.b)+1<54?new ti(n.g*fl[eo(e)]-t.g,t.f):new tM(ih(tQ((n.d||(n.d=eP(n.g)),n.d),eo(e)),(t.d||(t.d=eP(t.g)),t.d)),t.f)}function ik(n,t){var e,r,i,o,f,u,c;if(tK(u9,{6:1},17,[(n.d||(n.d=eP(n.g)),n.d)]),o=n.f-t.f,c=0,e=1,i=fm.length-1,0==t.b&&-1!=t.g)throw new ni(of);if((t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)+o>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)+1||0==n.b&&-1!=n.g)rW(),r=fA;else if(0==o)r=ia((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d));else if(o>0)f=im(o),r=ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),f)),r=et(r,f);else{for(f=im(-o),r=ia(et((n.d||(n.d=eP(n.g)),n.d),f),(t.d||(t.d=eP(t.g)),t.d));!r.gb(0);)if(0==(u=r4(r,fm[e]))[1].r()&&c-e>=o)c-=e,e<i&&++e,r=u[0];else{if(1==e)break;e=1}o=c}return 0==r.r()?eU(o):new tS(r,eK(o))}function iL(n,t,e,r,i,o){var f,u,c,s,h,a,b,l,g,w,d,_,v,m,y;for(w=tU(up,{6:1},-1,r+1,1),d=tU(up,{6:1},-1,o+1,1),0!=(u=r$(i[o-1]))?(rx(d,i,0,u),rx(w,e,0,u)):(iB(e,0,w,0,r),iB(i,0,d,0,o)),c=d[o-1],h=t-1,a=r;h>=0;){if(w[a]==c)s=-1;else if(s=nB(m=r2(eY(rU(th(e4(w[a]),o4),32),th(e4(w[a-1]),o4)),c)),v=nB(rK(m,32)),0!=s){_=!1,++s;do{if(--s,_)break;l=iR(th(e4(s),o4),th(e4(d[o-2]),o4)),y=eY(rU(e4(v),32),th(e4(w[a-2]),o4)),32>r$(nB(rP(g=eY(th(e4(v),o4),th(e4(c),o4)),32)))?_=!0:v=nB(g)}while(rA(tb(l,oV),tb(y,oV)))}if(0!=s&&0!=function(n,t,e,r,i){var o,f,u;for(u=0,o=oJ,f=oJ;u<r;++u)il(),o=eY(iR(th(e4(e[u]),o4),th(e4(i),o4)),th(e4(nB(o)),o4)),f=eY(e0(th(e4(n[t+u]),o4),th(o,o4)),f),n[t+u]=nB(f),f=rK(f,32),o=rP(o,32);return f=eY(e0(th(e4(n[t+r]),o4),o),f),n[t+r]=nB(f),nB(rK(f,32))}(w,a-o,d,o,s))for(--s,f=oJ,b=0;b<o;++b)f=eY(f,eY(th(e4(w[a-o+b]),o4),th(e4(d[b]),o4))),w[a-o+b]=nB(f),f=rP(f,32);null!=n&&(n[h]=s),--a,--h}return 0!=u?(rD(d,o,w,0,u),d):(iB(w,0,d,0,o),w)}function iU(n,t){var e,r,i,o,f,u,c,s;if(c=n_(t.e,n.e),(i=ew(t))<(o=ew(n))){for(u=tU(up,{6:1},-1,c,1),r=i,u[i]=t.b[i],f=np(t.e,o),++r;r<f;++r)u[r]=t.b[r];if(r==t.e)for(;r<n.e;++r)u[r]=n.b[r]}else if(o<i){for(u=tU(up,{6:1},-1,c,1),r=o,u[o]=-n.b[o],f=np(n.e,i),++r;r<f;++r)u[r]=~n.b[r];if(r==i)u[r]=~(n.b[r]^-t.b[r]),++r;else{for(;r<i;++r)u[r]=-1;for(;r<t.e;++r)u[r]=t.b[r]}}else{if(r=i,0==(e=n.b[i]^-t.b[i])){for(f=np(n.e,t.e),++r;r<f&&0==(e=n.b[r]^~t.b[r]);++r);if(0==e){for(;r<n.e&&0==(e=~n.b[r]);++r);for(;r<t.e&&0==(e=~t.b[r]);++r);if(0==e)return c+=1,(u=tU(up,{6:1},-1,c,1))[c-1]=1,s=new to(-1,c,u)}}(u=tU(up,{6:1},-1,c,1))[r]=-e,++r}for(f=np(t.e,n.e);r<f;++r)u[r]=~(~t.b[r]^n.b[r]);for(;r<n.e;++r)u[r]=n.b[r];for(;r<t.e;++r)u[r]=t.b[r];return tZ(s=new to(-1,c,u)),s}function iP(){var n,t;for(iP=g,fw=new ef(oK,0),fd=new ef(oX,0),fp=new ef(oJ,0),fs=tU(u4,{6:1},16,11,0),fh=tU(uK,{6:1},-1,100,1),fb=tU(up,{6:1},-1,(fa=tK(u5,{6:1},-1,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,0x2e90edd,0xe8d4a51,0x48c27395,0x16bcc41e9,0x71afd498d,0x2386f26fc1,0xb1a2bc2ec5,0x3782dace9d9,0x1158e460913d,0x56bc75e2d631,0x1b1ae4d6e2ef5,0x878678326eac9])).length,1),fg=tU(up,{6:1},-1,(fl=tK(u5,{6:1},-1,[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13,1e14,1e15,1e16])).length,1),f_=tU(u4,{6:1},16,11,0),n=0;n<f_.length;++n)rn(fs,n,new ef(e4(n),0)),rn(f_,n,new ef(oJ,n)),fh[n]=48;for(;n<fh.length;++n)fh[n]=48;for(t=0;t<fb.length;++t)fb[t]=rE(fa[t]);for(t=0;t<fg.length;++t)fg[t]=rE(fl[t]);il(),fm=fq,fv=fV}function iQ(n,t){var e,r,i,o,f,u,c,s,h,a,b;if(e=0,u=0,f=t.length,h=new Z(t.length),0<f&&43==t.charCodeAt(0)&&(++u,++e,u<f&&(43==t.charCodeAt(u)||45==t.charCodeAt(u))))throw new nd(os+t+iG);for(i=0,a=!1;u<f&&46!=t.charCodeAt(u)&&101!=t.charCodeAt(u)&&69!=t.charCodeAt(u);++u)a||(48==t.charCodeAt(u)?++i:a=!0);if(tz(h,t,e,u),u<f&&46==t.charCodeAt(u)){for(e=++u;u<f&&101!=t.charCodeAt(u)&&69!=t.charCodeAt(u);++u)a||(48==t.charCodeAt(u)?++i:a=!0);n.f=u-e,tz(h,t,e,u)}else n.f=0;if(u<f&&(101==t.charCodeAt(u)||69==t.charCodeAt(u))&&(e=++u,u<f&&43==t.charCodeAt(u)&&++u<f&&45!=t.charCodeAt(u)&&++e,c=t.substr(e,f-e),n.f=n.f-r8(c,10),n.f!=eo(n.f)))throw new nd("Scale out of range.");if((s=h.b.b).length<16){if((b=fy)||(b=fy=/^[+-]?\d*$/i),n.g=b.test(s)?parseInt(s,10):Number.NaN,isNaN(n.g))throw new nd(os+t+iG);n.b=rE(n.g)}else tO(n,new nG(s));for(o=0,n.e=h.b.b.length-i;o<h.b.b.length&&(45==(r=nV(h.b.b,o))||48==r);++o)--n.e}function iT(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d;if(h=e.b,i=rj(n)-t.q(),s=fm.length-1,a=o=n.f-t.f,l=i-o+1,b=tU(u9,{6:1},17,2,0),0==h||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return ik(n,t);if(l<=0)rn(b,0,(rW(),fA));else if(0==o)rn(b,0,ia((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)));else if(o>0)rn(b,0,ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),im(o)))),a=o<(h-l+1>0?h-l+1:0)?o:h-l+1>0?h-l+1:0,rn(b,0,et(b[0],im(a)));else if(f=-o<(h-i>0?h-i:0)?-o:h-i>0?h-i:0,b=r4(et((n.d||(n.d=eP(n.g)),n.d),im(f)),(t.d||(t.d=eP(t.g)),t.d)),a+=f,f=-a,0!=b[1].r()&&f>0&&(0==(r=new nL(b[1]).q()+f-t.q())&&(rn(b,1,ia(et(b[1],im(f)),(t.d||(t.d=eP(t.g)),t.d))),r=(d=b[1].r())<0?-d:d),r>0))throw new ni(ou);if(0==b[0].r())return eU(o);for(w=b[0],g=(c=new nL(b[0])).q(),u=1;!w.gb(0);)if(0==(b=r4(w,fm[u]))[1].r()&&(g-u>=h||a-u>=o))g-=u,a-=u,u<s&&++u,w=b[0];else{if(1==u)break;u=1}if(g>h)throw new ni(ou);return c.f=eK(a),tO(c,w),c}function ij(){var n;for(n=0,ij=g,fJ=tK(up,{6:1},-1,[0,0,1854,1233,927,747,627,543,480,431,393,361,335,314,295,279,265,253,242,232,223,216,181,169,158,150,145,140,136,132,127,123,119,114,110,105,101,96,92,87,83,78,73,69,64,59,54,49,44,38,32,26,1]),fK=tU(u9,{6:1},17,(fW=tK(up,{6:1},-1,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021])).length,0);n<fW.length;++n)rn(fK,n,eZ(e4(fW[n])))}function iF(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x,S,M,B,A,N,I,E,R,O,D,k;if(iM(),C=n.f,b=n.e,i=n.b,0==C)switch(t){case 0:return iW;case 1:return iX;case 2:return iY;case 3:return i0;case 4:return i1;case 5:return i2;case 6:return i3;default:return m=new W,t<0?m.b.b+=i4:m.b.b+=i6,A=m.b,N=-t,A.b+=N,m.b.b}if(v=tU(uK,{6:1},-1,(_=10*b+1+7)+1,1),e=_,1==b){if((f=i[0])<0){B=th(e4(f),o4);do l=B,B=nQ(B,oX),v[--e]=48+nB(e0(l,iR(B,oX)))&65535;while(tm(B,oJ))}else{B=f;do l=B,B=~~(B/10),v[--e]=48+(l-10*B)&65535;while(0!=B)}}else{S=tU(up,{6:1},-1,b,1),M=b,iB(i,0,S,0,b);n:for(;;){for(y=oJ,c=M-1;c>=0;--c)w=function(n){var t,e,r;return rN(n,oJ)?(e=nQ(n,o3),r=n4(n,o3)):(e=nQ(t=rP(n,1),o2),r=eY(rU(r=n4(t,o2),1),th(n,oK))),ta(rU(r,32),th(e,o4))}(eY(rU(y,32),th(e4(S[c]),o4))),S[c]=nB(w),y=e4(nB(rK(w,32)));d=nB(y),g=e;do v[--e]=48+d%10&65535;while(0!=(d=~~(d/10))&&0!=e)for(u=0,r=9-g+e;u<r&&e>0;++u)v[--e]=48;for(h=M-1;0==S[h];--h)if(0==h)break n;M=h+1}for(;48==v[e];)++e}if(a=C<0,o=_-e-t-1,0==t)return a&&(v[--e]=45),tP(v,e,_-e);if(t>0&&o>=-6){if(o>=0){for(s=e+o,h=_-1;h>=s;--h)v[h+1]=v[h];return v[++s]=46,a&&(v[--e]=45),tP(v,e,_-e+1)}for(h=2;h<-o+1;++h)v[--e]=48;return v[--e]=46,v[--e]=48,a&&(v[--e]=45),tP(v,e,_-e)}return(x=e+1,m=new Z,a&&(m.b.b+=iJ),_-x>=1)?(tE(m,v[e]),m.b.b+=iK,I=m.b,E=tP(v,e+1,_-e-1),I.b+=E):(R=m.b,O=tP(v,e,_-e),R.b+=O),m.b.b+=oc,o>0&&(m.b.b+=iz),D=m.b,k=iV+o,D.b+=k,m.b.b}c&&c({moduleName:"gwtapp",sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalStart"});var iH,i$,iV="",iq=" ",iG='"',iz="+",iJ="-",iK=".",iW="0",iZ="0.",iX="0.0",iY="0.00",i0="0.000",i1="0.0000",i2="0.00000",i3="0.000000",i6="0E",i4="0E+",i5=":",i9="BigDecimal",i8="BigDecimal MathContext",i7="BigDecimal;",on="BigInteger",ot="BigInteger divide by zero",oe="BigInteger not invertible.",or="BigInteger: modulus not positive",oi="BigInteger;",oo="CSS1Compat",of="Division by zero",ou="Division impossible",oc="E",os='For input string: "',oh="Infinite or NaN",oa="Invalid Operation",ob="MathContext",ol="Negative bit address",og="Rounding necessary",ow="RoundingMode",od="RoundingMode;",op="String",o_="[Lcom.iriscouch.gwtapp.client.",ov="[Ljava.lang.",om="[Ljava.math.",oy="\\.",oC="__gwtex_wrap",ox="anonymous",oS="array",oM="bad string format",oB="bigdecimal",oA="com.google.gwt.core.client.",oN="com.google.gwt.core.client.impl.",oI="com.iriscouch.gwtapp.client.",oE="java.lang.",oR="java.math.",oO="java.util.",oD="msie",ok="null",oL="number",oU="number MathContext",oP="number number",oQ="object",oT="opera",oj="org.timepedia.exporter.client.",oF="safari",oH="string",o$="undefined",oV={l:0,m:0,h:524288},oq={l:0,m:4193280,h:1048575},oG={l:4194298,m:4194303,h:1048575},oz={l:4194303,m:4194303,h:1048575},oJ={l:0,m:0,h:0},oK={l:1,m:0,h:0},oW={l:2,m:0,h:0},oZ={l:5,m:0,h:0},oX={l:10,m:0,h:0},oY={l:11,m:0,h:0},o0={l:18,m:0,h:0},o1={l:48,m:0,h:0},o2={l:877824,m:119,h:0},o3={l:1755648,m:238,h:0},o6={l:4194303,m:511,h:0},o4={l:4194303,m:1023,h:0},o5={l:0,m:1024,h:0};(i$=h.prototype={}).eQ=function(n){return this===n},i$.gC=function(){return us},i$.hC=function(){return nF(this)},i$.tS=function(){return this.gC().d+"@"+function(n){var t,e,r;if(t=tU(uK,{6:1},-1,8,1),rv(),e=fO,r=7,n>=0)for(;n>15;)t[r--]=e[15&n],n>>=4;else for(;r>0;)t[r--]=e[15&n],n>>=4;return t[r]=e[15&n],t6(t,r,8)}(this.hC())},i$.toString=function(){return this.tS()},i$.tM=g,i$.cM={},(i$=a.prototype=new h).gC=function(){return ua},i$.j=function(){return this.f},i$.tS=function(){var n,t;return n=this.gC().d,null!=(t=this.j())?n+": "+t:n},i$.cM={6:1,15:1},i$.f=null,(i$=b.prototype=new a).gC=function(){return ub},i$.cM={6:1,15:1},(i$=nr.prototype=l.prototype=new b).gC=function(){return ul},i$.cM={6:1,12:1,15:1},(i$=n1.prototype=(function(){}).prototype=new l).gC=function(){return ug},i$.j=function(){var n,t,e,r,i;return null==this.d&&(this.e=null==(e=this.c)?ok:tt(e)?null==(r=t8(e))?null:r.name:nz(e,1)?op:(nH(e)?e.gC():uw).d,this.b=tt(n=this.c)?null==(i=t8(n))?null:i.message:n+iV,this.d="("+this.e+"): "+this.b+(tt(t=this.c)?function(n){var t=iV;try{for(var e in n)if("name"!=e&&"message"!=e&&"toString"!=e)try{t+="\n "+e+": "+n[e]}catch(n){}}catch(n){}return t}(t8(t)):iV)),this.d},i$.cM={6:1,12:1,15:1},i$.b=null,i$.c=null,i$.d=null,i$.e=null,(i$=w.prototype=new h).gC=function(){return ud};var o9=0,o8=0;(i$=d.prototype=(function(){}).prototype=new w).gC=function(){return um},i$.b=null,i$.c=null,(i$=_.prototype=v.prototype=new h).k=function(){for(var n={},t=[],e=arguments.callee.caller.caller;e;){var r,i,o=this.n(e.toString());t.push(o);var f=i5+o,u=n[f];if(u){for(r=0,i=u.length;r<i;r++)if(u[r]===e)return t}(u||(n[f]=[])).push(e),e=e.caller}return t},i$.n=function(n){var t,e,r,i;return t=n,i=iV,-1!=(e=(t=e8(t)).indexOf("("))&&(r=0==t.indexOf("function")?8:0,i=e8(t.substr(r,e-r))),i.length>0?i:ox},i$.gC=function(){return uy},i$.o=function(n){return[]},(i$=m.prototype=new v).k=function(){return tg(this.o(td()),this.p())},i$.gC=function(){return uS},i$.o=function(n){return eO(this,n)},i$.p=function(){return 2},(i$=y.prototype=(function(){}).prototype=new m).k=function(){return eh(this)},i$.n=function(n){var t,e;return 0==n.length||(0==(e=e8(n)).indexOf("at ")&&(e=n7(e,3)),-1==(t=e.indexOf("["))&&(t=e.indexOf("(")),-1==t)?ox:(-1!=(t=(e=e8(e.substr(0,t-0))).indexOf("."))&&(e=n7(e,t+1)),e.length>0?e:ox)},i$.gC=function(){return uM},i$.o=function(n){return t3(this,n)},i$.p=function(){return 3},(i$=C.prototype=new h).gC=function(){return uB},(i$=x.prototype=(function(){}).prototype=new C).gC=function(){return uA},i$.b=iV,(i$=S.prototype=(function(){}).prototype=new h).gC=function(){return this.aC},i$.aC=null,i$.qI=0;var o7=null,fn=null;(i$=M.prototype=(function(){}).prototype=new h).gC=function(){return uE},i$.cM={2:1},(i$=B.prototype=new h).gC=function(){return uO},i$.cM={6:1,10:1};var ft=null;(i$=ef.prototype=ti.prototype=tM.prototype=tN.prototype=X.prototype=e_.prototype=eu.prototype=tA.prototype=tB.prototype=eJ.prototype=n3.prototype=n6.prototype=tr.prototype=tS.prototype=nL.prototype=A.prototype=new B).eQ=function(n){return e2(this,n)},i$.gC=function(){return uD},i$.hC=function(){return rm(this)},i$.q=function(){return rj(this)},i$.r=function(){return ed(this)},i$.tS=function(){return ip(this)},i$.cM={6:1,8:1,10:1,16:1},i$.b=0,i$.c=0,i$.d=null,i$.e=0,i$.f=0,i$.g=0,i$.i=null;var fe,fr,fi,fo,ff,fu,fc,fs,fh,fa,fb,fl,fg,fw,fd,fp,f_,fv=null,fm=null,fy=null;(i$=nU.prototype=nw.prototype=(function(){}).prototype=new A).s=function(n){var t,e,r;if((e=iE(n))==iV)t=0>ed(this)?ep(this):this;else if(e==ob)t=0>(r=t7(this,new iS(n[0].toString()))).r()?ep(r):r;else throw new nr("Unknown call signature for interim = super.abs: "+e);return new nU(t)},i$.t=function(n){var t,e;if((e=iE(n))==i9)t=r1(this,new X(n[0].toString()));else if(e==i8)t=function(n,t,e){var r,i,o,f;if(r=n.f-t.f,0==t.b&&-1!=t.g||0==n.b&&-1!=n.g||0==e.b)return t7(r1(n,t),e);if((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)<r-1)i=t,f=n;else{if(!((t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)<-r-1))return t7(r1(n,t),e);i=n,f=t}return e.b>=(i.e>0?i.e:nP((i.b-1)*.3010299956639812)+1)?t7(r1(n,t),e):t7(i=new tM((o=i.r())==f.r()?ix(rZ((i.d||(i.d=eP(i.g)),i.d),10),eZ(e4(o))):ix(rZ(ih((i.d||(i.d=eP(i.g)),i.d),eZ(e4(o))),10),eZ(e4(9*o))),i.f+1),e)}(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.add: "+e);return new nU(t)},i$.u=function(){return~~(nB(en(this,8))<<24)>>24},i$.v=function(n){return ic(this,n)},i$.w=function(n){var t,e,r,i;if((i=iE(n))==i9)e=el(this,new X(n[0].toString()));else if(i==i8)e=eg(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.divideAndRemainder: "+i);for(t=0,r=tU(uL,{6:1},3,e.length,0);t<e.length;++t)r[t]=new nU(e[t]);return r},i$.x=function(n){var t,e;if((e=iE(n))==i9)t=ik(this,new X(n[0].toString()));else if(e==i8)t=iT(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.divideToIntegralValue: "+e);return new nU(t)},i$.y=function(n){var t,e,r,i,o,f;if((e=iE(n))==i9)t=iN(this,new X(n[0].toString()));else if("BigDecimal number"==e)r=new X(n[0].toString()),i=n[1],t=ig(this,r,eo(this.f),rQ(i));else if("BigDecimal number number"==e)t=ig(this,new X(n[0].toString()),n[1],rQ(n[2]));else if("BigDecimal number RoundingMode"==e)t=ig(this,new X(n[0].toString()),n[1],ts(n[2].toString()));else if(e==i8)t=iO(this,new X(n[0].toString()),new iS(n[1].toString()));else if("BigDecimal RoundingMode"==e)o=new X(n[0].toString()),f=ts(n[1].toString()),t=ig(this,o,eo(this.f),f);else throw new nr("Unknown call signature for interim = super.divide: "+e);return new nU(t)},i$.z=function(){return t9(ip(this))},i$.eQ=function(n){return e2(this,n)},i$.A=function(){var n,t;return n=ed(this),(t=this.b-this.f/.3010299956639812)<-149||0==n?n*=0:t>129?n*=1/0:n=t9(ip(this)),n},i$.gC=function(){return uk},i$.hC=function(){return rm(this)},i$.B=function(){var n;return this.f<=-32||this.f>(this.e>0?this.e:nP((this.b-1)*.3010299956639812)+1)?0:(n=new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))).f*n.b[0]},i$.C=function(){return nB(en(this,32))},i$.D=function(){return nB(en(this,32))},i$.E=function(){return t9(ip(this))},i$.F=function(n){return new nU(ic(this,n)>=0?this:n)},i$.G=function(n){return new nU(0>=ic(this,n)?this:n)},i$.H=function(n){return new nU(rJ(this,this.f+n))},i$.I=function(n){return new nU(rJ(this,this.f-n))},i$.J=function(n){var t,e;if((e=iE(n))==i9)t=rk(this,new X(n[0].toString()));else if(e==i8)t=tl(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.multiply: "+e);return new nU(t)},i$.K=function(n){var t,e;if((e=iE(n))==iV)t=ep(this);else if(e==ob)t=ep(t7(this,new iS(n[0].toString())));else throw new nr("Unknown call signature for interim = super.negate: "+e);return new nU(t)},i$.L=function(n){var t,e;if((e=iE(n))==iV)t=this;else if(e==ob)t=t7(this,new iS(n[0].toString()));else throw new nr("Unknown call signature for interim = super.plus: "+e);return new nU(t)},i$.M=function(n){var t,e;if((e=iE(n))==oL)t=rd(this,n[0]);else if(e==oU)t=function(n,t,e){var r,i,o,f,u,c;if(o=t<0?-t:t,f=e.b,i=eo(tn(o))+1,u=e,0==t||0==n.b&&-1!=n.g&&t>0)return rd(n,t);if(o>0x3b9ac9ff||0==f&&t<0||f>0&&i>f)throw new ni(oa);for(f>0&&(u=new eW(f+i+1,e.c)),r=t7(n,u),c=~~function(n){var t;if(n<0)return -0x80000000;if(0==n)return 0;for(t=0x40000000;(t&n)==0;t>>=1);return t}(o)>>1;c>0;)r=tl(r,r,u),(o&c)==c&&(r=tl(r,n,u)),c>>=1;return t<0&&(r=iO(fw,r,u)),is(r,e),r}(this,n[0],new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.pow: "+e);return new nU(t)},i$.q=function(){return rj(this)},i$.N=function(n){var t,e;if((e=iE(n))==i9)t=el(this,new X(n[0].toString()))[1];else if(e==i8)t=eg(this,new X(n[0].toString()),new iS(n[1].toString()))[1];else throw new nr("Unknown call signature for interim = super.remainder: "+e);return new nU(t)},i$.O=function(n){return new nU(t7(this,new iS(ea(n.b))))},i$.P=function(){return eo(this.f)},i$.Q=function(n){var t;return new nU((t=this.f-n,this.b<54)?0==this.g?eU(t):new ti(this.g,eK(t)):new tS((this.d||(this.d=eP(this.g)),this.d),eK(t)))},i$.R=function(n){var t,e;if((e=iE(n))==oL)t=r0(this,n[0],(iA(),f6));else if(e==oP)t=r0(this,n[0],rQ(n[1]));else if("number RoundingMode"==e)t=r0(this,n[0],ts(n[1].toString()));else throw new nr("Unknown call signature for interim = super.setScale: "+e);return new nU(t)},i$.S=function(){return~~(nB(en(this,16))<<16)>>16},i$.r=function(){return ed(this)},i$.T=function(){return new nU(function(n){var t,e,r,i,o;if(t=1,e=fm.length-1,r=n.f,0==n.b&&-1!=n.g)return new X(iW);for(n.d||(n.d=eP(n.g)),o=n.d;!o.gb(0);)if(0==(i=r4(o,fm[t]))[1].r())r-=t,t<e&&++t,o=i[0];else{if(1==t)break;t=1}return new tS(o,eK(r))}(this))},i$.U=function(n){var t,e,r,i,o,f;if((e=iE(n))==i9)t=iD(this,new X(n[0].toString()));else if(e==i8)r=new X(n[0].toString()),i=new iS(n[1].toString()),o=r.f-this.f,t=0==r.b&&-1!=r.g||0==this.b&&-1!=this.g||0==i.b?t7(iD(this,r),i):(r.e>0?r.e:nP((r.b-1)*.3010299956639812)+1)<o-1&&i.b<(this.e>0?this.e:nP((this.b-1)*.3010299956639812)+1)?t7(new tM((f=ed(this))!=r.r()?ix(rZ((this.d||(this.d=eP(this.g)),this.d),10),eZ(e4(f))):ix(rZ(ih((this.d||(this.d=eP(this.g)),this.d),eZ(e4(f))),10),eZ(e4(9*f))),this.f+1),i):t7(iD(this,r),i);else throw new nr("Unknown call signature for interim = super.subtract: "+e);return new nU(t)},i$.V=function(){return new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))},i$.W=function(){return new n2(r5(this))},i$.X=function(){return function(n){var t,e,r,i,o,f,u,c;if(f=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)return f;if(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,r=f.length,i=-n.f+r-t,c=new nq(f),n.f>0&&i>=-6)i>=0?n8(c,r-eo(n.f),iK):(te(c.b,t-1,t-1,iZ),n8(c,t+1,tP(fh,0,-eo(i)-1)));else{if(e=r-t,0!=(u=eo(i%3))&&(0==(n.d||(n.d=eP(n.g)),n.d).r()?i+=u=u<0?-u:3-u:(i-=u=u<0?u+3:u,t+=u),e<3))for(o=u-e;o>0;--o)n8(c,r++,iW);r-t>=1&&(te(c.b,t,t,iK),++r),0!=i&&(te(c.b,r,r,oc),i>0&&n8(c,++r,iz),n8(c,++r,iV+r6(r3(i))))}return c.b.b}(this)},i$.Y=function(){return function(n){var t,e,r,i,o,f;if(r=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f||0==n.b&&-1!=n.g&&n.f<0)return r;if(t=0>ed(n)?1:0,e=n.f,i=new Z(r.length+1+((o=eo(n.f))<0?-o:o)),1==t&&(i.b.b+=iJ),n.f>0){if((e-=r.length-t)>=0){for(i.b.b+=iZ;e>fh.length;e-=fh.length)tG(i,fh);n9(i,fh,eo(e)),nE(i,n7(r,t))}else nE(i,(f=eo(e=t-e),r.substr(t,f-t))),i.b.b+=iK,nE(i,n7(r,eo(e)))}else{for(nE(i,n7(r,t));e<-fh.length;e+=fh.length)tG(i,fh);n9(i,fh,eo(-e))}return i.b.b}(this)},i$.tS=function(){return ip(this)},i$.Z=function(){return new nU(new ti(1,this.f))},i$.$=function(){return new n2((this.d||(this.d=eP(this.g)),this.d))},i$.cM={3:1,6:1,8:1,10:1,16:1,24:1},(i$=H.prototype=(function(){}).prototype=new h).gC=function(){return uU};var fC=!1;(i$=rf.prototype=ro.prototype=to.prototype=e9.prototype=tV.prototype=ra.prototype=nG.prototype=iC.prototype=N.prototype=new B)._=function(){return this.f<0?new to(1,this.e,this.b):this},i$.ab=function(){return eq(this)},i$.eQ=function(n){return eV(this,n)},i$.gC=function(){return uP},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.cb=function(){return 0==this.f?this:new to(-this.f,this.e,this.b)},i$.db=function(n){return rL(this,n)},i$.eb=function(n){return tY(this,n)},i$.fb=function(n){return t0(this,n)},i$.r=function(){return this.f},i$.gb=function(n){return rT(this,n)},i$.tS=function(){return iF(this,0)},i$.cM={6:1,8:1,10:1,17:1},i$.b=null,i$.c=-2,i$.d=0,i$.e=0,i$.f=0;var fx,fS,fM,fB,fA,fN=null;(i$=n2.prototype=nD.prototype=nk.prototype=(function(){}).prototype=new N)._=function(){return new n2(this.f<0?new to(1,this.e,this.b):this)},i$.hb=function(n){return new n2(ix(this,n))},i$.ib=function(n){return new n2(0==n.f||0==this.f?(rW(),fA):eV(n,(rW(),fx))?this:eV(this,fx)?n:this.f>0?n.f>0?function(n,t){var e,r,i,o;if(i=np(n.e,t.e),(e=n_(ew(n),ew(t)))>=i)return rW(),fA;for(r=tU(up,{6:1},-1,i,1);e<i;++e)r[e]=n.b[e]&t.b[e];return tZ(o=new to(1,i,r)),o}(this,n):rz(this,n):n.f>0?rz(n,this):this.e>n.e?i_(this,n):i_(n,this))},i$.jb=function(n){return new n2(0==n.f?this:0==this.f?(rW(),fA):eV(this,(rW(),fx))?new n2(r7(n)):eV(n,fx)?fA:this.f>0?n.f>0?function(n,t){var e,r,i,o;for(i=tU(up,{6:1},-1,n.e,1),r=np(n.e,t.e),e=ew(n);e<r;++e)i[e]=n.b[e]&~t.b[e];for(;e<n.e;++e)i[e]=n.b[e];return tZ(o=new to(1,n.e,i)),o}(this,n):function(n,t){var e,r,i,o,f,u;if(r=ew(t),i=ew(n),r>=n.e)return n;for(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),e=i;e<r;++e)o[e]=n.b[e];for(e==r&&(o[e]=n.b[e]&t.b[e]-1,++e);e<f;++e)o[e]=n.b[e]&t.b[e];return tZ(u=new to(1,f,o)),u}(this,n):n.f>0?function(n,t){var e,r,i,o,f,u,c;if(i=ew(n),o=ew(t),i>=t.e)return n;if(c=n_(n.e,t.e),r=i,o>i){for(u=tU(up,{6:1},-1,c,1),f=np(n.e,o);r<f;++r)u[r]=n.b[r];if(r==n.e)for(r=o;r<t.e;++r)u[r]=t.b[r]}else{if(0==(e=-n.b[i]&~t.b[i])){for(f=np(t.e,n.e),++r;r<f&&0==(e=~(n.b[r]|t.b[r]));++r);if(0==e){for(;r<t.e&&0==(e=~t.b[r]);++r);for(;r<n.e&&0==(e=~n.b[r]);++r);if(0==e)return(u=tU(up,{6:1},-1,++c,1))[c-1]=1,new to(-1,c,u)}}(u=tU(up,{6:1},-1,c,1))[r]=-e,++r}for(f=np(t.e,n.e);r<f;++r)u[r]=n.b[r]|t.b[r];for(;r<n.e;++r)u[r]=n.b[r];for(;r<t.e;++r)u[r]=t.b[r];return new to(-1,c,u)}(this,n):function(n,t){var e,r,i,o,f,u,c;if(i=ew(n),r=ew(t),i>=t.e)return rW(),fA;if(f=tU(up,{6:1},-1,u=t.e,1),e=i,i<r){for(f[i]=-n.b[i],o=np(n.e,r),++e;e<o;++e)f[e]=~n.b[e];if(e==n.e){for(;e<r;++e)f[e]=-1;f[e]=t.b[e]-1}else f[e]=~n.b[e]&t.b[e]-1}else r<i?f[i]=-n.b[i]&t.b[i]:f[i]=-n.b[i]&t.b[i]-1;for(o=np(n.e,t.e),++e;e<o;++e)f[e]=~n.b[e]&t.b[e];for(;e<t.e;++e)f[e]=t.b[e];return tZ(c=new to(1,u,f)),c}(this,n))},i$.kb=function(){return function(n){var t,e;if(t=0,0==n.f)return 0;if(e=ew(n),n.f>0)for(;e<n.e;++e)t+=e7(n.b[e]);else{for(t+=e7(-n.b[e]),++e;e<n.e;++e)t+=e7(~n.b[e]);t=(n.e<<5)-t}return t}(this)},i$.ab=function(){return eq(this)},i$.lb=function(n){return new n2(rT(this,n)?ie(this,n):this)},i$.mb=function(n){return rt(this,n)},i$.nb=function(n){return new n2(ia(this,n))},i$.ob=function(n){var t,e,r;for(t=0,r=tU(uT,{6:1},4,(e=r4(this,n)).length,0);t<e.length;++t)r[t]=new n2(e[t]);return r},i$.z=function(){return t9(iF(this,0))},i$.eQ=function(n){return eV(this,n)},i$.pb=function(n){return new n2(function(n,t){if(t<0)throw new ni(ol);return ie(n,t)}(this,n))},i$.A=function(){var n;return(n=t9(iF(this,0)))>34028234663852886e22?1/0:n<-34028234663852886e22?-1/0:n},i$.qb=function(n){return new n2(rR(this,n))},i$.gC=function(){return uQ},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.B=function(){return this.f*this.b[0]},i$.rb=function(n){return function(n,t){var e,r;if(ij(),t<=0||1==n.e&&2==n.b[0])return!0;if(!rT(n,0))return!1;if(1==n.e&&(-1024&n.b[0])==0)return function(n,t){var e,r,i,o;for(r=0,e=n.length-1;r<=e;)if((o=n[i=r+(~~(e-r)>>1)])<t)r=i+1;else{if(!(o>t))return i;e=i-1}return-r-1}(fW,n.b[0])>=0;for(r=1;r<fW.length;++r)if(0==e3(n.b,n.e,fW[r]))return!1;for(r=2,e=eq(n);e<fJ[r];++r);return ir(n,t=r<1+(~~(t-1)>>1)?r:1+(~~(t-1)>>1))}(new n2(this.f<0?new to(1,this.e,this.b):this),n)},i$.sb=function(){return t9(iF(this,0))},i$.tb=function(n){return new n2(1==rt(this,n)?this:n)},i$.ub=function(n){return new n2(-1==rt(this,n)?this:n)},i$.vb=function(n){return new n2(ee(this,n))},i$.wb=function(n){return new n2(rO(this,n))},i$.xb=function(n,t){return new n2(rG(this,n,t))},i$.yb=function(n){return new n2(et(this,n))},i$.cb=function(){return new n2(0==this.f?this:new to(-this.f,this.e,this.b))},i$.zb=function(){return new n2(function(n){if(n.f<0)throw new ni("start < 0: "+n);return function(n){var t,e,r,i,o,f,u,c;if(ij(),o=tU(up,{6:1},-1,fW.length,1),r=tU(uv,{6:1},-1,1024,2),1==n.e&&n.b[0]>=0&&n.b[0]<fW[fW.length-1]){for(e=0;n.b[0]>=fW[e];++e);return fK[e]}for(u=new to(1,n.e,tU(up,{6:1},-1,n.e+1,1)),iB(n.b,0,u.b,0,n.e),rT(n,0)?tW(u,2):u.b[0]|=1,i=u.ab(),t=2;i<fJ[t];++t);for(e=0;e<fW.length;++e)o[e]=(c=fW[e],e3(u.b,u.e,c)-1024);for(;;){for(function(n,t){var e;for(e=0;e<t;++e)n[e]=!1}(r,r.length),e=0;e<fW.length;++e)for(o[e]=(o[e]+1024)%fW[e],i=0==o[e]?0:fW[e]-o[e];i<1024;i+=fW[e])r[i]=!0;for(i=0;i<1024;++i)if(!r[i]&&(tW(f=eb(u),i),ir(f,t)))return f;tW(u,1024)}}(n)}(this))},i$.Ab=function(){return new n2(r7(this))},i$.Bb=function(n){return new n2(eV(n,(rW(),fx))||eV(this,fx)?fx:0==n.f?this:0==this.f?n:this.f>0?n.f>0?this.e>n.e?rg(this,n):rg(n,this):iw(this,n):n.f>0?iw(n,this):ew(n)>ew(this)?rX(n,this):rX(this,n))},i$.db=function(n){return new n2(rL(this,n))},i$.Cb=function(n){return new n2(rH(this,n))},i$.Db=function(n){return new n2(rT(this,n)?this:ie(this,n))},i$.eb=function(n){return new n2(tY(this,n))},i$.fb=function(n){return new n2(t0(this,n))},i$.r=function(){return this.f},i$.Eb=function(n){return new n2(ih(this,n))},i$.gb=function(n){return rT(this,n)},i$.Fb=function(n){var t,e;if((e=iE(n))==iV)t=iF(this,0);else if(e==oL)t=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v;if(iM(),w=n.f,h=n.e,u=n.b,0==w)return iW;if(1==h)return v=th(e4(u[0]),o4),w<0&&(v=eQ(v)),function(n,t){var e,r,i,o;if(10==t||t<2||t>36)return iV+r6(n);if(e=tU(uK,{6:1},-1,65,1),rv(),r=fO,i=64,o=e4(t),rN(n,oJ)){for(;rN(n,o);)e[i--]=r[nB(n4(n,o))],n=iI(n,o,!1);e[i]=r[nB(n)]}else{for(;!rA(n,eQ(o));)e[i--]=r[nB(eQ(n4(n,o)))],n=iI(n,o,!1);e[i--]=r[nB(eQ(n))],e[i]=45}return t6(e,i,65)}(v,t);if(10==t||t<2||t>36)return iF(n,0);if(r=Math.log(t)/Math.log(2),g=tU(uK,{6:1},-1,l=eo(eq(new n2(n.f<0?new to(1,n.e,n.b):n))/r+(w<0?1:0))+1,1),o=l,16!=t)for(iB(u,0,d=tU(up,{6:1},-1,h,1),0,h),_=h,i=fP[t],e=fU[t-2];;){b=ii(d,d,_,e),a=o;do g[--o]=em(b%t,t);while(0!=(b=~~(b/t))&&0!=o)for(c=0,f=i-a+o;c<f&&o>0;++c)g[--o]=48;for(c=_-1;c>0&&0==d[c];--c);if(1==(_=c+1)&&0==d[0])break}else for(c=0;c<h;++c)for(s=0;s<8&&o>0;++s)b=~~u[c]>>(s<<2)&15,g[--o]=em(b,16);for(;48==g[o];)++o;return -1==w&&(g[--o]=45),tP(g,o,l-o)}(this,n[0]);else throw new nr("Unknown call signature for result = super.toString: "+e);return t},i$.Gb=function(n){return new n2(0==n.f?this:0==this.f?n:eV(n,(rW(),fx))?new n2(r7(this)):eV(this,fx)?new n2(r7(n)):this.f>0?n.f>0?this.e>n.e?rw(this,n):rw(n,this):iU(this,n):n.f>0?iU(n,this):ew(n)>ew(this)?io(n,this):io(this,n))},i$.cM={4:1,6:1,8:1,10:1,17:1,24:1},(i$=F.prototype=(function(){}).prototype=new h).gC=function(){return uj};var fI=!1;(i$=nm.prototype=ny.prototype=(function(){}).prototype=new h).gC=function(){return uF},i$.Hb=function(){return this.b.b},i$.Ib=function(){return new nn(this.b.c)},i$.hC=function(){return nM(this.b)},i$.tS=function(){return ea(this.b)},i$.cM={24:1},i$.b=null,(i$=j.prototype=(function(){}).prototype=new h).gC=function(){return uH};var fE=!1;(i$=nn.prototype=nC.prototype=(function(){}).prototype=new h).gC=function(){return u$},i$.Jb=function(){return this.b.b},i$.tS=function(){return this.b.b},i$.cM={5:1,24:1},i$.b=null,(i$=K.prototype=(function(){}).prototype=new h).gC=function(){return uq};var fR=!1;(i$=ni.prototype=(function(){}).prototype=new l).gC=function(){return uG},i$.cM={6:1,12:1,15:1},(i$=no.prototype=V.prototype=(function(){}).prototype=new l).gC=function(){return uJ},i$.cM={6:1,12:1,15:1},(i$=I.prototype=(function(){}).prototype=new h).gC=function(){return uW},i$.tS=function(){return((2&this.c)!=0?"interface ":(1&this.c)!=0?iV:"class ")+this.d},i$.b=null,i$.c=0,i$.d=null,(i$=$.prototype=(function(){}).prototype=new l).gC=function(){return uZ},i$.cM={6:1,12:1,15:1},(i$=E.prototype=new h).eQ=function(n){return this===n},i$.gC=function(){return uh},i$.hC=function(){return nF(this)},i$.tS=function(){return this.b},i$.cM={6:1,8:1,9:1},i$.b=null,i$.c=0,(i$=nf.prototype=q.prototype=R.prototype=new l).gC=function(){return uX},i$.cM={6:1,12:1,15:1},(i$=nu.prototype=G.prototype=O.prototype=new l).gC=function(){return uz},i$.cM={6:1,12:1,15:1},(i$=nc.prototype=z.prototype=(function(){}).prototype=new l).gC=function(){return uY},i$.cM={6:1,12:1,15:1},(i$=nd.prototype=(function(){}).prototype=new R).gC=function(){return u0},i$.cM={6:1,12:1,15:1},(i$=tf.prototype=(function(){}).prototype=new h).gC=function(){return uC},i$.tS=function(){return this.b+iK+this.d+"(Unknown Source"+(this.c>=0?i5+this.c:iV)+")"},i$.cM={6:1,13:1},i$.b=null,i$.c=0,i$.d=null,(i$=String.prototype).eQ=function(n){return tF(this,n)},i$.gC=function(){return uN},i$.hC=function(){var n,t;return nK(),null!=(t=fk[n=i5+this])?t:(null==(t=fD[n])&&(t=function(n){var t,e,r,i;for(t=0,i=(r=n.length)-4,e=0;e<i;)t=n.charCodeAt(e+3)+31*(n.charCodeAt(e+2)+31*(n.charCodeAt(e+1)+31*(n.charCodeAt(e)+31*t)))|0,e+=4;for(;e<r;)t=31*t+nV(n,e++);return 0|t}(this)),256==fL&&(fD=fk,fk={},fL=0),++fL,fk[n]=t)},i$.tS=function(){return this},i$.cM={1:1,6:1,7:1,8:1};var fO,fD,fk,fL=0;(i$=nh.prototype=(function(){}).prototype=new h).gC=function(){return u1},i$.tS=function(){return this.b.b},i$.cM={7:1},(i$=nq.prototype=Z.prototype=W.prototype=(function(){}).prototype=new h).gC=function(){return u2},i$.tS=function(){return this.b.b},i$.cM={7:1},(i$=tI.prototype=(function(){}).prototype=new O).gC=function(){return u3},i$.cM={6:1,12:1,14:1,15:1},(i$=tH.prototype=(function(){}).prototype=new l).gC=function(){return u6},i$.cM={6:1,12:1,15:1},(i$=iS.prototype=eW.prototype=(function(){}).prototype=new h).eQ=function(n){return nz(n,18)&&tT(n,18).b==this.b&&tT(n,18).c==this.c},i$.gC=function(){return u8},i$.hC=function(){return nM(this)},i$.tS=function(){return ea(this)},i$.cM={6:1,18:1},i$.b=0,i$.c=null,(i$=nN.prototype=(function(){}).prototype=new E).gC=function(){return u7},i$.cM={6:1,8:1,9:1,19:1},(i$=P.prototype=new h).Kb=function(n){throw new tH},i$.Lb=function(n){return!!function(n,t){for(var e;n.Pb();)if(e=n.Qb(),null==t?null==e:t_(t,e))return n;return null}(this.Mb(),n)},i$.gC=function(){return ct},i$.tS=function(){var n,t,e,r,i,o,f,u;for(e=new nh,n=null,e.b.b+="[",t=this.Mb();t.Pb();)null!=n?(i=e.b,o=n,i.b+=o):n=", ",r=t.Qb(),f=e.b,u=r===this?"(this Collection)":iV+r,f.b+=u;return e.b.b+="]",e.b.b},(i$=k.prototype=new h).eQ=function(n){var t,e,r,i,o,f;if(n===this)return!0;if(!nz(n,21)||(i=tT(n,21),this.e!=i.e))return!1;for(e=new er(new nt(i).b);nS(e.b);)if(r=(t=tT(tj(e.b),22)).Rb(),o=t.Sb(),!(null==r?this.d:nz(r,1)?i5+tT(r,1)in this.f:rr(this,r,~~tc(r)))||!tC(o,null==r?this.c:nz(r,1)?(f=tT(r,1),this.f[i5+f]):re(this,r,~~tc(r))))return!1;return!0},i$.gC=function(){return ce},i$.hC=function(){var n,t;for(t=0,n=new er(new nt(this).b);nS(n.b);)t+=tT(tj(n.b),22).hC(),t=~~t;return t},i$.tS=function(){var n,t,e,r;for(r="{",n=!1,e=new er(new nt(this).b);nS(e.b);)t=tT(tj(e.b),22),n?r+=", ":n=!0,r+=iV+t.Rb(),r+="=",r+=iV+t.Sb();return r+"}"},i$.cM={21:1},(i$=L.prototype=new k).Ob=function(n,t){return nj(n)===nj(t)||null!=n&&t_(n,t)},i$.gC=function(){return cr},i$.cM={21:1},i$.b=null,i$.c=null,i$.d=!1,i$.e=0,i$.f=null,(i$=U.prototype=new P).eQ=function(n){var t,e,r;if(n===this)return!0;if(!nz(n,23)||(e=tT(n,23)).b.e!=this.Nb())return!1;for(t=new er(e.b);nS(t.b);)if(r=tT(tj(t.b),22),!this.Lb(r))return!1;return!0},i$.gC=function(){return ci},i$.hC=function(){var n,t,e;for(n=0,t=this.Mb();t.Pb();)null!=(e=t.Qb())&&(n+=tc(e),n=~~n);return n},i$.cM={23:1},(i$=nt.prototype=(function(){}).prototype=new U).Lb=function(n){var t,e,r,i,o;return!!(nz(n,22)&&(e=(t=tT(n,22)).Rb(),i=this.b,null==e?i.d:nz(e,1)?i5+tT(e,1)in i.f:rr(i,e,~~tc(e))))&&(r=ei(this.b,e),nj(o=t.Sb())===nj(r)||null!=o&&t_(o,r))},i$.gC=function(){return co},i$.Mb=function(){return new er(this.b)},i$.Nb=function(){return this.b.e},i$.cM={23:1},i$.b=null,(i$=er.prototype=(function(){}).prototype=new h).gC=function(){return cf},i$.Pb=function(){return nS(this.b)},i$.Qb=function(){return tT(tj(this.b),22)},i$.b=null,(i$=D.prototype=new h).eQ=function(n){var t;return!!(nz(n,22)&&(t=tT(n,22),tC(this.Rb(),t.Rb())&&tC(this.Sb(),t.Sb())))},i$.gC=function(){return cu},i$.hC=function(){var n,t;return n=0,t=0,null!=this.Rb()&&(n=tc(this.Rb())),null!=this.Sb()&&(t=tc(this.Sb())),n^t},i$.tS=function(){return this.Rb()+"="+this.Sb()},i$.cM={22:1},(i$=ne.prototype=(function(){}).prototype=new D).gC=function(){return cc},i$.Rb=function(){return null},i$.Sb=function(){return this.b.c},i$.Tb=function(n){return tq(this.b,n)},i$.cM={22:1},i$.b=null,(i$=nA.prototype=(function(){}).prototype=new D).gC=function(){return cs},i$.Rb=function(){return this.b},i$.Sb=function(){var n,t;return n=this.c,t=this.b,n.f[i5+t]},i$.Tb=function(n){var t,e,r,i;return t=this.c,e=this.b,i=t.f,(e=i5+e)in i?r=i[e]:++t.e,i[e]=n,r},i$.cM={22:1},i$.b=null,i$.c=null,(i$=Q.prototype=new P).Kb=function(n){var t;return((t=this.Nb())<0||t>this.c)&&tx(t,this.c),function(n,t,e,r){n.splice(t,0,r)}(this.b,t,0,n),++this.c,!0},i$.eQ=function(n){var t,e,r,i,o;if(n===this)return!0;if(!nz(n,20)||(o=tT(n,20),this.Nb()!=o.c))return!1;for(r=new Y(this),i=new Y(o);r.b<r.c.c;)if(t=tj(r),e=tj(i),!(null==t?null==e:t_(t,e)))return!1;return!0},i$.gC=function(){return ch},i$.hC=function(){var n,t,e;for(t=1,n=new Y(this);n.b<n.c.c;)t=~~(t=31*t+(null==(e=tj(n))?0:tc(e)));return t},i$.Mb=function(){return new Y(this)},i$.cM={20:1},(i$=Y.prototype=(function(){}).prototype=new h).gC=function(){return ca},i$.Pb=function(){return nS(this)},i$.Qb=function(){return tj(this)},i$.b=0,i$.c=null,(i$=nJ.prototype=(function(){}).prototype=new Q).Kb=function(n){return n5(this,n)},i$.Lb=function(n){return -1!=function(n,t,e){for(;e<n.c;++e)if(tC(t,n.b[e]))return e;return -1}(this,n,0)},i$.gC=function(){return cb},i$.Nb=function(){return this.c},i$.cM={6:1,20:1},i$.c=0,(i$=t$.prototype=(function(){}).prototype=new L).gC=function(){return cl},i$.cM={6:1,21:1},(i$=nI.prototype=(function(){}).prototype=new D).gC=function(){return cg},i$.Rb=function(){return this.b},i$.Sb=function(){return this.c},i$.Tb=function(n){var t;return t=this.c,this.c=n,t},i$.cM={22:1},i$.b=null,i$.c=null,(i$=J.prototype=(function(){}).prototype=new l).gC=function(){return cw},i$.cM={6:1,12:1,15:1},(i$=rb.prototype=(function(){}).prototype=new h).gC=function(){return cd},i$.b=0,i$.c=0;var fU,fP,fQ,fT,fj,fF,fH,f$,fV,fq,fG,fz,fJ,fK,fW,fZ,fX,fY,f0,f1,f2,f3,f6,f4,f5,f9,f8,f7,un,ut,ue,ur,ui,uo,uf,uu=0;(i$=T.prototype=new h).gC=function(){return cp},(i$=n0.prototype=(function(){}).prototype=new T).gC=function(){return c_};var uc=function(n){return function(){try{return function(n,t,e){var r;r=0==o9++&&(function(n){var t,e;if(n.b){e=null;do t=n.b,n.b=null,e=rh(t,e);while(n.b)n.b=e}}((na(),fe)),!0);try{return n.apply(t,e)}finally{r&&function(n){var t,e;if(n.c){e=null;do t=n.c,n.c=null,e=rh(t,e);while(n.c)n.c=e}}((na(),fe)),--o9}}(n,this,arguments)}catch(n){throw n}}},us=tu(oE,"Object"),uh=tu(oE,"Enum"),ua=tu(oE,"Throwable"),ub=tu(oE,"Exception"),ul=tu(oE,"RuntimeException"),ug=tu(oA,"JavaScriptException"),uw=tu(oA,"JavaScriptObject$"),ud=tu(oA,"Scheduler"),up=tL(iV,"[I",tp("int")),u_=tL(ov,"Object;",us),uv=tL(iV,"[Z",tp("boolean")),um=tu(oN,"SchedulerImpl"),uy=tu(oN,"StackTraceCreator$Collector"),uC=tu(oE,"StackTraceElement"),ux=tL(ov,"StackTraceElement;",uC),uS=tu(oN,"StackTraceCreator$CollectorMoz"),uM=tu(oN,"StackTraceCreator$CollectorChrome"),uB=tu(oN,"StringBufferImpl"),uA=tu(oN,"StringBufferImplAppend"),uN=tu(oE,op),uI=tL(ov,"String;",uN),uE=tu("com.google.gwt.lang.","LongLibBase$LongEmul"),uR=tL("[Lcom.google.gwt.lang.","LongLibBase$LongEmul;",uE),uO=tu(oE,"Number"),uD=tu(oR,i9),uk=tu(oI,i9),uL=tL(o_,i7,uk),uU=tu(oI,"BigDecimalExporterImpl"),uP=tu(oR,on),uQ=tu(oI,on),uT=tL(o_,oi,uQ),uj=tu(oI,"BigIntegerExporterImpl"),uF=tu(oI,ob),uH=tu(oI,"MathContextExporterImpl"),u$=tu(oI,ow),uV=tL(o_,od,u$),uq=tu(oI,"RoundingModeExporterImpl"),uG=tu(oE,"ArithmeticException"),uz=tu(oE,"IndexOutOfBoundsException"),uJ=tu(oE,"ArrayStoreException"),uK=tL(iV,"[C",tp("char")),uW=tu(oE,"Class"),uZ=tu(oE,"ClassCastException"),uX=tu(oE,"IllegalArgumentException"),uY=tu(oE,"NullPointerException"),u0=tu(oE,"NumberFormatException"),u1=tu(oE,"StringBuffer"),u2=tu(oE,"StringBuilder"),u3=tu(oE,"StringIndexOutOfBoundsException"),u6=tu(oE,"UnsupportedOperationException"),u4=tL(om,i7,uD),u5=tL(iV,"[D",tp("double")),u9=tL(om,oi,uP),u8=tu(oR,ob),u7=(n=function(){return iA(),fZ},(t=new I).d=oR+ow,t.c=n?8:0,t),cn=tL(om,od,u7),ct=tu(oO,"AbstractCollection"),ce=tu(oO,"AbstractMap"),cr=tu(oO,"AbstractHashMap"),ci=tu(oO,"AbstractSet"),co=tu(oO,"AbstractHashMap$EntrySet"),cf=tu(oO,"AbstractHashMap$EntrySetIterator"),cu=tu(oO,"AbstractMapEntry"),cc=tu(oO,"AbstractHashMap$MapEntryNull"),cs=tu(oO,"AbstractHashMap$MapEntryString"),ch=tu(oO,"AbstractList"),ca=tu(oO,"AbstractList$IteratorImpl"),cb=tu(oO,"ArrayList"),cl=tu(oO,"HashMap"),cg=tu(oO,"MapEntryImpl"),cw=tu(oO,"NoSuchElementException"),cd=tu(oO,"Random"),cp=tu(oj,"ExporterBaseImpl"),c_=tu(oj,"ExporterBaseActual");c&&c({moduleName:"gwtapp",sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalEnd"}),i&&i.onScriptLoad&&i.onScriptLoad(eR),eR(null,"ModuleName","moduleBase")}(),n.RoundingMode=e.bigdecimal.RoundingMode,n.MathContext=e.bigdecimal.MathContext,o("BigDecimal"),o("BigInteger")}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:{});
+function o(t){var r=e.bigdecimal[t],i=r;if(r.__init__){for(var o in(i=function(){var n=Array.prototype.slice.call(arguments);return r.__init__(n)}).prototype=r.prototype,r)if(r.hasOwnProperty(o)){if("function"==typeof r[o]&&o.match(/_va$/)){var f=o.replace(/_va$/,"");i[f]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method(t)},i[f].inner_method=r[o]}else i[o]=r[o]}}var u=i.prototype;for(var o in u)if(u.hasOwnProperty(o)&&"function"==typeof u[o]&&o.match(/_va$/)){var f=o.replace(/_va$/,"");u[f]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method.apply(this,[t])},u[f].inner_method=u[o],delete u[o]}n[t]=i}r.userAgent||(r.userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22"),function(){var n,t,o,f=e,u=f.document,c=f.__gwtStatsEvent?function(n){return f.__gwtStatsEvent(n)}:null,s=f.__gwtStatsSessionId?f.__gwtStatsSessionId:null;function h(){}function a(){}function b(){}function l(){}function g(){}function w(){}function d(){}function _(){}function v(){}function m(){}function y(){}function C(){}function x(){}function S(){}function M(){}function B(){}function A(){}function N(){}function I(){}function E(){}function R(){}function O(){}function D(){}function k(){}function L(){}function U(){}function P(){}function Q(){}function T(){}function j(){nY()}function F(){nX()}function H(){tk()}function $(){eF()}function V(){eF()}function q(){eF()}function G(){eF()}function z(){eF()}function J(){eF()}function K(){nZ()}function W(){ns(this)}function Z(){ns(this)}function X(n){iQ(this,n)}function Y(n){this.c=n}function nn(n){this.b=n}function nt(n){this.b=n}function ne(n){this.b=n}function nr(n){eF(),this.f=n}function ni(n){nr.call(this,n)}function no(n){nr.call(this,n)}function nf(n){nr.call(this,n)}function nu(n){nr.call(this,n)}function nc(n){nr.call(this,n)}function ns(n){n.b=new x}function nh(){this.b=new x}function na(){na=g,fe=new d}function nb(){nb=g,o=new n0}function nl(n,t){nb(),n[oC]=t}function ng(n,t){nb(),function(n,t){var e,r,i,o,u,c,s,h,a,b;for(u=0,s=iv(n,oy,0),c=f;u<s.length;++u)tF(s[u],"client")||((h=c)[a=s[u]]||(h[a]={}),c=c[s[u]]);for(i=0,o=(e=iv(t,oy,0)).length;i<o;++i)tF(e8(r=e[i]),iV)||((b=c)[r]||(b[r]={}),c=c[r])}(n,t)}function nw(){iP(),iQ(this,iW)}function nd(n){nf.call(this,n)}function np(n,t){return n<t?n:t}function n_(n,t){return n>t?n:t}function nv(n,t){return!rN(n,t)}function nm(n){this.b=new iS(n)}function ny(){this.b=(rF(),fF)}function nC(){this.b=(iA(),f3)}function nx(n,t){var e;nb(),e=o.b,n?function(n,t,e,r){var i=n.b[r];if(i)for(var o=0,f=i.length;o<f;++o){var u=i[o],c=u.Rb();if(n.Ob(t,c)){var s=u.Sb();return u.Tb(e),s}}else i=n.b[r]=[];var u=new nI(t,e);return i.push(u),++n.e,null}(e,n,t,~~nF(n)):tq(e,t)}function nS(n){return n.b<n.c.c}function nM(n){return n.b<<3|n.c.c}function nB(n){return n.l|n.m<<22}function nA(n,t){this.c=n,this.b=t}function nN(n,t){this.b=n,this.c=t}function nI(n,t){this.b=n,this.c=t}function nE(n,t){var e;return e=n.b,e.b+=t,n}function nR(n){return nb(),ey(o,n)}function nO(n){return nb(),function(n,t){var e,r,i;if(null==t)return null;for((i=t[oC])||(i=[],t[oC]=i),r=i,e=0;e<t.length;++e)r[e]=ey(n,t[e]);return r}(o,n)}function nD(n){rW(),nG.call(this,n)}function nk(){rW(),nG.call(this,iW)}function nL(n){tS.call(this,n,0)}function nU(n){X.call(this,n.tS())}function nP(n){return Math.floor(n)}function nQ(n,t){return iI(n,t,!1)}function nT(n){return ty(n.l,n.m,n.h)}function nj(n){return null==n?null:n}function nF(n){return n.$H||(n.$H=++o8)}function nH(n){return n.tM==g||n$(n,1)}function n$(n,t){return n.cM&&!!n.cM[t]}function nV(n,t){return n.charCodeAt(t)}function nq(n){var t;ns(this),t=this.b,t.b+=n}function nG(n){rW(),ra.call(this,n,10)}function nz(n,t){return null!=n&&n$(n,t)}function nJ(){this.b=tU(u_,{6:1},0,0,0)}function nK(){nK=g,fD={},fk={}}function nW(){nW=g,ui=function(n){var t,e,r,i;for(r=0,t={},i=n.length;r<i;++r)t[i5+(e=n[r]).b]=e;return t}((iA(),fZ))}function nZ(){fR||(fR=!0,function(){if(ng(oB,iV),f.bigdecimal.RoundingMode)var n=f.bigdecimal.RoundingMode;f.bigdecimal.RoundingMode=uc(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==u$?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new nC,nl(this.__gwt_instance,this))});var t=f.bigdecimal.RoundingMode.prototype={};if(n)for(p in n)f.bigdecimal.RoundingMode[p]=n[p];f.bigdecimal.RoundingMode.valueOf=uc(function(n){return nR(new nn((iA(),ec((nW(),ui),n))))}),f.bigdecimal.RoundingMode.values=uc(function(){return nO(function(){var n,t,e;for(iA(),iA(),t=tU(uV,{6:1},5,(e=fZ).length,0),n=0;n<e.length;++n)t[n]=new nn(e[n]);return t}())}),t.name=uc(function(){return this.__gwt_instance.Jb()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),f.bigdecimal.RoundingMode.CEILING=uc(function(){return nR(new nn((iA(),fX)))}),f.bigdecimal.RoundingMode.DOWN=uc(function(){return nR(new nn((iA(),fY)))}),f.bigdecimal.RoundingMode.FLOOR=uc(function(){return nR(new nn((iA(),f0)))}),f.bigdecimal.RoundingMode.HALF_DOWN=uc(function(){return nR(new nn((iA(),f1)))}),f.bigdecimal.RoundingMode.HALF_EVEN=uc(function(){return nR(new nn((iA(),f2)))}),f.bigdecimal.RoundingMode.HALF_UP=uc(function(){return nR(new nn((iA(),f3)))}),f.bigdecimal.RoundingMode.UNNECESSARY=uc(function(){return nR(new nn((iA(),f6)))}),f.bigdecimal.RoundingMode.UP=uc(function(){return nR(new nn((iA(),f4)))}),nx(u$,f.bigdecimal.RoundingMode)}())}function nX(){fI||(fI=!0,function(){if(ng(oB,iV),f.bigdecimal.BigInteger)var n=f.bigdecimal.BigInteger;f.bigdecimal.BigInteger=uc(function(){if(1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uQ)this.__gwt_instance=arguments[0];else if(0==arguments.length)this.__gwt_instance=new nk,nl(this.__gwt_instance,this);else if(1==arguments.length){var n;this.__gwt_instance=(n=arguments[0],new nD(n)),nl(this.__gwt_instance,this)}});var t=f.bigdecimal.BigInteger.prototype={};if(n)for(p in n)f.bigdecimal.BigInteger[p]=n[p];f.bigdecimal.BigInteger.__init__=uc(function(n){return nR(function(n){var t,e;if(rW(),(e=iE(n))==oH)t=new nG(n[0].toString());else if("string number"==e)t=new ra(n[0].toString(),n[1]);else throw new nr("Unknown call signature for obj = new java.math.BigInteger: "+e);return new n2(t)}(n))}),t.abs=uc(function(){return nR(this.__gwt_instance._())}),t.add=uc(function(n){return nR(this.__gwt_instance.hb(n.__gwt_instance))}),t.and=uc(function(n){return nR(this.__gwt_instance.ib(n.__gwt_instance))}),t.andNot=uc(function(n){return nR(this.__gwt_instance.jb(n.__gwt_instance))}),t.bitCount=uc(function(){return this.__gwt_instance.kb()}),t.bitLength=uc(function(){return this.__gwt_instance.ab()}),t.clearBit=uc(function(n){return nR(this.__gwt_instance.lb(n))}),t.compareTo=uc(function(n){return this.__gwt_instance.mb(n.__gwt_instance)}),t.divide=uc(function(n){return nR(this.__gwt_instance.nb(n.__gwt_instance))}),t.doubleValue=uc(function(){return this.__gwt_instance.z()}),t.equals=uc(function(n){return this.__gwt_instance.eQ(n)}),t.flipBit=uc(function(n){return nR(this.__gwt_instance.pb(n))}),t.floatValue=uc(function(){return this.__gwt_instance.A()}),t.gcd=uc(function(n){return nR(this.__gwt_instance.qb(n.__gwt_instance))}),t.getLowestSetBit=uc(function(){return this.__gwt_instance.bb()}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.intValue=uc(function(){return this.__gwt_instance.B()}),t.isProbablePrime=uc(function(n){return this.__gwt_instance.rb(n)}),t.max=uc(function(n){return nR(this.__gwt_instance.tb(n.__gwt_instance))}),t.min=uc(function(n){return nR(this.__gwt_instance.ub(n.__gwt_instance))}),t.mod=uc(function(n){return nR(this.__gwt_instance.vb(n.__gwt_instance))}),t.modInverse=uc(function(n){return nR(this.__gwt_instance.wb(n.__gwt_instance))}),t.modPow=uc(function(n,t){return nR(this.__gwt_instance.xb(n.__gwt_instance,t.__gwt_instance))}),t.multiply=uc(function(n){return nR(this.__gwt_instance.yb(n.__gwt_instance))}),t.negate=uc(function(){return nR(this.__gwt_instance.cb())}),t.nextProbablePrime=uc(function(){return nR(this.__gwt_instance.zb())}),t.not=uc(function(){return nR(this.__gwt_instance.Ab())}),t.or=uc(function(n){return nR(this.__gwt_instance.Bb(n.__gwt_instance))}),t.pow=uc(function(n){return nR(this.__gwt_instance.db(n))}),t.remainder=uc(function(n){return nR(this.__gwt_instance.Cb(n.__gwt_instance))}),t.setBit=uc(function(n){return nR(this.__gwt_instance.Db(n))}),t.shiftLeft=uc(function(n){return nR(this.__gwt_instance.eb(n))}),t.shiftRight=uc(function(n){return nR(this.__gwt_instance.fb(n))}),t.signum=uc(function(){return this.__gwt_instance.r()}),t.subtract=uc(function(n){return nR(this.__gwt_instance.Eb(n.__gwt_instance))}),t.testBit=uc(function(n){return this.__gwt_instance.gb(n)}),t.toString_va=uc(function(n){return this.__gwt_instance.Fb(n)}),t.xor=uc(function(n){return nR(this.__gwt_instance.Gb(n.__gwt_instance))}),t.divideAndRemainder=uc(function(n){return nO(this.__gwt_instance.ob(n.__gwt_instance))}),t.longValue=uc(function(){return this.__gwt_instance.sb()}),f.bigdecimal.BigInteger.valueOf=uc(function(n){return nR((rW(),new n2(eZ(r3(n)))))}),f.bigdecimal.BigInteger.ONE=uc(function(){return nR((rW(),new n2(fS)))}),f.bigdecimal.BigInteger.TEN=uc(function(){return nR((rW(),new n2(fB)))}),f.bigdecimal.BigInteger.ZERO=uc(function(){return nR((rW(),new n2(fA)))}),nx(uQ,f.bigdecimal.BigInteger)}())}function nY(){fE||(fE=!0,new K,function(){if(ng(oB,iV),f.bigdecimal.MathContext)var n=f.bigdecimal.MathContext;f.bigdecimal.MathContext=uc(function(){if(1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uF)this.__gwt_instance=arguments[0];else if(0==arguments.length)this.__gwt_instance=new ny,nl(this.__gwt_instance,this);else if(1==arguments.length){var n;this.__gwt_instance=(n=arguments[0],new nm(n)),nl(this.__gwt_instance,this)}});var t=f.bigdecimal.MathContext.prototype={};if(n)for(p in n)f.bigdecimal.MathContext[p]=n[p];t.getPrecision=uc(function(){return this.__gwt_instance.Hb()}),t.getRoundingMode=uc(function(){return nR(this.__gwt_instance.Ib())}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),f.bigdecimal.MathContext.DECIMAL128=uc(function(){return nR(new nm(ea((rF(),fQ))))}),f.bigdecimal.MathContext.DECIMAL32=uc(function(){return nR(new nm(ea((rF(),fT))))}),f.bigdecimal.MathContext.DECIMAL64=uc(function(){return nR(new nm(ea((rF(),fj))))}),f.bigdecimal.MathContext.UNLIMITED=uc(function(){return nR(new nm(ea((rF(),fF))))}),nx(uF,f.bigdecimal.MathContext)}())}function n0(){this.b=new t$,new t$,new t$}function n1(n){eF(),this.c=n,function(n,t){var e,r,i,o;for(e=0,r=(o=tU(ux,{6:1},13,(i=t3(n,tt(t.c)?t8(t.c):null)).length,0)).length;e<r;++e)o[e]=new tf(i[e]);ej(o)}(new y,this)}function n2(n){rW(),nG.call(this,iF(n,0))}function n3(n){eJ.call(this,n,0,n.length)}function n6(n,t){nL.call(this,n),is(this,t)}function n4(n,t){return iI(n,t,!0),o7}function n5(n,t){return rn(n.b,n.c++,t),!0}function n9(n,t,e){var r,i;return r=n.b,i=tP(t,0,e),r.b+=i,n}function n8(n,t,e){return te(n.b,t,t,e),n}function n7(n,t){return n.substr(t,n.length-t)}function tn(n){return Math.log(n)*Math.LOG10E}function tt(n){return null!=n&&n.tM!=g&&!n$(n,1)}function te(n,t,e,r){n.b=n.b.substr(0,t-0)+r+n7(n.b,e)}function tr(n,t,e){tS.call(this,n,t),is(this,e)}function ti(n,t){this.g=n,this.f=t,this.b=rE(n)}function to(n,t,e){rW(),this.f=n,this.e=t,this.b=e}function tf(n){this.b="Unknown",this.d=n,this.c=-1}function tu(n,t){var e;return(e=new I).d=n+t,e}function tc(n){return nH(n)?n.hC():nF(n)}function ts(n){return iA(),ec((nW(),ui),n)}function th(n,t){return ty(n.l&t.l,n.m&t.m,n.h&t.h)}function ta(n,t){return ty(n.l|t.l,n.m|t.m,n.h|t.h)}function tb(n,t){return ty(n.l^t.l,n.m^t.m,n.h^t.h)}function tl(n,t,e){var r;return is(r=rk(n,t),e),r}function tg(n,t){return n.length>=t&&n.splice(0,t),n}function tw(n){return nz(n,15)?n:new n1(n)}function td(){try{null.a()}catch(n){return n}}function tp(n){var t;return(t=new I).d=iV+n,t.c=1,t}function t_(n,t){return nH(n)?n.eQ(t):n===t}function tv(n,t){return n.l==t.l&&n.m==t.m&&n.h==t.h}function tm(n,t){return n.l!=t.l||n.m!=t.m||n.h!=t.h}function ty(n,t,e){return(i$=new M).l=n,i$.m=t,i$.h=e,i$}function tC(n,t){return nj(n)===nj(t)||null!=n&&t_(n,t)}function tx(n,t){throw new nu("Index: "+n+", Size: "+t)}function tS(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tM(n,t){if(!n)throw new z;this.f=t,tO(this,n)}function tB(n,t,e,r){eJ.call(this,n,t,e),is(this,r)}function tA(n,t){eJ.call(this,n,0,n.length),is(this,t)}function tN(n,t){eJ.call(this,t5(n),0,n.length),is(this,t)}function tI(n){nr.call(this,"String index out of range: "+n)}function tE(n,t){var e,r;return e=n.b,r=String.fromCharCode(t),e.b+=r,n}function tR(n,t){rC(n.b,n.b,n.e,t.b,t.e),tZ(n),n.c=-2}function tO(n,t){n.d=t,n.b=t.ab(),n.b<54&&(n.g=ri(eN(t)))}function tD(){tD=g,fr=[],fi=[],function(n,t,e){var r,i=0;for(var o in n)(r=n[o])&&(t[i]=o,e[i]=r,++i)}(new S,fr,fi)}function tk(){fC||(fC=!0,new j,new F,function(){if(ng(oB,iV),f.bigdecimal.BigDecimal)var n=f.bigdecimal.BigDecimal;f.bigdecimal.BigDecimal=uc(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==uk?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new nw,nl(this.__gwt_instance,this))});var t=f.bigdecimal.BigDecimal.prototype={};if(n)for(p in n)f.bigdecimal.BigDecimal[p]=n[p];f.bigdecimal.BigDecimal.ROUND_CEILING=2,f.bigdecimal.BigDecimal.ROUND_DOWN=1,f.bigdecimal.BigDecimal.ROUND_FLOOR=3,f.bigdecimal.BigDecimal.ROUND_HALF_DOWN=5,f.bigdecimal.BigDecimal.ROUND_HALF_EVEN=6,f.bigdecimal.BigDecimal.ROUND_HALF_UP=4,f.bigdecimal.BigDecimal.ROUND_UNNECESSARY=7,f.bigdecimal.BigDecimal.ROUND_UP=0,f.bigdecimal.BigDecimal.__init__=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==on)t=new nL(new nG(n[0].toString()));else if("BigInteger number"==e)t=new tS(new nG(n[0].toString()),n[1]);else if("BigInteger number MathContext"==e)t=new tr(new nG(n[0].toString()),n[1],new iS(n[2].toString()));else if("BigInteger MathContext"==e)t=new n6(new nG(n[0].toString()),new iS(n[1].toString()));else if(e==oS)t=new n3(t5(n[0].toString()));else if("array number number"==e)t=new eJ(t5(n[0].toString()),n[1],n[2]);else if("array number number MathContext"==e)t=new tB(t5(n[0].toString()),n[1],n[2],new iS(n[3].toString()));else if("array MathContext"==e)t=new tA(t5(n[0].toString()),new iS(n[1].toString()));else if(e==oL)t=new eu(n[0]);else if(e==oU)t=new e_(n[0],new iS(n[1].toString()));else if(e==oH)t=new X(n[0].toString());else if("string MathContext"==e)t=new tN(n[0].toString(),new iS(n[1].toString()));else throw new nr("Unknown call signature for obj = new java.math.BigDecimal: "+e);return new nU(t)}(n))}),t.abs_va=uc(function(n){return nR(this.__gwt_instance.s(n))}),t.add_va=uc(function(n){return nR(this.__gwt_instance.t(n))}),t.byteValueExact=uc(function(){return this.__gwt_instance.u()}),t.compareTo=uc(function(n){return this.__gwt_instance.v(n.__gwt_instance)}),t.divide_va=uc(function(n){return nR(this.__gwt_instance.y(n))}),t.divideToIntegralValue_va=uc(function(n){return nR(this.__gwt_instance.x(n))}),t.doubleValue=uc(function(){return this.__gwt_instance.z()}),t.equals=uc(function(n){return this.__gwt_instance.eQ(n)}),t.floatValue=uc(function(){return this.__gwt_instance.A()}),t.hashCode=uc(function(){return this.__gwt_instance.hC()}),t.intValue=uc(function(){return this.__gwt_instance.B()}),t.intValueExact=uc(function(){return this.__gwt_instance.C()}),t.max=uc(function(n){return nR(this.__gwt_instance.F(n.__gwt_instance))}),t.min=uc(function(n){return nR(this.__gwt_instance.G(n.__gwt_instance))}),t.movePointLeft=uc(function(n){return nR(this.__gwt_instance.H(n))}),t.movePointRight=uc(function(n){return nR(this.__gwt_instance.I(n))}),t.multiply_va=uc(function(n){return nR(this.__gwt_instance.J(n))}),t.negate_va=uc(function(n){return nR(this.__gwt_instance.K(n))}),t.plus_va=uc(function(n){return nR(this.__gwt_instance.L(n))}),t.pow_va=uc(function(n){return nR(this.__gwt_instance.M(n))}),t.precision=uc(function(){return this.__gwt_instance.q()}),t.remainder_va=uc(function(n){return nR(this.__gwt_instance.N(n))}),t.round=uc(function(n){return nR(this.__gwt_instance.O(n.__gwt_instance))}),t.scale=uc(function(){return this.__gwt_instance.P()}),t.scaleByPowerOfTen=uc(function(n){return nR(this.__gwt_instance.Q(n))}),t.setScale_va=uc(function(n){return nR(this.__gwt_instance.R(n))}),t.shortValueExact=uc(function(){return this.__gwt_instance.S()}),t.signum=uc(function(){return this.__gwt_instance.r()}),t.stripTrailingZeros=uc(function(){return nR(this.__gwt_instance.T())}),t.subtract_va=uc(function(n){return nR(this.__gwt_instance.U(n))}),t.toBigInteger=uc(function(){return nR(this.__gwt_instance.V())}),t.toBigIntegerExact=uc(function(){return nR(this.__gwt_instance.W())}),t.toEngineeringString=uc(function(){return this.__gwt_instance.X()}),t.toPlainString=uc(function(){return this.__gwt_instance.Y()}),t.toString=uc(function(){return this.__gwt_instance.tS()}),t.ulp=uc(function(){return nR(this.__gwt_instance.Z())}),t.unscaledValue=uc(function(){return nR(this.__gwt_instance.$())}),t.divideAndRemainder_va=uc(function(n){return nO(this.__gwt_instance.w(n))}),t.longValue=uc(function(){return this.__gwt_instance.E()}),t.longValueExact=uc(function(){return this.__gwt_instance.D()}),f.bigdecimal.BigDecimal.valueOf_va=uc(function(n){return nR(function(n){var t,e;if(iP(),(e=iE(n))==oL)t=function(n){if(!isFinite(n)||isNaN(n))throw new nd(oh);return new X(iV+n)}(n[0]);else if(e==oL)t=tX(e4(n[0]));else if(e==oP)t=eL(e4(n[0]),n[1]);else throw new nr("Unknown call signature for bd = java.math.BigDecimal.valueOf: "+e);return new nU(t)}(n))}),f.bigdecimal.BigDecimal.log=uc(function(n){iP(),typeof console!==o$&&console.log&&console.log(n)}),f.bigdecimal.BigDecimal.logObj=uc(function(n){iP(),typeof console!==o$&&console.log&&typeof JSON!==o$&&JSON.stringify&&console.log("object: "+JSON.stringify(n))}),f.bigdecimal.BigDecimal.ONE=uc(function(){return nR((iP(),new nU(fw)))}),f.bigdecimal.BigDecimal.TEN=uc(function(){return nR((iP(),new nU(fd)))}),f.bigdecimal.BigDecimal.ZERO=uc(function(){return nR((iP(),new nU(fp)))}),nx(uk,f.bigdecimal.BigDecimal)}())}function tL(n,t,e){var r;return(r=new I).d=n+t,r.c=4,r.b=e,r}function tU(n,t,e,r,i){var o;return tK(n,t,e,o=function(n,t){var e=Array(t);if(3==n)for(var r=0;r<t;++r){var i={};i.l=i.m=i.h=0,e[r]=i}else if(n>0)for(var i=[null,0,!1][n],r=0;r<t;++r)e[r]=i;return e}(i,r)),o}function tP(n,t,e){var r;return r=t+e,function(n,t,e){if(t<0)throw new tI(t);if(e<t)throw new tI(e-t);if(e>n)throw new tI(e)}(n.length,t,r),t6(n,t,r)}function tQ(n,t){return il(),t<fz.length?rZ(n,fz[t]):et(n,im(t))}function tT(n,t){if(null!=n&&(!n.cM||!n.cM[t]))throw new $;return n}function tj(n){var t,e,r,i;if(n.b>=n.c.c)throw new J;return t=n.c,r=e=n.b++,i=t.c,(r<0||r>=i)&&tx(r,i),t.b[e]}function tF(n,t){return!!nz(t,1)&&String(n)==t}function tH(){nr.call(this,"Add not supported on this collection")}function t$(){this.b=[],this.f={},this.d=!1,this.c=null,this.e=0}function tV(n,t){rW(),this.f=n,this.e=1,this.b=tK(up,{6:1},-1,[t])}function tq(n,t){var e;return e=n.c,n.c=t,!n.d&&(n.d=!0,++n.e),e}function tG(n,t){var e,r;return e=n.b,r=String.fromCharCode.apply(null,t),e.b+=r,n}function tz(n,t,e,r){var i,o;return null==t&&(t=ok),i=n.b,o=t.substr(e,r-e),i.b+=o,n}function tJ(n,t,e,r){var i;return rC(i=tU(up,{6:1},-1,t,1),n,t,e,r),i}function tK(n,t,e,r){return tD(),function(n,t,e){tD();for(var r=0,i=t.length;r<i;++r)n[t[r]]=e[r]}(r,fr,fi),r.aC=n,r.cM=t,r.qI=e,r}function tW(n,t){1==ez(n.b,n.e,t)&&(n.b[n.e]=1,++n.e),n.c=-2}function tZ(n){for(;n.e>0&&0==n.b[--n.e];);0==n.b[n.e++]&&(n.f=0)}function tX(n){return rN(n,oJ)&&nv(n,oY)?fs[nB(n)]:new ef(n,0)}function tY(n,t){return 0==t||0==n.f?n:t>0?e6(n,t):rY(n,-t)}function t0(n,t){return 0==t||0==n.f?n:t>0?rY(n,t):e6(n,-t)}function t1(n){var t;return 0==n.f?-1:((t=ew(n))<<5)+es(n.b[t])}function t2(n){var t;return 0!=(t=nB(n))?es(t):es(nB(rK(n,32)))+32}function t3(n,t){var e;return 0==(e=eO(n,t)).length?(new _).o(t):tg(e,1)}function t6(n,t,e){return n=n.slice(t,e),String.fromCharCode.apply(null,n)}function t4(n,t,e,r){var i;return ib(i=tU(up,{6:1},-1,t+1,1),n,t,e,r),i}function t5(n){var t,e;return t=tU(uK,{6:1},-1,e=n.length,1),function(n,t,e,r){var i;for(i=0;i<t;++i)e[r++]=n.charCodeAt(i)}(n,e,t,0),t}function t9(n){var t,e;if(isNaN(((e=ft)||(e=ft=/^\s*[+-]?((\d+\.?\d*)|(\.\d+))([eE][+-]?\d+)?[dDfF]?\s*$/i),t=e.test(n)?parseFloat(n):Number.NaN)))throw new nd(os+n+iG);return t}function t8(n){if(null!=n&&(n.tM==g||n$(n,1)))throw new $;return n}function t7(n,t){var e;return is(e=new tM((n.d||(n.d=eP(n.g)),n.d),n.f),t),e}function en(n,t){var e;if(eq(e=new n2(r5(n)))<t)return eN(e);throw new ni(og)}function et(n,t){return 0==t.f||0==n.f?fA:(il(),function n(t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x;return(il(),e.e>t.e&&(c=t,t=e,e=c),e.e<63)?(b=t,l=e,(_=(g=b.e)+(w=l.e),v=b.f!=l.f?-1:1,2==_)?(x=nB(y=iR(th(e4(b.b[0]),o4),th(e4(l.b[0]),o4))),0==(C=nB(rP(y,32)))?new tV(v,x):new to(v,2,tK(up,{6:1},-1,[x,C]))):(eG(b.b,g,l.b,w,d=tU(up,{6:1},-1,_,1)),tZ(m=new to(v,_,d)),m)):(u=(-2&t.e)<<4,h=t.fb(u),a=e.fb(u),i=ih(t,h.eb(u)),o=ih(e,a.eb(u)),s=n(h,a),r=n(i,o),f=(f=ix(ix(f=n(ih(h,i),ih(o,a)),s),r)).eb(u),ix(ix(s=s.eb(u<<1),f),r))}(n,t))}function ee(n,t){var e;if(t.f<=0)throw new ni(or);return(e=rH(n,t)).f<0?ix(e,t):e}function er(n){var t;t=new nJ,n.d&&n5(t,new ne(n)),function(n,t){var e=n.f;for(var r in e)if(58==r.charCodeAt(0)){var i=new nA(n,r.substring(1));t.Kb(i)}}(n,t),function(n,t){var e=n.b;for(var r in e){var i=parseInt(r,10);if(r==i)for(var o=e[i],f=0,u=o.length;f<u;++f)t.Kb(o[f])}}(n,t),this.b=new Y(t)}function ei(n,t){var e;return null==t?n.c:nz(t,1)?(e=tT(t,1),n.f[i5+e]):re(n,t,~~tc(t))}function eo(n){return~~Math.max(Math.min(n,0x7fffffff),-0x80000000)}function ef(n,t){this.f=t,this.b=eX(n),this.b<54?this.g=ri(n):this.d=eZ(n)}function eu(n){if(!isFinite(n)||isNaN(n))throw new nd(oh);iQ(this,n.toPrecision(20))}function ec(n,t){var e;if(e=n[i5+t])return e;if(null==t)throw new z;throw new q}function es(n){var t,e;if(0==n)return 32;for(t=1,e=0;(t&n)==0;t<<=1)++e;return e}function eh(n){var t;return 0==(t=tg(t3(n,td()),3)).length&&(t=tg((new _).k(),1)),t}function ea(n){var t,e,r,i,o;return tG(t=new Z,fH),e=n.b,r=t.b,r.b+=e,t.b.b+=iq,tG(t,f$),i=n.c,o=t.b,o.b+=i,t.b.b}function eb(n){var t;return t=tU(up,{6:1},-1,n.e,1),iB(n.b,0,t,0,n.e),new to(n.f,n.e,t)}function el(n,t){var e;return rn(e=tU(u4,{6:1},16,2,0),0,ik(n,t)),rn(e,1,iD(n,rk(e[0],t))),e}function eg(n,t,e){var r;return rn(r=tU(u4,{6:1},16,2,0),0,iT(n,t,e)),rn(r,1,iD(n,rk(r[0],t))),r}function ew(n){var t;if(-2==n.c){if(0==n.f)t=-1;else for(t=0;0==n.b[t];++t);n.c=t}return n.c}function ed(n){return n.b<54?n.g<0?-1:+(n.g>0):(n.d||(n.d=eP(n.g)),n.d).r()}function ep(n){return n.b<54?new ti(-n.g,n.f):new tM((n.d||(n.d=eP(n.g)),n.d).cb(),n.f)}function e_(n,t){if(!isFinite(n)||isNaN(n))throw new nd(oh);iQ(this,n.toPrecision(20)),is(this,t)}function ev(n,t){return isNaN(n)?+!isNaN(t):isNaN(t)?-1:n<t?-1:+(n>t)}function em(n,t){return t<2||t>36||n<0||n>=t?0:n<10?48+n&65535:97+n-10&65535}function ey(n,t){var e,r;return t?((e=t[oC])||(e=new(r=t.gC(),t8(ei(n.b,r)))(t),t[oC]=e),e):null}function eC(n){var t,e;return 32==(e=r$(n.h))?32==(t=r$(n.m))?r$(n.l)+32:t+20-10:e-12}function ex(n){return ty(4194303&n,~~n>>22&4194303,1048575*(n<0))}function eS(){eS=g,fo=ty(4194303,4194303,524287),ff=ty(0,0,524288),fu=e4(1),e4(2),fc=e4(0)}function eM(n,t){ib(n.b,n.b,n.e,t.b,t.e),n.e=np(n_(n.e,t.e)+1,n.b.length),tZ(n),n.c=-2}function eB(n,t){var e;e=~~t>>5,n.e+=e+ +!(r$(n.b[n.e-1])-(31&t)>=0),rx(n.b,n.b,e,31&t),tZ(n),n.c=-2}function eA(n,t){var e,r;e=~~t>>5,n.e<e||n.ab()<=t||(r=32-(31&t),n.e=e+1,n.b[e]&=r<32?-1>>>r:0,tZ(n))}function eN(n){var t;return t=n.e>1?ta(rU(e4(n.b[1]),32),th(e4(n.b[0]),o4)):th(e4(n.b[0]),o4),iR(e4(n.f),t)}function eI(n,t,e){var r;for(r=e-1;r>=0&&n[r]==t[r];--r);return r<0?0:nv(th(e4(n[r]),o4),th(e4(t[r]),o4))?-1:1}function eE(n,t,e){var r,i,o;for(i=0,r=0;i<e;++i)o=t[i],n[i]=o<<1|r,r=~~o>>>31;0!=r&&(n[e]=r)}function eR(n,t,e,r){if(iH=t,n)try{uc(iy)()}catch(e){n(t)}else uc(iy)()}function eO(n,t){var e,r,i;for(e=0,r=(i=t&&t.stack?t.stack.split("\n"):[]).length;e<r;++e)i[e]=n.n(i[e]);return i}function eD(n,t){var e,r;if(r=~~t>>5==n.e-1&&n.b[n.e-1]==1<<(31&t))for(e=0;r&&e<n.e-1;++e)r=0==n.b[e];return r}function ek(n){var t;if(0!=n.d)return n.d;for(t=0;t<n.b.length;++t)n.d=33*n.d+(-1&n.b[t]);return n.d=n.d*n.f,n.d}function eL(n,t){return 0==t?tX(n):tv(n,oJ)&&t>=0&&t<f_.length?f_[t]:new ef(n,t)}function eU(n){return n==eo(n)?eL(oJ,eo(n)):n>=0?new ef(oJ,0x7fffffff):new ef(oJ,-0x80000000)}function eP(n){return(rW(),n<0)?-1!=n?new rf(-1,-n):fx:n<=10?fM[eo(n)]:new rf(1,n)}function eQ(n){var t,e,r;return t=~n.l+1&4194303,e=~n.m+ +(0==t)&4194303,r=~n.h+ +(0==t&&0==e)&1048575,ty(t,e,r)}function eT(n){var t,e,r;t=~n.l+1&4194303,e=~n.m+ +(0==t)&4194303,r=~n.h+ +(0==t&&0==e)&1048575,n.l=t,n.m=e,n.h=r}function ej(n){var t,e,r;for(r=0,e=tU(ux,{6:1},13,n.length,0),t=n.length;r<t;++r){if(!n[r])throw new z;e[r]=n[r]}}function eF(){var n,t,e,r;for(n=0,t=(r=tU(ux,{6:1},13,(e=eh(new y)).length,0)).length;n<t;++n)r[n]=new tf(e[n]);ej(r)}function eH(n){var t,e,r,i;return 0==n.f?n:(eE(t=tU(up,{6:1},-1,e=(i=n.e)+1,1),n.b,i),tZ(r=new to(n.f,e,t)),r)}function e$(n,t,e,r){var i,o;return o=tU(up,{6:1},-1,((i=e.e)<<1)+1,1),eG(n.b,np(i,n.e),t.b,np(i,t.e),o),function(n,t,e){var r,i,o,f,u,c,s;for(r=0,u=t.b,c=t.e,s=oJ;r<c;++r){for(o=0,i=oJ,f=nB((il(),iR(th(e4(n[r]),o4),th(e4(e),o4))));o<c;++o)i=eY(eY(iR(th(e4(f),o4),th(e4(u[o]),o4)),th(e4(n[r+o]),o4)),th(e4(nB(i)),o4)),n[r+o]=nB(i),i=rP(i,32);s=eY(s,eY(th(e4(n[r+c]),o4),i)),n[r+c]=nB(s),s=rP(s,32)}for(o=0,n[c<<1]=nB(s);o<c+1;++o)n[o]=n[o+c]}(o,e,r),function(n,t){var e,r,i,o,f;if(!(e=0!=n[o=t.e])){for(i=t.b,e=!0,r=o-1;r>=0;--r)if(n[r]!=i[r]){e=0!=n[r]&&rA(th(e4(n[r]),o4),th(e4(i[r]),o4));break}}return f=new to(1,o+1,n),e&&tR(f,t),tZ(f),f}(o,e)}function eV(n,t){var e;return n===t||!!nz(t,17)&&(e=tT(t,17),n.f==e.f&&n.e==e.e&&function(n,t){var e;for(e=n.e-1;e>=0&&n.b[e]==t[e];--e);return e<0}(n,e.b))}function eq(n){var t,e;return 0==n.f?0:(t=n.e<<5,e=n.b[n.e-1],n.f<0&&ew(n)==n.e-1&&(e=~~(e-1)),t-=r$(e))}function eG(n,t,e,r,i){il(),0!=t&&0!=r&&(1==t?i[r]=rc(i,e,r,n[0]):1==r?i[t]=rc(i,n,t,e[0]):function(n,t,e,r,i){var o,f,u,c;if(nj(n)===nj(t)&&r==i){iu(n,r,e);return}for(u=0;u<r;++u){for(c=0,f=oJ,o=n[u];c<i;++c)f=eY(eY(iR(th(e4(o),o4),th(e4(t[c]),o4)),th(e4(e[u+c]),o4)),th(e4(nB(f)),o4)),e[u+c]=nB(f),f=rP(f,32);e[u+i]=nB(f)}}(n,e,i,t,r))}function ez(n,t,e){var r,i;for(i=0,r=th(e4(e),o4);tm(r,oJ)&&i<t;++i)r=eY(r,th(e4(n[i]),o4)),n[i]=nB(r),r=rK(r,32);return nB(r)}function eJ(n,t,e){try{iQ(this,tP(n,t,e))}catch(n){if(nz(n=tw(n),14))throw new nd(n.f);throw n}}function eK(n){if(n<-0x80000000)throw new ni("Overflow");if(!(n>0x7fffffff))return eo(n);throw new ni("Underflow")}function eW(n,t){if(rF(),n<0)throw new nf("Digits < 0");if(!t)throw new nc("null RoundingMode");this.b=n,this.c=t}function eZ(n){return(rW(),nv(n,oJ))?tm(n,oz)?new ro(-1,eQ(n)):fx:rA(n,oX)?new ro(1,n):fM[nB(n)]}function eX(n){var t;return nv(n,oJ)&&(n=ty(4194303&~n.l,4194303&~n.m,1048575&~n.h)),64-(0!=(t=nB(rK(n,32)))?r$(t):r$(nB(n))+32)}function eY(n,t){var e,r,i;return e=n.l+t.l,r=n.m+t.m+(~~e>>22),i=n.h+t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e0(n,t){var e,r,i;return e=n.l-t.l,r=n.m-t.m+(~~e>>22),i=n.h-t.h+(~~r>>22),ty(4194303&e,4194303&r,1048575&i)}function e1(n,t){var e;if(e=t-1,n.f>0){for(;!n.gb(e);)--e;return t-1-e}for(;n.gb(e);)--e;return t-1-n_(e,n.bb())}function e2(n,t){var e;return n===t||!!nz(t,16)&&(e=tT(t,16)).f==n.f&&(n.b<54?e.g==n.g:n.d.eQ(e.d))}function e3(n,t,e){var r,i,o;for(o=oJ,r=t-1;r>=0;--r)i=r2(eY(rU(o,32),th(e4(n[r]),o4)),e),o=e4(nB(rK(i,32)));return nB(o)}function e6(n,t){var e,r,i,o;return e=~~t>>5,t&=31,rx(r=tU(up,{6:1},-1,i=n.e+e+ +(0!=t),1),n.b,e,t),tZ(o=new to(n.f,i,r)),o}function e4(n){var t,e;return n>-129&&n<128?(t=n+128,null==fn&&(fn=tU(uR,{6:1},2,256,0)),(e=fn[t])||(e=fn[t]=ex(n)),e):ex(n)}function e5(n){var t,e,r;return(rW(),n<fN.length)?fN[n]:(e=~~n>>5,t=31&n,(r=tU(up,{6:1},-1,e+1,1))[e]=1<<t,new to(1,e+1,r))}function e9(n){rW(),0==n.length?(this.f=0,this.e=1,this.b=tK(up,{6:1},-1,[0])):(this.f=1,this.e=n.length,this.b=n,tZ(this))}function e8(n){return 0==n.length||n[0]>iq&&n[n.length-1]>iq?n:n.replace(/^(\s*)/,iV).replace(/\s*$/,iV)}function e7(n){return n-=~~n>>1&0x55555555,n=(~~(n=(~~n>>2&0x33333333)+(0x33333333&n))>>4)+n&0xf0f0f0f,n+=~~n>>8,63&(n+=~~n>>16)}function rn(n,t,e){if(null!=e){var r;if(n.qI>0&&(r=n.qI,!e.cM||!e.cM[r])||n.qI<0&&(e.tM==g||n$(e,1)))throw new V}return n[t]=e}function rt(n,t){return n.f>t.f?1:n.f<t.f?-1:n.e>t.e?n.f:n.e<t.e?-t.f:n.f*eI(n.b,t.b,n.e)}function re(n,t,e){var r=n.b[e];if(r)for(var i=0,o=r.length;i<o;++i){var f=r[i],u=f.Rb();if(n.Ob(t,u))return f.Sb()}return null}function rr(n,t,e){var r=n.b[e];if(r)for(var i=0,o=r.length;i<o;++i){var f=r[i].Rb();if(n.Ob(t,f))return!0}return!1}function ri(n){if(tv(n,(eS(),ff)))return -0x8000000000000000;if(!rN(n,fc)){var t;return-((t=eQ(n)).l+4194304*t.m+0x100000000000*t.h)}return n.l+4194304*n.m+0x100000000000*n.h}function ro(n,t){this.f=n,tv(th(t,oq),oJ)?(this.e=1,this.b=tK(up,{6:1},-1,[nB(t)])):(this.e=2,this.b=tK(up,{6:1},-1,[nB(t),nB(rK(t,32))]))}function rf(n,t){this.f=n,t<0x100000000?(this.e=1,this.b=tK(up,{6:1},-1,[~~t])):(this.e=2,this.b=tK(up,{6:1},-1,[~~(t%0x100000000),~~(t/0x100000000)]))}function ru(n){var t,e,r;t=th(e4(n.b[0]),o4),e=oK,r=oW;do tm(th(iR(t,e),r),oJ)&&(e=ta(e,r)),r=rU(r,1);while(nv(r,o5))return nB(th(e=eQ(e),o4))}function rc(n,t,e,r){var i,o;for(il(),i=oJ,o=0;o<e;++o)i=eY(iR(th(e4(t[o]),o4),th(e4(r),o4)),th(e4(nB(i)),o4)),n[o]=nB(i),i=rP(i,32);return nB(i)}function rs(n,t,e){var r,i,o,f,u;return i=e.e<<5,r=ee(n.eb(i),e),u=ee(e5(i),e),o=ru(e),f=1==e.e?function(n,t,e,r,i){var o,f;for(f=n,o=e.ab()-1;o>=0;--o)f=e$(f,f,r,i),(e.b[~~o>>5]&1<<(31&o))!=0&&(f=e$(f,t,r,i));return f}(u,r,t,e,o):function(n,t,e,r,i){var o,f,u,c,s,h,a;for(s=tU(u9,{6:1},17,8,0),h=n,rn(s,0,t),a=e$(t,t,r,i),f=1;f<=7;++f)rn(s,f,e$(s[f-1],a,r,i));for(f=e.ab()-1;f>=0;--f)if((e.b[~~f>>5]&1<<(31&f))!=0){for(c=1,o=f,u=f-3>0?f-3:0;u<=f-1;++u)(e.b[~~u>>5]&1<<(31&u))!=0&&(u<o?(o=u,c=c<<f-u^1):c^=1<<u-o);for(u=o;u<=f;++u)h=e$(h,h,r,i);h=e$(s[~~(c-1)>>1],h,r,i),f=o}else h=e$(h,h,r,i);return h}(u,r,t,e,o),e$(f,(rW(),fS),e,o)}function rh(n,t){var e,r,i,o;for(e=0,r=n.length;e<r;++e){i=n[e];try{i[1]?i[0].Ub()&&((o=t)||(o=[]),o[o.length]=i,t=o):i[0].Ub()}catch(n){if(!nz(n=tw(n),12))throw n}}return t}function ra(n,t){if(null==n)throw new z;if(t<2||t>36)throw new nd("Radix out of range");if(0==n.length)throw new nd("Zero length BigInteger");(function(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d;for(s=l=t.length,45==t.charCodeAt(0)?(a=-1,b=1,--l):(a=1,b=0),o=~~(l/(f=(iM(),fP)[e])),0!=(d=l%f)&&++o,c=tU(up,{6:1},-1,o,1),r=fU[e-2],u=0,g=b+(0==d?f:d),w=b;w<s;w=g,g+=f)i=r8(t.substr(w,g-w),e),il(),h=rc(c,c,u,r)+ez(c,u,i),c[u++]=h;n.f=a,n.e=u,n.b=c,tZ(n)})(this,n,t)}function rb(){var n,t,e;r_(),n=0xffffff&eo(Math.floor(5960464477539063e-23*(e=uu+++(new Date).getTime()))),t=eo(e-0x1000000*n),this.b=1502^n,this.c=0xece66d^t}function rl(n,t,e,r){var i;if(e>r)return 1;if(e<r)return -1;for(i=e-1;i>=0&&n[i]==t[i];--i);return i<0?0:nv(th(e4(n[i]),o4),th(e4(t[i]),o4))?-1:1}function rg(n,t){var e,r,i;for(r=tU(up,{6:1},-1,i=n.e,1),np(ew(n),ew(t)),e=0;e<t.e;++e)r[e]=n.b[e]|t.b[e];for(;e<i;++e)r[e]=n.b[e];return new to(1,i,r)}function rw(n,t){var e,r,i,o;for(r=tU(up,{6:1},-1,i=n.e,1),e=np(ew(n),ew(t));e<t.e;++e)r[e]=n.b[e]^t.b[e];for(;e<n.e;++e)r[e]=n.b[e];return tZ(o=new to(1,i,r)),o}function rd(n,t){var e;if(0==t)return fw;if(t<0||t>0x3b9ac9ff)throw new ni(oa);return e=n.f*t,0==n.b&&-1!=n.g?eU(e):new tS((n.d||(n.d=eP(n.g)),n.d).db(t),eK(e))}function rp(n,t){return t<2||t>36?-1:n>=48&&n<48+(t<10?t:10)?n-48:n>=97&&n<t+97-10?n-97+10:n>=65&&n<t+65-10?n-65+10:-1}function r_(){var n,t,e;for(n=32,r_=g,uo=tU(u5,{6:1},-1,25,1),uf=tU(u5,{6:1},-1,33,1),e=152587890625e-16;n>=0;--n)uf[n]=e,e*=.5;for(n=24,t=1;n>=0;--n)uo[n]=t,t*=.5}function rv(){rv=g,fO=tK(uK,{6:1},-1,[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])}function rm(n){var t;return 0!=n.c||(n.b<54?(t=r3(n.g),n.c=nB(th(t,oz)),n.c=33*n.c+nB(th(rK(t,32),oz)),n.c=17*n.c+eo(n.f)):n.c=17*n.d.hC()+eo(n.f)),n.c}function ry(n,t,e,r){var i,o,f,u,c;return o=(c=n/t)>0?Math.floor(c):Math.ceil(c),f=n%t,u=ev(n*t,0),0!=f&&(i=ev((f<=0?0-f:f)*2,t<=0?0-t:t),o+=it(1&eo(o),u*(5+i),r)),new ti(o,e)}function rC(n,t,e,r,i){var o,f;for(f=0,o=oJ;f<i;++f)o=eY(o,e0(th(e4(t[f]),o4),th(e4(r[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<e;++f)o=eY(o,th(e4(t[f]),o4)),n[f]=nB(o),o=rK(o,32)}function rx(n,t,e,r){var i,o;if(0==r)iB(t,0,n,e,n.length-e);else for(o=32-r,n[n.length-1]=0,i=n.length-1;i>e;--i)n[i]|=~~t[i-e-1]>>>o,n[i-1]=t[i-e-1]<<r;for(i=0;i<e;++i)n[i]=0}function rS(n,t,e){return e<fl.length&&n_(n.b,t.b+fg[eo(e)])+1<54?new ti(n.g+t.g*fl[eo(e)],n.f):new tM(ix((n.d||(n.d=eP(n.g)),n.d),tQ((t.d||(t.d=eP(t.g)),t.d),eo(e))),n.f)}function rM(n){return c({moduleName:iH,sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:(new Date).getTime(),type:"onModuleLoadStart",className:n})}function rB(n,t){var e,r,i;if(i=n.r(),0!=t&&0!=n.r()){if(r=~~t>>5,n.e-=r,!rD(n.b,n.e,n.b,r,31&t)&&i<0){for(e=0;e<n.e&&-1==n.b[e];++e)n.b[e]=0;e==n.e&&++n.e,++n.b[e]}tZ(n),n.c=-2}}function rA(n,t){var e,r;return e=~~n.h>>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>t.l:!(0==r||n.h<t.h||n.h==t.h&&n.m<t.m||n.h==t.h&&n.m==t.m&&n.l<=t.l)}function rN(n,t){var e,r;return e=~~n.h>>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>=t.l:!(0==r||n.h<t.h||n.h==t.h&&n.m<t.m||n.h==t.h&&n.m==t.m&&n.l<t.l)}function rI(n,t){var e,r,i;i=(e=t2(n))<(r=t2(t))?e:r,0!=e&&(n=rP(n,e)),0!=r&&(t=rP(t,r));do rN(n,t)?n=rP(n=e0(n,t),t2(n)):t=rP(t=e0(t,n),t2(t));while(tm(n,oJ))return rU(t,i)}function rE(n){var t,e;return n>-0x800000000000&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),e=eo(nP(Math.log(n)/.6931471805599453)),(!t||n!=Math.pow(2,e))&&++e,e):eX(r3(n))}function rR(n,t){var e,r;return(e=n._(),r=t._(),0==e.r())?r:0==r.r()?e:(1==e.e||2==e.e&&e.b[1]>0)&&(1==r.e||2==r.e&&r.b[1]>0)?eZ(rI(eN(e),eN(r))):function(n,t){var e,r,i,o;i=(e=n.bb())<(r=t.bb())?e:r,rB(n,e),rB(t,r),1==rt(n,t)&&(o=n,n=t,t=o);do{if(1==t.e||2==t.e&&t.b[1]>0){t=eZ(rI(eN(n),eN(t)));break}if(t.e>1.2*n.e)0!=(t=rH(t,n)).r()&&rB(t,t.bb());else do tR(t,n),rB(t,t.bb());while(rt(t,n)>=0)o=t,t=n,n=o}while(0!=o.f)return t.eb(i)}(eb(e),eb(r))}function rO(n,t){var e;if(t.f<=0)throw new ni(or);if(!(n.gb(0)||t.gb(0)))throw new ni(oe);if(1==t.e&&1==t.b[0])return fA;if(0==(e=function(n,t){var e,r,i,o,f,u,c,s,h,a,b;if(0==n.f)throw new ni(oe);if(!t.gb(0))return function(n,t){var e,r,i,o,f,u,c,s,h,a,b;for(h=tU(up,{6:1},-1,(o=n_(n.e,t.e))+1,1),b=tU(up,{6:1},-1,o+1,1),iB(t.b,0,h,0,t.e),iB(n.b,0,b,0,n.e),s=new to(t.f,t.e,h),a=new to(n.f,n.e,b),u=new to(0,1,tU(up,{6:1},-1,o+1,1)),(c=new to(1,1,tU(up,{6:1},-1,o+1,1))).b[0]=1,e=0,r=0,f=t.ab();!eD(s,e)&&!eD(a,r);)if(0!=(i=e1(s,f))&&(eB(s,i),e>=r?eB(u,i):(rB(c,r-e<i?r-e:i),i-(r-e)>0&&eB(u,i-r+e)),e+=i),0!=(i=e1(a,f))&&(eB(a,i),r>=e?eB(c,i):(rB(u,e-r<i?e-r:i),i-(e-r)>0&&eB(c,i-e+r)),r+=i),s.r()==a.r()?e<=r?(rq(s,a),rq(u,c)):(rq(a,s),rq(c,u)):e<=r?(rV(s,a),rV(u,c)):(rV(a,s),rV(c,u)),0==a.r()||0==s.r())throw new ni(oe);return eD(a,r)&&(u=c,a.r()!=s.r()&&(s=s.cb())),s.gb(f)&&(u=0>u.r()?u.cb():ih(t,u)),0>u.r()&&(u=ix(u,t)),u}(n,t);for(o=32*t.e,a=eb(t),c=new to(1,1,tU(up,{6:1},-1,(f=n_((b=eb(n)).e,a.e))+1,1)),(s=new to(1,1,tU(up,{6:1},-1,f+1,1))).b[0]=1,e=0,(r=a.bb())>(i=b.bb())?(rB(a,r),rB(b,i),eB(c,i),e+=r-i):(rB(a,r),rB(b,i),eB(s,r),e+=i-r),c.f=1;b.r()>0;){for(;rt(a,b)>0;)tR(a,b),h=a.bb(),rB(a,h),eM(c,s),eB(s,h),e+=h;for(;0>=rt(a,b)&&(tR(b,a),0!=b.r());)h=b.bb(),rB(b,h),eM(s,c),eB(c,h),e+=h}if(!(1==a.e&&1==a.b[0]))throw new ni(oe);return rt(c,t)>=0&&tR(c,t),c=ih(t,c),u=ru(t),e>o&&(c=e$(c,(rW(),fS),t,u),e-=o),c=e$(c,e5(o-e),t,u)}(ee(n._(),t),t)).f)throw new ni(oe);return n.f<0?ih(t,e):e}function rD(n,t,e,r,i){var o,f,u;for(f=0,o=!0;f<r;++f)o&=0==e[f];if(0==i)iB(e,r,n,0,t);else{for(u=32-i,o&=e[f]<<u==0,f=0;f<t-1;++f)n[f]=~~e[f+r]>>>i|e[f+r+1]<<u;n[f]=~~e[f+r]>>>i,++f}return o}function rk(n,t){var e;return(e=n.f+t.f,0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)?eU(e):n.b+t.b<54?new ti(n.g*t.g,eK(e)):new tS(et((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),eK(e))}function rL(n,t){var e;if(t<0)throw new ni("Negative exponent");if(0==t)return fS;if(1==t||n.eQ(fS)||n.eQ(fA))return n;if(!n.gb(0)){for(e=1;!n.gb(e);)++e;return et(e5(e*t),n.fb(e).db(t))}return function(n,t){var e,r;for(il(),rW(),r=fS,e=n;t>1;t>>=1)(1&t)!=0&&(r=et(r,e)),e=1==e.e?et(e,e):new e9(iu(e.b,e.e,tU(up,{6:1},-1,e.e<<1,1)));return et(r,e)}(n,t)}function rU(n,t){var e,r,i;return(t&=63)<22?(e=n.l<<t,r=n.m<<t|~~n.l>>22-t,i=n.h<<t|~~n.m>>22-t):t<44?(e=0,r=n.l<<t-22,i=n.m<<t-22|~~n.l>>44-t):(e=0,r=0,i=n.l<<t-44),ty(4194303&e,4194303&r,1048575&i)}function rP(n,t){var e,r,i,o;return t&=63,e=1048575&n.h,t<22?(o=~~e>>>t,i=~~n.m>>t|e<<22-t,r=~~n.l>>t|n.m<<22-t):t<44?(o=0,i=~~e>>>t-22,r=~~n.m>>t-22|n.h<<44-t):(o=0,i=0,r=~~e>>>t-44),ty(4194303&r,4194303&i,1048575&o)}function rQ(n){switch(iA(),n){case 2:return fX;case 1:return fY;case 3:return f0;case 5:return f1;case 6:return f2;case 4:return f3;case 7:return f6;case 0:return f4;default:throw new nf("Invalid rounding mode")}}function rT(n,t){var e,r,i;if(0==t)return(1&n.b[0])!=0;if(t<0)throw new ni(ol);if((i=~~t>>5)>=n.e)return n.f<0;if(e=n.b[i],t=1<<(31&t),n.f<0){if(i<(r=ew(n)))return!1;e=r==i?-e:~e}return(e&t)!=0}function rj(n){var t,e;return n.e>0||(t=1,e=1,n.b<54?(n.b>=1&&(e=n.g),t+=Math.log(e<=0?0-e:e)*Math.LOG10E):(t+=(n.b-1)*.3010299956639812,0!=ia((n.d||(n.d=eP(n.g)),n.d),im(t)).r()&&++t),n.e=eo(t)),n.e}function rF(){rF=g,fQ=new eW(34,(iA(),f2)),fT=new eW(7,f2),fj=new eW(16,f2),fF=new eW(0,f3),fH=tK(uK,{6:1},-1,[112,114,101,99,105,115,105,111,110,61]),f$=tK(uK,{6:1},-1,[114,111,117,110,100,105,110,103,77,111,100,101,61])}function rH(n,t){var e,r,i,o;if(0==t.f)throw new ni(ot);return((o=n.e)!=(e=t.e)?o>e?1:-1:eI(n.b,t.b,o))==-1?n:(r=tU(up,{6:1},-1,e,1),1==e?r[0]=e3(n.b,o,t.b[0]):r=iL(null,o-e+1,n.b,o,t.b,e),tZ(i=new to(n.f,e,r)),i)}function r$(n){var t,e,r;return n<0?0:0==n?32:(e=16-(t=~~(r=-(~~n>>16))>>16&16)+(t=~~(r=(n=~~n>>t)-256)>>16&8),n<<=t,e+=t=~~(r=n-4096)>>16&4,n<<=t,e+=t=~~(r=n-16384)>>16&2,n<<=t,e+2-(t=(r=~~n>>14)&~(~~r>>1)))}function rV(n,t){if(0==n.f)iB(t.b,0,n.b,0,t.e);else{if(0==t.f)return;n.f==t.f?ib(n.b,n.b,n.e,t.b,t.e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f)}n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rq(n,t){var e;e=rt(n,t),0==n.f?(iB(t.b,0,n.b,0,t.e),n.f=-t.f):n.f!=t.f?(ib(n.b,n.b,n.e,t.b,t.e),n.f=e):rl(n.b,t.b,n.e,t.e)>0?rC(n.b,n.b,n.e,t.b,t.e):(r9(n.b,n.b,n.e,t.b,t.e),n.f=-n.f),n.e=n_(n.e,t.e)+1,tZ(n),n.c=-2}function rG(n,t,e){var r,i,o,f,u,c,s,h,a,b;if(e.f<=0)throw new ni(or);return(r=n,(1==e.e&&1==e.b[0])|t.f>0&0==r.f)?fA:0==r.f&&0==t.f?fS:(t.f<0&&(r=rO(n,e),t=t.cb()),i=e.gb(0)?rs(r._(),t,e):(o=r._(),f=t,u=e.bb(),h=rs(o,f,c=e.fb(u)),a=function(n,t,e){var r,i,o,f,u;for(rW(),f=fS,i=eb(t),r=eb(n),n.gb(0)&&eA(i,e-1),eA(r,e),o=i.ab()-1;o>=0;--o)eA(u=eb(f),e),f=et(f,u),(i.b[~~o>>5]&1<<(31&o))!=0&&eA(f=et(f,r),e);return eA(f,e),f}(o,f,u),s=function(n,t){var e,r,i,o;for(e=1,(r=new e9(tU(up,{6:1},-1,1<<t,1))).e=1,r.b[0]=1,r.f=1;e<t;++e)i=et(n,r),o=e,(i.b[~~o>>5]&1<<(31&o))!=0&&(r.b[~~e>>5]|=1<<(31&e));return r}(c,u),eA(b=et(ih(a,h),s),u),b.f<0&&(b=ix(b,e5(u))),ix(h,et(c,b))),r.f<0&&t.gb(0)&&(i=ee(et(ih(e,fS),i),e)),i)}function rz(n,t){var e,r,i,o,f,u,c;if(i=ew(n),(r=ew(t))>=n.e)return rW(),fA;for(f=tU(up,{6:1},-1,u=n.e,1),(e=i>r?i:r)==r&&(f[e]=-t.b[e]&n.b[e],++e),o=np(t.e,n.e);e<o;++e)f[e]=~t.b[e]&n.b[e];if(e>=t.e)for(;e<n.e;++e)f[e]=n.b[e];return tZ(c=new to(1,u,f)),c}function rJ(n,t){return 0==n.b&&-1!=n.g?eU(t>0?t:0):t>=0?n.b<54?new ti(n.g,eK(t)):new tS((n.d||(n.d=eP(n.g)),n.d),eK(t)):-t<fl.length&&n.b+fg[eo(-t)]<54?new ti(n.g*fl[eo(-t)],0):new tS(tQ((n.d||(n.d=eP(n.g)),n.d),eo(-t)),0)}function rK(n,t){var e,r,i,o,f;return t&=63,(r=(524288&(e=n.h))!=0)&&(e|=-1048576),t<22?(f=~~e>>t,o=~~n.m>>t|e<<22-t,i=~~n.l>>t|n.m<<22-t):t<44?(f=1048575*!!r,o=~~e>>t-22,i=~~n.m>>t-22|e<<44-t):(f=1048575*!!r,o=4194303*!!r,i=~~e>>t-44),ty(4194303&i,4194303&o,1048575&f)}function rW(){var n;for(n=0,rW=g,fS=new tV(1,1),fB=new tV(1,10),fA=new tV(0,0),fx=new tV(-1,1),fM=tK(u9,{6:1},17,[fA,fS,new tV(1,2),new tV(1,3),new tV(1,4),new tV(1,5),new tV(1,6),new tV(1,7),new tV(1,8),new tV(1,9),fB]),fN=tU(u9,{6:1},17,32,0);n<fN.length;++n)rn(fN,n,eZ(rU(oK,n)))}function rZ(n,t){var e,r,i,o,f,u,c,s,h;return(il(),0==(s=n.f))?(rW(),fA):(r=n.e,e=n.b,1==r)?(c=nB(i=iR(th(e4(e[0]),o4),th(e4(t),o4))),0==(f=nB(rP(i,32)))?new tV(s,c):new to(s,2,tK(up,{6:1},-1,[c,f]))):((o=tU(up,{6:1},-1,u=r+1,1))[r]=rc(o,e,r,t),tZ(h=new to(s,u,o)),h)}function rX(n,t){var e,r,i,o,f,u;if(r=ew(t),(i=ew(n))>=t.e)return t;if(r>=n.e)return n;if(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),r==i)o[i]=-(-n.b[i]|-t.b[i]),e=i;else{for(e=r;e<i;++e)o[e]=t.b[e];o[e]=t.b[e]&n.b[e]-1}for(++e;e<f;++e)o[e]=n.b[e]&t.b[e];return tZ(u=new to(-1,f,o)),u}function rY(n,t){var e,r,i,o,f;if(r=~~t>>5,t&=31,r>=n.e)return n.f<0?(rW(),fx):(rW(),fA);if(rD(i=tU(up,{6:1},-1,(o=n.e-r)+1,1),o,n.b,r,t),n.f<0){for(e=0;e<r&&0==n.b[e];++e);if(e<r||t>0&&n.b[e]<<32-t!=0){for(e=0;e<o&&-1==i[e];++e)i[e]=0;e==o&&++o,++i[e]}}return tZ(f=new to(n.f,o,i)),f}function r0(n,t,e){var r;if(!e)throw new z;return 0==(r=t-n.f)?n:r>0?r<fl.length&&n.b+fg[eo(r)]<54?new ti(n.g*fl[eo(r)],t):new tS(tQ((n.d||(n.d=eP(n.g)),n.d),eo(r)),t):n.b<54&&-r<fl.length?ry(n.g,fl[eo(-r)],t,e):id((n.d||(n.d=eP(n.g)),n.d),im(-r),t,e)}function r1(n,t){var e;if(e=n.f-t.f,0==n.b&&-1!=n.g){if(e<=0)return t;if(0==t.b&&-1!=t.g)return n}else if(0==t.b&&-1!=t.g&&e>=0)return n;return 0!=e?e>0?rS(n,t,e):rS(t,n,-e):n_(n.b,t.b)+1<54?new ti(n.g+t.g,n.f):new tM(ix((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f)}function r2(n,t){var e,r,i,o,f;return(r=th(e4(t),o4),rN(n,oJ))?(o=iI(n,r,!1),f=n4(n,r)):(o=iI(e=rP(n,1),i=e4(~~t>>>1),!1),f=eY(rU(f=n4(e,i),1),th(n,oK)),(1&t)!=0&&(rA(o,f)?rA(e0(o,f),r)?(f=eY(f,e0(rU(r,1),o)),o=e0(o,oW)):(f=eY(f,e0(r,o)),o=e0(o,oK)):f=e0(f,o))),ta(rU(f,32),th(o,o4))}function r3(n){var t,e,r,i;return isNaN(n)?(eS(),fc):n<-0x8000000000000000?(eS(),ff):n>=0x8000000000000000?(eS(),fo):(r=!1,n<0&&(r=!0,n=-n),e=0,n>=0x100000000000&&(e=eo(n/0x100000000000),n-=0x100000000000*e),t=0,n>=4194304&&(t=eo(n/4194304),n-=4194304*t),i=ty(eo(n),t,e),r&&eT(i),i)}function r6(n){var t,e,r,i;if(0==n.l&&0==n.m&&0==n.h)return iW;if(524288==n.h&&0==n.m&&0==n.l)return"-9223372036854775808";if(~~n.h>>19!=0)return iJ+r6(eQ(n));for(e=n,r=iV;!(0==e.l&&0==e.m&&0==e.h);){if(e=iI(e,e4(1e9),!0),t=iV+nB(o7),!(0==e.l&&0==e.m&&0==e.h))for(i=9-t.length;i>0;--i)t=iW+t;r=t+r}return r}function r4(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x,S,M,B,A;if(0==(i=t.f))throw new ni(ot);return(r=t.e,e=t.b,1==r)?(g=e[0],(M=n.b,B=n.e,A=n.f,1==B)?(_=iI(w=th(e4(M[0]),o4),d=th(e4(g),o4),!1),y=n4(w,d),A!=i&&(_=eQ(_)),A<0&&(y=eQ(y)),tK(u9,{6:1},17,[eZ(_),eZ(y)])):(m=A==i?1:-1,v=tU(up,{6:1},-1,B,1),C=tK(up,{6:1},-1,[ii(v,M,B,g)]),x=new to(m,B,v),S=new to(A,1,C),tZ(x),tZ(S),tK(u9,{6:1},17,[x,S]))):(a=n.b,((b=n.e)!=r?b>r?1:-1:eI(a,e,b))<0)?tK(u9,{6:1},17,[fA,n]):(l=n.f,f=b-r+1,u=l==i?1:-1,c=iL(o=tU(up,{6:1},-1,f,1),f,a,b,e,r),s=new to(u,f,o),h=new to(l,r,c),tZ(s),tZ(h),tK(u9,{6:1},17,[s,h]))}function r5(n){var t;if(0==n.f||0==n.b&&-1!=n.g)return n.d||(n.d=eP(n.g)),n.d;if(n.f<0)return et((n.d||(n.d=eP(n.g)),n.d),im(-n.f));if(n.f>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)||n.f>(n.d||(n.d=eP(n.g)),n.d).bb()||0!=(t=r4((n.d||(n.d=eP(n.g)),n.d),im(n.f)))[1].r())throw new ni(og);return t[0]}function r9(n,t,e,r,i){var o,f;if(o=oJ,e<i){for(f=0;f<e;++f)o=eY(o,e0(th(e4(r[f]),o4),th(e4(t[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<i;++f)o=eY(o,th(e4(r[f]),o4)),n[f]=nB(o),o=rK(o,32)}else{for(f=0;f<i;++f)o=eY(o,e0(th(e4(r[f]),o4),th(e4(t[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<e;++f)o=e0(o,th(e4(t[f]),o4)),n[f]=nB(o),o=rK(o,32)}}function r8(n,t){var e,r,i,o;if(null==n)throw new nd(ok);if(t<2||t>36)throw new nd("radix "+t+" out of range");for(e=i=+((r=n.length)>0&&45==n.charCodeAt(0));e<r;++e)if(-1==rp(n.charCodeAt(e),t))throw new nd(os+n+iG);if(isNaN(o=parseInt(n,t))||o<-0x80000000||o>0x7fffffff)throw new nd(os+n+iG);return o}function r7(n){var t,e;if(0==n.f)return rW(),fx;if(eV(n,(rW(),fx)))return fA;if(e=tU(up,{6:1},-1,n.e+1,1),n.f>0){if(-1!=n.b[n.e-1])for(t=0;-1==n.b[t];++t);else{for(t=0;t<n.e&&-1==n.b[t];++t);if(t==n.e)return e[t]=1,new to(-n.f,t+1,e)}}else for(t=0;0==n.b[t];++t)e[t]=-1;for(e[t]=n.b[t]+n.f,++t;t<n.e;++t)e[t]=n.b[t];return new to(-n.f,t,e)}function it(n,t,e){var r;switch(r=0,e.c){case 7:if(0!=t)throw new ni(og);break;case 0:r=0==t?0:t<0?-1:1;break;case 2:r=(0==t?0:t<0?-1:1)>0?0==t?0:t<0?-1:1:0;break;case 3:r=(0==t?0:t<0?-1:1)<0?0==t?0:t<0?-1:1:0;break;case 4:(t<0?-t:t)>=5&&(r=0==t?0:t<0?-1:1);break;case 5:(t<0?-t:t)>5&&(r=0==t?0:t<0?-1:1);break;case 6:(t<0?-t:t)+n>5&&(r=0==t?0:t<0?-1:1)}return r}function ie(n,t){var e,r,i,o,f,u,c,s,h;if(s=0==n.f?1:n.f,f=~~t>>5,e=31&t,u=tU(up,{6:1},-1,c=n_(f+1,n.e)+1,1),r=1<<e,iB(n.b,0,u,0,n.e),n.f<0){if(f>=n.e)u[f]=r;else if(f>(i=ew(n)))u[f]^=r;else if(f<i){for(u[f]=-r,o=f+1;o<i;++o)u[o]=-1;u[o]=u[o]--}else if(o=f,u[f]=-(-u[f]^r),0==u[f]){for(++o;-1==u[o];++o)u[o]=0;++u[o]}}else u[f]^=r;return tZ(h=new to(s,c,u)),h}function ir(n,t){var e,r,i,o,f,u,c,s,h;for(r=0,e=(f=ih(n,(rW(),fS))).ab(),o=f.bb(),u=f.fb(o),c=new rb;r<t;++r){if(r<fW.length)s=fK[r];else do s=new iC(e,c);while(rt(s,n)>=0||0==s.f||1==s.e&&1==s.b[0])if(!(1==(h=rG(s,u,n)).e&&1==h.b[0]||h.eQ(f))){for(i=1;i<o;++i)if(!h.eQ(f)&&1==(h=ee(et(h,h),n)).e&&1==h.b[0])return!1;if(!h.eQ(f))return!1}}return!0}function ii(n,t,e,r){var i,o,f,u,c,s,h;for(s=oJ,o=th(e4(r),o4),u=e-1;u>=0;--u)rN(h=ta(rU(s,32),th(e4(t[u]),o4)),oJ)?(c=iI(h,o,!1),s=n4(h,o)):(c=iI(i=rP(h,1),f=e4(~~r>>>1),!1),s=eY(rU(s=n4(i,f),1),th(h,oK)),(1&r)!=0&&(rA(c,s)?rA(e0(c,s),o)?(s=eY(s,e0(rU(o,1),c)),c=e0(c,oW)):(s=eY(s,e0(o,c)),c=e0(c,oK)):s=e0(s,c))),n[u]=nB(th(c,o4));return nB(s)}function io(n,t){var e,r,i,o,f,u,c;if(f=tU(up,{6:1},-1,u=n_(n.e,t.e),1),i=ew(n),e=r=ew(t),i==r)f[r]=-n.b[r]^-t.b[r];else{for(f[r]=-t.b[r],o=np(t.e,i),++e;e<o;++e)f[e]=~t.b[e];if(e==t.e){for(;e<i;++e)f[e]=-1;f[e]=n.b[e]-1}else f[e]=-n.b[e]^~t.b[e]}for(o=np(n.e,t.e),++e;e<o;++e)f[e]=n.b[e]^t.b[e];for(;e<n.e;++e)f[e]=n.b[e];for(;e<t.e;++e)f[e]=t.b[e];return tZ(c=new to(1,u,f)),c}function iu(n,t,e){var r,i,o,f;for(i=0;i<t;++i){for(r=oJ,f=i+1;f<t;++f)r=eY(eY(iR(th(e4(n[i]),o4),th(e4(n[f]),o4)),th(e4(e[i+f]),o4)),th(e4(nB(r)),o4)),e[i+f]=nB(r),r=rP(r,32);e[i+t]=nB(r)}for(eE(e,e,t<<1),r=oJ,i=0,o=0;i<t;++i,++o)r=eY(eY(iR(th(e4(n[i]),o4),th(e4(n[i]),o4)),th(e4(e[o]),o4)),th(e4(nB(r)),o4)),e[o]=nB(r),r=eY(r=rP(r,32),th(e4(e[++o]),o4)),e[o]=nB(r),r=rP(r,32);return e}function ic(n,t){var e,r,i,o,f,u;return(i=ed(n))!=(u=ed(t))?i<u?-1:1:n.f==t.f&&n.b<54&&t.b<54?n.g<t.g?-1:+(n.g>t.g):(r=n.f-t.f,(e=(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1))>r+1)?i:e<r-1?-i:(n.d||(n.d=eP(n.g)),o=n.d,t.d||(t.d=eP(t.g)),f=t.d,r<0?o=et(o,im(-r)):r>0&&(f=et(f,im(r))),rt(o,f))}function is(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g;if(o=t.b,!((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)-o<0||0==o||(r=n.q()-o)<=0)){if(n.b<54){l=r3(fl[c=r]),b=e0(r3(n.f),e4(c)),a=iI(g=r3(n.g),l,!1),tm(h=n4(g,l),oJ)&&(s=tv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?0:nv(e0(rU(nv(h,oJ)?eQ(h):h,1),l),oJ)?-1:1,a=eY(a,e4(it(1&nB(a),(tv(h,oJ)?0:nv(h,oJ)?-1:1)*(5+s),t.c))),tn(ri(nv(a,oJ)?eQ(a):a))>=t.b&&(a=nQ(a,oX),b=e0(b,oK))),n.f=eK(ri(b)),n.e=t.b,n.g=ri(a),n.b=eX(a),n.d=null;return}u=im(r),i=r4((n.d||(n.d=eP(n.g)),n.d),u),f=n.f-r,0!=i[1].r()&&(e=rt(eH(i[1]._()),u),0!=(e=it(+!!i[0].gb(0),i[1].r()*(5+e),t.c))&&rn(i,0,ix(i[0],eZ(e4(e)))),new nL(i[0]).q()>o&&(rn(i,0,ia(i[0],(rW(),fB))),--f)),n.f=eK(f),n.e=o,tO(n,i[0])}}function ih(n,t){var e,r,i,o,f,u,c,s,h,a;if(f=n.f,0==(c=t.f))return n;if(0==f)return t.cb();if((o=n.e)+(u=t.e)==2)return e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f<0&&(e=eQ(e)),c<0&&(r=eQ(r)),eZ(e0(e,r));if(-1==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))a=-c,h=f==c?tJ(t.b,u,n.b,o):t4(t.b,u,n.b,o);else if(a=f,f==c){if(0==i)return rW(),fA;h=tJ(n.b,o,t.b,u)}else h=t4(n.b,o,t.b,u);return tZ(s=new to(a,h.length,h)),s}function ia(n,t){var e,r,i,o,f,u,c,s,h,a;if(0==t.f)throw new ni(ot);return(i=t.f,1==t.e&&1==t.b[0])?t.f>0?n:n.cb():(h=n.f,(s=n.e)+(r=t.e)==2)?(a=nQ(th(e4(n.b[0]),o4),th(e4(t.b[0]),o4)),h!=i&&(a=eQ(a)),eZ(a)):0==(e=s!=r?s>r?1:-1:eI(n.b,t.b,s))?h==i?fS:fx:-1==e?fA:(o=tU(up,{6:1},-1,f=s-r+1,1),u=h==i?1:-1,1==r?ii(o,n.b,s,t.b[0]):iL(o,f,n.b,s,t.b,r),tZ(c=new to(u,f,o)),c)}function ib(n,t,e,r,i){var o,f;if(o=eY(th(e4(t[0]),o4),th(e4(r[0]),o4)),n[0]=nB(o),o=rK(o,32),e>=i){for(f=1;f<i;++f)o=eY(o,eY(th(e4(t[f]),o4),th(e4(r[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<e;++f)o=eY(o,th(e4(t[f]),o4)),n[f]=nB(o),o=rK(o,32)}else{for(f=1;f<e;++f)o=eY(o,eY(th(e4(t[f]),o4),th(e4(r[f]),o4))),n[f]=nB(o),o=rK(o,32);for(;f<i;++f)o=eY(o,th(e4(r[f]),o4)),n[f]=nB(o),o=rK(o,32)}tm(o,oJ)&&(n[f]=nB(o))}function il(){var n,t;for(t=0,il=g,fV=tU(u9,{6:1},17,32,0),fq=tU(u9,{6:1},17,32,0),fG=tK(up,{6:1},-1,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,0x2e90edd,0xe8d4a51,0x48c27395]),fz=tK(up,{6:1},-1,[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9]),n=oK;t<=18;++t)rn(fV,t,eZ(n)),rn(fq,t,eZ(rU(n,t))),n=iR(n,oZ);for(;t<fq.length;++t)rn(fV,t,et(fV[t-1],fV[1])),rn(fq,t,et(fq[t-1],(rW(),fB)))}function ig(n,t,e,r){var i,o,f;if(!r)throw new z;if(0==t.b&&-1!=t.g)throw new ni(of);if(i=n.f-t.f-e,n.b<54&&t.b<54){if(0==i)return ry(n.g,t.g,e,r);if(i>0){if(i<fl.length&&t.b+fg[eo(i)]<54)return ry(n.g,t.g*fl[eo(i)],e,r)}else if(-i<fl.length&&n.b+fg[eo(-i)]<54)return ry(n.g*fl[eo(-i)],t.g,e,r)}return n.d||(n.d=eP(n.g)),o=n.d,t.d||(t.d=eP(t.g)),f=t.d,i>0?f=tQ(f,eo(i)):i<0&&(o=tQ(o,eo(-i))),id(o,f,e,r)}function iw(n,t){var e,r,i,o,f,u,c;if(r=ew(t),(i=ew(n))>=t.e)return t;if(f=tU(up,{6:1},-1,u=t.e,1),r<i)for(e=r;e<i;++e)f[e]=t.b[e];else if(i<r){for(e=i,f[i]=-n.b[i],o=np(n.e,r),++e;e<o;++e)f[e]=~n.b[e];if(e!=n.e)f[e]=~(-t.b[e]|n.b[e]);else{for(;e<r;++e)f[e]=-1;f[e]=t.b[e]-1}++e}else e=i,f[i]=-(-t.b[i]|n.b[i]),++e;for(o=np(t.e,n.e);e<o;++e)f[e]=t.b[e]&~n.b[e];for(;e<t.e;++e)f[e]=t.b[e];return tZ(c=new to(-1,u,f)),c}function id(n,t,e,r){var i,o,f,u,c,s,h;if(u=(f=r4(n,t))[0],0==(s=f[1]).r())return new tS(u,e);if(h=n.r()*t.r(),54>t.ab()?(c=eN(s),o=eN(t),i=tv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?0:nv(e0(rU(nv(c,oJ)?eQ(c):c,1),nv(o,oJ)?eQ(o):o),oJ)?-1:1):i=rt(eH(s._()),t._()),0!=(i=it(+!!u.gb(0),h*(5+i),r))){if(54>u.ab())return eL(eY(eN(u),e4(i)),e);u=ix(u,eZ(e4(i)))}return new tS(u,e)}function ip(n){var t,e,r,i,o,f;return null!=n.i?n.i:n.b<32?(n.i=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;if(iM(),(f=nv(n,oJ))&&(n=eQ(n)),tv(n,oJ))switch(t){case 0:return iW;case 1:return iX;case 2:return iY;case 3:return i0;case 4:return i1;case 5:return i2;case 6:return i3;default:return s=new W,t<0?s.b.b+=i4:s.b.b+=i6,b=s.b,l=-0x80000000==t?"2147483648":iV+-t,b.b+=l,s.b.b}c=tU(uK,{6:1},-1,19,1),e=18,a=n;do u=a,a=nQ(a,oX),c[--e]=65535&nB(eY(o1,e0(u,iR(a,oX))));while(tm(a,oJ))if(r=e0(e0(e0(o0,e4(e)),e4(t)),oK),0==t)return f&&(c[--e]=45),tP(c,e,18-e);if(t>0&&rN(r,oG)){if(rN(r,oJ)){for(o=17,i=e+nB(r);o>=i;--o)c[o+1]=c[o];return c[++i]=46,f&&(c[--e]=45),tP(c,e,18-e+1)}for(o=2;nv(e4(o),eY(eQ(r),oK));++o)c[--e]=48;return c[--e]=46,c[--e]=48,f&&(c[--e]=45),tP(c,e,18-e)}return(h=e+1,s=new Z,f&&(s.b.b+=iJ),18-h>=1)?(tE(s,c[e]),s.b.b+=iK,g=s.b,w=tP(c,e+1,18-e-1),g.b+=w):(d=s.b,_=tP(c,e,18-e),d.b+=_),s.b.b+=oc,rA(r,oJ)&&(s.b.b+=iz),v=s.b,m=iV+r6(r),v.b+=m,s.b.b}(r3(n.g),eo(n.f)),n.i):(i=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)?i:(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,e=i.length,r=-n.f+e-t,f=(o=new W).b,f.b+=i,n.f>0&&r>=-6?r>=0?n8(o,e-eo(n.f),iK):(te(o.b,t-1,t-1,iZ),n8(o,t+1,tP(fh,0,-eo(r)-1))):(e-t>=1&&(te(o.b,t,t,iK),++e),te(o.b,e,e,oc),r>0&&n8(o,++e,iz),n8(o,++e,iV+r6(r3(r)))),n.i=o.b.b,n.i)}function i_(n,t){var e,r,i,o,f,u;if(i=ew(n),o=ew(t),i>=t.e)return n;if(r=o>i?o:i,0==(e=o>i?-t.b[r]&~n.b[r]:o<i?~t.b[r]&-n.b[r]:-t.b[r]&-n.b[r])){for(++r;r<t.e&&0==(e=~(n.b[r]|t.b[r]));++r);if(0==e){for(;r<n.e&&0==(e=~n.b[r]);++r);if(0==e)return(f=tU(up,{6:1},-1,u=n.e+1,1))[u-1]=1,new to(-1,u,f)}}for((f=tU(up,{6:1},-1,u=n.e,1))[r]=-e,++r;r<t.e;++r)f[r]=n.b[r]|t.b[r];for(;r<n.e;++r)f[r]=n.b[r];return new to(-1,u,f)}function iv(n,t,e){for(var r=RegExp(t,"g"),i=[],o=0,f=n,u=null;;){var c=r.exec(f);if(null==c||f==iV||o==e-1&&e>0){i[o]=f;break}i[o]=f.substring(0,c.index),f=f.substring(c.index+c[0].length,f.length),r.lastIndex=0,u==f&&(i[o]=f.substring(0,1),f=f.substring(1)),u=f,o++}if(0==e&&n.length>0){for(var s=i.length;s>0&&i[s-1]==iV;)--s;s<i.length&&i.splice(s,i.length-s)}for(var h=tU(uI,{6:1},1,i.length,0),a=0;a<i.length;++a)h[a]=i[a];return h}function im(n){var t,e,r,i;if(il(),t=eo(n),n<fq.length)return fq[t];if(n<=50)return(rW(),fB).db(t);if(n<=1e3)return fV[1].db(t).eb(t);if(n>1e6)throw new ni("power of ten too big");if(n<=0x7fffffff)return fV[1].db(t).eb(t);for(i=r=fV[1].db(0x7fffffff),e=r3(n-0x7fffffff),t=eo(n%0x7fffffff);rA(e,o6);)i=et(i,r),e=e0(e,o6);for(i=(i=et(i,fV[1].db(t))).eb(0x7fffffff),e=r3(n-0x7fffffff);rA(e,o6);)i=i.eb(0x7fffffff),e=e0(e,o6);return i.eb(t)}function iy(){var n,t;c&&rM("com.iriscouch.gwtapp.client.BigDecimalApp"),nZ(new K),nY(new j),nX(new F),tk(new H),c&&rM("com.google.gwt.user.client.UserAgentAsserter"),tF(oF,n=-1!=(t=r.userAgent.toLowerCase()).indexOf(oT)?oT:-1!=t.indexOf("webkit")||function(){if(-1!=t.indexOf("chromeframe"))return!0;if(typeof e.ActiveXObject!=o$)try{var n=new ActiveXObject("ChromeTab.ChromeFrame");if(n)return n.registerBhoIfNeeded(),!0}catch(n){}return!1}()?oF:-1!=t.indexOf(oD)&&u.documentMode>=9?"ie9":-1!=t.indexOf(oD)&&u.documentMode>=8?"ie8":!function(){var n=/msie ([0-9]+)\.([0-9]+)/.exec(t);if(n&&3==n.length)return 1e3*parseInt(n[1])+parseInt(n[2])>=6e3}()?-1!=t.indexOf("gecko")?"gecko1_8":"unknown":"ie6")||f.alert("ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ("+n+"). Expect more errors.\n"),c&&rM("com.google.gwt.user.client.DocumentModeAsserter"),function(){var n,t,e;for(e=0,t=u.compatMode,n=tK(uI,{6:1},1,[oo]);e<n.length;++e)if(tF(n[e],t))return;1==n.length&&tF(oo,n[0])&&tF("BackCompat",t)}()}function iC(n,t){var e,r,i,o,f;if(rW(),n<0)throw new nf("numBits must be non-negative");if(0==n)this.f=0,this.e=1,this.b=tK(up,{6:1},-1,[0]);else{for(f=0,this.f=1,this.e=~~(n+31)>>5,this.b=tU(up,{6:1},-1,this.e,1);f<this.e;++f)this.b[f]=eo((i=0xece66d*t.b+1502*t.c+(e=Math.floor(5960464477539063e-23*(o=0xece66d*t.c+11))),o-=0x1000000*e,i%=0x1000000,t.b=i,t.c=o,(r=256*t.b+nP(t.c*uf[32]))>=0x80000000&&(r-=0x100000000),r));this.b[this.e-1]>>>=31&-n,tZ(this)}}function ix(n,t){var e,r,i,o,f,u,c,s,h,a,b,l;if(f=n.f,c=t.f,0==f)return t;if(0==c)return n;if((o=n.e)+(u=t.e)==2)return(e=th(e4(n.b[0]),o4),r=th(e4(t.b[0]),o4),f==c)?(l=nB(s=eY(e,r)),0==(b=nB(rP(s,32)))?new tV(f,l):new to(f,2,tK(up,{6:1},-1,[l,b]))):eZ(f<0?e0(r,e):e0(e,r));if(f==c)a=f,h=o>=u?t4(n.b,o,t.b,u):t4(t.b,u,n.b,o);else{if(0==(i=o!=u?o>u?1:-1:eI(n.b,t.b,o)))return rW(),fA;1==i?(a=f,h=tJ(n.b,o,t.b,u)):(a=c,h=tJ(t.b,u,n.b,o))}return tZ(s=new to(a,h.length,h)),s}function iS(n){var t,e,r,i;if(rF(),null==n)throw new nc("null string");if((t=t5(n)).length<27||t.length>45)throw new nf(oM);for(r=0;r<fH.length&&t[r]==fH[r];++r);if(r<fH.length||-1==(e=rp(t[r],10)))throw new nf(oM);for(this.b=10*this.b+e,++r;;){if(-1==(e=rp(t[r],10))){if(32==t[r]){++r;break}throw new nf(oM)}if(this.b=10*this.b+e,this.b<0)throw new nf(oM);++r}for(i=0;i<f$.length&&t[r]==f$[i];++r,++i);if(i<f$.length)throw new nf(oM);this.c=function(n){var t,e,r,i,o;if(iA(),null==n)throw new z;if((e=(r=t5(n)).length)<ur.length||e>ue.length)throw new q;if(o=null,i=null,67==r[0]?(i=fX,o=f5):68==r[0]?(i=fY,o=f9):70==r[0]?(i=f0,o=f8):72==r[0]?e>6&&(68==r[5]?(i=f1,o=f7):69==r[5]?(i=f2,o=un):85==r[5]&&(i=f3,o=ut)):85==r[0]&&(80==r[1]?(i=f4,o=ur):78==r[1]&&(i=f6,o=ue)),i&&e==o.length){for(t=1;t<e&&r[t]==o[t];++t);if(t==e)return i}throw new q}(tP(t,r,t.length-r))}function iM(){iM=g,fU=tK(up,{6:1},-1,[-0x80000000,0x4546b3db,0x40000000,0x48c27395,0x159fd800,0x75db9c97,0x40000000,0x17179149,1e9,0xcc6db61,0x19a10000,0x309f1021,0x57f6c100,0xa2f1b6f,0x10000000,0x18754571,0x247dbc80,0x3547667b,128e7,0x6b5a6e1d,0x6c20a40,0x8d2d931,0xb640000,0xe8d4a51,0x1269ae40,0x17179149,0x1cb91000,0x23744899,729e6,0x34e63b41,0x40000000,0x4cfa3cc1,0x5c13d840,0x6d91b519,0x39aa400]),fP=tK(up,{6:1},-1,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function iB(n,t,e,r,i){var o,f,u,c,s,h,a,b,l;if(null==n||null==e)throw new z;if(b=n.gC(),c=e.gC(),(4&b.c)==0||(4&c.c)==0)throw new no("Must be array types");if(a=b.b,f=c.b,!((1&a.c)!=0?a==f:(1&f.c)==0))throw new no("Array types must match");if(l=n.length,s=e.length,t<0||r<0||i<0||t+i>l||r+i>s)throw new G;if(((1&a.c)==0||(4&a.c)!=0)&&b!=c){if(h=tT(n,11),o=tT(e,11),nj(n)===nj(e)&&t<r)for(t+=i,u=r+i;u-- >r;)rn(o,u,h[--t]);else for(u=r+i;r<u;)rn(o,r++,h[t++])}else Array.prototype.splice.apply(e,[r,i].concat(n.slice(t,t+i)))}function iA(){iA=g,f4=new nN("UP",0),fY=new nN("DOWN",1),fX=new nN("CEILING",2),f0=new nN("FLOOR",3),f3=new nN("HALF_UP",4),f1=new nN("HALF_DOWN",5),f2=new nN("HALF_EVEN",6),f6=new nN("UNNECESSARY",7),fZ=tK(cn,{6:1},19,[f4,fY,fX,f0,f3,f1,f2,f6]),f5=tK(uK,{6:1},-1,[67,69,73,76,73,78,71]),f9=tK(uK,{6:1},-1,[68,79,87,78]),f8=tK(uK,{6:1},-1,[70,76,79,79,82]),f7=tK(uK,{6:1},-1,[72,65,76,70,95,68,79,87,78]),un=tK(uK,{6:1},-1,[72,65,76,70,95,69,86,69,78]),ut=tK(uK,{6:1},-1,[72,65,76,70,95,85,80]),ue=tK(uK,{6:1},-1,[85,78,78,69,67,69,83,83,65,82,89]),ur=tK(uK,{6:1},-1,[85,80])}function iN(n,t){var e,r,i,o,f,u,c,s,h,a;if(n.d||(n.d=eP(n.g)),s=n.d,t.d||(t.d=eP(t.g)),h=t.d,e=n.f-t.f,f=0,i=1,u=fv.length-1,0==t.b&&-1!=t.g)throw new ni(of);if(0==s.r())return eU(e);for(r=rR(s,h),s=ia(s,r),o=(h=ia(h,r)).bb(),h=h.fb(o);;)if(0==(a=r4(h,fv[i]))[1].r())f+=i,i<u&&++i,h=a[0];else{if(1==i)break;i=1}if(!h._().eQ((rW(),fS)))throw new ni("Non-terminating decimal expansion; no exact representable decimal result");return 0>h.r()&&(s=s.cb()),c=eK(e+(o>f?o:f)),new tS(s=(i=o-f)>0?(il(),i<fG.length?rZ(s,fG[i]):i<fV.length?et(s,fV[i]):et(s,fV[1].db(i))):s.eb(-i),c)}function iI(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C;if(0==t.l&&0==t.m&&0==t.h)throw new ni("divide by zero");if(0==n.l&&0==n.m&&0==n.h)return e&&(o7=ty(0,0,0)),ty(0,0,0);if(524288==t.h&&0==t.m&&0==t.l)return 524288==(s=n).h&&0==s.m&&0==s.l?(e&&(o7=ty(0,0,0)),nT((eS(),fu))):(e&&(o7=ty(s.l,s.m,s.h)),ty(0,0,0));if(c=!1,~~t.h>>19!=0&&(t=eQ(t),c=!0),f=((b=(h=t).l)&b-1)!=0||((l=h.m)&l-1)!=0||((a=h.h)&a-1)!=0||0==a&&0==l&&0==b?-1:0==a&&0==l&&0!=b?es(b):0==a&&0!=l&&0==b?es(l)+22:0!=a&&0==l&&0==b?es(a)+44:-1,o=!1,i=!1,r=!1,524288==n.h&&0==n.m&&0==n.l){if(i=!0,o=!0,-1!=f)return u=rK(n,f),c&&eT(u),e&&(o7=ty(0,0,0)),u;n=nT((eS(),fo)),r=!0,c=!c}else~~n.h>>19!=0&&(o=!0,n=eQ(n),r=!0,c=!c);return -1!=f?(g=n,w=c,d=o,_=rK(g,f),w&&eT(_),e&&(v=g,f<=22?(m=v.l&(1<<f)-1,y=C=0):f<=44?(m=v.l,y=v.m&(1<<f-22)-1,C=0):(m=v.l,y=v.m,C=v.h&(1<<f-44)-1),g=ty(m,y,C),o7=d?eQ(g):ty(g.l,g.m,g.h)),_):rN(n,t)?function(n,t,e,r,i,o){var f,u,c,s,h,a,b,l,g;for(c=eC(t)-eC(n),f=rU(t,c),u=ty(0,0,0);c>=0&&((g=n.h-f.h)<0||(b=n.l-f.l,(g+=~~(l=n.m-f.m+(~~b>>22))>>22)<0||(n.l=4194303&b,n.m=4194303&l,n.h=1048575&g,0))||(c<22?u.l|=1<<c:c<44?u.m|=1<<c-22:u.h|=1<<c-44,0!=n.l||0!=n.m||0!=n.h));)h=f.m,a=f.h,s=f.l,f.h=~~a>>>1,f.m=~~h>>>1|(1&a)<<21,f.l=~~s>>>1|(1&h)<<21,--c;return e&&eT(u),o&&(r?(o7=eQ(n),i&&(o7=e0(o7,(eS(),fu)))):o7=ty(n.l,n.m,n.h)),u}(r?n:ty(n.l,n.m,n.h),t,c,o,i,e):(e&&(o7=o?eQ(n):ty(n.l,n.m,n.h)),ty(0,0,0))}function iE(n){var t=[];for(var e in n){var r=typeof n[e];r!=oQ?t[t.length]=r:n[e]instanceof Array?t[t.length]=oS:f&&f.bigdecimal&&f.bigdecimal.BigInteger&&n[e]instanceof f.bigdecimal.BigInteger?t[t.length]=on:f&&f.bigdecimal&&f.bigdecimal.BigDecimal&&n[e]instanceof f.bigdecimal.BigDecimal?t[t.length]=i9:f&&f.bigdecimal&&f.bigdecimal.RoundingMode&&n[e]instanceof f.bigdecimal.RoundingMode?t[t.length]=ow:f&&f.bigdecimal&&f.bigdecimal.MathContext&&n[e]instanceof f.bigdecimal.MathContext?t[t.length]=ob:t[t.length]=oQ}return t.join(iq)}function iR(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m;return e=8191&n.l,r=~~n.l>>13|(15&n.m)<<9,i=~~n.m>>4&8191,o=~~n.m>>17|(255&n.h)<<5,f=~~(1048320&n.h)>>8,u=8191&t.l,c=~~t.l>>13|(15&t.m)<<9,s=~~t.m>>4&8191,h=~~t.m>>17|(255&t.h)<<5,a=~~(1048320&t.h)>>8,w=e*u,d=r*u,_=i*u,v=o*u,m=f*u,0!=c&&(d+=e*c,_+=r*c,v+=i*c,m+=o*c),0!=s&&(_+=e*s,v+=r*s,m+=i*s),0!=h&&(v+=e*h,m+=r*h),0!=a&&(m+=e*a),b=(4194303&w)+((511&d)<<13),l=(~~w>>22)+(~~d>>9)+((262143&_)<<4)+((31&v)<<17),g=(~~_>>18)+(~~v>>5)+((4095&m)<<8),l+=~~b>>22,b&=4194303,g+=~~l>>22,ty(b,l&=4194303,g&=1048575)}function iO(n,t,e){var r,i,o,f,u,c,s,h;if(h=ri(eY(e4(e.b),oW))+(t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)-(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1),c=i=n.f-t.f,o=1,u=fm.length-1,s=tK(u9,{6:1},17,[(n.d||(n.d=eP(n.g)),n.d)]),0==e.b||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return iN(n,t);if(h>0&&(rn(s,0,et((n.d||(n.d=eP(n.g)),n.d),im(h))),c+=h),f=(s=r4(s[0],(t.d||(t.d=eP(t.g)),t.d)))[0],0!=s[1].r())r=rt(eH(s[1]),(t.d||(t.d=eP(t.g)),t.d)),f=ix(et(f,(rW(),fB)),eZ(e4(s[0].r()*(5+r)))),++c;else for(;!f.gb(0);)if(0==(s=r4(f,fm[o]))[1].r()&&c-o>=i)c-=o,o<u&&++o,f=s[0];else{if(1==o)break;o=1}return new tr(f,eK(c),e)}function iD(n,t){var e;if(e=n.f-t.f,0==n.b&&-1!=n.g){if(e<=0)return ep(t);if(0==t.b&&-1!=t.g)return n}else if(0==t.b&&-1!=t.g&&e>=0)return n;return 0==e?n_(n.b,t.b)+1<54?new ti(n.g-t.g,n.f):new tM(ih((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)),n.f):e>0?e<fl.length&&n_(n.b,t.b+fg[eo(e)])+1<54?new ti(n.g-t.g*fl[eo(e)],n.f):new tM(ih((n.d||(n.d=eP(n.g)),n.d),tQ((t.d||(t.d=eP(t.g)),t.d),eo(e))),n.f):(e=-e)<fl.length&&n_(n.b+fg[eo(e)],t.b)+1<54?new ti(n.g*fl[eo(e)]-t.g,t.f):new tM(ih(tQ((n.d||(n.d=eP(n.g)),n.d),eo(e)),(t.d||(t.d=eP(t.g)),t.d)),t.f)}function ik(n,t){var e,r,i,o,f,u,c;if(tK(u9,{6:1},17,[(n.d||(n.d=eP(n.g)),n.d)]),o=n.f-t.f,c=0,e=1,i=fm.length-1,0==t.b&&-1!=t.g)throw new ni(of);if((t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)+o>(n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)+1||0==n.b&&-1!=n.g)rW(),r=fA;else if(0==o)r=ia((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d));else if(o>0)f=im(o),r=ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),f)),r=et(r,f);else{for(f=im(-o),r=ia(et((n.d||(n.d=eP(n.g)),n.d),f),(t.d||(t.d=eP(t.g)),t.d));!r.gb(0);)if(0==(u=r4(r,fm[e]))[1].r()&&c-e>=o)c-=e,e<i&&++e,r=u[0];else{if(1==e)break;e=1}o=c}return 0==r.r()?eU(o):new tS(r,eK(o))}function iL(n,t,e,r,i,o){var f,u,c,s,h,a,b,l,g,w,d,_,v,m,y;for(w=tU(up,{6:1},-1,r+1,1),d=tU(up,{6:1},-1,o+1,1),0!=(u=r$(i[o-1]))?(rx(d,i,0,u),rx(w,e,0,u)):(iB(e,0,w,0,r),iB(i,0,d,0,o)),c=d[o-1],h=t-1,a=r;h>=0;){if(w[a]==c)s=-1;else if(s=nB(m=r2(eY(rU(th(e4(w[a]),o4),32),th(e4(w[a-1]),o4)),c)),v=nB(rK(m,32)),0!=s){_=!1,++s;do{if(--s,_)break;l=iR(th(e4(s),o4),th(e4(d[o-2]),o4)),y=eY(rU(e4(v),32),th(e4(w[a-2]),o4)),32>r$(nB(rP(g=eY(th(e4(v),o4),th(e4(c),o4)),32)))?_=!0:v=nB(g)}while(rA(tb(l,oV),tb(y,oV)))}if(0!=s&&0!=function(n,t,e,r,i){var o,f,u;for(u=0,o=oJ,f=oJ;u<r;++u)il(),o=eY(iR(th(e4(e[u]),o4),th(e4(i),o4)),th(e4(nB(o)),o4)),f=eY(e0(th(e4(n[t+u]),o4),th(o,o4)),f),n[t+u]=nB(f),f=rK(f,32),o=rP(o,32);return f=eY(e0(th(e4(n[t+r]),o4),o),f),n[t+r]=nB(f),nB(rK(f,32))}(w,a-o,d,o,s))for(--s,f=oJ,b=0;b<o;++b)f=eY(f,eY(th(e4(w[a-o+b]),o4),th(e4(d[b]),o4))),w[a-o+b]=nB(f),f=rP(f,32);null!=n&&(n[h]=s),--a,--h}return 0!=u?(rD(d,o,w,0,u),d):(iB(w,0,d,0,o),w)}function iU(n,t){var e,r,i,o,f,u,c,s;if(c=n_(t.e,n.e),(i=ew(t))<(o=ew(n))){for(u=tU(up,{6:1},-1,c,1),r=i,u[i]=t.b[i],f=np(t.e,o),++r;r<f;++r)u[r]=t.b[r];if(r==t.e)for(;r<n.e;++r)u[r]=n.b[r]}else if(o<i){for(u=tU(up,{6:1},-1,c,1),r=o,u[o]=-n.b[o],f=np(n.e,i),++r;r<f;++r)u[r]=~n.b[r];if(r==i)u[r]=~(n.b[r]^-t.b[r]),++r;else{for(;r<i;++r)u[r]=-1;for(;r<t.e;++r)u[r]=t.b[r]}}else{if(r=i,0==(e=n.b[i]^-t.b[i])){for(f=np(n.e,t.e),++r;r<f&&0==(e=n.b[r]^~t.b[r]);++r);if(0==e){for(;r<n.e&&0==(e=~n.b[r]);++r);for(;r<t.e&&0==(e=~t.b[r]);++r);if(0==e)return c+=1,(u=tU(up,{6:1},-1,c,1))[c-1]=1,s=new to(-1,c,u)}}(u=tU(up,{6:1},-1,c,1))[r]=-e,++r}for(f=np(t.e,n.e);r<f;++r)u[r]=~(~t.b[r]^n.b[r]);for(;r<n.e;++r)u[r]=n.b[r];for(;r<t.e;++r)u[r]=t.b[r];return tZ(s=new to(-1,c,u)),s}function iP(){var n,t;for(iP=g,fw=new ef(oK,0),fd=new ef(oX,0),fp=new ef(oJ,0),fs=tU(u4,{6:1},16,11,0),fh=tU(uK,{6:1},-1,100,1),fb=tU(up,{6:1},-1,(fa=tK(u5,{6:1},-1,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,0x2e90edd,0xe8d4a51,0x48c27395,0x16bcc41e9,0x71afd498d,0x2386f26fc1,0xb1a2bc2ec5,0x3782dace9d9,0x1158e460913d,0x56bc75e2d631,0x1b1ae4d6e2ef5,0x878678326eac9])).length,1),fg=tU(up,{6:1},-1,(fl=tK(u5,{6:1},-1,[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13,1e14,1e15,1e16])).length,1),f_=tU(u4,{6:1},16,11,0),n=0;n<f_.length;++n)rn(fs,n,new ef(e4(n),0)),rn(f_,n,new ef(oJ,n)),fh[n]=48;for(;n<fh.length;++n)fh[n]=48;for(t=0;t<fb.length;++t)fb[t]=rE(fa[t]);for(t=0;t<fg.length;++t)fg[t]=rE(fl[t]);il(),fm=fq,fv=fV}function iQ(n,t){var e,r,i,o,f,u,c,s,h,a,b;if(e=0,u=0,f=t.length,h=new Z(t.length),0<f&&43==t.charCodeAt(0)&&(++u,++e,u<f&&(43==t.charCodeAt(u)||45==t.charCodeAt(u))))throw new nd(os+t+iG);for(i=0,a=!1;u<f&&46!=t.charCodeAt(u)&&101!=t.charCodeAt(u)&&69!=t.charCodeAt(u);++u)a||(48==t.charCodeAt(u)?++i:a=!0);if(tz(h,t,e,u),u<f&&46==t.charCodeAt(u)){for(e=++u;u<f&&101!=t.charCodeAt(u)&&69!=t.charCodeAt(u);++u)a||(48==t.charCodeAt(u)?++i:a=!0);n.f=u-e,tz(h,t,e,u)}else n.f=0;if(u<f&&(101==t.charCodeAt(u)||69==t.charCodeAt(u))&&(e=++u,u<f&&43==t.charCodeAt(u)&&++u<f&&45!=t.charCodeAt(u)&&++e,c=t.substr(e,f-e),n.f=n.f-r8(c,10),n.f!=eo(n.f)))throw new nd("Scale out of range.");if((s=h.b.b).length<16){if((b=fy)||(b=fy=/^[+-]?\d*$/i),n.g=b.test(s)?parseInt(s,10):Number.NaN,isNaN(n.g))throw new nd(os+t+iG);n.b=rE(n.g)}else tO(n,new nG(s));for(o=0,n.e=h.b.b.length-i;o<h.b.b.length&&(45==(r=nV(h.b.b,o))||48==r);++o)--n.e}function iT(n,t,e){var r,i,o,f,u,c,s,h,a,b,l,g,w,d;if(h=e.b,i=rj(n)-t.q(),s=fm.length-1,a=o=n.f-t.f,l=i-o+1,b=tU(u9,{6:1},17,2,0),0==h||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return ik(n,t);if(l<=0)rn(b,0,(rW(),fA));else if(0==o)rn(b,0,ia((n.d||(n.d=eP(n.g)),n.d),(t.d||(t.d=eP(t.g)),t.d)));else if(o>0)rn(b,0,ia((n.d||(n.d=eP(n.g)),n.d),et((t.d||(t.d=eP(t.g)),t.d),im(o)))),a=o<(h-l+1>0?h-l+1:0)?o:h-l+1>0?h-l+1:0,rn(b,0,et(b[0],im(a)));else if(f=-o<(h-i>0?h-i:0)?-o:h-i>0?h-i:0,b=r4(et((n.d||(n.d=eP(n.g)),n.d),im(f)),(t.d||(t.d=eP(t.g)),t.d)),a+=f,f=-a,0!=b[1].r()&&f>0&&(0==(r=new nL(b[1]).q()+f-t.q())&&(rn(b,1,ia(et(b[1],im(f)),(t.d||(t.d=eP(t.g)),t.d))),r=(d=b[1].r())<0?-d:d),r>0))throw new ni(ou);if(0==b[0].r())return eU(o);for(w=b[0],g=(c=new nL(b[0])).q(),u=1;!w.gb(0);)if(0==(b=r4(w,fm[u]))[1].r()&&(g-u>=h||a-u>=o))g-=u,a-=u,u<s&&++u,w=b[0];else{if(1==u)break;u=1}if(g>h)throw new ni(ou);return c.f=eK(a),tO(c,w),c}function ij(){var n;for(n=0,ij=g,fJ=tK(up,{6:1},-1,[0,0,1854,1233,927,747,627,543,480,431,393,361,335,314,295,279,265,253,242,232,223,216,181,169,158,150,145,140,136,132,127,123,119,114,110,105,101,96,92,87,83,78,73,69,64,59,54,49,44,38,32,26,1]),fK=tU(u9,{6:1},17,(fW=tK(up,{6:1},-1,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021])).length,0);n<fW.length;++n)rn(fK,n,eZ(e4(fW[n])))}function iF(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v,m,y,C,x,S,M,B,A,N,I,E,R,O,D,k;if(iM(),C=n.f,b=n.e,i=n.b,0==C)switch(t){case 0:return iW;case 1:return iX;case 2:return iY;case 3:return i0;case 4:return i1;case 5:return i2;case 6:return i3;default:return m=new W,t<0?m.b.b+=i4:m.b.b+=i6,A=m.b,N=-t,A.b+=N,m.b.b}if(v=tU(uK,{6:1},-1,(_=10*b+1+7)+1,1),e=_,1==b){if((f=i[0])<0){B=th(e4(f),o4);do l=B,B=nQ(B,oX),v[--e]=48+nB(e0(l,iR(B,oX)))&65535;while(tm(B,oJ))}else{B=f;do l=B,B=~~(B/10),v[--e]=48+(l-10*B)&65535;while(0!=B)}}else{S=tU(up,{6:1},-1,b,1),M=b,iB(i,0,S,0,b);n:for(;;){for(y=oJ,c=M-1;c>=0;--c)w=function(n){var t,e,r;return rN(n,oJ)?(e=nQ(n,o3),r=n4(n,o3)):(e=nQ(t=rP(n,1),o2),r=eY(rU(r=n4(t,o2),1),th(n,oK))),ta(rU(r,32),th(e,o4))}(eY(rU(y,32),th(e4(S[c]),o4))),S[c]=nB(w),y=e4(nB(rK(w,32)));d=nB(y),g=e;do v[--e]=48+d%10&65535;while(0!=(d=~~(d/10))&&0!=e)for(u=0,r=9-g+e;u<r&&e>0;++u)v[--e]=48;for(h=M-1;0==S[h];--h)if(0==h)break n;M=h+1}for(;48==v[e];)++e}if(a=C<0,o=_-e-t-1,0==t)return a&&(v[--e]=45),tP(v,e,_-e);if(t>0&&o>=-6){if(o>=0){for(s=e+o,h=_-1;h>=s;--h)v[h+1]=v[h];return v[++s]=46,a&&(v[--e]=45),tP(v,e,_-e+1)}for(h=2;h<-o+1;++h)v[--e]=48;return v[--e]=46,v[--e]=48,a&&(v[--e]=45),tP(v,e,_-e)}return(x=e+1,m=new Z,a&&(m.b.b+=iJ),_-x>=1)?(tE(m,v[e]),m.b.b+=iK,I=m.b,E=tP(v,e+1,_-e-1),I.b+=E):(R=m.b,O=tP(v,e,_-e),R.b+=O),m.b.b+=oc,o>0&&(m.b.b+=iz),D=m.b,k=iV+o,D.b+=k,m.b.b}c&&c({moduleName:"gwtapp",sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalStart"});var iH,i$,iV="",iq=" ",iG='"',iz="+",iJ="-",iK=".",iW="0",iZ="0.",iX="0.0",iY="0.00",i0="0.000",i1="0.0000",i2="0.00000",i3="0.000000",i6="0E",i4="0E+",i5=":",i9="BigDecimal",i8="BigDecimal MathContext",i7="BigDecimal;",on="BigInteger",ot="BigInteger divide by zero",oe="BigInteger not invertible.",or="BigInteger: modulus not positive",oi="BigInteger;",oo="CSS1Compat",of="Division by zero",ou="Division impossible",oc="E",os='For input string: "',oh="Infinite or NaN",oa="Invalid Operation",ob="MathContext",ol="Negative bit address",og="Rounding necessary",ow="RoundingMode",od="RoundingMode;",op="String",o_="[Lcom.iriscouch.gwtapp.client.",ov="[Ljava.lang.",om="[Ljava.math.",oy="\\.",oC="__gwtex_wrap",ox="anonymous",oS="array",oM="bad string format",oB="bigdecimal",oA="com.google.gwt.core.client.",oN="com.google.gwt.core.client.impl.",oI="com.iriscouch.gwtapp.client.",oE="java.lang.",oR="java.math.",oO="java.util.",oD="msie",ok="null",oL="number",oU="number MathContext",oP="number number",oQ="object",oT="opera",oj="org.timepedia.exporter.client.",oF="safari",oH="string",o$="undefined",oV={l:0,m:0,h:524288},oq={l:0,m:4193280,h:1048575},oG={l:4194298,m:4194303,h:1048575},oz={l:4194303,m:4194303,h:1048575},oJ={l:0,m:0,h:0},oK={l:1,m:0,h:0},oW={l:2,m:0,h:0},oZ={l:5,m:0,h:0},oX={l:10,m:0,h:0},oY={l:11,m:0,h:0},o0={l:18,m:0,h:0},o1={l:48,m:0,h:0},o2={l:877824,m:119,h:0},o3={l:1755648,m:238,h:0},o6={l:4194303,m:511,h:0},o4={l:4194303,m:1023,h:0},o5={l:0,m:1024,h:0};(i$=h.prototype={}).eQ=function(n){return this===n},i$.gC=function(){return us},i$.hC=function(){return nF(this)},i$.tS=function(){return this.gC().d+"@"+function(n){var t,e,r;if(t=tU(uK,{6:1},-1,8,1),rv(),e=fO,r=7,n>=0)for(;n>15;)t[r--]=e[15&n],n>>=4;else for(;r>0;)t[r--]=e[15&n],n>>=4;return t[r]=e[15&n],t6(t,r,8)}(this.hC())},i$.toString=function(){return this.tS()},i$.tM=g,i$.cM={},(i$=a.prototype=new h).gC=function(){return ua},i$.j=function(){return this.f},i$.tS=function(){var n,t;return n=this.gC().d,null!=(t=this.j())?n+": "+t:n},i$.cM={6:1,15:1},i$.f=null,(i$=b.prototype=new a).gC=function(){return ub},i$.cM={6:1,15:1},(i$=nr.prototype=l.prototype=new b).gC=function(){return ul},i$.cM={6:1,12:1,15:1},(i$=n1.prototype=(function(){}).prototype=new l).gC=function(){return ug},i$.j=function(){var n,t,e,r,i;return null==this.d&&(this.e=null==(e=this.c)?ok:tt(e)?null==(r=t8(e))?null:r.name:nz(e,1)?op:(nH(e)?e.gC():uw).d,this.b=tt(n=this.c)?null==(i=t8(n))?null:i.message:n+iV,this.d="("+this.e+"): "+this.b+(tt(t=this.c)?function(n){var t=iV;try{for(var e in n)if("name"!=e&&"message"!=e&&"toString"!=e)try{t+="\n "+e+": "+n[e]}catch(n){}}catch(n){}return t}(t8(t)):iV)),this.d},i$.cM={6:1,12:1,15:1},i$.b=null,i$.c=null,i$.d=null,i$.e=null,(i$=w.prototype=new h).gC=function(){return ud};var o9=0,o8=0;(i$=d.prototype=(function(){}).prototype=new w).gC=function(){return um},i$.b=null,i$.c=null,(i$=_.prototype=v.prototype=new h).k=function(){for(var n={},t=[],e=arguments.callee.caller.caller;e;){var r,i,o=this.n(e.toString());t.push(o);var f=i5+o,u=n[f];if(u){for(r=0,i=u.length;r<i;r++)if(u[r]===e)return t}(u||(n[f]=[])).push(e),e=e.caller}return t},i$.n=function(n){var t,e,r,i;return t=n,i=iV,-1!=(e=(t=e8(t)).indexOf("("))&&(r=8*(0==t.indexOf("function")),i=e8(t.substr(r,e-r))),i.length>0?i:ox},i$.gC=function(){return uy},i$.o=function(n){return[]},(i$=m.prototype=new v).k=function(){return tg(this.o(td()),this.p())},i$.gC=function(){return uS},i$.o=function(n){return eO(this,n)},i$.p=function(){return 2},(i$=y.prototype=(function(){}).prototype=new m).k=function(){return eh(this)},i$.n=function(n){var t,e;return 0==n.length||(0==(e=e8(n)).indexOf("at ")&&(e=n7(e,3)),-1==(t=e.indexOf("["))&&(t=e.indexOf("(")),-1==t)?ox:(-1!=(t=(e=e8(e.substr(0,t-0))).indexOf("."))&&(e=n7(e,t+1)),e.length>0?e:ox)},i$.gC=function(){return uM},i$.o=function(n){return t3(this,n)},i$.p=function(){return 3},(i$=C.prototype=new h).gC=function(){return uB},(i$=x.prototype=(function(){}).prototype=new C).gC=function(){return uA},i$.b=iV,(i$=S.prototype=(function(){}).prototype=new h).gC=function(){return this.aC},i$.aC=null,i$.qI=0;var o7=null,fn=null;(i$=M.prototype=(function(){}).prototype=new h).gC=function(){return uE},i$.cM={2:1},(i$=B.prototype=new h).gC=function(){return uO},i$.cM={6:1,10:1};var ft=null;(i$=ef.prototype=ti.prototype=tM.prototype=tN.prototype=X.prototype=e_.prototype=eu.prototype=tA.prototype=tB.prototype=eJ.prototype=n3.prototype=n6.prototype=tr.prototype=tS.prototype=nL.prototype=A.prototype=new B).eQ=function(n){return e2(this,n)},i$.gC=function(){return uD},i$.hC=function(){return rm(this)},i$.q=function(){return rj(this)},i$.r=function(){return ed(this)},i$.tS=function(){return ip(this)},i$.cM={6:1,8:1,10:1,16:1},i$.b=0,i$.c=0,i$.d=null,i$.e=0,i$.f=0,i$.g=0,i$.i=null;var fe,fr,fi,fo,ff,fu,fc,fs,fh,fa,fb,fl,fg,fw,fd,fp,f_,fv=null,fm=null,fy=null;(i$=nU.prototype=nw.prototype=(function(){}).prototype=new A).s=function(n){var t,e,r;if((e=iE(n))==iV)t=0>ed(this)?ep(this):this;else if(e==ob)t=0>(r=t7(this,new iS(n[0].toString()))).r()?ep(r):r;else throw new nr("Unknown call signature for interim = super.abs: "+e);return new nU(t)},i$.t=function(n){var t,e;if((e=iE(n))==i9)t=r1(this,new X(n[0].toString()));else if(e==i8)t=function(n,t,e){var r,i,o,f;if(r=n.f-t.f,0==t.b&&-1!=t.g||0==n.b&&-1!=n.g||0==e.b)return t7(r1(n,t),e);if((n.e>0?n.e:nP((n.b-1)*.3010299956639812)+1)<r-1)i=t,f=n;else{if(!((t.e>0?t.e:nP((t.b-1)*.3010299956639812)+1)<-r-1))return t7(r1(n,t),e);i=n,f=t}return e.b>=(i.e>0?i.e:nP((i.b-1)*.3010299956639812)+1)?t7(r1(n,t),e):t7(i=new tM((o=i.r())==f.r()?ix(rZ((i.d||(i.d=eP(i.g)),i.d),10),eZ(e4(o))):ix(rZ(ih((i.d||(i.d=eP(i.g)),i.d),eZ(e4(o))),10),eZ(e4(9*o))),i.f+1),e)}(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.add: "+e);return new nU(t)},i$.u=function(){return~~(nB(en(this,8))<<24)>>24},i$.v=function(n){return ic(this,n)},i$.w=function(n){var t,e,r,i;if((i=iE(n))==i9)e=el(this,new X(n[0].toString()));else if(i==i8)e=eg(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.divideAndRemainder: "+i);for(t=0,r=tU(uL,{6:1},3,e.length,0);t<e.length;++t)r[t]=new nU(e[t]);return r},i$.x=function(n){var t,e;if((e=iE(n))==i9)t=ik(this,new X(n[0].toString()));else if(e==i8)t=iT(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.divideToIntegralValue: "+e);return new nU(t)},i$.y=function(n){var t,e,r,i,o,f;if((e=iE(n))==i9)t=iN(this,new X(n[0].toString()));else if("BigDecimal number"==e)r=new X(n[0].toString()),i=n[1],t=ig(this,r,eo(this.f),rQ(i));else if("BigDecimal number number"==e)t=ig(this,new X(n[0].toString()),n[1],rQ(n[2]));else if("BigDecimal number RoundingMode"==e)t=ig(this,new X(n[0].toString()),n[1],ts(n[2].toString()));else if(e==i8)t=iO(this,new X(n[0].toString()),new iS(n[1].toString()));else if("BigDecimal RoundingMode"==e)o=new X(n[0].toString()),f=ts(n[1].toString()),t=ig(this,o,eo(this.f),f);else throw new nr("Unknown call signature for interim = super.divide: "+e);return new nU(t)},i$.z=function(){return t9(ip(this))},i$.eQ=function(n){return e2(this,n)},i$.A=function(){var n,t;return n=ed(this),(t=this.b-this.f/.3010299956639812)<-149||0==n?n*=0:t>129?n*=1/0:n=t9(ip(this)),n},i$.gC=function(){return uk},i$.hC=function(){return rm(this)},i$.B=function(){var n;return this.f<=-32||this.f>(this.e>0?this.e:nP((this.b-1)*.3010299956639812)+1)?0:(n=new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))).f*n.b[0]},i$.C=function(){return nB(en(this,32))},i$.D=function(){return nB(en(this,32))},i$.E=function(){return t9(ip(this))},i$.F=function(n){return new nU(ic(this,n)>=0?this:n)},i$.G=function(n){return new nU(0>=ic(this,n)?this:n)},i$.H=function(n){return new nU(rJ(this,this.f+n))},i$.I=function(n){return new nU(rJ(this,this.f-n))},i$.J=function(n){var t,e;if((e=iE(n))==i9)t=rk(this,new X(n[0].toString()));else if(e==i8)t=tl(this,new X(n[0].toString()),new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.multiply: "+e);return new nU(t)},i$.K=function(n){var t,e;if((e=iE(n))==iV)t=ep(this);else if(e==ob)t=ep(t7(this,new iS(n[0].toString())));else throw new nr("Unknown call signature for interim = super.negate: "+e);return new nU(t)},i$.L=function(n){var t,e;if((e=iE(n))==iV)t=this;else if(e==ob)t=t7(this,new iS(n[0].toString()));else throw new nr("Unknown call signature for interim = super.plus: "+e);return new nU(t)},i$.M=function(n){var t,e;if((e=iE(n))==oL)t=rd(this,n[0]);else if(e==oU)t=function(n,t,e){var r,i,o,f,u,c;if(o=t<0?-t:t,f=e.b,i=eo(tn(o))+1,u=e,0==t||0==n.b&&-1!=n.g&&t>0)return rd(n,t);if(o>0x3b9ac9ff||0==f&&t<0||f>0&&i>f)throw new ni(oa);for(f>0&&(u=new eW(f+i+1,e.c)),r=t7(n,u),c=~~function(n){var t;if(n<0)return -0x80000000;if(0==n)return 0;for(t=0x40000000;(t&n)==0;t>>=1);return t}(o)>>1;c>0;)r=tl(r,r,u),(o&c)==c&&(r=tl(r,n,u)),c>>=1;return t<0&&(r=iO(fw,r,u)),is(r,e),r}(this,n[0],new iS(n[1].toString()));else throw new nr("Unknown call signature for interim = super.pow: "+e);return new nU(t)},i$.q=function(){return rj(this)},i$.N=function(n){var t,e;if((e=iE(n))==i9)t=el(this,new X(n[0].toString()))[1];else if(e==i8)t=eg(this,new X(n[0].toString()),new iS(n[1].toString()))[1];else throw new nr("Unknown call signature for interim = super.remainder: "+e);return new nU(t)},i$.O=function(n){return new nU(t7(this,new iS(ea(n.b))))},i$.P=function(){return eo(this.f)},i$.Q=function(n){var t;return new nU((t=this.f-n,this.b<54)?0==this.g?eU(t):new ti(this.g,eK(t)):new tS((this.d||(this.d=eP(this.g)),this.d),eK(t)))},i$.R=function(n){var t,e;if((e=iE(n))==oL)t=r0(this,n[0],(iA(),f6));else if(e==oP)t=r0(this,n[0],rQ(n[1]));else if("number RoundingMode"==e)t=r0(this,n[0],ts(n[1].toString()));else throw new nr("Unknown call signature for interim = super.setScale: "+e);return new nU(t)},i$.S=function(){return~~(nB(en(this,16))<<16)>>16},i$.r=function(){return ed(this)},i$.T=function(){return new nU(function(n){var t,e,r,i,o;if(t=1,e=fm.length-1,r=n.f,0==n.b&&-1!=n.g)return new X(iW);for(n.d||(n.d=eP(n.g)),o=n.d;!o.gb(0);)if(0==(i=r4(o,fm[t]))[1].r())r-=t,t<e&&++t,o=i[0];else{if(1==t)break;t=1}return new tS(o,eK(r))}(this))},i$.U=function(n){var t,e,r,i,o,f;if((e=iE(n))==i9)t=iD(this,new X(n[0].toString()));else if(e==i8)r=new X(n[0].toString()),i=new iS(n[1].toString()),o=r.f-this.f,t=0==r.b&&-1!=r.g||0==this.b&&-1!=this.g||0==i.b?t7(iD(this,r),i):(r.e>0?r.e:nP((r.b-1)*.3010299956639812)+1)<o-1&&i.b<(this.e>0?this.e:nP((this.b-1)*.3010299956639812)+1)?t7(new tM((f=ed(this))!=r.r()?ix(rZ((this.d||(this.d=eP(this.g)),this.d),10),eZ(e4(f))):ix(rZ(ih((this.d||(this.d=eP(this.g)),this.d),eZ(e4(f))),10),eZ(e4(9*f))),this.f+1),i):t7(iD(this,r),i);else throw new nr("Unknown call signature for interim = super.subtract: "+e);return new nU(t)},i$.V=function(){return new n2(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eP(this.g)),this.d):this.f<0?et((this.d||(this.d=eP(this.g)),this.d),im(-this.f)):ia((this.d||(this.d=eP(this.g)),this.d),im(this.f)))},i$.W=function(){return new n2(r5(this))},i$.X=function(){return function(n){var t,e,r,i,o,f,u,c;if(f=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f)return f;if(t=0>(n.d||(n.d=eP(n.g)),n.d).r()?2:1,r=f.length,i=-n.f+r-t,c=new nq(f),n.f>0&&i>=-6)i>=0?n8(c,r-eo(n.f),iK):(te(c.b,t-1,t-1,iZ),n8(c,t+1,tP(fh,0,-eo(i)-1)));else{if(e=r-t,0!=(u=eo(i%3))&&(0==(n.d||(n.d=eP(n.g)),n.d).r()?i+=u=u<0?-u:3-u:(i-=u=u<0?u+3:u,t+=u),e<3))for(o=u-e;o>0;--o)n8(c,r++,iW);r-t>=1&&(te(c.b,t,t,iK),++r),0!=i&&(te(c.b,r,r,oc),i>0&&n8(c,++r,iz),n8(c,++r,iV+r6(r3(i))))}return c.b.b}(this)},i$.Y=function(){return function(n){var t,e,r,i,o,f;if(r=iF((n.d||(n.d=eP(n.g)),n.d),0),0==n.f||0==n.b&&-1!=n.g&&n.f<0)return r;if(t=+(0>ed(n)),e=n.f,i=new Z(r.length+1+((o=eo(n.f))<0?-o:o)),1==t&&(i.b.b+=iJ),n.f>0){if((e-=r.length-t)>=0){for(i.b.b+=iZ;e>fh.length;e-=fh.length)tG(i,fh);n9(i,fh,eo(e)),nE(i,n7(r,t))}else nE(i,(f=eo(e=t-e),r.substr(t,f-t))),i.b.b+=iK,nE(i,n7(r,eo(e)))}else{for(nE(i,n7(r,t));e<-fh.length;e+=fh.length)tG(i,fh);n9(i,fh,eo(-e))}return i.b.b}(this)},i$.tS=function(){return ip(this)},i$.Z=function(){return new nU(new ti(1,this.f))},i$.$=function(){return new n2((this.d||(this.d=eP(this.g)),this.d))},i$.cM={3:1,6:1,8:1,10:1,16:1,24:1},(i$=H.prototype=(function(){}).prototype=new h).gC=function(){return uU};var fC=!1;(i$=rf.prototype=ro.prototype=to.prototype=e9.prototype=tV.prototype=ra.prototype=nG.prototype=iC.prototype=N.prototype=new B)._=function(){return this.f<0?new to(1,this.e,this.b):this},i$.ab=function(){return eq(this)},i$.eQ=function(n){return eV(this,n)},i$.gC=function(){return uP},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.cb=function(){return 0==this.f?this:new to(-this.f,this.e,this.b)},i$.db=function(n){return rL(this,n)},i$.eb=function(n){return tY(this,n)},i$.fb=function(n){return t0(this,n)},i$.r=function(){return this.f},i$.gb=function(n){return rT(this,n)},i$.tS=function(){return iF(this,0)},i$.cM={6:1,8:1,10:1,17:1},i$.b=null,i$.c=-2,i$.d=0,i$.e=0,i$.f=0;var fx,fS,fM,fB,fA,fN=null;(i$=n2.prototype=nD.prototype=nk.prototype=(function(){}).prototype=new N)._=function(){return new n2(this.f<0?new to(1,this.e,this.b):this)},i$.hb=function(n){return new n2(ix(this,n))},i$.ib=function(n){return new n2(0==n.f||0==this.f?(rW(),fA):eV(n,(rW(),fx))?this:eV(this,fx)?n:this.f>0?n.f>0?function(n,t){var e,r,i,o;if(i=np(n.e,t.e),(e=n_(ew(n),ew(t)))>=i)return rW(),fA;for(r=tU(up,{6:1},-1,i,1);e<i;++e)r[e]=n.b[e]&t.b[e];return tZ(o=new to(1,i,r)),o}(this,n):rz(this,n):n.f>0?rz(n,this):this.e>n.e?i_(this,n):i_(n,this))},i$.jb=function(n){return new n2(0==n.f?this:0==this.f?(rW(),fA):eV(this,(rW(),fx))?new n2(r7(n)):eV(n,fx)?fA:this.f>0?n.f>0?function(n,t){var e,r,i,o;for(i=tU(up,{6:1},-1,n.e,1),r=np(n.e,t.e),e=ew(n);e<r;++e)i[e]=n.b[e]&~t.b[e];for(;e<n.e;++e)i[e]=n.b[e];return tZ(o=new to(1,n.e,i)),o}(this,n):function(n,t){var e,r,i,o,f,u;if(r=ew(t),i=ew(n),r>=n.e)return n;for(o=tU(up,{6:1},-1,f=np(n.e,t.e),1),e=i;e<r;++e)o[e]=n.b[e];for(e==r&&(o[e]=n.b[e]&t.b[e]-1,++e);e<f;++e)o[e]=n.b[e]&t.b[e];return tZ(u=new to(1,f,o)),u}(this,n):n.f>0?function(n,t){var e,r,i,o,f,u,c;if(i=ew(n),o=ew(t),i>=t.e)return n;if(c=n_(n.e,t.e),r=i,o>i){for(u=tU(up,{6:1},-1,c,1),f=np(n.e,o);r<f;++r)u[r]=n.b[r];if(r==n.e)for(r=o;r<t.e;++r)u[r]=t.b[r]}else{if(0==(e=-n.b[i]&~t.b[i])){for(f=np(t.e,n.e),++r;r<f&&0==(e=~(n.b[r]|t.b[r]));++r);if(0==e){for(;r<t.e&&0==(e=~t.b[r]);++r);for(;r<n.e&&0==(e=~n.b[r]);++r);if(0==e)return(u=tU(up,{6:1},-1,++c,1))[c-1]=1,new to(-1,c,u)}}(u=tU(up,{6:1},-1,c,1))[r]=-e,++r}for(f=np(t.e,n.e);r<f;++r)u[r]=n.b[r]|t.b[r];for(;r<n.e;++r)u[r]=n.b[r];for(;r<t.e;++r)u[r]=t.b[r];return new to(-1,c,u)}(this,n):function(n,t){var e,r,i,o,f,u,c;if(i=ew(n),r=ew(t),i>=t.e)return rW(),fA;if(f=tU(up,{6:1},-1,u=t.e,1),e=i,i<r){for(f[i]=-n.b[i],o=np(n.e,r),++e;e<o;++e)f[e]=~n.b[e];if(e==n.e){for(;e<r;++e)f[e]=-1;f[e]=t.b[e]-1}else f[e]=~n.b[e]&t.b[e]-1}else r<i?f[i]=-n.b[i]&t.b[i]:f[i]=-n.b[i]&t.b[i]-1;for(o=np(n.e,t.e),++e;e<o;++e)f[e]=~n.b[e]&t.b[e];for(;e<t.e;++e)f[e]=t.b[e];return tZ(c=new to(1,u,f)),c}(this,n))},i$.kb=function(){return function(n){var t,e;if(t=0,0==n.f)return 0;if(e=ew(n),n.f>0)for(;e<n.e;++e)t+=e7(n.b[e]);else{for(t+=e7(-n.b[e]),++e;e<n.e;++e)t+=e7(~n.b[e]);t=(n.e<<5)-t}return t}(this)},i$.ab=function(){return eq(this)},i$.lb=function(n){return new n2(rT(this,n)?ie(this,n):this)},i$.mb=function(n){return rt(this,n)},i$.nb=function(n){return new n2(ia(this,n))},i$.ob=function(n){var t,e,r;for(t=0,r=tU(uT,{6:1},4,(e=r4(this,n)).length,0);t<e.length;++t)r[t]=new n2(e[t]);return r},i$.z=function(){return t9(iF(this,0))},i$.eQ=function(n){return eV(this,n)},i$.pb=function(n){return new n2(function(n,t){if(t<0)throw new ni(ol);return ie(n,t)}(this,n))},i$.A=function(){var n;return(n=t9(iF(this,0)))>34028234663852886e22?1/0:n<-34028234663852886e22?-1/0:n},i$.qb=function(n){return new n2(rR(this,n))},i$.gC=function(){return uQ},i$.bb=function(){return t1(this)},i$.hC=function(){return ek(this)},i$.B=function(){return this.f*this.b[0]},i$.rb=function(n){return function(n,t){var e,r;if(ij(),t<=0||1==n.e&&2==n.b[0])return!0;if(!rT(n,0))return!1;if(1==n.e&&(-1024&n.b[0])==0)return function(n,t){var e,r,i,o;for(r=0,e=n.length-1;r<=e;)if((o=n[i=r+(~~(e-r)>>1)])<t)r=i+1;else{if(!(o>t))return i;e=i-1}return-r-1}(fW,n.b[0])>=0;for(r=1;r<fW.length;++r)if(0==e3(n.b,n.e,fW[r]))return!1;for(r=2,e=eq(n);e<fJ[r];++r);return ir(n,t=r<1+(~~(t-1)>>1)?r:1+(~~(t-1)>>1))}(new n2(this.f<0?new to(1,this.e,this.b):this),n)},i$.sb=function(){return t9(iF(this,0))},i$.tb=function(n){return new n2(1==rt(this,n)?this:n)},i$.ub=function(n){return new n2(-1==rt(this,n)?this:n)},i$.vb=function(n){return new n2(ee(this,n))},i$.wb=function(n){return new n2(rO(this,n))},i$.xb=function(n,t){return new n2(rG(this,n,t))},i$.yb=function(n){return new n2(et(this,n))},i$.cb=function(){return new n2(0==this.f?this:new to(-this.f,this.e,this.b))},i$.zb=function(){return new n2(function(n){if(n.f<0)throw new ni("start < 0: "+n);return function(n){var t,e,r,i,o,f,u,c;if(ij(),o=tU(up,{6:1},-1,fW.length,1),r=tU(uv,{6:1},-1,1024,2),1==n.e&&n.b[0]>=0&&n.b[0]<fW[fW.length-1]){for(e=0;n.b[0]>=fW[e];++e);return fK[e]}for(u=new to(1,n.e,tU(up,{6:1},-1,n.e+1,1)),iB(n.b,0,u.b,0,n.e),rT(n,0)?tW(u,2):u.b[0]|=1,i=u.ab(),t=2;i<fJ[t];++t);for(e=0;e<fW.length;++e)o[e]=(c=fW[e],e3(u.b,u.e,c)-1024);for(;;){for(function(n,t){var e;for(e=0;e<t;++e)n[e]=!1}(r,r.length),e=0;e<fW.length;++e)for(o[e]=(o[e]+1024)%fW[e],i=0==o[e]?0:fW[e]-o[e];i<1024;i+=fW[e])r[i]=!0;for(i=0;i<1024;++i)if(!r[i]&&(tW(f=eb(u),i),ir(f,t)))return f;tW(u,1024)}}(n)}(this))},i$.Ab=function(){return new n2(r7(this))},i$.Bb=function(n){return new n2(eV(n,(rW(),fx))||eV(this,fx)?fx:0==n.f?this:0==this.f?n:this.f>0?n.f>0?this.e>n.e?rg(this,n):rg(n,this):iw(this,n):n.f>0?iw(n,this):ew(n)>ew(this)?rX(n,this):rX(this,n))},i$.db=function(n){return new n2(rL(this,n))},i$.Cb=function(n){return new n2(rH(this,n))},i$.Db=function(n){return new n2(rT(this,n)?this:ie(this,n))},i$.eb=function(n){return new n2(tY(this,n))},i$.fb=function(n){return new n2(t0(this,n))},i$.r=function(){return this.f},i$.Eb=function(n){return new n2(ih(this,n))},i$.gb=function(n){return rT(this,n)},i$.Fb=function(n){var t,e;if((e=iE(n))==iV)t=iF(this,0);else if(e==oL)t=function(n,t){var e,r,i,o,f,u,c,s,h,a,b,l,g,w,d,_,v;if(iM(),w=n.f,h=n.e,u=n.b,0==w)return iW;if(1==h)return v=th(e4(u[0]),o4),w<0&&(v=eQ(v)),function(n,t){var e,r,i,o;if(10==t||t<2||t>36)return iV+r6(n);if(e=tU(uK,{6:1},-1,65,1),rv(),r=fO,i=64,o=e4(t),rN(n,oJ)){for(;rN(n,o);)e[i--]=r[nB(n4(n,o))],n=iI(n,o,!1);e[i]=r[nB(n)]}else{for(;!rA(n,eQ(o));)e[i--]=r[nB(eQ(n4(n,o)))],n=iI(n,o,!1);e[i--]=r[nB(eQ(n))],e[i]=45}return t6(e,i,65)}(v,t);if(10==t||t<2||t>36)return iF(n,0);if(r=Math.log(t)/Math.log(2),g=tU(uK,{6:1},-1,l=eo(eq(new n2(n.f<0?new to(1,n.e,n.b):n))/r+ +(w<0))+1,1),o=l,16!=t)for(iB(u,0,d=tU(up,{6:1},-1,h,1),0,h),_=h,i=fP[t],e=fU[t-2];;){b=ii(d,d,_,e),a=o;do g[--o]=em(b%t,t);while(0!=(b=~~(b/t))&&0!=o)for(c=0,f=i-a+o;c<f&&o>0;++c)g[--o]=48;for(c=_-1;c>0&&0==d[c];--c);if(1==(_=c+1)&&0==d[0])break}else for(c=0;c<h;++c)for(s=0;s<8&&o>0;++s)b=~~u[c]>>(s<<2)&15,g[--o]=em(b,16);for(;48==g[o];)++o;return -1==w&&(g[--o]=45),tP(g,o,l-o)}(this,n[0]);else throw new nr("Unknown call signature for result = super.toString: "+e);return t},i$.Gb=function(n){return new n2(0==n.f?this:0==this.f?n:eV(n,(rW(),fx))?new n2(r7(this)):eV(this,fx)?new n2(r7(n)):this.f>0?n.f>0?this.e>n.e?rw(this,n):rw(n,this):iU(this,n):n.f>0?iU(n,this):ew(n)>ew(this)?io(n,this):io(this,n))},i$.cM={4:1,6:1,8:1,10:1,17:1,24:1},(i$=F.prototype=(function(){}).prototype=new h).gC=function(){return uj};var fI=!1;(i$=nm.prototype=ny.prototype=(function(){}).prototype=new h).gC=function(){return uF},i$.Hb=function(){return this.b.b},i$.Ib=function(){return new nn(this.b.c)},i$.hC=function(){return nM(this.b)},i$.tS=function(){return ea(this.b)},i$.cM={24:1},i$.b=null,(i$=j.prototype=(function(){}).prototype=new h).gC=function(){return uH};var fE=!1;(i$=nn.prototype=nC.prototype=(function(){}).prototype=new h).gC=function(){return u$},i$.Jb=function(){return this.b.b},i$.tS=function(){return this.b.b},i$.cM={5:1,24:1},i$.b=null,(i$=K.prototype=(function(){}).prototype=new h).gC=function(){return uq};var fR=!1;(i$=ni.prototype=(function(){}).prototype=new l).gC=function(){return uG},i$.cM={6:1,12:1,15:1},(i$=no.prototype=V.prototype=(function(){}).prototype=new l).gC=function(){return uJ},i$.cM={6:1,12:1,15:1},(i$=I.prototype=(function(){}).prototype=new h).gC=function(){return uW},i$.tS=function(){return((2&this.c)!=0?"interface ":(1&this.c)!=0?iV:"class ")+this.d},i$.b=null,i$.c=0,i$.d=null,(i$=$.prototype=(function(){}).prototype=new l).gC=function(){return uZ},i$.cM={6:1,12:1,15:1},(i$=E.prototype=new h).eQ=function(n){return this===n},i$.gC=function(){return uh},i$.hC=function(){return nF(this)},i$.tS=function(){return this.b},i$.cM={6:1,8:1,9:1},i$.b=null,i$.c=0,(i$=nf.prototype=q.prototype=R.prototype=new l).gC=function(){return uX},i$.cM={6:1,12:1,15:1},(i$=nu.prototype=G.prototype=O.prototype=new l).gC=function(){return uz},i$.cM={6:1,12:1,15:1},(i$=nc.prototype=z.prototype=(function(){}).prototype=new l).gC=function(){return uY},i$.cM={6:1,12:1,15:1},(i$=nd.prototype=(function(){}).prototype=new R).gC=function(){return u0},i$.cM={6:1,12:1,15:1},(i$=tf.prototype=(function(){}).prototype=new h).gC=function(){return uC},i$.tS=function(){return this.b+iK+this.d+"(Unknown Source"+(this.c>=0?i5+this.c:iV)+")"},i$.cM={6:1,13:1},i$.b=null,i$.c=0,i$.d=null,(i$=String.prototype).eQ=function(n){return tF(this,n)},i$.gC=function(){return uN},i$.hC=function(){var n,t;return nK(),null!=(t=fk[n=i5+this])?t:(null==(t=fD[n])&&(t=function(n){var t,e,r,i;for(t=0,i=(r=n.length)-4,e=0;e<i;)t=n.charCodeAt(e+3)+31*(n.charCodeAt(e+2)+31*(n.charCodeAt(e+1)+31*(n.charCodeAt(e)+31*t)))|0,e+=4;for(;e<r;)t=31*t+nV(n,e++);return 0|t}(this)),256==fL&&(fD=fk,fk={},fL=0),++fL,fk[n]=t)},i$.tS=function(){return this},i$.cM={1:1,6:1,7:1,8:1};var fO,fD,fk,fL=0;(i$=nh.prototype=(function(){}).prototype=new h).gC=function(){return u1},i$.tS=function(){return this.b.b},i$.cM={7:1},(i$=nq.prototype=Z.prototype=W.prototype=(function(){}).prototype=new h).gC=function(){return u2},i$.tS=function(){return this.b.b},i$.cM={7:1},(i$=tI.prototype=(function(){}).prototype=new O).gC=function(){return u3},i$.cM={6:1,12:1,14:1,15:1},(i$=tH.prototype=(function(){}).prototype=new l).gC=function(){return u6},i$.cM={6:1,12:1,15:1},(i$=iS.prototype=eW.prototype=(function(){}).prototype=new h).eQ=function(n){return nz(n,18)&&tT(n,18).b==this.b&&tT(n,18).c==this.c},i$.gC=function(){return u8},i$.hC=function(){return nM(this)},i$.tS=function(){return ea(this)},i$.cM={6:1,18:1},i$.b=0,i$.c=null,(i$=nN.prototype=(function(){}).prototype=new E).gC=function(){return u7},i$.cM={6:1,8:1,9:1,19:1},(i$=P.prototype=new h).Kb=function(n){throw new tH},i$.Lb=function(n){return!!function(n,t){for(var e;n.Pb();)if(e=n.Qb(),null==t?null==e:t_(t,e))return n;return null}(this.Mb(),n)},i$.gC=function(){return ct},i$.tS=function(){var n,t,e,r,i,o,f,u;for(e=new nh,n=null,e.b.b+="[",t=this.Mb();t.Pb();)null!=n?(i=e.b,o=n,i.b+=o):n=", ",r=t.Qb(),f=e.b,u=r===this?"(this Collection)":iV+r,f.b+=u;return e.b.b+="]",e.b.b},(i$=k.prototype=new h).eQ=function(n){var t,e,r,i,o,f;if(n===this)return!0;if(!nz(n,21)||(i=tT(n,21),this.e!=i.e))return!1;for(e=new er(new nt(i).b);nS(e.b);)if(r=(t=tT(tj(e.b),22)).Rb(),o=t.Sb(),!(null==r?this.d:nz(r,1)?i5+tT(r,1)in this.f:rr(this,r,~~tc(r)))||!tC(o,null==r?this.c:nz(r,1)?(f=tT(r,1),this.f[i5+f]):re(this,r,~~tc(r))))return!1;return!0},i$.gC=function(){return ce},i$.hC=function(){var n,t;for(t=0,n=new er(new nt(this).b);nS(n.b);)t+=tT(tj(n.b),22).hC(),t=~~t;return t},i$.tS=function(){var n,t,e,r;for(r="{",n=!1,e=new er(new nt(this).b);nS(e.b);)t=tT(tj(e.b),22),n?r+=", ":n=!0,r+=iV+t.Rb(),r+="=",r+=iV+t.Sb();return r+"}"},i$.cM={21:1},(i$=L.prototype=new k).Ob=function(n,t){return nj(n)===nj(t)||null!=n&&t_(n,t)},i$.gC=function(){return cr},i$.cM={21:1},i$.b=null,i$.c=null,i$.d=!1,i$.e=0,i$.f=null,(i$=U.prototype=new P).eQ=function(n){var t,e,r;if(n===this)return!0;if(!nz(n,23)||(e=tT(n,23)).b.e!=this.Nb())return!1;for(t=new er(e.b);nS(t.b);)if(r=tT(tj(t.b),22),!this.Lb(r))return!1;return!0},i$.gC=function(){return ci},i$.hC=function(){var n,t,e;for(n=0,t=this.Mb();t.Pb();)null!=(e=t.Qb())&&(n+=tc(e),n=~~n);return n},i$.cM={23:1},(i$=nt.prototype=(function(){}).prototype=new U).Lb=function(n){var t,e,r,i,o;return!!(nz(n,22)&&(e=(t=tT(n,22)).Rb(),i=this.b,null==e?i.d:nz(e,1)?i5+tT(e,1)in i.f:rr(i,e,~~tc(e))))&&(r=ei(this.b,e),nj(o=t.Sb())===nj(r)||null!=o&&t_(o,r))},i$.gC=function(){return co},i$.Mb=function(){return new er(this.b)},i$.Nb=function(){return this.b.e},i$.cM={23:1},i$.b=null,(i$=er.prototype=(function(){}).prototype=new h).gC=function(){return cf},i$.Pb=function(){return nS(this.b)},i$.Qb=function(){return tT(tj(this.b),22)},i$.b=null,(i$=D.prototype=new h).eQ=function(n){var t;return!!(nz(n,22)&&(t=tT(n,22),tC(this.Rb(),t.Rb())&&tC(this.Sb(),t.Sb())))},i$.gC=function(){return cu},i$.hC=function(){var n,t;return n=0,t=0,null!=this.Rb()&&(n=tc(this.Rb())),null!=this.Sb()&&(t=tc(this.Sb())),n^t},i$.tS=function(){return this.Rb()+"="+this.Sb()},i$.cM={22:1},(i$=ne.prototype=(function(){}).prototype=new D).gC=function(){return cc},i$.Rb=function(){return null},i$.Sb=function(){return this.b.c},i$.Tb=function(n){return tq(this.b,n)},i$.cM={22:1},i$.b=null,(i$=nA.prototype=(function(){}).prototype=new D).gC=function(){return cs},i$.Rb=function(){return this.b},i$.Sb=function(){var n,t;return n=this.c,t=this.b,n.f[i5+t]},i$.Tb=function(n){var t,e,r,i;return t=this.c,e=this.b,i=t.f,(e=i5+e)in i?r=i[e]:++t.e,i[e]=n,r},i$.cM={22:1},i$.b=null,i$.c=null,(i$=Q.prototype=new P).Kb=function(n){var t;return((t=this.Nb())<0||t>this.c)&&tx(t,this.c),function(n,t,e,r){n.splice(t,0,r)}(this.b,t,0,n),++this.c,!0},i$.eQ=function(n){var t,e,r,i,o;if(n===this)return!0;if(!nz(n,20)||(o=tT(n,20),this.Nb()!=o.c))return!1;for(r=new Y(this),i=new Y(o);r.b<r.c.c;)if(t=tj(r),e=tj(i),!(null==t?null==e:t_(t,e)))return!1;return!0},i$.gC=function(){return ch},i$.hC=function(){var n,t,e;for(t=1,n=new Y(this);n.b<n.c.c;)t=~~(t=31*t+(null==(e=tj(n))?0:tc(e)));return t},i$.Mb=function(){return new Y(this)},i$.cM={20:1},(i$=Y.prototype=(function(){}).prototype=new h).gC=function(){return ca},i$.Pb=function(){return nS(this)},i$.Qb=function(){return tj(this)},i$.b=0,i$.c=null,(i$=nJ.prototype=(function(){}).prototype=new Q).Kb=function(n){return n5(this,n)},i$.Lb=function(n){return -1!=function(n,t,e){for(;e<n.c;++e)if(tC(t,n.b[e]))return e;return -1}(this,n,0)},i$.gC=function(){return cb},i$.Nb=function(){return this.c},i$.cM={6:1,20:1},i$.c=0,(i$=t$.prototype=(function(){}).prototype=new L).gC=function(){return cl},i$.cM={6:1,21:1},(i$=nI.prototype=(function(){}).prototype=new D).gC=function(){return cg},i$.Rb=function(){return this.b},i$.Sb=function(){return this.c},i$.Tb=function(n){var t;return t=this.c,this.c=n,t},i$.cM={22:1},i$.b=null,i$.c=null,(i$=J.prototype=(function(){}).prototype=new l).gC=function(){return cw},i$.cM={6:1,12:1,15:1},(i$=rb.prototype=(function(){}).prototype=new h).gC=function(){return cd},i$.b=0,i$.c=0;var fU,fP,fQ,fT,fj,fF,fH,f$,fV,fq,fG,fz,fJ,fK,fW,fZ,fX,fY,f0,f1,f2,f3,f6,f4,f5,f9,f8,f7,un,ut,ue,ur,ui,uo,uf,uu=0;(i$=T.prototype=new h).gC=function(){return cp},(i$=n0.prototype=(function(){}).prototype=new T).gC=function(){return c_};var uc=function(n){return function(){try{return function(n,t,e){var r;r=0==o9++&&(function(n){var t,e;if(n.b){e=null;do t=n.b,n.b=null,e=rh(t,e);while(n.b)n.b=e}}((na(),fe)),!0);try{return n.apply(t,e)}finally{r&&function(n){var t,e;if(n.c){e=null;do t=n.c,n.c=null,e=rh(t,e);while(n.c)n.c=e}}((na(),fe)),--o9}}(n,this,arguments)}catch(n){throw n}}},us=tu(oE,"Object"),uh=tu(oE,"Enum"),ua=tu(oE,"Throwable"),ub=tu(oE,"Exception"),ul=tu(oE,"RuntimeException"),ug=tu(oA,"JavaScriptException"),uw=tu(oA,"JavaScriptObject$"),ud=tu(oA,"Scheduler"),up=tL(iV,"[I",tp("int")),u_=tL(ov,"Object;",us),uv=tL(iV,"[Z",tp("boolean")),um=tu(oN,"SchedulerImpl"),uy=tu(oN,"StackTraceCreator$Collector"),uC=tu(oE,"StackTraceElement"),ux=tL(ov,"StackTraceElement;",uC),uS=tu(oN,"StackTraceCreator$CollectorMoz"),uM=tu(oN,"StackTraceCreator$CollectorChrome"),uB=tu(oN,"StringBufferImpl"),uA=tu(oN,"StringBufferImplAppend"),uN=tu(oE,op),uI=tL(ov,"String;",uN),uE=tu("com.google.gwt.lang.","LongLibBase$LongEmul"),uR=tL("[Lcom.google.gwt.lang.","LongLibBase$LongEmul;",uE),uO=tu(oE,"Number"),uD=tu(oR,i9),uk=tu(oI,i9),uL=tL(o_,i7,uk),uU=tu(oI,"BigDecimalExporterImpl"),uP=tu(oR,on),uQ=tu(oI,on),uT=tL(o_,oi,uQ),uj=tu(oI,"BigIntegerExporterImpl"),uF=tu(oI,ob),uH=tu(oI,"MathContextExporterImpl"),u$=tu(oI,ow),uV=tL(o_,od,u$),uq=tu(oI,"RoundingModeExporterImpl"),uG=tu(oE,"ArithmeticException"),uz=tu(oE,"IndexOutOfBoundsException"),uJ=tu(oE,"ArrayStoreException"),uK=tL(iV,"[C",tp("char")),uW=tu(oE,"Class"),uZ=tu(oE,"ClassCastException"),uX=tu(oE,"IllegalArgumentException"),uY=tu(oE,"NullPointerException"),u0=tu(oE,"NumberFormatException"),u1=tu(oE,"StringBuffer"),u2=tu(oE,"StringBuilder"),u3=tu(oE,"StringIndexOutOfBoundsException"),u6=tu(oE,"UnsupportedOperationException"),u4=tL(om,i7,uD),u5=tL(iV,"[D",tp("double")),u9=tL(om,oi,uP),u8=tu(oR,ob),u7=(n=function(){return iA(),fZ},(t=new I).d=oR+ow,t.c=8*!!n,t),cn=tL(om,od,u7),ct=tu(oO,"AbstractCollection"),ce=tu(oO,"AbstractMap"),cr=tu(oO,"AbstractHashMap"),ci=tu(oO,"AbstractSet"),co=tu(oO,"AbstractHashMap$EntrySet"),cf=tu(oO,"AbstractHashMap$EntrySetIterator"),cu=tu(oO,"AbstractMapEntry"),cc=tu(oO,"AbstractHashMap$MapEntryNull"),cs=tu(oO,"AbstractHashMap$MapEntryString"),ch=tu(oO,"AbstractList"),ca=tu(oO,"AbstractList$IteratorImpl"),cb=tu(oO,"ArrayList"),cl=tu(oO,"HashMap"),cg=tu(oO,"MapEntryImpl"),cw=tu(oO,"NoSuchElementException"),cd=tu(oO,"Random"),cp=tu(oj,"ExporterBaseImpl"),c_=tu(oj,"ExporterBaseActual");c&&c({moduleName:"gwtapp",sessionId:s,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalEnd"}),i&&i.onScriptLoad&&i.onScriptLoad(eR),eR(null,"ModuleName","moduleBase")}(),n.RoundingMode=e.bigdecimal.RoundingMode,n.MathContext=e.bigdecimal.MathContext,o("BigDecimal"),o("BigInteger")}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:{});
diff --git a/crates/swc_ecma_minifier/tests/projects/output/jquery-1.9.1.js b/crates/swc_ecma_minifier/tests/projects/output/jquery-1.9.1.js
index 22b38bee1e3d..617c99bf20cd 100644
--- a/crates/swc_ecma_minifier/tests/projects/output/jquery-1.9.1.js
+++ b/crates/swc_ecma_minifier/tests/projects/output/jquery-1.9.1.js
@@ -1359,7 +1359,7 @@
             props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
             filter: function(event, original) {
                 var body, eventDoc, doc, button = original.button, fromElement = original.fromElement;
-                return null == event.pageX && null != original.clientX && (doc = (eventDoc = event.target.ownerDocument || document).documentElement, body = eventDoc.body, event.pageX = original.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0), event.pageY = original.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0)), !event.relatedTarget && fromElement && (event.relatedTarget = fromElement === event.target ? original.toElement : fromElement), event.which || undefined === button || (event.which = 1 & button ? 1 : 2 & button ? 3 : 4 & button ? 2 : 0), event;
+                return null == event.pageX && null != original.clientX && (doc = (eventDoc = event.target.ownerDocument || document).documentElement, body = eventDoc.body, event.pageX = original.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0), event.pageY = original.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0)), !event.relatedTarget && fromElement && (event.relatedTarget = fromElement === event.target ? original.toElement : fromElement), event.which || undefined === button || (event.which = 1 & button ? 1 : 2 & button ? 3 : 2 * !!(4 & button)), event;
             }
         },
         special: {
@@ -1890,7 +1890,7 @@
             sortOrder = docElem.compareDocumentPosition ? function(a, b) {
                 var compare;
                 if (a === b) return hasDuplicate = !0, 0;
-                if (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition(b)) return 1 & compare || a.parentNode && 11 === a.parentNode.nodeType ? a === doc || contains(preferredDoc, a) ? -1 : b === doc || contains(preferredDoc, b) ? 1 : 0 : 4 & compare ? -1 : 1;
+                if (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition(b)) return 1 & compare || a.parentNode && 11 === a.parentNode.nodeType ? a === doc || contains(preferredDoc, a) ? -1 : +!!(b === doc || contains(preferredDoc, b)) : 4 & compare ? -1 : 1;
                 return a.compareDocumentPosition ? -1 : 1;
             } : function(a, b) {
                 var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [
@@ -1900,14 +1900,14 @@
                 ];
                 // Exit early if the nodes are identical
                 if (a === b) return hasDuplicate = !0, 0;
-                if (!aup || !bup) return a === doc ? -1 : b === doc ? 1 : aup ? -1 : bup ? 1 : 0;
+                if (!aup || !bup) return a === doc ? -1 : b === doc ? 1 : aup ? -1 : +!!bup;
                 if (aup === bup) return siblingCheck(a, b);
                 for(// Otherwise we need full lists of their ancestors for comparison
                 cur = a; cur = cur.parentNode;)ap.unshift(cur);
                 for(cur = b; cur = cur.parentNode;)bp.unshift(cur);
                 // Walk down the tree looking for a discrepancy
                 for(; ap[i] === bp[i];)i++;
-                return i ? siblingCheck(ap[i], bp[i]) : ap[i] === preferredDoc ? -1 : bp[i] === preferredDoc ? 1 : 0;
+                return i ? siblingCheck(ap[i], bp[i]) : ap[i] === preferredDoc ? -1 : +(bp[i] === preferredDoc);
             }, // Always assume the presence of duplicates if sort doesn't
             // pass them to our comparison function (as in Google Chrome).
             hasDuplicate = !1, [
@@ -2306,7 +2306,7 @@
             var matcherCachedRuns, bySet, byElement, superMatcher, i, setMatchers = [], elementMatchers = [], cached = compilerCache[selector + " "];
             if (!cached) {
                 for(group || (group = tokenize(selector)), i = group.length; i--;)(cached = function matcherFromTokens(tokens) {
-                    for(var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s)
+                    for(var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "], i = +!!leadingRelative, // The foundational matcher ensures that elements are reachable from top-level context(s)
                     matchContext = addCombinator(function(elem) {
                         return elem === checkContext;
                     }, implicitRelative, !0), matchAnyContext = addCombinator(function(elem) {
@@ -2898,7 +2898,7 @@
         return matches ? Math.max(0, matches[1] - (subtract || 0)) + (matches[2] || "px") : value;
     }
     function augmentWidthOrHeight(elem, name1, extra, isBorderBox, styles) {
-        for(var i = extra === (isBorderBox ? "border" : "content") ? 4 : "width" === name1 ? 1 : 0, val = 0; i < 4; i += 2)"margin" === extra && (val += jQuery.css(elem, extra + cssExpand[i], !0, styles)), isBorderBox ? ("content" === extra && (val -= jQuery.css(elem, "padding" + cssExpand[i], !0, styles)), "margin" !== extra && (val -= jQuery.css(elem, "border" + cssExpand[i] + "Width", !0, styles))) : (// at this point, extra isn't content, so add padding
+        for(var i = extra === (isBorderBox ? "border" : "content") ? 4 : +("width" === name1), val = 0; i < 4; i += 2)"margin" === extra && (val += jQuery.css(elem, extra + cssExpand[i], !0, styles)), isBorderBox ? ("content" === extra && (val -= jQuery.css(elem, "padding" + cssExpand[i], !0, styles)), "margin" !== extra && (val -= jQuery.css(elem, "border" + cssExpand[i] + "Width", !0, styles))) : (// at this point, extra isn't content, so add padding
         val += jQuery.css(elem, "padding" + cssExpand[i], !0, styles), "padding" !== extra && (val += jQuery.css(elem, "border" + cssExpand[i] + "Width", !0, styles)));
         return val;
     }
@@ -3480,7 +3480,7 @@
                 // (no matter how long the jqXHR object will be used)
                 transport = undefined, // Cache response headers
                 responseHeadersString = headers || "", // Set readyState
-                jqXHR.readyState = status > 0 ? 4 : 0, responses && (response = /* Handles responses to an ajax request:
+                jqXHR.readyState = 4 * (status > 0), responses && (response = /* Handles responses to an ajax request:
    * - sets all responseXXX fields accordingly
    * - finds the right dataType (mediates between content-type and expected dataType)
    * - returns the corresponding response
@@ -3776,7 +3776,7 @@
             }), anim.done(function() {
                 var prop;
                 for(prop in jQuery._removeData(elem, "fxshow"), orig)jQuery.style(elem, prop, orig[prop]);
-            }), index = 0; index < length; index++)prop = handled[index], tween = anim.createTween(prop, hidden ? dataShow[prop] : 0), orig[prop] = dataShow[prop] || jQuery.style(elem, prop), prop in dataShow || (dataShow[prop] = tween.start, hidden && (tween.end = tween.start, tween.start = "width" === prop || "height" === prop ? 1 : 0));
+            }), index = 0; index < length; index++)prop = handled[index], tween = anim.createTween(prop, hidden ? dataShow[prop] : 0), orig[prop] = dataShow[prop] || jQuery.style(elem, prop), prop in dataShow || (dataShow[prop] = tween.start, hidden && (tween.end = tween.start, tween.start = +("width" === prop || "height" === prop)));
         }
     ], tweeners = {
         "*": [
@@ -3880,7 +3880,7 @@
         }, i = 0;
         for(// if we include width, step value is 1 to do all cssExpand values,
         // if we don't include width, step value is 2 to skip over Left and Right
-        includeWidth = includeWidth ? 1 : 0; i < 4; i += 2 - includeWidth)attrs["margin" + (which = cssExpand[i])] = attrs["padding" + which] = type;
+        includeWidth = +!!includeWidth; i < 4; i += 2 - includeWidth)attrs["margin" + (which = cssExpand[i])] = attrs["padding" + which] = type;
         return includeWidth && (attrs.opacity = attrs.width = type), attrs;
     }
     function getWindow(elem) {
diff --git a/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js b/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js
index 09a6db2db7da..2c102b8b4a78 100644
--- a/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js
+++ b/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js
@@ -3827,8 +3827,8 @@
             },
             _sliderVMouseUp: function() {
                 if (this.dragging) return this.dragging = !1, this.isToggleSwitch && (// make the handle move with a smooth transition
-                this.handle.addClass("ui-slider-handle-snapping"), this.mouseMoved ? this.userModified ? this.refresh(0 === this.beforeStart ? 1 : 0) : this.refresh(this.beforeStart) : // this is just a click, change the value
-                this.refresh(0 === this.beforeStart ? 1 : 0)), this.mouseMoved = !1, this._trigger("stop"), !1;
+                this.handle.addClass("ui-slider-handle-snapping"), this.mouseMoved ? this.userModified ? this.refresh(+(0 === this.beforeStart)) : this.refresh(this.beforeStart) : // this is just a click, change the value
+                this.refresh(+(0 === this.beforeStart))), this.mouseMoved = !1, this._trigger("stop"), !1;
             },
             _preventDocumentDrag: function(event1) {
                 return(// NOTE: we don't do this in refresh because we still want to
@@ -6472,7 +6472,7 @@
             $.support.inlineSVG(), $.mobile.hideUrlBar && window.scrollTo(0, 1), // if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
             // it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
             // so if it's 1, use 0 from now on
-            $.mobile.defaultHomeScroll = $.support.scrollTop && 1 !== $.mobile.window.scrollTop() ? 1 : 0, $.mobile.autoInitializePage && $.mobile.initializePage(), $.mobile.hideUrlBar && $window.load($.mobile.silentScroll), $.support.cssPointerEvents || // IE and Opera don't support CSS pointer-events: none that we use to disable link-based buttons
+            $.mobile.defaultHomeScroll = +(!!$.support.scrollTop && 1 !== $.mobile.window.scrollTop()), $.mobile.autoInitializePage && $.mobile.initializePage(), $.mobile.hideUrlBar && $window.load($.mobile.silentScroll), $.support.cssPointerEvents || // IE and Opera don't support CSS pointer-events: none that we use to disable link-based buttons
             // by adding the 'ui-disabled' class to them. Using a JavaScript workaround for those browser.
             // https://github.com/jquery/jquery-mobile/issues/3558
             // DEPRECATED as of 1.4.0 - remove ui-disabled after 1.4.0 release
diff --git a/crates/swc_ecma_minifier/tests/projects/output/mootools-1.4.5.js b/crates/swc_ecma_minifier/tests/projects/output/mootools-1.4.5.js
index 40013c2e306e..3aa89cb5e319 100644
--- a/crates/swc_ecma_minifier/tests/projects/output/mootools-1.4.5.js
+++ b/crates/swc_ecma_minifier/tests/projects/output/mootools-1.4.5.js
@@ -688,7 +688,7 @@ delete Function.prototype.bind, Function.implement({
         var self = this;
         return options = options || {}, function(event) {
             var args = options.arguments;
-            args = null != args ? Array.from(args) : Array.slice(arguments, options.event ? 1 : 0), options.event && (args = [
+            args = null != args ? Array.from(args) : Array.slice(arguments, +!!options.event), options.event && (args = [
                 event || window.event
             ].extend(args));
             var returns = function() {
@@ -1528,7 +1528,7 @@ requires: Slick.Parser
             }, // document order sorting
             // credits to Sizzle (http://sizzlejs.com/)
             features.documentSorter = root.compareDocumentPosition ? function(a, b) {
-                return a.compareDocumentPosition && b.compareDocumentPosition ? 4 & a.compareDocumentPosition(b) ? -1 : a === b ? 0 : 1 : 0;
+                return a.compareDocumentPosition && b.compareDocumentPosition ? 4 & a.compareDocumentPosition(b) ? -1 : +(a !== b) : 0;
             } : "sourceIndex" in root ? function(a, b) {
                 return a.sourceIndex && b.sourceIndex ? a.sourceIndex - b.sourceIndex : 0;
             } : document1.createRange ? function(a, b) {
@@ -2680,7 +2680,7 @@ provides: Element.Style
         return filter && (opacity = filter.match(reAlpha)), null == opacity || null == filter ? 1 : opacity[1] / 100;
     } : function(element) {
         var opacity = element.retrieve("$opacity");
-        return null == opacity && (opacity = "hidden" == element.style.visibility ? 0 : 1), opacity;
+        return null == opacity && (opacity = +("hidden" != element.style.visibility)), opacity;
     }, floatName = null == html.style.cssFloat ? "styleFloat" : "cssFloat";
     Element.implement({
         getComputedStyle: function(property) {
@@ -3645,7 +3645,7 @@ provides: [Fx.Tween, Element.fade, Element.highlight]
                 break;
             case "toggle":
                 var flag = this.retrieve("fade:flag", 1 == this.getStyle("opacity"));
-                method = "start", args[1] = flag ? 0 : 1, this.store("fade:flag", !flag), toggle = !0;
+                method = "start", args[1] = +!flag, this.store("fade:flag", !flag), toggle = !0;
                 break;
             default:
                 method = "start";
diff --git a/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js b/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js
index 77965b3cabf3..1dbcc96162be 100644
--- a/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js
+++ b/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js
@@ -2715,7 +2715,7 @@
     }
     function getLanesToRetrySynchronouslyOnError(root) {
         var everythingButOffscreen = -1073741825 & root.pendingLanes;
-        return 0 !== everythingButOffscreen ? everythingButOffscreen : 1073741824 & everythingButOffscreen ? 1073741824 : 0;
+        return 0 !== everythingButOffscreen ? everythingButOffscreen : 1073741824 * !!(1073741824 & everythingButOffscreen);
     }
     function includesNonIdleWork(lanes) {
         return (134217727 & lanes) != 0;
@@ -8219,7 +8219,7 @@
                     var child, props = workInProgress.pendingProps, payload = elementType._payload, Component = (0, elementType._init)(payload);
                     workInProgress.type = Component;
                     var resolvedTag = workInProgress.tag = function(Component) {
-                        if ("function" == typeof Component) return shouldConstruct$1(Component) ? 1 : 0;
+                        if ("function" == typeof Component) return +!!shouldConstruct$1(Component);
                         if (null != Component) {
                             var $$typeof = Component.$$typeof;
                             if ($$typeof === REACT_FORWARD_REF_TYPE) return 11;
@@ -11439,7 +11439,7 @@
         // Tag is either LegacyRoot or Concurrent Root
         var root, mode, uninitializedFiber, hostRoot, hydrate = null != options && !0 === options.hydrate;
         null != options && options.hydrationOptions;
-        var mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root1 = (root = new FiberRootNode(container, tag, hydrate), mode = 2 === tag ? 7 : 1 === tag ? 3 : 0, isDevToolsPresent && // Always collect profile timings when DevTools are present.
+        var mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root1 = (root = new FiberRootNode(container, tag, hydrate), mode = 2 === tag ? 7 : 3 * (1 === tag), isDevToolsPresent && // Always collect profile timings when DevTools are present.
         // This enables DevTools to start capturing timing at any point–
         // Without some nodes in the tree having empty base times.
         (mode |= 8), uninitializedFiber = createFiber(3, null, null, mode), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
diff --git a/crates/swc_ecma_minifier/tests/projects/output/yui-3.12.0.js b/crates/swc_ecma_minifier/tests/projects/output/yui-3.12.0.js
index 43d2b24627d7..7bc350b66c80 100644
--- a/crates/swc_ecma_minifier/tests/projects/output/yui-3.12.0.js
+++ b/crates/swc_ecma_minifier/tests/projects/output/yui-3.12.0.js
@@ -595,8 +595,8 @@ with any configuration info required for the module.
     @param {String} namespace* One or more namespaces to create.
     @return {Object} Reference to the last namespace object created.
     **/ namespace: function() {
-            for(var o, j, d, arg, a = arguments, i = 0; i < a.length; i++)if (o = this, (arg = a[i]).indexOf(".") > -1) for(j = "YAHOO" == //Skip this if no "." is present
-            (d = arg.split("."))[0] ? 1 : 0; j < d.length; j++)o[d[j]] = o[d[j]] || {}, o = o[d[j]];
+            for(var o, j, d, arg, a = arguments, i = 0; i < a.length; i++)if (o = this, (arg = a[i]).indexOf(".") > -1) for(j = +("YAHOO" == //Skip this if no "." is present
+            (d = arg.split("."))[0]); j < d.length; j++)o[d[j]] = o[d[j]] || {}, o = o[d[j]];
             else o[arg] = o[arg] || {}, o = o[arg];
             return o;
         },
@@ -3237,7 +3237,7 @@ Contains the core of YUI's feature test architecture.
             var cat_o = feature_tests[cat], // results = {};
             result = [];
             return cat_o && Y.Object.each(cat_o, function(v, k) {
-                result.push(k + ":" + (Y.Features.test(cat, k, args) ? 1 : 0));
+                result.push(k + ":" + +!!Y.Features.test(cat, k, args));
             }), result.length ? result.join(";") : "";
         },
         /**
diff --git a/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8/output.js b/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8/output.js
index 2f9d8a2bef62..901c0a41ee4a 100644
--- a/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8/output.js
+++ b/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8/output.js
@@ -17,4 +17,4 @@ a = !condition;
 a = !condition;
 a = !!condition && 1;
 a = !condition || 0;
-a = condition ? 1 : 0;
+a = +!!condition;
diff --git a/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8b/output.js b/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8b/output.js
index 2f9d8a2bef62..901c0a41ee4a 100644
--- a/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8b/output.js
+++ b/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8b/output.js
@@ -17,4 +17,4 @@ a = !condition;
 a = !condition;
 a = !!condition && 1;
 a = !condition || 0;
-a = condition ? 1 : 0;
+a = +!!condition;
diff --git a/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8c/output.js b/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8c/output.js
index 2f9d8a2bef62..901c0a41ee4a 100644
--- a/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8c/output.js
+++ b/crates/swc_ecma_minifier/tests/terser/compress/conditionals/cond_8c/output.js
@@ -17,4 +17,4 @@ a = !condition;
 a = !condition;
 a = !!condition && 1;
 a = !condition || 0;
-a = condition ? 1 : 0;
+a = +!!condition;